[Bug 2713] New: build failure on amd64 due to unresolveable __GI___chk_fail symbol

bugzilla at busybox.net bugzilla at busybox.net
Sun Oct 17 19:58:14 UTC 2010


https://bugs.busybox.net/show_bug.cgi?id=2713

           Summary: build failure on amd64 due to unresolveable
                    __GI___chk_fail symbol
           Product: uClibc
           Version: 0.9.32
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Other
        AssignedTo: unassigned at uclibc.org
        ReportedBy: nenolod at systeminplace.net
                CC: uclibc-cvs at uclibc.org
   Estimated Hours: 0.0


Trying to build GIT pulled from today results in this linker error:

nenolod at neon:~/build/uClibc$ make VERBOSE=1
rm -f lib/libc.so lib/libc.so.0 lib/libuClibc-0.9.32-git.so

gcc -Wl,-EL -shared -Wl,--warn-common -Wl,--warn-once -Wl,-z,combreloc
-Wl,-z,relro -Wl,-z,now -Wl,-z,defs -Wl,-s   -Wl,-init,__uClibc_init
-Wl,-soname=libc.so.0 -nostdlib -o lib/libuClibc-0.9.32-git.so 
-Wl,--whole-archive libc/libc_so.a -Wl,--no-whole-archive ./lib/interp.os
./lib/ld64-uClibc.so.0 ./lib/uclibc_nonshared.a
/usr/lib/gcc/x86_64-linux-gnu/4.3.2/libgcc.a 
libc/libc_so.a(bzero.os): In function `__bzero_chk':
(.text+0x5): undefined reference to `__GI___chk_fail'
/usr/bin/ld: libc/libc_so.a(bzero.os): relocation R_X86_64_PC32 against
undefined symbol `__GI___chk_fail' 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: *** [lib/libc.so] Error 1

However, this works:

nenolod at neon:~/build/uClibc$ gcc -Wl,-EL -shared -Wl,--warn-common
-Wl,--warn-once -Wl,-z,combreloc -Wl,-z,relro -Wl,-z,now -Wl,-z,defs -Wl,-s  
-Wl,-init,__uClibc_init -Wl,-soname=libc.so.0 -nostdlib -o
lib/libuClibc-0.9.32-git.so  -Wl,--whole-archive -Wl,--no-whole-archive
./lib/interp.os ./lib/ld64-uClibc.so.0 ./lib/uclibc_nonshared.a
/usr/lib/gcc/x86_64-linux-gnu/4.3.2/libgcc.a ./lib/libc.a

I'm pretty sure that command is wrong, however.

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


More information about the uClibc-cvs mailing list