Repository navigation
FreeBSD buildbots cannot compile Python #90421
Description
Activity
Seems that the FreeBSD buildbots cannot compile Python 3.11 anymore:
LD_LIBRARY_PATH=/usr/home/buildbot/python/3.x.koobs-freebsd-564d/build CC='cc -pthread' LDSHARED='cc -pthread -shared ' OPT='-g -O0 -Wall' _TCLTK_INCLUDES='' _TCLTK_LIBS='' ./python -E ./setup.py build Traceback (most recent call last): File "/usr/home/buildbot/python/3.x.koobs-freebsd-564d/build/./setup.py", line 49, in <module> from distutils.command.build_ext import build_ext ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/home/buildbot/python/3.x.koobs-freebsd-564d/build/Lib/distutils/command/build_ext.py", line 13, in <module> from distutils.sysconfig import customize_compiler, get_python_version ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/home/buildbot/python/3.x.koobs-freebsd-564d/build/Lib/distutils/sysconfig.py", line 53, in <module> _config_vars = get_config_vars() ^^^^^^^^^^^^^^^^^ File "/usr/home/buildbot/python/3.x.koobs-freebsd-564d/build/Lib/sysconfig.py", line 621, in get_config_vars _init_posix(_CONFIG_VARS) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/home/buildbot/python/3.x.koobs-freebsd-564d/build/Lib/sysconfig.py", line 482, in _init_posix _temp = __import__(name, globals(), locals(), ['build_time_vars'], 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ModuleNotFoundError: No module named '_sysconfigdata_d_freebsd14_x86_64-unknown-freebsd14' *** [sharedmods] Error code 1 make: stopped in /usr/home/buildbot/python/3.x.koobs-freebsd-564d/build make: stopped in /usr/home/buildbot/python/3.x.koobs-freebsd-564d/build
There is also this other builder:
https://buildbot.python.org/all/#/builders/172/builds/1093
failing what what seems is a freeze problem:
- 'use_frozen_modules': 1, + 'use_frozen_modules': -1, ? + 'use_hash_seed': 0, 'user_site_directory': 1, 'verbose': 0, 'warn_default_encoding': 0, 'warnoptions': [], 'write_bytecode': 1, 'xoptions': []}
Ran 1 test in 0.152s
FAILED (failures=1)
test test_embed failed
1 test failed again:
test_embedAdding Eric and Guido for this particular problem to the nosy list
Not to point out the obvious but this buildbot uses --enable-shared which is often a source of build / bootstrap issues, such as the compiler executable being built ends up dynamically loading a libpython from a previous installation or build.
- changed the title
[-]FreeBSL buiildbots cannot compile Python[/-][+]FreeBSD buildbots cannot compile Python[/+]on Jan 5, 2022 - changed the title
[-]FreeBSL buiildbots cannot compile Python[/-][+]FreeBSD buildbots cannot compile Python[/+]on Jan 5, 2022 On my FreeBSD 13 VM the sysconfig data module is
build/lib.freebsd-13.0-RELEASE-amd64-3.11-pydebug/sysconfigdata_d_freebsd13.py
It does not have any multiarch suffix. The multiarch suffix is detected by configure.ac. Did FreeBSD 14.0's CC get support for "cc --print-multiarch"? I found a related FreeBSD bug https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258377
I have tested my PR on a FreeBSD VM. Python fails to compile on main and builds correctly with my patch.
- addedbuildThe build process and cross-buildThe build process and cross-build3.9 (EOL)end of lifeend of life3.10 (EOL)end of lifeend of life
on Jan 5, 2022 38 remaining items
A FreeBSD builder where it's working:
AMD64 FreeBSD Shared 3.x (koobs-freebsd-564d)
OS: FreeBSD 14.0-CURRENT main-n244626-cb7cc72c546: GENERIC-NODEBUG (amd64) System: 2-core, 8Gb, VirtualBox (6.x) Guest Features: - Compiler: FreeBSD clang version 11.0.1 (llvmorg-11.0.1-0-g43ff75f2c3fe) - Clang "is" cc (default system compiler) - OpenSSL 1.1.1i-freebsd 8 Dec 2020Where it isn't:
AMD64 FreeBSD Non-Debug 3.x (koobs-freebsd-9e36)
Environment: * OS: FreeBSD 12.3-RELEASE r371126 GENERIC amd64 * System: 2-core, 2Gb, VirtualBox (6.x) Guest Features: * cc = FreeBSD clang version 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2) * DTRACE * ZFS * Posix SemaphoresThe main difference I see is the FreeBSD version.
Also, AMD64 FreeBSD Shared 3.x is configured --with-pydebug and --enable-shared. I'd be surprised if those were the root cause of this though. Both buildbots are in-tree builds.
FWIW, my FreeBSD 14.0-CURRENT main-n250453-7ac82c96fe7 VM also fails, as noted in previous posts. It's built with just ./configure && make.
I just put up a PR that should fix the failure.
Great. I tried the same trick on my VM earlier today, but I was unsure if it was the correct fix :) Thanks!
test_pyobject_freed_is_freed is still failing on AMD64 FreeBSD Shared 3.x.
Both FreeBSD bots are green again. Thank you Christian and Eric!
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields: