Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
make: i686-pc-linux-gnu-strip: Command not found - SOLVED
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Moriah
Veteran
Veteran


Joined: 27 Mar 2004
Posts: 1860
Location: Kentucky

PostPosted: Sat Apr 23, 2011 1:03 am    Post subject: make: i686-pc-linux-gnu-strip: Command not found - SOLVED Reply with quote

I am building a new system from scratch. I followed the gentoo handbook except that I boot from a root filesystem under lvm, so I need an initramsf. I followed the gentoo wiki page http://en.gentoo-wiki.com/wiki/Initramfs#LVM for that. When building the static version of busybox, I got an unusual error:
Code:

  LINK    busybox_unstripped
Trying libraries: crypt m
 Library crypt is not needed, excluding it
 Library m is needed, can't exclude it (yet)
Final link with: m
make: i686-pc-linux-gnu-strip: Command not found
make: *** [busybox] Error 127
emake failed
 * ERROR: sys-apps/busybox-1.17.4 failed (compile phase):
 *   build failed
 *
 * Call stack:
 *     ebuild.sh, line  56:  Called src_compile
 *   environment, line 2579:  Called die
 * The specific snippet of code:
 *       emake busybox || die "build failed";
 *
 * If you need support, post the output of 'emerge --info =sys-apps/busybox-1.17.4',
 * the complete build log and the output of 'emerge -pqv =sys-apps/busybox-1.17.4'.
 * The complete build log is located at '/var/tmp/portage/sys-apps/busybox-1.17.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/busybox-1.17.4/temp/environment'.
 * S: '/var/tmp/portage/sys-apps/busybox-1.17.4/work/busybox-1.17.4'

>>> Failed to emerge sys-apps/busybox-1.17.4, Log file:

>>>  '/var/tmp/portage/sys-apps/busybox-1.17.4/temp/build.log'

 * Messages for package sys-apps/busybox-1.17.4:

 * Could not locate user configfile, so we will save a default one
 * You cannot have USE='static pam'.  Assuming static is more important.

I just built a similar box a few days ago and everything worked fine. That box was an x86_64 quad-code amd phenom. This box is an x86 celeron.

Anybody know why I don't have i686-pc-linux-gnu-strip :?:
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.


Last edited by Moriah on Sun Apr 24, 2011 12:32 am; edited 1 time in total
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5268

PostPosted: Sat Apr 23, 2011 1:47 am    Post subject: Reply with quote

Your CHOST/CBUILD ?
Just check your binutils match what you've entered.
Back to top
View user's profile Send private message
Moriah
Veteran
Veteran


Joined: 27 Mar 2004
Posts: 1860
Location: Kentucky

PostPosted: Sat Apr 23, 2011 2:26 am    Post subject: Reply with quote

From my /etc/make.conf
Code:

CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"

And my cpu is:
Code:

livecd ~ # cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 4
model name      : Intel(R) Celeron(R) CPU 2.80GHz
stepping        : 1
cpu MHz         : 2792.830
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe constant_tsc pebs bts pni dtes64 monitor ds_cpl cid xtpr
bogomips        : 5585.66
clflush size    : 64
power management:

livecd ~ #

So what could be wrong with that?
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 8592

PostPosted: Sat Apr 23, 2011 6:04 pm    Post subject: Reply with quote

What stage file did you download? What changes to your /etc/make.conf have you made, relative to the one provided with the stage?
Back to top
View user's profile Send private message
Moriah
Veteran
Veteran


Joined: 27 Mar 2004
Posts: 1860
Location: Kentucky

PostPosted: Sat Apr 23, 2011 6:32 pm    Post subject: Reply with quote

I downloaded stage3:
Code:

stage3-i486-20110419.tar.bz2

And I copied my /ect/make.conf from another system that has the same motherboard and cpu:
Code:

(chroot) livecd initramfs # cat /etc/make.conf
# 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="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
USE="cairo -cups -doc gif gd pdf plotutils readline -gnome  gtk -ipv6 jpeg -kde nptl nptlonly nsplugin png server svg tiff USB X -Xaw3d"
MAKEOPTS="-j2"
GENTOO_MIRRORS="http://gentoo.cites.uiuc.edu/pub/gentoo"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
#PORTDIR_OVERLAY="/usr/local/portage"
(chroot) livecd initramfs #

The current livecd kernel is:
Code:

(chroot) livecd initramfs # uname -a
Linux livecd 2.6.31-gentoo-r6 #1 SMP Tue Feb 16 11:47:22 UTC 2010 i686 Intel(R) Celeron(R) CPU 2.80GHz GenuineIntel GNU/Linux
(chroot) livecd initramfs #

And the cpu is:
Code:

(chroot) livecd initramfs # cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 4
model name      : Intel(R) Celeron(R) CPU 2.80GHz
stepping        : 1
cpu MHz         : 2792.830
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe constant_tsc pebs bts pni dtes64 monitor ds_cpl cid xtpr
bogomips        : 5585.66
clflush size    : 64
power management:

(chroot) livecd initramfs #

I see that the unstripped busybox file exists, and it runs, but it needs to be stripped so it is not so HUGE:
Code:

(chroot) livecd initramfs # find / -name busybox_unstripped -print
/var/tmp/portage/sys-apps/busybox-1.17.4/work/busybox-1.17.4/busybox_unstripped
(chroot) livecd initramfs # ls -l /var/tmp/portage/sys-apps/busybox-1.17.4/work/busybox-1.17.4/busybox_unstripped
-rwxr-xr-x 1 root root 1867004 Apr 23 18:01 /var/tmp/portage/sys-apps/busybox-1.17.4/work/busybox-1.17.4/busybox_unstripped
(chroot) livecd initramfs # which strip
/usr/bin/strip
(chroot) livecd initramfs # ldd /var/tmp/portage/sys-apps/busybox-1.17.4/work/busybox-1.17.4/busybox_unstripped
        not a dynamic executable
(chroot) livecd initramfs # /var/tmp/portage/sys-apps/busybox-1.17.4/work/busybox-1.17.4/busybox_unstripped sh
(chroot) livecd initramfs # ls
bin   dev   etc   init  lib   mnt   proc  root  sbin  sys
(chroot) livecd initramfs # ps | grep busy
27901 root       0:00 /var/tmp/portage/sys-apps/busybox-1.17.4/work/busybox-1.17.4/busybox_unstripped sh
(chroot) livecd initramfs # exit
(chroot) livecd initramfs #

Likewise, the basic strip executable is there, but no man page for it:
Code:

(chroot) livecd initramfs # ls -l `which strip`
lrwxrwxrwx 1 root root 23 Apr 22 01:51 /usr/bin/strip -> i486-pc-linux-gnu-strip
(chroot) livecd initramfs #


:idea: :idea: :idea: AHA !!! :idea: :idea: :idea:

Why is strip pointing to a 486 binary? :?: :?: :?:
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Aquous
l33t
l33t


Joined: 08 Jan 2011
Posts: 642

PostPosted: Sat Apr 23, 2011 6:33 pm    Post subject: Reply with quote

Try
Code:
emerge -1 binutils
Back to top
View user's profile Send private message
Moriah
Veteran
Veteran


Joined: 27 Mar 2004
Posts: 1860
Location: Kentucky

PostPosted: Sat Apr 23, 2011 6:37 pm    Post subject: Reply with quote

I was just thinking that I might try that...
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 8592

PostPosted: Sat Apr 23, 2011 8:53 pm    Post subject: Reply with quote

Moriah wrote:
I downloaded stage3:
Code:

stage3-i486-20110419.tar.bz2
Why is strip pointing to a 486 binary? :?: :?: :?:
You downloaded a stage3 built for i486, so you have i486 tools. You then changed your CHOST by grabbing a make.conf from an i686 system. To be safe, you ought to either restart from an i686 stage or follow the guide Changing the CHOST variable.
Back to top
View user's profile Send private message
Moriah
Veteran
Veteran


Joined: 27 Mar 2004
Posts: 1860
Location: Kentucky

PostPosted: Sat Apr 23, 2011 10:14 pm    Post subject: Reply with quote

Ouch! How did I do that? Must have been later than I thought, and I must have been sleepier than I thought. :oops:

Oh well, at this stage of the game, it is probably easier and safer to just start over with the right stage.

Thanks! :D
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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