bugThe GNU Hurd - Bugs: bug #12621, Error while linking laden:...

 
 

bug #12621: Error while linking laden: "undefined reference to `__chk_fail'"

Submitted by:  None
Submitted on:  Sat 09 Apr 2005 07:42:24 AM UTC  
 
Category: Hurd on L4Severity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: InvalidPrivacy: Public
Assigned to: NoneOriginator Name: Yasha Solomin <Joe-Jim>
Originator Email: -unavailable-Open/Closed: Closed
Reproducibility: NoneSize (loc): None
Planned Release: NoneEffort: 0.00
Wiki-like text discussion box: 

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 15 Jun 2008 09:33:20 PM UTC, comment #2:

This is no longer an issue.

Thomas Schwinge <tschwinge>
Project Administrator
Mon 11 Apr 2005 09:01:58 AM UTC, comment #1:

I can't reproduce this on my Debian GNU/Linux build system. The Hurd source does not directly reference __chk_fail and does not define __memcpy_chk or __memset_chk. In fact, the Hurd does not define memcpy or memset: they are taken from the host's libc (cf. libc-parts/Makefile.am for the black magic). It would seem then that your problem is that the memcpy and memset implementations in your libc.a reference this function. A local work around would be to add __chk_fail to the routines variable in libc-parts/Makefile.am. This is not a general solution, however.

Neal H. Walfield <neal>
Project Administrator
Sat 09 Apr 2005 07:42:24 AM UTC, original submission:

When i compile hurd-l4 next error are arising:
undefined reference to `__chk_fail' in function `__memcpy_chk'
in libc-parts.a(memcpy.o) while linking laden

$ cd hurd-l4-build
$ ../hurd-l4/configure --prefix=/l4 --without-libc --enable-maintainer-mode
$ make
[...]
make[2]: Entering directory '/usr/home/yasha/work/gnu/hurd-l4-build/laden'
[...]
if gcc -DHAVE_CONFIG_H -I. -I../../hurd-l4/laden -I.. -I../../hurd-l4/laden -I../include -I../../hurd
-l4/libc-parts -std=gnu99 -Wall -g -O3 -MT laden-kip-fixup.o -MD -MP -MF ".deps/laden-kip-fixup.Tpo
" -c -o laden-kip-fixup.o `test -f 'kip-fixup.c' || echo '../../hurd-l4/laden/'`kip-fixup.c; \
then mv -f ".deps/laden-kip-fixup.Tpo" ".deps/laden-kip-fixup.Po"; else rm -f ".deps/laden-kip-fixup.T
po"; exit 1; fi
gcc -std=gnu99 -Wall -g -O3 -o laden -u_start -e_start -N -nostdlib -Ttext=0x190000 ia32-crt0.o lad
en-ia32-cmain.o laden-ia32-output.o laden-output-vga.o laden-output-serial.o laden-ia32-shutdown.o lad
en-output.o laden-output-none.o laden-shutdown.o laden-loader.o laden-laden.o laden-kip-fixup.o -lgcc
../libc-parts/libc-parts.a
../libc-parts/libc-parts.a(memcpy.o)(.text+0xa): In function `__memcpy_chk':
: undefined reference to `__chk_fail'
../libc-parts/libc-parts.a(memset.o)(.text+0xa): In function `__memset_chk':
: undefined reference to `__chk_fail'
collect2: ld returned 1 exit status
make[2]: *** [laden] &#1054;&#1096;&#1080;&#1073;&#1082;&#1072; 1
make[2]: Leaving directory `/usr/home/yasha/work/gnu/hurd-l4-build/laden'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/home/yasha/work/gnu/hurd-l4-build'
make: *** [all] Error 2

$ gcc --version
gcc (GCC) 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)

host glibc version: 2.3.4.20041102-r1

When i try to compile with-libc i'v got same error.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by tschwinge (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 15 Jun 2008 09:33:20 PM UTCtschwingeStatusNone=>Invalid
      Open/ClosedOpen=>Closed
    Mon 11 Apr 2005 11:03:53 AM UTCnealCategoryNone=>Hurd on L4

    Back to the top


    Powered by Savane 3.1-cleanup1