[LLVMbugs] [Bug 1711] New: failing build of llvm-gcc-4.2 on x84-64 ( relocation R_X86_64_PC32 against `__cxa_finalize@@GLIBC_2.2.5')

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Sep 28 10:44:38 PDT 2007


http://llvm.org/bugs/show_bug.cgi?id=1711

           Summary: failing build of llvm-gcc-4.2 on x84-64 (relocation
                    R_X86_64_PC32 against `__cxa_finalize@@GLIBC_2.2.5')
           Product: new-bugs
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: kenneth.hoste at elis.ugent.be
                CC: asl at math.spbu.ru, llvmbugs at cs.uiuc.edu


While trying to build llvm-gcc-4.2 on Gentoo Linux x84-64, I'm running into the
problem below. 
I was told (@ IRC) this is a known problem, and efforts have been made to solve
it, but it not well-known enough yet to solve it globally.

I'm using SVN head for both LLVM and llvm-gcc-4.2, and am doing a debug build. 

LLVM is configured with ./configure --prefix=<path>, and made using just
'make', while llvm-gcc-4.2 is configured with

./llvm-gcc-4.2/configure --prefix=/tmp/kehoste/LLVM/llvm-gcc-4.2-bin
--enable-llvm=/tmp/kehoste/LLVM/llvm-obj --enable-languages=c,c++,fortran
--enable-checking

and built with 'make'.

Any further tests I can do, or information I can provide?

/tmp/kehoste/LLVM/llvm-gcc-4.2-obj/./gcc/xgcc
-B/tmp/kehoste/LLVM/llvm-gcc-4.2-obj/./gcc/
-B/tmp/kehoste/LLVM/llvm-gcc-4.2-bin/x86_64-unknown-linux-gnu/bin/
-B/tmp/kehoste/LLVM/llvm-gcc-4.2-bin/x86_64-unknown-linux-gnu/lib/ -isystem
/tmp/kehoste/LLVM/llvm-gcc-4.2-bin/x86_64-unknown-linux-gnu/include -isystem
/tmp/kehoste/LLVM/llvm-gcc-4.2-bin/x86_64-unknown-linux-gnu/sys-include -O2 
-O2 -fPIC  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -g
-DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -shared
-nodefaultlibs -Wl,--soname=libgcc_s.so.1
-Wl,--version-script=libgcc/./libgcc.map -o ./libgcc_s.so.1.tmp 
libgcc/./_muldi3_s.o libgcc/./_negdi2_s.o libgcc/./_lshrdi3_s.o
libgcc/./_ashldi3_s.o libgcc/./_ashrdi3_s.o libgcc/./_cmpdi2_s.o
libgcc/./_ucmpdi2_s.o libgcc/./_clear_cache_s.o
libgcc/./_enable_execute_stack_s.o libgcc/./_trampoline_s.o libgcc/./__main_s.o
libgcc/./_absvsi2_s.o libgcc/./_absvdi2_s.o libgcc/./_addvsi3_s.o
libgcc/./_addvdi3_s.o libgcc/./_subvsi3_s.o libgcc/./_subvdi3_s.o
libgcc/./_mulvsi3_s.o libgcc/./_mulvdi3_s.o libgcc/./_negvsi2_s.o
libgcc/./_negvdi2_s.o libgcc/./_ctors_s.o libgcc/./_ffssi2_s.o
libgcc/./_ffsdi2_s.o libgcc/./_clz_s.o libgcc/./_clzsi2_s.o
libgcc/./_clzdi2_s.o libgcc/./_ctzsi2_s.o libgcc/./_ctzdi2_s.o
libgcc/./_popcount_tab_s.o libgcc/./_popcountsi2_s.o libgcc/./_popcountdi2_s.o
libgcc/./_paritysi2_s.o libgcc/./_paritydi2_s.o libgcc/./_powisf2_s.o
libgcc/./_powidf2_s.o libgcc/./_powixf2_s.o libgcc/./_powitf2_s.o
libgcc/./_mulsc3_s.o libgcc/./_muldc3_s.o libgcc/./_mulxc3_s.o
libgcc/./_multc3_s.o libgcc/./_divsc3_s.o libgcc/./_divdc3_s.o
libgcc/./_divxc3_s.o libgcc/./_divtc3_s.o libgcc/./_bswapsi2_s.o
libgcc/./_bswapdi2_s.o libgcc/./_fixunssfsi_s.o libgcc/./_fixunsdfsi_s.o
libgcc/./_fixunsxfsi_s.o libgcc/./_fixsfdi_s.o libgcc/./_fixunssfdi_s.o
libgcc/./_floatdisf_s.o libgcc/./_floatundisf_s.o libgcc/./_fixdfdi_s.o
libgcc/./_fixunsdfdi_s.o libgcc/./_floatdidf_s.o libgcc/./_floatundidf_s.o
libgcc/./_fixxfdi_s.o libgcc/./_fixunsxfdi_s.o libgcc/./_floatdixf_s.o
libgcc/./_floatundixf_s.o libgcc/./_fixtfdi_s.o libgcc/./_fixunstfdi_s.o
libgcc/./_floatditf_s.o libgcc/./_floatunditf_s.o libgcc/./_divdi3_s.o
libgcc/./_moddi3_s.o libgcc/./_udivdi3_s.o libgcc/./_umoddi3_s.o
libgcc/./_udiv_w_sdiv_s.o libgcc/./_udivmoddi4_s.o libgcc/./unwind-dw2_s.o
libgcc/./unwind-dw2-fde-glibc_s.o libgcc/./unwind-sjlj_s.o
libgcc/./gthr-gnat_s.o libgcc/./unwind-c_s.o -lc && rm -f ./libgcc_s.so && if [
-f ./libgcc_s.so.1 ]; then mv -f ./libgcc_s.so.1 ./libgcc_s.so.1.backup; else
true; fi && mv ./libgcc_s.so.1.tmp ./libgcc_s.so.1 && ln -s libgcc_s.so.1
./libgcc_s.so
/usr/bin/ld: /tmp/kehoste/LLVM/llvm-gcc-4.2-obj/./gcc/crtbeginS.o: relocation
R_X86_64_PC32 against `__cxa_finalize@@GLIBC_2.2.5' 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
make[4]: *** [libgcc_s.so] Error 1
make[4]: Leaving directory `/tmp/kehoste/LLVM/llvm-gcc-4.2-obj/gcc'
make[3]: *** [stmp-multilib] Error 2
make[3]: Leaving directory `/tmp/kehoste/LLVM/llvm-gcc-4.2-obj/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/tmp/kehoste/LLVM/llvm-gcc-4.2-obj'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/tmp/kehoste/LLVM/llvm-gcc-4.2-obj'
make: *** [all] Error 2


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list