Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Intel compilers #1664

Closed
msyriac opened this issue Jan 14, 2020 · 1 comment
Closed

Using Intel compilers #1664

msyriac opened this issue Jan 14, 2020 · 1 comment

Comments

@msyriac
Copy link

msyriac commented Jan 14, 2020

Is it impossible to use Intel compilers? The setup.py seems to insist on using gcc, e.g.:

$ CC=icc python setup.py build_ext -i
running build_ext
building 'psutil._psutil_linux' extension
icc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector -O3 -fpic -fPIC -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector -O3 -fpic -fPIC -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=568 -DPSUTIL_LINUX=1 -I/scinet/niagara/intel/2018.2/intelpython3/include/python3.6m -c psutil/_psutil_common.c -o build/temp.linux-x86_64-3.6/psutil/_psutil_common.o
icc: command line warning #10006: ignoring unknown option '-Wno-unused-result'
icc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector -O3 -fpic -fPIC -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector -O3 -fpic -fPIC -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=568 -DPSUTIL_LINUX=1 -I/scinet/niagara/intel/2018.2/intelpython3/include/python3.6m -c psutil/_psutil_posix.c -o build/temp.linux-x86_64-3.6/psutil/_psutil_posix.o
icc: command line warning #10006: ignoring unknown option '-Wno-unused-result'
icc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector -O3 -fpic -fPIC -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector -O3 -fpic -fPIC -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=568 -DPSUTIL_LINUX=1 -I/scinet/niagara/intel/2018.2/intelpython3/include/python3.6m -c psutil/_psutil_linux.c -o build/temp.linux-x86_64-3.6/psutil/_psutil_linux.o
icc: command line warning #10006: ignoring unknown option '-Wno-unused-result'
gcc -pthread -shared -L/scinet/niagara/intel/2018.2/intelpython3/lib -Wl,-rpath=/scinet/niagara/intel/2018.2/intelpython3/lib,--no-as-needed -z noexecstack -z relro -z now -fstack-protector build/temp.linux-x86_64-3.6/psutil/_psutil_common.o build/temp.linux-x86_64-3.6/psutil/_psutil_posix.o build/temp.linux-x86_64-3.6/psutil/_psutil_linux.o -L/scinet/niagara/intel/2018.2/intelpython3/lib -lpython3.6m -o build/lib.linux-x86_64-3.6/psutil/_psutil_linux.cpython-36m-x86_64-linux-gnu.so
unable to execute 'gcc': No such file or directory
C compiler or Python headers are not installed on this system. Try to run:
sudo yum install gcc python3-devel
error: command 'gcc' failed with exit status 1
@giampaolo
Copy link
Owner

I don't know. It has to do with setuptools / distutils so I would google for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants