Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Build error (Python 3.7)
#1
Hi all.

I'm trying to build Python version 3.7 with the Intel compilers (2018 version). I'm doing it in CentOS 7 with the source code. The steps I follow are:

export CC=icc
export CXX=icpc
export FC=ifort

./configure --prefix=my_prefix --enable-optimizations --without-gcc
make
make install
And the following error is printed:

Error:
Running code to generate profile data (this can take a while): # First, we need to create a clean build with profile generation # enabled. make profile-gen-stamp make[1]: se ingresa al directorio `/home/python/source/Python-3.7.3' Building with support for profile generation: make build_all_generate_profile make[2]: se ingresa al directorio `/home/python/source/Python-3.7.3' make build_all CFLAGS_NODIST=" -prof-gen" LDFLAGS_NODIST=" -prof-gen" LIBS="-lcrypt -lpthread -ldl -lutil" make[3]: se ingresa al directorio `/home/python/source/Python-3.7.3' icc -pthread -c -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -std=c99 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-cast-function-type -Werror=implicit-function-declaration -fp-model strict -prof-gen -I. -I./Include -DPy_BUILD_CORE -o Programs/python.o ./Programs/python.c icc: command line warning #10006: ignoring unknown option '-Wno-cast-function-type' In file included from ./Include/Python.h(75), from ./Programs/python.c(3): ./Include/pyatomic.h(39): error: identifier "atomic_uintptr_t" is undefined atomic_uintptr_t _value; ^ compilation aborted for ./Programs/python.c (code 2)
Can somebody help me? I have searched but can not find the solution, I do not know if someone else has found this error or someone built Python with Intel.

Thank you.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Music ERROR: Could not build wheels for fairseq snl_9527 0 465 Mar-15-2025, 12:43 PM
Last Post: snl_9527
  build Python 3.12 in el7 SergeyMx 5 3,137 Oct-05-2023, 08:14 AM
Last Post: SergeyMx
  How to link Sublime Text 3 Build system to Python 3.9 Using Windows 10 Fanman001 2 5,549 Mar-04-2021, 03:09 PM
Last Post: martpogs
  Compiling Python 3.8.5 source code results in build error Deepan 0 2,712 Sep-14-2020, 04:11 AM
Last Post: Deepan
  Build Python RPM pvbadiger05b 0 2,046 May-11-2020, 06:50 PM
Last Post: pvbadiger05b
  cannot build python 3.8.2 (make test fails on test_imprtlib) borabora 1 3,461 May-08-2020, 09:10 PM
Last Post: Larz60+
  How to build exe/deployable file from Python Project ShikhaJain 1 3,308 Jul-04-2019, 05:37 PM
Last Post: snippsat
  PYTHON - UNRAR : how can I build a thread to monitoring the downloading status Palerm0_24 2 3,355 Mar-18-2019, 02:25 PM
Last Post: Palerm0_24
  Pyenv build of python 3.7.0 issue Larz60+ 3 5,237 Dec-03-2018, 09:28 PM
Last Post: Larz60+
  Can Python build graphical screens like this? wasa 1 3,419 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