[PyQt] -KPIC option removed in icc 10.1 ?
Glen W. Mabey
Glen.Mabey at swri.org
Thu May 15 21:43:25 BST 2008
Hello,
I'm getting an error in building sip 4.7.5 with icc:
icpc -o sip main.o transform.o gencode.o export.o heap.o parser.o
lexer.o -L/usr/X11R6/lib
make[1]: Leaving directory `/home/gmabey/src/DiamondBack/Diamondback/src/sip-4.7.5/sipgen'
make[1]: Entering directory `/home/gmabey/src/DiamondBack/Diamondback/src/sip-4.7.5/siplib'
/opt/intel/cce/10.1.015/bin/icc -c -wd858,1572 -KPIC -w -I. -I/usr/local/include/python2.5 -o siplib.o siplib.c
/opt/intel/cce/10.1.015/bin/icc -c -wd858,1572 -KPIC -w -I. -I/usr/local/include/python2.5 -o qtlib.o qtlib.c
/opt/intel/cce/10.1.015/bin/icc -c -wd858,1572 -KPIC -w -I. -I/usr/local/include/python2.5 -o threads.o threads.c
/opt/intel/cce/10.1.015/bin/icc -c -wd858,1572 -KPIC -w -I. -I/usr/local/include/python2.5 -o objmap.o objmap.c
/opt/intel/cce/10.1.015/bin/icpc -c -wd858,1572 -KPIC -w -I. -I/usr/local/include/python2.5 -o bool.o bool.cpp
icpc -shared -Wl,--version-script=sip.exp -o sip.so siplib.o qtlib.o threads.o objmap.o bool.o -L/usr/X11R6/lib
ld: siplib.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
siplib.o: could not read symbols: Bad value
make[1]: *** [sip.so] Error 1
The man page for icc reveals:
Removed Options
The following options are removed in this release of the compiler:
<snip>
-Kpic, -KPIC
Suggested replacement -fpic.
that is, for icc version 10.1.015. I'm unsure whether -fPIC is
supported in earlier versions of icc.
Also, it looks like the CXX= arg that I passed on the command line
didn't get used in all cases ... ??
Thank you,
Glen Mabey
More information about the PyQt
mailing list