Michael Felt <[email protected]> added the comment:
specifically, makexp_aix - from 1998-1999 - did not consider parallelization.
make -j2 is sufficient to create the following issue - that frequently leads to
a failed compile/build.
./Modules/makexp_aix Modules/python.exp . libpython3.9d.a; gcc -pthread
-Wl,-bE:Modules/python.exp -lld -o python Programs/python.o libpython3.9d.a
-lintl -ldl -lm -lm
./Modules/makexp_aix Modules/python.exp . libpython3.9d.a; gcc -pthread
-Wl,-bE:Modules/python.exp -lld -o Programs/_testembed Programs/_testembed.o
libpython3.9d.a -lintl -ldl -lm -lm
ld: 0711-418 ERROR: Import or export file Modules/python.exp at line 2:
A symbol name may only be followed by an export attribute
or an address. The line is being ignored.
ld: 0711-415 WARNING: Symbol PyAST_Check is already exported.
ld: 0711-415 WARNING: Symbol PyAST_Compile is already exported.
ld: 0711-415 WARNING: Symbol PyAST_CompileEx is already exported.
ld: 0711-415 WARNING: Symbol PyAST_CompileObject is already exported.
...
Over 4000 lines of warnings later:
ld: 0711-415 WARNING: Symbol _Py_write is already exported.
ld: 0711-415 WARNING: Symbol _Py_write_noraise is already exported.
collect2: error: ld returned 8 exit status
Makefile:598: recipe for target 'python' failed
make: *** [python] Error 1
program finished with exit code 2
Explanation: makexp_aix is running in parallel - and writing to python.exp in
parallel.
The patch/PR "tames" this - and, hopefully, multiple "fails" per day, of the
AIX bots will cease.
p.s. needed in 3.8, 3.9 and the new master (3.10)
----------
versions: +Python 3.10
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue40424>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com