This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: multiple definition of __stack_chk_fail_local


On Wed, 2008-05-21 at 09:30 -0700, David Sehr wrote:
> Hi,
> 
> I'm trying to build a tool chain including glibc-2.7 with a new target
> name.  The binutils build and first gcc build works fine, but when I
> get to glibc, I'm getting the following error:
> 
> /home/sehr/toolchain/install_dir/lib/gcc/nacl/4.2.2/../../../../nacl/lib/libssp.a(ssp.o):
> In function `__stack_chk_fail_local':
> ssp.c:(.text+0x1b0): multiple definition of `__stack_chk_fail_local'
> /home/sehr/toolchain/nacl-glibc/libc_nonshared.a(stack_chk_fail_local.oS):stack_chk_fail_local.c:(.text+0x0):
> first defined here
> collect2: ld returned 1 exit status
> make[2]: *** [/home/sehr/toolchain/nacl-glibc/nscd/nscd] Error 1
> make[2]: Leaving directory `/home/sehr/toolchain/glibc-2.7/nscd'
> make[1]: *** [nscd/others] Error 2
> make[1]: Leaving directory `/home/sehr/toolchain/glibc-2.7'
> 


you can try to disable libssp (specify --disable-libssp ) to gcc configure 

-Khem

Attachment: signature.asc
Description: This is a digitally signed message part


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]