Bugzilla Automation <bugzi...@freebsd.org> has asked freebsd-python (Nobody)
<python@FreeBSD.org> for maintainer-feedback:
Bug 259896: lang/python39: build error on current, ModuleNotFoundError: No
module named '_sysconfigdata__freebsd14_x86_64-unknown-freebsd14'
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259896



--- Description ---
I think the issue in bug #258377 must be revisited.

On today's current, I get this error when building lang/python39:

LD_LIBRARY_PATH=/construction/xports/lang/python39/work/Python-3.9.8 CC='cc
-pthread' LDSHARED='cc -pthread -shared  -L/usr/local/lib 
-fstack-protector-strong   ' OPT='-DNDEBUG'  _TCLTK_INCLUDES='' _TCLTK_LIBS='' 
./python -E ./setup.py  build
Traceback (most recent call last):
  File "/construction/xports/lang/python39/work/Python-3.9.8/./setup.py", line
2507, in <module>
    class PyBuildInstallLib(install_lib):
  File "/construction/xports/lang/python39/work/Python-3.9.8/./setup.py", line
2514, in PyBuildInstallLib
    shlib_suffix = sysconfig.get_config_var("SHLIB_SUFFIX")
  File "/construction/xports/lang/python39/work/Python-3.9.8/Lib/sysconfig.py",
line 615, in get_config_var
    return get_config_vars().get(name)
  File "/construction/xports/lang/python39/work/Python-3.9.8/Lib/sysconfig.py",
line 564, in get_config_vars
    _init_posix(_CONFIG_VARS)
  File "/construction/xports/lang/python39/work/Python-3.9.8/Lib/sysconfig.py",
line 430, in _init_posix
    _temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
ModuleNotFoundError: No module named
'_sysconfigdata__freebsd14_x86_64-unknown-freebsd14'
*** [sharedmods] Error code 1

In ${WRKSRC}/build/lib.freebsd-14.0-CURRENT-amd64-3.9, I find the file
_sysconfigdata__freebsd14_x86_64-unknown-freebsd14.0.py, but not a file named
_sysconfigdata__freebsd14_x86_64-unknown-freebsd14.py.

lang/python38 nor lang/python310 exhibit this issue.

Reply via email to