Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
build Python 3.12 in el7
#1
I have been building all versions ( 3.11.5 and below) of Python on my el7 (CentOS 7) system with no problems.
Now 3.12 is out and I can't build it.

Error:
--- Rebuilding with profile guided optimizations: rm -f profile-clean-stamp make build_all CFLAGS_NODIST=" -fprofile-use -fprofile-correction" LDFLAGS_NODIST="" make[1]: Entering directory `/builddir/build/BUILD/Python-3.12.0' gcc -pthread -shared -L/usr/lib64/openssl11 -lssl -lcrypto -fno-semantic-interposition Modules/_tkinter.o Modules/tkappinit.o -o Modules/_tkinter.cpython-312-x86_64-linux-gnu.so gcc: error: unrecognized command line option '-fno-semantic-interposition' make[1]: Leaving directory `/builddir/build/BUILD/Python-3.12.0' make[1]: *** [Modules/_tkinter.cpython-312-x86_64-linux-gnu.so] Error 1 make: *** [profile-opt] Error 2 ---
Who can help ?
Reply
#2
Looks like you have an old version of gcc. -fno-semantic-interposition was introduced in gcc 5.3 back in 2015.

https://superuser.com/questions/1640048/...n-centos-7
Reply
#3
(Oct-03-2023, 10:03 PM)deanhystad Wrote: Looks like you have an old version of gcc. -fno-semantic-interposition was introduced in gcc 5.3 back in 2015.

https://superuser.com/questions/1640048/...n-centos-7

I know about that. And I've built 3.10.x there before.
and 3.11.x (which I wrote about above).
with the help of : devtoolset-8-gcc-8.3.1-3.2.el7.x86_64.rpm

Maybe in 3.12 they forgot some patch for this ?
https://bugs.python.org/issue38980

P.S. Now tried building 3.11.6 - no problem.
---
Wrote: /builddir/build/RPMS/python311-3.11.6-1.el7.x86_64.rpm
Wrote: /builddir/build/RPMS/python311-debuginfo-3.11.6-1.el7.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.TxZYP5
+ umask 022
+ cd /builddir/build/BUILD
+ cd Python-3.11.6
+ rm -rf /builddir/build/BUILDROOT/python311-3.11.6-1.el7.x86_64
+ exit 0
Reply
#4
Excuse me, can anyone suggest a resource to write about this ?
I want to understand if this is still a bug in version 12.0 or if it will never be fixed ?
Reply
#5
This is the official 3.12 release page:

https://www.python.org/downloads/release/python-3120/

Move down to "More resources" where you will find "Report bugs via GitHub Issues."
Reply
#6
(Oct-05-2023, 06:55 AM)deanhystad Wrote: This is the official 3.12 release page:

https://www.python.org/downloads/release/python-3120/

Move down to "More resources" where you will find "Report bugs via GitHub Issues."

Thank you.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to link Sublime Text 3 Build system to Python 3.9 Using Windows 10 Fanman001 2 4,623 Mar-04-2021, 03:09 PM
Last Post: martpogs
  Compiling Python 3.8.5 source code results in build error Deepan 0 2,194 Sep-14-2020, 04:11 AM
Last Post: Deepan
  Build Python RPM pvbadiger05b 0 1,601 May-11-2020, 06:50 PM
Last Post: pvbadiger05b
  cannot build python 3.8.2 (make test fails on test_imprtlib) borabora 1 2,765 May-08-2020, 09:10 PM
Last Post: Larz60+
  How to build exe/deployable file from Python Project ShikhaJain 1 2,813 Jul-04-2019, 05:37 PM
Last Post: snippsat
  Build error (Python 3.7) Saszalez 0 2,250 Jun-20-2019, 07:59 AM
Last Post: Saszalez
  PYTHON - UNRAR : how can I build a thread to monitoring the downloading status Palerm0_24 2 2,612 Mar-18-2019, 02:25 PM
Last Post: Palerm0_24
  Pyenv build of python 3.7.0 issue Larz60+ 3 4,299 Dec-03-2018, 09:28 PM
Last Post: Larz60+
  Can Python build graphical screens like this? wasa 1 2,899 Mar-08-2018, 01:24 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020