[Cython] Sage build broken

Stefan Behnel stefan_ml at behnel.de
Thu Feb 21 21:48:12 CET 2013


Stefan Behnel, 21.02.2013 07:46:
> I just noticed that the Sage build is broken:
> 
> """
> gcc -pthread -shared -L/jenkins/sage/sage-5.2/local/lib
> build/temp.linux-x86_64-2.7/sage/rings/polynomial/polydict.o
> -L/jenkins/sage/sage-5.2/local/lib -L/release/merger/sage-5.2/local/lib
> -lcsage -lstdc++ -lntl -lpython2.7 -o
> build/lib.linux-x86_64-2.7/sage/rings/polynomial/polydict.so
> 
> /usr/bin/ld: build/temp.linux-x86_64-2.7/sage/rings/polynomial/polydict.o:
> relocation R_X86_64_PC32 against `__Pyx_PyDict_IterItems' can not be used
> when making a shared object; recompile with -fPIC
> 
> /usr/bin/ld: final link failed: Bad value
> collect2: ld returned 1 exit status
> command 'gcc' failed with exit status 1
> """
> 
> Looks like a problem in Sage to me, the gcc command really lacks the -fPIC
> here.

Sorry, my bad. I had a typo in a utility code section name, which prevented
the actual implementation of that function from appearing in the C code. No
idea what makes gcc generate that misleading error message above, though.

Stefan



More information about the cython-devel mailing list