Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo Alt (http://www.linux-archive.org/gentoo-alt/)
-   -   gentoo prefix bootstrap fails on emerge sys-devel/binutils-2.21.51.0.6 (http://www.linux-archive.org/gentoo-alt/524281-gentoo-prefix-bootstrap-fails-emerge-sys-devel-binutils-2-21-51-0-6-a.html)

Ricky Egeland 05-09-2011 09:58 PM

gentoo prefix bootstrap fails on emerge sys-devel/binutils-2.21.51.0.6
 
Hi,

I am trying to install Gentoo Prefix on a Centos 5.5 system. I was following the instructions word-for-word here:

http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-solaris.xml

But ran into trouble at

$ % emerge --oneshot --nodeps binutils

Details and `emerge --info` are below. It looks like it's due to a missing file called '/config.sub', but I'm not sure the best way to resolve this.

As an aside, these instructions are for Solaris but recommended for non-gentoo Linux users. Maybe I could go ahead without building binutils (among other things) and use them from the base OS?

Thanks,
Ricky

=====

make[4]: *** [arm.o] Error 1
make[4]: Leaving directory `/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/binutils-2.21.51.0.6/work/build/gold'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/binutils-2.21.51.0.6/work/build/gold'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/binutils-2.21.51.0.6/work/build/gold'
make[1]: *** [all-gold] Error 2
make[1]: Leaving directory `/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/binutils-2.21.51.0.6/work/build'
make: *** [all] Error 2
emake failed
* ERROR: sys-devel/binutils-2.21.51.0.6 failed (compile phase):
* emake failed
*
* Call stack:
* ebuild.sh, line 62: Called src_compile
* environment, line 3247: Called toolchain-binutils_src_compile
* environment, line 4009: Called die
* The specific snippet of code:
* emake all || die "emake failed";
*
* If you need support, post the output of 'emerge --info =sys-devel/binutils-2.21.51.0.6',
* the complete build log and the output of 'emerge -pqv =sys-devel/binutils-2.21.51.0.6'.
* The complete build log is located at '/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/binutils-2.21.51.0.6/temp/build.log'.
* The ebuild environment file is located at '/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/binutils-2.21.51.0.6/temp/environment'.
* S: '/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/binutils-2.21.51.0.6/work/binutils-2.21.51.0.6'

>>> Failed to emerge sys-devel/binutils-2.21.51.0.6, Log file:

>>> '/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/binutils-2.21.51.0.6/temp/build.log'

* Messages for package sys-devel/binutils-2.21.51.0.6:

* Can't read /config.sub, skipping..
* Can't read /config.guess, skipping..
* ERROR: sys-devel/binutils-2.21.51.0.6 failed (compile phase):
* emake failed
*
* Call stack:
* ebuild.sh, line 62: Called src_compile
* environment, line 3247: Called toolchain-binutils_src_compile
* environment, line 4009: Called die
* The specific snippet of code:
* emake all || die "emake failed";
*
* If you need support, post the output of 'emerge --info =sys-devel/binutils-2.21.51.0.6',
* the complete build log and the output of 'emerge -pqv =sys-devel/binutils-2.21.51.0.6'.
* The complete build log is located at '/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/binutils-2.21.51.0.6/temp/build.log'.
* The ebuild environment file is located at '/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/binutils-2.21.51.0.6/temp/environment'.
* S: '/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/binutils-2.21.51.0.6/work/binutils-2.21.51.0.6'
[egeland@squark]~/gentoo-prefix% emerge --info =sys-devel/binutils-2.21.51.0.6
zsh: sys-devel/binutils-2.21.51.0.6 not found
[egeland@squark]~/gentoo-prefix% emerge --info=sys-devel/binutils-2.21.51.0.6
Usage: emerge [options]

emerge: error: --info option does not take a value

$ emerge --info =sys-devel/binutils-2.21.51.0.6
zsh: sys-devel/binutils-2.21.51.0.6 not found
[egeland@squark]~/gentoo-prefix% emerge --info =sys-devel/binutils-2.21.51.0.6
Portage 2.2.01.18213-prefix (prefix/linux/amd64, gcc-4.1.2, unavailable, 2.6.18-194.32.1.el5 x86_64)
================================================== ===============
System Settings
================================================== ===============
System uname: Linux-2.6.18-194.32.1.el5-x86_64-with-redhat-5.5-Final
Timestamp of tree: Tue, 05 Apr 2011 21:39:05 +0000
app-shells/bash: 4.1_p7
Repositories: gentoo_prefix
Installed sets:
ACCEPT_KEYWORDS="~amd64-linux"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf"
CPPFLAGS="-I/home/egeland/gentoo-prefix/usr/include"
CXXFLAGS="-O2 -pipe"
DISTDIR="/home/egeland/gentoo-prefix/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs collision-protect distlocks fixlafiles fixpackages parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-L/home/egeland/gentoo-prefix/usr/lib -Wl,-rpath=/home/egeland/gentoo-prefix/usr/lib -L/home/egeland/gentoo-prefix/lib -Wl,-rpath=/home/egeland/gentoo-prefix/lib"
PKGDIR="/home/egeland/gentoo-prefix/usr/portage/packages"
PORTAGE_CONFIGROOT="/home/egeland/gentoo-prefix/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/home/egeland/gentoo-prefix/var/tmp"
PORTDIR="/home/egeland/gentoo-prefix/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="amd64 bootstrap bzip2 cli cracklib crypt cxx dri iconv ipv6 mmx modules mudflap ncurses nptl nptlonly openmp perl pppd prefix readline session sse sse2 sysfs tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Jonathan Callen 05-10-2011 03:25 AM

gentoo prefix bootstrap fails on emerge sys-devel/binutils-2.21.51.0.6
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Ricky Egeland wrote:

> make[4]: *** [arm.o] Error 1

The actual error is going to be somewhere above this line. You did not
post enough of the log to actually determine what the error actually was.

The warning about config.{guess,sub} not found is harmless.

- --
Jonathan Callen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iQIcBAEBCAAGBQJNyLApAAoJELHSF2kinlg4kWcP/Rhd8I7g1PiHGCEv+sD3qp2R
yrMAZKO5Sl6DvBtZI2Hx2uTJbtHVyBAjhHvb8cuKQnr5MyNiwQ vLQOjfUzSjhXle
AR0ElqO7mJOyHX8nYVlWG1OuOSgliLCC+GDoSqNcccc/UYIuqlTxEYcnAkAwCpMN
CgDcoXhar6be4cW+4FCrFyr/8pVzIS1Mws0O4cluOJ2TWtDeTFbS+Lfb9cab2ude
i6jc2jl8SV+WDDV3/ecADc2LLwDccJW8PlRcaMbsIb8LyBR9mZ+JvU60LYv9E3Y5
tvskv7Gne+VxJ5tUQw3SKQ5wI1EK3bKkfcUgqxqqwmZhg7kPyQ GjVHOmQ/rFMz7V
3oD4IZkFurK0b+kplvolRggn84koNmtGZKqY+1MiSqoBFGYLqN NGcLtYw4133xOI
HYuF9B2ng+X+V0dkeyHUwDTfbXuRXVoX22AUxQmB1PAjJ0elEj giUX5xLOqWr7hO
nNi0FrWTcMlNyCBeG9nvEdwQRlTmBOkm0rA/T0jDiXNOzSrBe7Aom8gYLs3aV6j8
ENUMENJebpM12mka9gDjuE/PSEpR4i4K3k1s6/YbCbCUObotRvBmoDJcOsgqgUG+
qR2eIXT8bCRDkEXWjZ4af+xspJYwnIq8Vcu9oAWPeBCJnI4TmD OtlQyYZqsc3LLz
9IH3wAQ8hA83Nl15j84r
=6djZ
-----END PGP SIGNATURE-----

Fabian Groffen 05-10-2011 08:10 AM

gentoo prefix bootstrap fails on emerge sys-devel/binutils-2.21.51.0.6
 
On 09-05-2011 18:58:43 -0300, Ricky Egeland wrote:
> Hi,
>
> I am trying to install Gentoo Prefix on a Centos 5.5 system. I was following the instructions word-for-word here:
>
> http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-solaris.xml
>
> But ran into trouble at
>
> $ % emerge --oneshot --nodeps binutils
>
> Details and `emerge --info` are below. It looks like it's due to a missing file called '/config.sub', but I'm not sure the best way to resolve this.

try "~binutils-2.21"

The special Linux releases sometimes have oddities


--
Fabian Groffen
Gentoo on a different level

Ricky Egeland 05-10-2011 04:07 PM

gentoo prefix bootstrap fails on emerge sys-devel/binutils-2.21.51.0.6
 
On May 10, 2011, at 12:25 AM, Jonathan Callen wrote:

>> make[4]: *** [arm.o] Error 1
>
> The actual error is going to be somewhere above this line. You did not
> post enough of the log to actually determine what the error actually was.
>
> The warning about config.{guess,sub} not found is harmless.


Ah, OK. Here's a few lines above:

=====
...
g++ -DHAVE_CONFIG_H -I. -I/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/binutils-2.21.51.0.6/work/binutils-2.21.51.0.6/gold -I/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/binutils-2.21.51.0.6/work/binutils-2.21.51.0.6/gold -I/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/binutils-2.21.51.0.6/work/binutils-2.21.51.0.6/gold/../include -I/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/binutils-2.21.51.0.6/work/binutils-2.21.51.0.6/gold/../elfcpp -DLOCALEDIR=""/home/egeland/gentoo-prefix/usr/share/binutils-data/x86_64-pc-linux-gnu/2.21.51.0.6/locale"" -DBINDIR=""/home/egeland/gentoo-prefix/usr/x86_64-pc-linux-gnu/binutils-bin/2.21.51.0.6"" -DTOOLBINDIR=""/home/egeland/gentoo-prefix/usr/x86_64-pc-linux-gnu/bin"" -I/home/egeland/gentoo-prefix/usr/include -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=arm.o -O2 -pipe -MT arm.o -MD -MP -MF .deps/arm.Tpo -c -o arm.o /home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/binutils-2.21.51.0.6/work/binutils-2.21.51.0.6/gold/arm.cc
/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/binutils-2.21.51.0.6/work/binutils-2.21.51.0.6/gold/arm.cc: In instantiation of ‘const size_t <unnamed>::Target_arm<false>::fake_relnum_for_stub s’:
/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/binutils-2.21.51.0.6/work/binutils-2.21.51.0.6/gold/arm.cc:8834: instantiated from ‘bool<unnamed>::Target_arm<big_endian>::Relocate ::relocate(const gold::Relocate_info<32, big_endian>*, <unnamed>::Target_arm<big_endian>*, gold::Output_section*, size_t, const elfcpp::Rel<32, big_endian>&, unsigned int, const gold::Sized_symbol<32>*, const gold::Symbol_value<32>*, unsigned char*, <unnamed>::Arm_address, gold::section_size_type) [with bool big_endian = false]’
/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/binutils-2.21.51.0.6/work/binutils-2.21.51.0.6/gold/target-reloc.h:334: instantiated from ‘void gold::relocate_section(const gold::Relocate_info<size, big_endian>*, Target_type*, const unsigned char*, size_t, gold::Output_section*, bool, unsigned char*, typename elfcpp::Elf_types<size>::Elf_Addr, gold::section_size_type, const gold::Reloc_symbol_changes*) [with int size = 32, bool big_endian = false, Target_type = <unnamed>::Target_arm<false>, int sh_type = 9, Relocate = <unnamed>::Target_arm<false>::Relocate]’
/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/binutils-2.21.51.0.6/work/binutils-2.21.51.0.6/gold/arm.cc:9455: instantiated from ‘void<unnamed>::Target_arm<big_endian>::relocate _section(const gold::Relocate_info<32, big_endian>*, unsigned int, const unsigned char*, size_t, gold::Output_section*, bool, unsigned char*, <unnamed>::Arm_address, gold::section_size_type, const gold::Reloc_symbol_changes*) [with bool big_endian = false]’
/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/binutils-2.21.51.0.6/work/binutils-2.21.51.0.6/gold/arm.cc:11972: instantiated from here
/home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/binutils-2.21.51.0.6/work/binutils-2.21.51.0.6/gold/arm.cc:2166: internal compiler error: in make_rtl_for_nonlocal_decl, at cp/decl.c:5067
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /home/egeland/gentoo-prefix/var/tmp/portage/sys-devel/binutils-2.21.51.0.6/temp/ccFBgfLo.out file, please attach this to your bugreport.
make[4]: *** [arm.o] Error 1
...
=====

"internal compiler error: in make_rtl_for_nonlocal_decl, at cp/decl.c:5067"

Does that mean the problem was in g++?

-- Ricky

Ricky Egeland 05-10-2011 04:50 PM

gentoo prefix bootstrap fails on emerge sys-devel/binutils-2.21.51.0.6
 
On May 10, 2011, at 5:10 AM, Fabian Groffen wrote:

> try "~binutils-2.21"
>
> The special Linux releases sometimes have oddities

That doesn't doesn't seem to be a recognized version.

From the `emerge binutils` that failed, it gives this version:

Emerging (1 of 1) sys-devel/binutils-2.21.51.0.6

I see the following related to binutils in $EPREFIX/usr/portage/sys-devel/binutils

$ ls usr/portage/sys-devel/binutils
binutils-2.18-r04.1.ebuild binutils-2.21.51.0.6.ebuild Manifest
binutils-2.19.1-r01.1.ebuild ChangeLog metadata.xml
binutils-2.20.1-r1.ebuild files

(question: what determines which versions I have at my disposal?)

I tried the older one binutils-2.20.1-r1 using the ~ syntax you showed me :-)

$ emerge --oneshot --nodeps ~binutils-2.20.1-r1

And that one worked.

thanks! Onward...
Ricky

Maxim Koltsov 05-10-2011 06:29 PM

gentoo prefix bootstrap fails on emerge sys-devel/binutils-2.21.51.0.6
 
2011/5/10 Ricky Egeland <ricky.egeland@gmail.com>:
> =====
>
> "internal compiler error: in make_rtl_for_nonlocal_decl, at cp/decl.c:5067"
>
> Does that mean the problem was in g++?
>
> -- Ricky
>
May be. Please show 'gcc -v' and 'ld -v' without having prefix things in $PATH.

Ricky Egeland 05-10-2011 07:44 PM

gentoo prefix bootstrap fails on emerge sys-devel/binutils-2.21.51.0.6
 
On May 10, 2011, at 3:29 PM, Maxim Koltsov wrote:

>> "internal compiler error: in make_rtl_for_nonlocal_decl, at cp/decl.c:5067"
>>
>> Does that mean the problem was in g++?
>>
>> -- Ricky
>>
> May be. Please show 'gcc -v' and 'ld -v' without having prefix things in $PATH.


Here they are:

===
$ gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)
$ ld -v
GNU ld version 2.17.50.0.6-14.el5 20061020
===

Maxim Koltsov 05-10-2011 07:59 PM

gentoo prefix bootstrap fails on emerge sys-devel/binutils-2.21.51.0.6
 
2011/5/10 Ricky Egeland <ricky.egeland@gmail.com>:

> gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)
> *$ ld -v
> GNU ld version 2.17.50.0.6-14.el5 20061020

It seems a bit too old, or too patched. Can you try installing newer
gcc? 4.2 series must me sufficient, i think. If repositories for your
distro doesn't have it, you can try installing it by hand, or emerge
=gcc-4.2 && emerge binutils && emerge =gcc-4.2, but the latter
probably won't work.

Ricky Egeland 05-10-2011 08:31 PM

gentoo prefix bootstrap fails on emerge sys-devel/binutils-2.21.51.0.6
 
On May 10, 2011, at 4:59 PM, Maxim Koltsov wrote:

>> gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)
>> $ ld -v
>> GNU ld version 2.17.50.0.6-14.el5 20061020
>
> It seems a bit too old, or too patched. Can you try installing newer
> gcc? 4.2 series must me sufficient, i think. If repositories for your
> distro doesn't have it, you can try installing it by hand, or emerge
> =gcc-4.2 && emerge binutils && emerge =gcc-4.2, but the latter
> probably won't work.

I managed to get the bootstrap procedure moving along by installing an older version of binutils. I'm continuing to build my prefix area with that change.

But I took a look, and CentOS 5.5 provides gcc 4.4.4 in its 'base' repository as the 'gcc44' package, so maybe that would have worked. If I get a chance later I can try the prefix bootstrap again and see if binutils compiles with that.

Fabian Groffen 05-11-2011 06:48 AM

gentoo prefix bootstrap fails on emerge sys-devel/binutils-2.21.51.0.6
 
On 10-05-2011 17:31:25 -0300, Ricky Egeland wrote:
>
> On May 10, 2011, at 4:59 PM, Maxim Koltsov wrote:
>
> >> gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)
> >> $ ld -v
> >> GNU ld version 2.17.50.0.6-14.el5 20061020
> >
> > It seems a bit too old, or too patched. Can you try installing newer
> > gcc? 4.2 series must me sufficient, i think. If repositories for your
> > distro doesn't have it, you can try installing it by hand, or emerge
> > =gcc-4.2 && emerge binutils && emerge =gcc-4.2, but the latter
> > probably won't work.
>
> I managed to get the bootstrap procedure moving along by installing an older version of binutils. I'm continuing to build my prefix area with that change.

I think this should be ok. On purpose a new gcc is emerged early in the
process.

> But I took a look, and CentOS 5.5 provides gcc 4.4.4 in its 'base' repository as the 'gcc44' package, so maybe that would have worked. If I get a chance later I can try the prefix bootstrap again and see if binutils compiles with that.

On FreeBSD I also noticed that I needed this binutils 2.21-r1 version to
get things going. I think you're wasting your time if you try again
from scratch now.


--
Fabian Groffen
Gentoo on a different level


All times are GMT. The time now is 11:58 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.