This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: final link stage in compile fails for 3.8.1 with missing CFLAGS
Type: compile error Stage: resolved
Components: Build Versions: Python 3.8
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: blastwave, iritkatriel
Priority: normal Keywords:

Created on 2020-02-21 14:09 by blastwave, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg362405 - (view) Author: Dennis Clarke (blastwave) Date: 2020-02-21 14:09
During compile after a sucessful configure the final link stage fails : 

/opt/developerstudio12.6/bin/cc -R/usr/local/lib -L/usr/local/lib -R/usr/local/lib -L/usr/local/lib    -o python Programs/python.o -Wl,-R,/usr/local/lib -L. -lpython3.8d -lsocket -lnsl -lintl -lrt -ldl -lsendfile  -lm   -lm 
ld: fatal: file /opt/developerstudio12.6/lib/compilers/crti.o: wrong ELF class: ELFCLASS32
ld: fatal: file processing errors. No output written to python
gmake: *** [Makefile:578: python] Error 2

real 107.96
user 100.96
sys 21.96
alpha$

Easily done manually : 

alpha$ $CC $CFLAGS -R/usr/local/lib -L/usr/local/lib \
> -o python Programs/python.o \
> -Wl,-R,/usr/local/lib -L. -lpython3.8d -lsocket -lnsl -lintl -lrt -ldl -lsendfile  -lm
alpha$ 

alpha$ file python 
python: ELF 64-bit MSB executable SPARCV9 Version 1, dynamically linked, not stripped
alpha$
msg411402 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2022-01-23 19:00
Version 3.8 is no longer maintained. Please create a new issue if you are having this problem on a current version (>= 3.9).
History
Date User Action Args
2022-04-11 14:59:27adminsetgithub: 83889
2022-01-23 19:00:50iritkatrielsetstatus: open -> closed

nosy: + iritkatriel
messages: + msg411402

resolution: out of date
stage: resolved
2020-02-21 14:09:02blastwavecreate