-
[SOLVED] gentoo: emerge busybox error
greetings all,
every monday i do an 'emerge --sync && emerge -upv world' and i noticed emerge got stuck on busybox.
i also noted that gcc was upgraded also (if that helps).
the error message i get when i try to emerge busybox is as follows...
**********************************************
>>> Source unpacked.
/bin/sh: i686-pc-linux-gnu-gcc: command not found
/bin/sh: i686-pc-linux-gnu-gcc: command not found
/bin/sh: i686-pc-linux-gnu-gcc: command not found
/bin/sh: i686-pc-linux-gnu-gcc: command not found
/bin/sh: i686-pc-linux-gnu-gcc: command not found
/bin/sh: i686-pc-linux-gnu-gcc: command not found
GEN include/bbconfigopts.h
CC applets/applets.o
/bin/sh: i686-pc-linux-gnu-gcc: command not found
make: *** [/var/tmp/portage/busybox-1.1.1/work/busybox-1.1.1/applets/applets.o] Error 127
make: *** Waiting for unfinished jobs....
make: *** wait: No child processes. Stop.
!!! ERROR: sys-apps/busybox-1.1.1 failed.
!!! Function src_compile, Line 129, Exitcode 2
!!! build failed
!!! If you need support, post the topmost build error, NOT this status message.
**********************************************
i also tried emerging the latest busybox by doing:
echo sys-apps/busybox >> /etc/portage/package.keywords and it tries to emerge the above (1.1.1) version but the error is the same. i did the same for gcc and still get the above error on busybox.
any ideas? been stumped on this one for several days.
Thanks,
Drip
-
Can you emerge anything else?
WHat's the output from gcc-config -l
? (that's a small L)
Need help in realtime? Visit us at #linuxnewbie on irc.libera.chat
Few of us will do as much for our fellow man as he has done.
--Andrew Morton on RMS
-
yes, everything else emerges fine.
the output of the gcc-config -l command is:
[1] i386-pc-linux-gnu-3.3.6 *
[2] i386-pc-linux-gnu-3.3.6-hardened
[3] i386-pc-linux-gnu-3.3.6-hardenednopie
[4] i386-pc-linux-gnu-3.3.6-hardenednopiessp
[5] i386-pc-linux-gnu-3.3.6-hardenednossp
[6] i686-pc-linux-gnu-3.4.6
[7] i686-pc-linux-gnu-3.4.6-hardened
[8] i686-pc-linux-gnu-3.4.6-hardenednopie
[9] i686-pc-linux-gnu-3.4.6-hardenednopiessp
[10] i686-pc-linux-gnu-3.4.6-hardenednossp
-
I'ld make a symlink from i686-pc-linux-gnu-3.4.6 to i686-pc-linux-gnu-gcc.
It'd be easy enough to have them in the same directory.
I'm not on my gentoo box atm, so I can't look it up.
[rant] Linux has spoiled me with the middle click to paste! It's cumbersome to have to right click and copy, then right click and paste! I much prefer hilight, click to place cursor, middle click to paste! [/rant]
Knute
You live, you die, enjoy the interval!
-
any reason youre using the old gcc?
do this:
gcc-config i686-pc-linux-gnu-3.4.6
and MAKE SURE your CFLAGS and CHOST are ok.
Need help in realtime? Visit us at #linuxnewbie on irc.libera.chat
Few of us will do as much for our fellow man as he has done.
--Andrew Morton on RMS
-
Originally Posted by je_fro
any reason youre using the old gcc?
do this:
gcc-config i686-pc-linux-gnu-3.4.6
and MAKE SURE your CFLAGS and CHOST are ok.
ROFLMAO I completely forgot about the gcc-config command!
I've used it perhaps twice since I've used gentoo, and that was when I was having difficulties compiling sawfish when I was using it.
Gee, that fillet of sole was a bit rubbery!
Knute
You live, you die, enjoy the interval!
-
no reason for using an older gcc. i never explicitly changed it.
i tried the 'gcc-config i686-pc-linux-gnu-3.4.6' command and it seemed to accept the command (no output).
i then ran 'gcc-config -l' and received the following output:
[1] i386-pc-linux-gnu-3.3.6
[2] i386-pc-linux-gnu-3.3.6-hardened
[3] i386-pc-linux-gnu-3.3.6-hardenednopie
[4] i386-pc-linux-gnu-3.3.6-hardenednopiessp
[5] i386-pc-linux-gnu-3.3.6-hardenednossp
[6] i686-pc-linux-gnu-3.4.6 *
[7] i686-pc-linux-gnu-3.4.6-hardened
[8] i686-pc-linux-gnu-3.4.6-hardenednopie
[9] i686-pc-linux-gnu-3.4.6-hardenednopiessp
[10] i686-pc-linux-gnu-3.4.6-hardenednossp
which seems to be correct...but it seems like my 'emerge' is broken. just by running the emerge command i get the following:
/usr/bin/python: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
that file(symlnk) is located in my old 3.3.6 directory so in my 3.4.6 directory i created a symlink to it (where that symlink pointed to) and still receive the same error.
my CFLAGS and CHOST are listed below if that helps:
CFLAGS="-O3 -msse2 -mmmx -mfpmath=sse,387 -fomit-frame-pointer -pipe -march=pentium4"
CHOST="i686-pc-linux-gnu"
-
greetings again,
i found a solution to my last reply. my env-update was also broken so in a gentoo forum posting i read that i needed to verify that my settings in '/etc/env.d/05gcc' were correct (paths actually)...and they were.
after that i needed to run:
LD_LIBRARY_PATH=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.6 env-update
once i did that my emerge began working correctly and it seems now that my original problem is also fixed (emerging problem with busybox). busybox is currently building and it's well past the point where i was initially taking errors, so i think it will be just fine.
thanks je_fro for showing/teaching me the gcc-config command; and thanks also to knute for helping out.
switching compiler versions seems to have been the answer.
you guys are great. thanks again and have a nice weekend,
Drip
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|