Skip to content

gh-152711: Add pythoninfo-build command to Platforms/Android#152713

Open
vstinner wants to merge 2 commits into
python:mainfrom
vstinner:android_pythoninfo
Open

gh-152711: Add pythoninfo-build command to Platforms/Android#152713
vstinner wants to merge 2 commits into
python:mainfrom
vstinner:android_pythoninfo

Conversation

@vstinner

@vstinner vstinner commented Jun 30, 2026

Copy link
Copy Markdown
Member

Add a pythoninfo-build command to Platforms/Android to display build info of the build Python. The command runs "make pythoninfo".

Add a pythoninfo-build command to Platforms/Android to display build
info of the build Python. The command runs "make pythoninfo".
@vstinner

Copy link
Copy Markdown
Member Author

My plan is to backport this change to 3.13, 3.14 and 3.15 branches, and then modify the buildbot configuration to add a step running the new pythoninfo-build command.

I made similar changes (with buildbot changes) on:

cc @mhsmith

@vstinner

vstinner commented Jun 30, 2026

Copy link
Copy Markdown
Member Author

Extracts of "Pythoninfo build Python" on Android (aarch64):

  CC.version: Apple clang version 21.0.0 (clang-2100.1.1.101)

  build.NDEBUG: ignore assertions (macro defined)
  build.Py_DEBUG: No (sys.gettotalrefcount() missing)
  libregrtests.build_info: release

  os.cpu_count: 3
  os.uname: posix.uname_result(sysname='Darwin', nodename='iad20-gt1022-02e63cdb-1be1-4abd-804a-f16387b35b39-06829AA78E1C.local', release='25.4.0', version='Darwin Kernel Version 25.4.0: Thu Mar 19 19:29:33 PDT 2026; root:xnu-12377.101.15~1/RELEASE_ARM64_VMAPPLE', machine='arm64')
  platform.architecture: 64bit Mach-O
  platform.platform: macOS-26.4-arm64-arm-64bit-Mach-O

  sys.version: 3.16.0a0 (remotes/pull/152713/merge-dirty:8cd7b46, Jun 30 2026, 22:08:06) [Clang 21.0.0 (clang-2100.1.1.101)]

  system.hardware: VirtualMac2,1
  system.uptime: 0:03:16
  system.virt: run in a VM (kern.hv_vmm_present is 1)

Tests are not run on aarch64.


Extracts of "Pythoninfo build Python" on Android (x86_64):

  CC.version: gcc (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0

  build.NDEBUG: ignore assertions (macro defined)
  build.Py_DEBUG: No (sys.gettotalrefcount() missing)
  libregrtests.build_info: release

  os.cpu_count: 4

  os.uname: posix.uname_result(sysname='Linux', nodename='runnervmmklqx', release='6.17.0-1018-azure', version='#18~24.04.1-Ubuntu SMP Thu May 28 16:39:11 UTC 2026', machine='x86_64')

  platform.freedesktop_os_release[ID]: ubuntu
  platform.freedesktop_os_release[NAME]: Ubuntu
  platform.freedesktop_os_release[VERSION]: 24.04.4 LTS (Noble Numbat)
  platform.freedesktop_os_release[VERSION_CODENAME]: noble
  platform.freedesktop_os_release[VERSION_ID]: 24.04

  platform.libc_ver: glibc 2.39
  platform.platform: Linux-6.17.0-1018-azure-x86_64-with-glibc2.39

  system.boot_id: 7b3ed1fd-afd6-4db1-94b4-accd3f25be50
  system.machine_id: b9d4e40b90bc4dcb974f6d60e5fb946e
  system.uptime: 0:02:27
  system.virt: microsoft

Extracts of Android "pythoninfo" on Android (x86_64):

  build.NDEBUG: ignore assertions (macro defined)
  build.Py_DEBUG: No (sys.gettotalrefcount() missing)
  libregrtests.build_info: release shared

  os.cpu_count: 2

  os.uname: posix.uname_result(sysname='Linux', nodename='localhost', release='6.6.30-android15-8-gdd9c02ccfe27-ab11987101', version='#1 SMP PREEMPT Tue Jun 18 20:50:32 UTC 2024', machine='x86_64')
  platform.android_ver: AndroidVer(release='15', api_level=35, manufacturer='unknown', model='Android ATD built for x86_64', device='emu64x', is_emulator=True)
  platform.architecture: 64bit
  platform.platform: Android-15-x86_64-64bit

  sys.platform: android

  system.boot_id: 3e956057-12a9-407f-8528-6ad06b78a57e
  system.uptime: 0:01:11

@vstinner

Copy link
Copy Markdown
Member Author

Tests / Sanitizers / TSan (free-threading) (pull_request): Failing after 23m

Oh, that's the known issue gh-150191.

WARNING: ThreadSanitizer: data race (pid=19630)
  Read of size 8 at 0x720800029c20 by thread T13:
    #0 memcmp <null> (python+0x10a64e) (BuildId: cb9b83be7b480cbfdff0df4cdf1ad6fd07bf85e0)
    #1 ASN1_STRING_cmp <null> (libcrypto.so.3+0xd5904) (BuildId: 79b8e7622d14cb55e5704008d40c02423919bfae)
    ...

@vstinner

Copy link
Copy Markdown
Member Author

My plan is to backport this change to 3.13, 3.14 and 3.15 branches, and then modify the buildbot configuration to add a step running the new pythoninfo-build command.

I prepared PR python/buildmaster-config#748 for the buildbot configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant