Repository navigation
FreeBSD buildbots cannot compile Python #90421
Copy link
Copy link
Closed
Labels
3.10 (EOL)end of lifeend of life3.11only security fixesonly security fixes3.9 (EOL)end of lifeend of lifebuildThe build process and cross-buildThe build process and cross-build
Description
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:
assignee = None
closed_at = <Date 2022-01-06.20:49:48.873>
created_at = <Date 2022-01-04.23:09:03.585>
labels = ['build', '3.9', '3.10', '3.11']
title = 'FreeBSD buildbots cannot compile Python'
updated_at = <Date 2022-04-08.10:04:22.749>
user = 'https://github.com/pablogsal'bugs.python.org fields:
activity = <Date 2022-04-08.10:04:22.749>
actor = 'koobs'
assignee = 'none'
closed = True
closed_date = <Date 2022-01-06.20:49:48.873>
closer = 'erlendaasland'
components = ['Build']
creation = <Date 2022-01-04.23:09:03.585>
creator = 'pablogsal'
dependencies = []
files = []
hgrepos = []
issue_num = 46263
keywords = ['patch']
message_count = 41.0
messages = ['409719', '409722', '409727', '409731', '409741', '409744', '409746', '409747', '409765', '409768', '409775', '409824', '409828', '409831', '409832', '409833', '409834', '409850', '409851', '409858', '409863', '409865', '409873', '409875', '409876', '409877', '409878', '409880', '409882', '409885', '409888', '409889', '409891', '409892', '409896', '409897', '409900', '409906', '409910', '409913', '409924']
nosy_count = 10.0
nosy_names = ['gvanrossum', 'christian.heimes', 'ned.deily', 'lukasz.langa', 'eric.snow', 'koobs', 'steve.dower', 'pablogsal', 'miss-islington', 'erlendaasland']
pr_nums = ['30410', '30413', '30414', '30434', '30436', '30437', '30438', '30440', '30442', '30443']
priority = None
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'compile error'
url = 'https://bugs.python.org/issue46263'
versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
3.10 (EOL)end of lifeend of life3.11only security fixesonly security fixes3.9 (EOL)end of lifeend of lifebuildThe build process and cross-buildThe build process and cross-build
Activity
pablogsal commentedon Jan 4, 2022
Seems that the FreeBSD buildbots cannot compile Python 3.11 anymore:
https://buildbot.python.org/all/#/builders/483/builds/1408
pablogsal commentedon Jan 4, 2022
There is also this other builder:
https://buildbot.python.org/all/#/builders/172/builds/1093
failing what what seems is a freeze problem:
Ran 1 test in 0.152s
FAILED (failures=1)
test test_embed failed
1 test failed again:
test_embed
Adding Eric and Guido for this particular problem to the nosy list
ned-deily commentedon Jan 5, 2022
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.
[-]FreeBSL buiildbots cannot compile Python[/-][+]FreeBSD buildbots cannot compile Python[/+][-]FreeBSL buiildbots cannot compile Python[/-][+]FreeBSD buildbots cannot compile Python[/+]tiran commentedon 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
tiran commentedon Jan 5, 2022
I have tested my PR on a FreeBSD VM. Python fails to compile on main and builds correctly with my patch.
38 remaining items
ericsnowcurrently commentedon Jan 6, 2022
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 2020
Where 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 Semaphores
The main difference I see is the FreeBSD version.
erlend-aasland commentedon Jan 6, 2022
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.
ericsnowcurrently commentedon Jan 6, 2022
I just put up a PR that should fix the failure.
ericsnowcurrently commentedon Jan 6, 2022
New changeset 68c76d9 by Eric Snow in branch 'main':
bpo-46263: Do not ever expect "use_frozen_modules" to be -1. (gh-30438)
68c76d9
erlend-aasland commentedon Jan 6, 2022
Great. I tried the same trick on my VM earlier today, but I was unsure if it was the correct fix :) Thanks!
ericsnowcurrently commentedon Jan 6, 2022
test_pyobject_freed_is_freed is still failing on AMD64 FreeBSD Shared 3.x.
miss-islington commentedon Jan 6, 2022
New changeset c9137d4 by Christian Heimes in branch 'main':
bpo-46263: Fix second location that needs MALLOC_CONF on FreeBSD (GH-30440)
c9137d4
miss-islington commentedon Jan 6, 2022
New changeset 3cb64ed by Miss Islington (bot) in branch '3.10':
bpo-46263: Fix second location that needs MALLOC_CONF on FreeBSD (GH-30440)
3cb64ed
miss-islington commentedon Jan 6, 2022
New changeset b98730c by Miss Islington (bot) in branch '3.9':
bpo-46263: Fix second location that needs MALLOC_CONF on FreeBSD (GH-30440)
b98730c
erlend-aasland commentedon Jan 6, 2022
Both FreeBSD bots are green again. Thank you Christian and Eric!