[yt-users] Mecurial compilation error

Stella Offner soffner at cfa.harvard.edu
Mon May 23 08:02:06 PDT 2011


Hi,

I'm attempting to install a new version of yt on the Harvard Odyssey 
machine (dual Xeon quad core). The install fails when building mecurial. 
Does anyone recognize this error?
...
running build_ext
building 'mercurial.base85' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/mercurial
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall 
-Wstrict-prototypes -fPIC -I/n/sw/python-2.7/include/python2.7 -c 
mercurial/base85.c -o build/temp.linux-x86_64-2.7/mercurial/base85.o
gcc -pthread -shared -L/n/home05/soffner/yt-x86_64/lib/ 
-L/n/home05/soffner/yt-x86_64/lib64/ -L/n/home05/soffner/yt-x86_64/lib/ 
-L/n/home05/soffner/yt-x86_64/lib64/ -L/n/home05/soffner/yt-x86_64/lib/ 
-L/n/home05/soffner/yt-x86_64/lib64/ -L/n/home05/soffner/yt-x86_64/lib/ 
-L/n/home05/soffner/yt-x86_64/lib64/ 
build/temp.linux-x86_64-2.7/mercurial/base85.o -L. -lpython2.7 -o 
build/lib.linux-x86_64-2.7/mercurial/base85.so
/usr/bin/ld: 
/n/home05/soffner/yt-x86_64/lib//libpython2.7.a(exceptions.o): 
relocation R_X86_64_32 against `_Py_NoneStruct' can not be used when 
making a shared object; recompile with -fPIC
/n/home05/soffner/yt-x86_64/lib//libpython2.7.a: could not read symbols: 
Bad value
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

Python 2.7 seems to work ok, so I don't know what the deal is with the 
libpython2.7a error.
Thanks,
Stella




More information about the yt-users mailing list