Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Brecht_V_
Beginner
129 Views

Compiling python 2.7.10 using intel 2016 compiler on OSX 10.10

I'm trying to compile python 2.7.10 using ICC 16.0.0 20150803, on OSX 10.10. I have xcode commandlinetools installed in /Library/Developer/CommandLineTools

Running make works fine, but during make install I run into the following error:

icc -g -O2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g  -O3 -Wall -Wstrict-prototypes -o FileSettings.o -c ./FileSettings.m
clang: error: argument to '-isysroot' is missing (expected 1 value)
problem occurred when compiling './FileSettings.m' with the clang compiler (code 1)
make: *** [FileSettings.o] Error 1

icc seems to call clang with the following command:

/Library/Developer/CommandLineTools/usr/bin/clang    -DNDEBUG -v -g -O2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -c -femit-all-decls ./FileSettings.m -o FileSettings.o -arch x86_64 -isysroot

without an argument to isysroot, which generates the error.

Is there some way I can pass the correct argument to isysroot?

0 Kudos
4 Replies
Kenneth_C_Intel
Employee
129 Views

I was able to build and install fine. What flags are setting with your configure? Also what versions of xcode are you using ?

Regards,

Kenneth

Brecht_V_
Beginner
129 Views

Hi Kenneth,

thanks for your reply. I was able to compile python now, but when running the ctypes test in,

Lib/ctypes/test/test_array_in_pointer.py

I get a segmentation fault when I set the optimization flags to O2 or higher. So with O0 and O1 it works fine.

Can you reproduce this error?

I installed xcode from the app store, running the following commands outputs:

xcode-select -p
/Applications/Xcode.app/Contents/Developer

--------------------------------------------------------------------------

xcodebuild -showsdks
OS X SDKs:
    OS X 10.11                        -sdk macosx10.11

iOS SDKs:
    iOS 9.1                           -sdk iphoneos9.1

iOS Simulator SDKs:
    Simulator - iOS 9.1               -sdk iphonesimulator9.1

tvOS SDKs:
    tvOS 9.0                          -sdk appletvos9.0

tvOS Simulator SDKs:
    Simulator - tvOS 9.0              -sdk appletvsimulator9.0

watchOS SDKs:
    watchOS 2.0                       -sdk watchos2.0

watchOS Simulator SDKs:
    Simulator - watchOS 2.0           -sdk watchsimulator2.0

-----------------------------------------------------------------------------------------

xcodebuild -version
Xcode 7.1
Build version 7B91b

-----------------------------------------------------------------------------------------

icc --version
icc (ICC) 16.0.0 20150803

----------------------------------------------------------------------------------------

 uname -a
Darwin QuantumWises-MacBook-Pro.local 14.5.0 Darwin Kernel Version 14.5.0: Tue Sep  1 21:23:09 PDT 2015; root:xnu-2782.50.1~1/RELEASE_X86_64 x86_64

 

pbkenned1
Employee
129 Views

Yes, I can reproduce this with icc-16.0.0 and Python 2.7.11 (the latest)

orcsme145:Python-2.7.11 pbkenned$ icc -V
Intel(R) C Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 16.0.0.083 Build 20150803
Copyright (C) 1985-2015 Intel Corporation.  All rights reserved.

orcsme145:Python-2.7.11 pbkenned$ ./python ./Lib/ctypes/test/test_array_in_pointer.py
.Segmentation fault: 11
orcsme145:Python-2.7.11 pbkenned$
orcsme145:Python-2.7.11 pbkenned$ ./python ./Lib/test/test_ascii_formatd.py
test_format_deprecation (__main__.FormatDeprecationTests) ... Segmentation fault: 11
orcsme145:Python-2.7.11 pbkenned$

This has been reported to the developers.  I'll keep this thread updated with any news.

Internal tracking ID: DPD200380503

Patrick

Prannath_M_
Beginner
129 Views

Building Python 3.6.0 using Intel compilers 2017.1.126 on Mac OS El Capitan 10.11.6

I have only Xcode command line installed, I removed the IDE since I never use it.

sudo make seemed fine, but sudo make install gives the following.

icc -O3 -fp-model strict -fp-model source -xHost -ipo -prec-div -prec-sqrt -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g  -O3 -Wall -Wstrict-prototypes -o FileSettings.o -c ./        FileSettings.m

clang: error: argument to '-isysroot' is missing (expected 1 value)

problem occurred when compiling './FileSettings.m' with the clang compiler (code 1)

make[2]: *** [FileSettings.o] Error 1

make[1]: *** [install_PythonLauncher] Error 2                                                                                                                                                         

make: *** [frameworkinstallapps] Error 2

 

What is this, and how to solve it? Thanks!

Reply