- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi.
I'm trying to build Python 3.7 on CentOS 7 with Intel compilers. I'm using version 2018 of the compiler.
To compile I do the following:
export CC=icc export CXX=icpc export FC=ifort ./configure --prefix=my_prefix --enable-optimizations --without-gcc make make install
In the configure, no error is seen, but when I execute make, the following message is printed:
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)
I have searched but I can not find the solution to the error. Any ideas?
- Tags:
- CC++
- Development Tools
- Intel® C++ Compiler
- Intel® Parallel Studio XE
- Intel® System Studio
- Optimization
- Parallel Computing
- Vectorization
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you try the 2019 update 4 version?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No. I do not know if I can have the version you told me. Still, would a new version fix the error?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't know if this will help. But give it a try: https://blog.semicolonsoftware.de/compiling-python-numpy-and-scipy-with-intel-compilers-and-intel-mkl/
btw. using the latest compiler is always a good idea. you can download an eval copy to start with.
Thanks,
Jennifer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I confirm that the problem exists with 2019 update 4...
And following the blog.semicolonsoftware.de link also leads to the same error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you create a preprocessed file for python.c.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am having the same problem trying to compile python 3.7.4. Is there a solution? For me the make process fails quite early:
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 -I/discover/nobackup/projects/tm5var4d/packages/openssl/1.1.0h/include -I/discover/nobackup/projects/tm5var4d/packages/python3_prereqs/include -fPIC -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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you provide us preprocessed file (by replacing -c with -E)? Make sure you are still able to compile the preprocessed file and see the same error by replacing python.c with python.i.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page