[Clfs-support] Error building cross eglibc 2.17 64 bit

William Harrington kb0iic at berzerkula.org
Wed Jul 3 10:32:25 PDT 2013


On Jul 3, 2013, at 7:38 AM, Charlie Brown wrote:

> /mnt/clfs/sources/eglibc-build/resolv/libresolv_pic.a(ns_print.os): In
> function `__GI_ns_sprintrrf':
> ns_print.c:(.text+0x48a): undefined reference to `__stack_chk_guard'
> ns_print.c:(.text+0x6cb): undefined reference to `__stack_chk_guard'
> /mnt/clfs/sources/eglibc-build/resolv/libresolv_pic.a(gethnamaddr.os):
> In function `getanswer':
> gethnamaddr.c:(.text+0x728): undefined reference to  
> `__stack_chk_guard'
> gethnamaddr.c:(.text+0x756): undefined reference to  
> `__stack_chk_guard'
> /mnt/clfs/sources/eglibc-build/resolv/libresolv_pic.a(gethnamaddr.os):
> In function `__GI_res_gethostbyname2':
> gethnamaddr.c:(.text+0x107c): undefined reference to  
> `__stack_chk_guard'
> /mnt/clfs/sources/eglibc-build/resolv/ 
> libresolv_pic.a(gethnamaddr.os):gethnamaddr.c:(.text+0x1261):
> more undefined references to `__stack_chk_guard
> ' follow


Hello,

A few issues can cause this. One, that can't be overlooked, is during  
gcc 4.8.1 build static in ch5, we disable libatomic, which if you  
don't will cause this.
Second, if your environment is not setup right and you aren't using  
the clfs user which the clfs user's PATH should be proper, then you'll  
be using the hosts compiler at this step and it will spew the error.

I haven't encountered such issue and I build the following when  
developing:

x86_64 to sparc64
x86_64 to ppc64
x86_64 to ppc
x86 to x86_64
x86 to ppc
x86 to ppc64


Could you post the $CLFS/sources/eglibc-build/config.log ?

Sincerely,

William Harrington
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clfs.org/pipermail/clfs-support-clfs.org/attachments/20130703/2b019d71/attachment-0001.htm>


More information about the Clfs-support mailing list