[Clfs-support] Having issues building GLIBC 32bit

Gary Greene greeneg at tolharadys.net
Sat May 10 00:42:06 PDT 2014


I’m currently working through building a version of CLFS from the 2.x development book (x86_64, multilib). I’ve gotten through building GCC 4.8.2 static from chapter 5, and am working on getting GLibC 2.19 32-bit built.

Unfortunately, I cannot get it to build. Originally, I was having an issue getting it to find errno.h when building the stuff in sunrpc. After doing some digging, I found this was due to libtirpc 32bit being installed on the host system. After removing that library and it’s headers from the system, I run into the following odd error when the system looks to be linking libresolv: 

x86_64-altimatos-linux-gnu-gcc -m32 -shared -static-libgcc -Wl,-O1  -Wl,-z,refs
 -Wl,-dynamic-linker=/tools/lib/ld-linux.so.2
 -B/home/builder/sources/glibc-build-32/csu/
 -Wl,--version-script=/home/builder/sources/glibc-build-32/libresolv.map
 -Wl,-soname=libresolv.so.2 -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both
  -L/home/builder/sources/glibc-build-32
  -L/home/builder/sources/glibc-build-32/math
  -L/home/builder/sources/glibc-build-32/elf
  -L/home/builder/sources/glibc-build-32/dlfcn
  -L/home/builder/sources/glibc-build-32/nss
  -L/home/builder/sources/glibc-build-32/nis
  -L/home/builder/sources/glibc-build-32/rt
  -L/home/builder/sources/glibc-build-32/resolv
  -L/home/builder/sources/glibc-build-32/crypt
  -L/home/builder/sources/glibc-build-32/nptl
 -Wl,-rpath-link=/home/builder/sources/glibc-build-32:/home/builder/sources/glibc-build-32/math:/home/builder/sources/glibc-build-32/elf:/home/builder/sources/glibc-build-32/dlfcn:/home/builder/sources/glibc-build-32/nss:/home/builder/sources/glibc-build-32/nis:/home/builder/sources/glibc-build-32/rt:/home/builder/sources/glibc-build-32/resolv:/home/builder/sources/glibc-build-32/crypt:/home/builder/sources/glibc-build-32/nptl 
 -o /home/builder/sources/glibc-build-32/resolv/libresolv.so
 -T /home/builder/sources/glibc-build-32/shlib.lds /home/builder/sources/glibc-build-32/csu/abi-note.o
 -Wl,--whole-archive /home/builder/sources/glibc-build-32/resolv/libresolv_pic.a
 -Wl,--no-whole-archive /home/builder/sources/glibc-build-32/elf/interp.os
 -Wl,--start-group /home/builder/sources/glibc-build-32/libc.so /home/builder/sources/glibc-build-32/libc_nonshared.a
 -Wl,--as-needed /home/builder/sources/glibc-build-32/elf/ld.so
 -Wl,--no-as-needed
 -Wl,--end-group
/home/builder/sources/glibc-build-32/resolv/libresolv_pic.a(ns_print.os): In function `__GI_ns_sprintrrf':
ns_print.c:(.text+0x48f): undefined reference to `__stack_chk_guard'
ns_print.c:(.text+0x5b8): undefined reference to `__stack_chk_guard'
/home/builder/sources/glibc-build-32/resolv/libresolv_pic.a(gethnamaddr.os): In function `getanswer':
gethnamaddr.c:(.text+0x766): undefined reference to `__stack_chk_guard'
gethnamaddr.c:(.text+0x7a5): undefined reference to `__stack_chk_guard'
/home/builder/sources/glibc-build-32/resolv/libresolv_pic.a(gethnamaddr.os): In function `__GI_res_gethostbyname2':
gethnamaddr.c:(.text+0x109c): undefined reference to `__stack_chk_guard'
/home/builder/sources/glibc-build-32/resolv/libresolv_pic.a(gethnamaddr.os):gethnamaddr.c:(.text+0x127e): more undefined references to `__stack_chk_guard' follow
collect2: error: ld returned 1 exit status
make[2]: *** [/home/builder/sources/glibc-build-32/resolv/libresolv.so] Error 1
make[2]: Leaving directory `/AltimatOS/sources/glibc-2.19/resolv'
make[1]: *** [resolv/others] Error 2
make[1]: Leaving directory `/AltimatOS/sources/glibc-2.19'
make: *** [all] Error 2

Any assistance on this would be appreciated.

--
Gary L. Greene, Jr.
================================================================================
Volunteer Developer for the AltimatOS and KDE F/OSS projects.
Please refrain from sending me closed office file formats (DOC, XLS, PPT).
================================================================================

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 535 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.clfs.org/pipermail/clfs-support-clfs.org/attachments/20140510/3d9e3608/attachment.sig>


More information about the Clfs-support mailing list