Repository navigation
When having on --with-system-expat, system still builds using bundled expat for tests #92875
Copy link
Copy link
Closed as duplicate
Closed as duplicate
Copy link
Labels
buildThe build process and cross-buildThe build process and cross-buildtestsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Activity
- addedtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
on May 17, 2022 OK, so it is enough just to set
CONFIG_ARGSvariable to something like"--enable-ipv6 --enable-shared --with-ensurepip=no --with-system-ffi --with-system-expat --with-lto --enable-optimizations --with-system-libmpdec --enable-loadable-sqlite-extensions".Nope, it doesn't help. When I remove the bundled expat it fails just the same even with
CONFIG_ARGSvariable set.- addedbuildThe build process and cross-buildThe build process and cross-build
on May 23, 2022 One more report for it.
Trying to build SCL for Centos 7, issue is the same:make: Leaving directory `/tmp/tmpzdbz0bvg/python-build' --- STDERR --- /tmp/tmpzdbz0bvg/cpython/Objects/obmalloc.c:1449:1: warning: always_inline function might not be inlinable [-Wattributes] 1449 | arena_map_get(block *p, int create) | ^~~~~~~~~~~~~ make: *** No rule to make target `/tmp/tmpzdbz0bvg/cpython/Modules/expat/xmlparse.c', needed by `Modules/expat/xmlparse.o'. Stop. make: *** Waiting for unfinished jobs.... ---- END ---- ERROR ====================================================================== ERROR: test_freeze_simple_script (test.test_tools.test_freeze.TestFreeze.test_freeze_simple_script) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.11.0rc1/Lib/test/test_tools/test_freeze.py", line 27, in test_freeze_simple_script outdir, scriptfile, python = helper.prepare(script, outdir) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/Python-3.11.0rc1/Tools/freeze/test/freeze.py", line 159, in prepare _run_quiet([MAKE, '-C', builddir, '-j8']) File "/builddir/build/BUILD/Python-3.11.0rc1/Tools/freeze/test/freeze.py", line 25, in _run_quiet return subprocess.run( ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/Python-3.11.0rc1/Lib/subprocess.py", line 569, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['/usr/bin/make', '-C', '/tmp/tmpzdbz0bvg/python-build', '-j8']' returned non-zero exit status 2. ---------------------------------------------------------------------- Ran 1 test in 78.506s FAILED (errors=1) test test_tools failed 1 test failed again: test_tools == Tests result: FAILURE then FAILURE == 409 tests OK. 10 slowest tests: - test_concurrent_futures: 2 min 36 sec - test_multiprocessing_spawn: 2 min 28 sec - test_subprocess: 2 min 27 sec - test_asyncio: 1 min 36 sec - test_tools: 1 min 36 sec - test_multiprocessing_forkserver: 1 min 28 sec - test_multiprocessing_fork: 1 min 16 sec - test_signal: 49.0 sec - test_io: 35.8 sec - test_compileall: 33.4 sec 1 test failed: test_tools 24 tests skipped: test_curses test_devpoll test_idle test_ioctl test_kqueue test_launcher test_msilib test_ossaudiodev test_smtpnet test_socketserver test_startfile test_tcl test_tix test_tk test_ttk_guionly test_ttk_textonly test_turtle test_urllib2net test_urllibnet test_winconsoleio test_winreg test_winsound test_xmlrpc_net test_zipfile64 1 re-run test: test_tools Total duration: 4 min 27 sec Tests result: FAILURE then FAILUREI removed the internal Modules/expat, but have no idea then it takes make target for xmlparse in this case.
# grep expat build.log + rm -r Modules/expat checking for --with-system-expat... yes checking for stdlib extension module pyexpat... yes building 'pyexpat' extension ... 0:00:33 load avg: 7.96 [264/434] test_pyexpat passed -- running: test_asyncio (32.8 sec) make: *** No rule to make target `/tmp/tmp02i4l09d/cpython/Modules/expat/xmlparse.c', needed by `Modules/expat/xmlparse.o'. Stop. make: *** No rule to make target `/tmp/tmpzdbz0bvg/cpython/Modules/expat/xmlparse.c', needed by `Modules/expat/xmlparse.o'. Stop.Looks like #91752
Removed
rm -r Modules/expatfrom spec file - all compiled ok. Centos7.Fixed by 1512d6c6ee2, please let me know if that's not the case and I can re-open.
Metadata
Metadata
Assignees
Labels
buildThe build process and cross-buildThe build process and cross-buildtestsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Bug report
When building 3.11.0b1 for openSUSE (openSUSE/Tumbleweed as of 2022-05-17) we have
--with-system-expaton (of course) and just to be sure we alsorm -rf Modules/expat(to be sure, we really don't use bundled expat). Unfortunately, in such situationtest_freeze_simple_scriptintest.test_tools.test_freeze.TestFreezefails:Complete build log with all details of building the package.