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
  build Python 3.12 in el7 SergeyMx 5 1,239 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 4,618 Mar-04-2021, 03:09 PM
Last Post: martpogs
  Compiling Python 3.8.5 source code results in build error Deepan 0 2,192 Sep-14-2020, 04:11 AM
Last Post: Deepan
  Build Python RPM pvbadiger05b 0 1,600 May-11-2020, 06:50 PM
Last Post: pvbadiger05b
  cannot build python 3.8.2 (make test fails on test_imprtlib) borabora 1 2,759 May-08-2020, 09:10 PM
Last Post: Larz60+
  How to build exe/deployable file from Python Project ShikhaJain 1 2,808 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 2,610 Mar-18-2019, 02:25 PM
Last Post: Palerm0_24
  Pyenv build of python 3.7.0 issue Larz60+ 3 4,293 Dec-03-2018, 09:28 PM
Last Post: Larz60+
  Can Python build graphical screens like this? wasa 1 2,896 Mar-08-2018, 01:24 PM
Last Post: Larz60+
  Error in build using cx_freeze with psychopy based animation olivyac 0 2,915 Sep-19-2017, 07:55 PM
Last Post: olivyac

Forum Jump:

User Panel Messages

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