Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Error compiling modules
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
_mikec_
Guru
Guru


Joined: 22 May 2004
Posts: 386

PostPosted: Sun Jul 11, 2004 4:54 am    Post subject: [SOLVED] Error compiling modules Reply with quote

hi i am having this problem, the system is not able to compile kernel modules for some reason, i try genkernel --menuconfig all because genkernel all result in another error with BzImage not compiling..
i havent got any success with Gentoo installation for a week now, all i need to do is to install and compile a kernel and other system stuff.. if you got a chance by telling me whats wrong here it would be cool of you!

later

Code:
gcc -Iinclude -pipe -nostdinc -Os -fomit-frame-pointer -falign-functions=1 -falign-jumps=1 -falign-loops=1 -mpreferred-stack-boundary=2 -Wall -W -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wno-switch -Wredundant-decls -Wno-unused -nostdlib -o bin-i386/diet-i bin-i386/start.o bin-i386/dyn_start.o diet.c bin-i386/dietlibc.a bin-i386/dyn_stop.o -DDIETHOME=\"/var/tmp/genkernel/diet\" -DVERSION=\"dietlibc-0.24\" -DINSTALLVERSION -lgcc
bin-i386/dietlibc.a(errno_location.o)(.text+0x11): In function `__errno_location':
: undefined reference to `__guard'
bin-i386/dietlibc.a(errno_location.o)(.text+0x32): In function `__errno_location':
: undefined reference to `__stack_smash_handler'
bin-i386/dietlibc.a(execvp.o)(.text+0x17): In function `execvp':
: undefined reference to `__guard'
bin-i386/dietlibc.a(execvp.o)(.text+0x1bd): In function `execvp':
: undefined reference to `__guard'
bin-i386/dietlibc.a(execvp.o)(.text+0x1db): In function `execvp':
: undefined reference to `__stack_smash_handler'
bin-i386/dietlibc.a(memmove.o)(.text+0x18): In function `memmove':
: undefined reference to `__guard'
bin-i386/dietlibc.a(memmove.o)(.text+0x7c): In function `memmove':
: undefined reference to `__stack_smash_handler'
bin-i386/dietlibc.a(strstr.o)(.text+0x20): In function `strstr':
: undefined reference to `__guard'
bin-i386/dietlibc.a(strstr.o)(.text+0x9e): In function `strstr':
: undefined reference to `__stack_smash_handler'
bin-i386/dietlibc.a(exec_lib.o)(.text+0x1b): In function `__exec_shell':
: undefined reference to `__guard'
bin-i386/dietlibc.a(exec_lib.o)(.text+0x74): In function `__exec_shell':
: undefined reference to `__guard'
bin-i386/dietlibc.a(exec_lib.o)(.text+0x8d): In function `__exec_shell':
: undefined reference to `__stack_smash_handler'
collect2: ld returned 1 exit status
make: *** [bin-i386/diet] Error 1
make: *** Waiting for unfinished jobs....
bin-i386/dietlibc.a(errno_location.o)(.text+0x11): In function `__errno_location':
: undefined reference to `__guard'
bin-i386/dietlibc.a(errno_location.o)(.text+0x32): In function `__errno_location':
: undefined reference to `__stack_smash_handler'
bin-i386/dietlibc.a(execvp.o)(.text+0x17): In function `execvp':
: undefined reference to `__guard'
bin-i386/dietlibc.a(execvp.o)(.text+0x1bd): In function `execvp':
: undefined reference to `__guard'
bin-i386/dietlibc.a(execvp.o)(.text+0x1db): In function `execvp':
: undefined reference to `__stack_smash_handler'
bin-i386/dietlibc.a(memmove.o)(.text+0x18): In function `memmove':
: undefined reference to `__guard'
bin-i386/dietlibc.a(memmove.o)(.text+0x7c): In function `memmove':
: undefined reference to `__stack_smash_handler'
bin-i386/dietlibc.a(strstr.o)(.text+0x20): In function `strstr':
: undefined reference to `__guard'
bin-i386/dietlibc.a(strstr.o)(.text+0x9e): In function `strstr':
: undefined reference to `__stack_smash_handler'
bin-i386/dietlibc.a(exec_lib.o)(.text+0x1b): In function `__exec_shell':
: undefined reference to `__guard'
bin-i386/dietlibc.a(exec_lib.o)(.text+0x74): In function `__exec_shell':
: undefined reference to `__guard'
bin-i386/dietlibc.a(exec_lib.o)(.text+0x8d): In function `__exec_shell':
: undefined reference to `__stack_smash_handler'
collect2: ld returned 1 exit status
make: *** [bin-i386/diet-i] Error 1
* 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!
*

system:
AMD AThlon XP 3000+


Last edited by _mikec_ on Wed Feb 02, 2005 12:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Sun Jul 11, 2004 5:14 am    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic.php?t=138716

Also, please post the output of
Code:
emerge info
and
Code:
gcc-config -l

Additionally, compiling with -Os (and/or selecting Compile for size in the kernel configuration) is a very very bad idea for your CPU. It'll slow things down considerably.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sun Jul 11, 2004 12:49 pm    Post subject: Reply with quote

Could be your kernel config file got screwed up.
https://forums.gentoo.org/viewtopic.php?p=1179406#1179406
Better clean up first: make mrproper
and then try again.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
_mikec_
Guru
Guru


Joined: 22 May 2004
Posts: 386

PostPosted: Sun Jul 11, 2004 6:09 pm    Post subject: Reply with quote

emerge info:

Quote:
Gentoo Base System version 1.5.1
Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.4.25-gentoo)
=================================================================
System uname: 2.4.25-gentoo i686
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=i686 -funroll-loops -pipe -fomit-frame-pointer -msse -m3dnow -mfpmath=sse,387"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=i686 -funroll-loops -pipe -fomit-frame-pointer -msse -m3dnow -mfpmath=sse,387"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo http://mirrors.acm.cs.rpi.edu/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="alsa apm arts avi berkdb bzlib caps cdr crypt cups dio divx4linux dvd encode exif fbcon foomaticdb ftp gd gdbm gif gphoto2 gpm hardened hardenedphp imagemagick imap imlib ipv6 jpeg kerberos lcms libg++ libwww lirc mad maildir mikmod mmx motif mpeg nas ncurses nls oggvorbis opengl oss pam pcmcia pdflib perl pic png prelude python quicktime readline scanner sdl slang slp spell spl ssl svga tcltk tcpd tiff truetype usb vhosts videos x86 xinerama xml xml2 xv xvid zlib"



gcc-config -l:

Quote:
[1] i686-pc-linux-gnu-3.3.3


make mrproper did not fix the problem.

make.conf
Quote:
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-O3 -march=i686 -funroll-loops -pipe -fomit-frame-pointer -msse -m3dnow -mfpmath=sse,387"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
ACCEPT_KEYWORDS="~x86"
USE="-gtk -gtk2 -gtkhtml -gnome -qt -kde -X -xmms -java -guile -icc -icc-pgo alsa svga ssl dvd cdr ipv6 imap apm avi bzlib caps crypt cups dio divx4linux exif fbcon ftp gd gif gphoto2 hardened hardenedphp imagemagick imlib jpeg kerberos lcms lirc mad maildir mmx mpeg nas oggvorbis opengl pcmcia pdflib pic png prelude quicktime readline scanner slp spell spl tcltk tiff usb vhosts videos xinerama xml xml2 xvid"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo http://mirrors.acm.cs.rpi.edu/gentoo/"


How can i remove -Os
Quote:
Additionally, compiling with -Os (and/or selecting Compile for size in the kernel configuration) is a very very bad idea for your CPU. It'll slow things down considerably
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sun Jul 11, 2004 6:22 pm    Post subject: Reply with quote

What cflags did you use to bootstrap? Maybe gcc wasn't compiled correctly.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sun Jul 11, 2004 6:23 pm    Post subject: Reply with quote

What cflags did you use to bootstrap? Maybe gcc wasn't compiled correctly.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
_mikec_
Guru
Guru


Joined: 22 May 2004
Posts: 386

PostPosted: Sun Jul 11, 2004 8:02 pm    Post subject: Reply with quote

you mean in make.conf?
Quote:
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-O3 -march=i686 -funroll-loops -pipe -fomit-frame-pointer -msse -m3dnow -mfpmath=sse,387"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
ACCEPT_KEYWORDS="~x86"
USE="-gtk -gtk2 -gtkhtml -gnome -qt -kde -X -xmms -java -guile -icc -icc-pgo alsa svga ssl dvd cdr ipv6 imap apm avi bzlib caps crypt cups dio divx4linux exif fbcon ftp gd gif gphoto2 hardened hardenedphp imagemagick imlib jpeg kerberos lcms lirc mad maildir mmx mpeg nas oggvorbis opengl pcmcia pdflib pic png prelude quicktime readline scanner slp spell spl tcltk tiff usb vhosts videos xinerama xml xml2 xvid"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo http://mirrors.acm.cs.rpi.edu/gentoo/"

or the command i use to bootstrap?
Code:
# cd /usr/portage/ && scripts/bootstrap.sh && env-update && source /etc/profile && emerge autoconf flex && emerge system
Back to top
View user's profile Send private message
Target
Apprentice
Apprentice


Joined: 25 Apr 2002
Posts: 200

PostPosted: Tue Sep 14, 2004 4:15 am    Post subject: Reply with quote

This is a problem I'm encountering as well with dietlibc, though in my case I'm trying to make a hardened-aware livecd.

dietlibc apparently does _not_ like hardened and genkernel will fail with it enabled. Turning hardened off may be an option for you. As for me, it would defeat the purpose so I'm still looking for another solution.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum