Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 69224 - dietlibc bugs with compilation on x86_64 !!!
Summary: dietlibc bugs with compilation on x86_64 !!!
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-27 23:53 UTC by Alexey Maximov
Modified: 2005-03-25 08:41 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Genkernel log file (genkernel.log,471.29 KB, text/plain)
2005-01-11 19:33 UTC, Joe Womack
Details
genkernel log file without --udev option (genkernel-noudev.log,471.22 KB, text/plain)
2005-01-11 19:54 UTC, Joe Womack
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Maximov 2004-10-27 23:53:45 UTC
and impossible to use udev + initrd on amd64 .. :(


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Daniel Black (RETIRED) gentoo-dev 2004-10-28 00:59:57 UTC
please include compilation error and output of emerge info.
Comment 2 Alexey Maximov 2004-10-28 01:24:20 UTC
I will do it at my home amd64 and post full debug later, and initrd/udev problems too
Comment 3 Joe Womack 2005-01-11 19:31:07 UTC
I also get this error.  Here is the last line to be compiled.  I'm using the gentoo-dev-sources (Linux Kernel 2.6.9-gentoo-r14 [for x86_64]) and 'genkernel --udev all'.

gcc -isystem include -Os -fstrict-aliasing -momit-leaf-frame-pointer -mfancy-math-387 -Wall -W -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wno-switch -Wno-unused -Wredundant-decls -nostdlib -o bin-x86_64/diet bin-x86_64/start.o bin-x86_64/dyn_start.o diet.c bin-x86_64/dietlibc.a bin-x86_64/dyn_stop.o -DDIETHOME=\"/var/tmp/genkernel/dietlibc-0.27\" -DVERSION=\"dietlibc-0.27\" -lgcc
bin-x86_64/dietlibc.a(errno_location.o)(.text+0x9): In function `__errno_location':
: undefined reference to `__guard'
bin-x86_64/dietlibc.a(errno_location.o)(.text+0x30): In function `__errno_location':
: undefined reference to `__stack_smash_handler'
bin-x86_64/dietlibc.a(execvp.o)(.text+0x24): In function `execvp':
: undefined reference to `__guard'
bin-x86_64/dietlibc.a(execvp.o)(.text+0x1d0): In function `execvp':
: undefined reference to `__guard'
bin-x86_64/dietlibc.a(execvp.o)(.text+0x1e9): In function `execvp':
: undefined reference to `__stack_smash_handler'
bin-x86_64/dietlibc.a(getenv.o)(.text+0x17): In function `getenv':
: undefined reference to `__guard'
bin-x86_64/dietlibc.a(getenv.o)(.text+0xc0): In function `getenv':
: undefined reference to `__stack_smash_handler'
bin-x86_64/dietlibc.a(memcmp.o)(.text+0xf): In function `memcmp':
: undefined reference to `__guard'
bin-x86_64/dietlibc.a(memcmp.o)(.text+0x4a): In function `memcmp':
: undefined reference to `__stack_smash_handler'
bin-x86_64/dietlibc.a(memmove.o)(.text+0xf): In function `memmove':
: undefined reference to `__guard'
bin-x86_64/dietlibc.a(memmove.o)(.text+0x76): In function `memmove':
: undefined reference to `__stack_smash_handler'
bin-x86_64/dietlibc.a(strcat.o)(.text+0x11): In function `strcat':
: undefined reference to `__guard'
bin-x86_64/dietlibc.a(strcat.o)(.text+0x51): In function `strcat':
: undefined reference to `__stack_smash_handler'
bin-x86_64/dietlibc.a(strchr.o)(.text+0xb): In function `strchr':
: undefined reference to `__guard'
bin-x86_64/dietlibc.a(strchr.o)(.text+0x3e): In function `strchr':
: undefined reference to `__stack_smash_handler'
bin-x86_64/dietlibc.a(strcmp.o)(.text+0x9): In function `strcmp':
: undefined reference to `__guard'
bin-x86_64/dietlibc.a(strcmp.o)(.text+0x44): In function `strcmp':
: undefined reference to `__stack_smash_handler'
bin-x86_64/dietlibc.a(strcpy.o)(.text+0xc): In function `strcpy':
: undefined reference to `__guard'
bin-x86_64/dietlibc.a(strcpy.o)(.text+0x3e): In function `strcpy':
: undefined reference to `__stack_smash_handler'
bin-x86_64/dietlibc.a(strstr.o)(.text+0x27): In function `strstr':
: undefined reference to `__guard'
bin-x86_64/dietlibc.a(strstr.o)(.text+0xa7): In function `strstr':
: undefined reference to `__stack_smash_handler'
bin-x86_64/dietlibc.a(write12.o)(.text+0x14): In function `__write1':
: undefined reference to `__guard'
bin-x86_64/dietlibc.a(write12.o)(.text+0x49): In function `__write1':
: undefined reference to `__stack_smash_handler'
bin-x86_64/dietlibc.a(write12.o)(.text+0x68): In function `__write2':
: undefined reference to `__guard'
bin-x86_64/dietlibc.a(write12.o)(.text+0x9d): In function `__write2':
: undefined reference to `__stack_smash_handler'
bin-x86_64/dietlibc.a(exec_lib.o)(.text+0x11): In function `__exec_shell':
: undefined reference to `__guard'
bin-x86_64/dietlibc.a(exec_lib.o)(.text+0x90): In function `__exec_shell':
: undefined reference to `__guard'
bin-x86_64/dietlibc.a(exec_lib.o)(.text+0xac): In function `__exec_shell':
: undefined reference to `__stack_smash_handler'
collect2: ld returned 1 exit status
make: *** [bin-x86_64/diet] Error 1
* Gentoo Linux Genkernel; Version 3.1.0c[0m

* ERROR: Failed to compile the "prefix=/var/tmp/genkernel/diet" target...
* -- Grepping log... --
* -- End log... --
* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
* 
* Please do *not* report compilation failures as genkernel bugs!
* 
Comment 4 Joe Womack 2005-01-11 19:33:11 UTC
Created attachment 48267 [details]
Genkernel log file
Comment 5 Joe Womack 2005-01-11 19:52:01 UTC
It does not seem to matter if you are trying to compile with --udev or not.
Comment 6 Joe Womack 2005-01-11 19:54:22 UTC
Created attachment 48269 [details]
genkernel log file without --udev option
Comment 7 Joe Womack 2005-01-13 21:40:54 UTC
The kernel compiles fine if you do not use genkernel.
Comment 8 Simon Stelling (RETIRED) gentoo-dev 2005-03-25 08:41:33 UTC
please open one bugzilla bug per bug, this is horribly messy. @Joe Womack and Alexey Maximov: please provide `emerge info`. Alexey, where is the connection between the summary and genkernel and udev? According to the genkernel logfile, it looks like you were using -Os in CFLAGS, which is not supported. Please reopen if you tried it with sane CFLAGS