Article 53EBH Cross Compiling Glibc

Cross Compiling Glibc

by
bw42
from LinuxQuestions.org on (#53EBH)
I've been slowly driving myself insane with a pet project of recompiling Slackware 14.2 on my iBook G4.
One particular thorn I've ran into is getting Glibc and GCC to build right.
Mostly because of trying to get the packages rebuilt as close to Slackware as I can.

It didn't like trying to build Glibc on Slackintosh 12.1 because of the outdated GCC, and GCC was giving me annoying problems.

So in a moment of faux genius I decided to build a cross compiler and try cross compiling.

Running into an error that I've been having trouble working around. Passing flags to disable the stack protector seems to be ignored.

Was wondering if anyone else has ran into it, or any thoughts.
I'm going to try shoehorning some Debian packages onto it and see if I can use those to bootstrap rebuilding the Slackware ones in the meantime.

Quote:
/glibc-tmp-289dda5c04f4dd6c6d44e9e53ec6098b/glibc-2.23/build-glibc-2.23/resolv/libresolv_pic.a(ns_print.os): In function `__GI_ns_sprintrrf':
/glibc-tmp-289dda5c04f4dd6c6d44e9e53ec6098b/glibc-2.23/resolv/ns_print.c:99: undefined reference to `__stack_chk_guard'
/glibc-tmp-289dda5c04f4dd6c6d44e9e53ec6098b/glibc-2.23/build-glibc-2.23/resolv/libresolv_pic.a(gethnamaddr.os): In function `addrsort':
/glibc-tmp-289dda5c04f4dd6c6d44e9e53ec6098b/glibc-2.23/resolv/gethnamaddr.c:959: undefined reference to `__stack_chk_guard'
/glibc-tmp-289dda5c04f4dd6c6d44e9e53ec6098b/glibc-2.23/build-glibc-2.23/resolv/libresolv_pic.a(gethnamaddr.os): In function `getanswer':
/glibc-tmp-289dda5c04f4dd6c6d44e9e53ec6098b/glibc-2.23/resolv/gethnamaddr.c:183: undefined reference to `__stack_chk_guard'
/glibc-tmp-289dda5c04f4dd6c6d44e9e53ec6098b/glibc-2.23/build-glibc-2.23/resolv/libresolv_pic.a(gethnamaddr.os): In function `__GI_res_gethostbyname2':
/glibc-tmp-289dda5c04f4dd6c6d44e9e53ec6098b/glibc-2.23/resolv/gethnamaddr.c:505: undefined reference to `__stack_chk_guard'
/glibc-tmp-289dda5c04f4dd6c6d44e9e53ec6098b/glibc-2.23/build-glibc-2.23/resolv/libresolv_pic.a(gethnamaddr.os): In function `res_gethostbyaddr':
/glibc-tmp-289dda5c04f4dd6c6d44e9e53ec6098b/glibc-2.23/resolv/gethnamaddr.c:636: undefined reference to `__stack_chk_guard'
/glibc-tmp-289dda5c04f4dd6c6d44e9e53ec6098b/glibc-2.23/build-glibc-2.23/resolv/libresolv_pic.a(res_debug.os):/glibc-tmp-289dda5c04f4dd6c6d44e9e53ec6098b/glibc-2.23/resolv/res_debug.c:287: more undefined references to `__stack_chk_guard' follow
collect2: error: ld returned 1 exit status
../Makerules:517: recipe for target '/glibc-tmp-289dda5c04f4dd6c6d44e9e53ec6098b/glibc-2.23/build-glibc-2.23/resolv/libresolv.so' failed
latest?d=yIl2AUoC8zA latest?i=joLuGImKakg:clMPJjNNKfA:F7zBnMy latest?i=joLuGImKakg:clMPJjNNKfA:V_sGLiP latest?d=qj6IDK7rITs latest?i=joLuGImKakg:clMPJjNNKfA:gIN9vFwjoLuGImKakg
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments