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

 
 

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

Submitter:  None
Submitted:  Sat 09 Apr 2005 07:42:24 AM UTC
   
 
Category:  Hurd on L4 Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Invalid Privacy:  Public
Assigned to:  None Originator Name:  Yasha Solomin <Joe-Jim>
Originator Email:  -email is unavailable- Open/Closed:  Closed
Reproducibility:  None Size (loc):  None
Planned Release:  None Effort:  0.00
Wiki-like text discussion box: 


* Mandatory Fields

Add a New Comment Rich Markup
   

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

This is no longer an issue.

Thomas Schwinge <tschwinge>
Group 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>
Group 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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-06-15 tschwinge StatusNone Invalid
        Open/ClosedOpen Closed
    2005-04-11 neal CategoryNone Hurd on L4

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code