Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ERROR: sys-devel/binutils-2.17.50.0.17 failed.[started over]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
trigggl
Apprentice
Apprentice


Joined: 26 Aug 2007
Posts: 234
Location: Arkansas

PostPosted: Fri Sep 28, 2007 10:38 am    Post subject: ERROR: sys-devel/binutils-2.17.50.0.17 failed.[started over] Reply with quote

Now that I've booted into my install, I'm going through the "A Portage Introduction" section. I'm at code listing 13: Updating your system. I've run
Code:
emerge --update --ask world

There were some problems that prevented that stopped the process from time to time. The first program to fail was Pam. I did the updates specified at the end of the process and then Pam compiled fine. Apparently, I had to emerge cracklib. I wonder why that wasn't automatically installed as a dependency? Anyways, there were a few more stops along the way that were solved by just what I was told to do at the end of each one. This last one, however, I can't figure out and I'd say it's pretty important. Here is what I consider to be the relevant sections of the install messages.

Quote:
/bin/sh ./libtool --tag=CC --mode=compile powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd -I. -I. -I/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd -I/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -pipe -mcpu=power3 -mtune=power3 -c -o elf64-ppc.lo /var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd/elf64-ppc.c
libtool: compile: powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd -I. -I. -I/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd -I/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -pipe -mcpu=power3 -mtune=power3 -c /var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd/elf64-ppc.c -fPIC -DPIC -o .libs/elf64-ppc.o
/bin/sh ./libtool --tag=CC --mode=compile powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd -I. -I. -I/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd -I/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -pipe -mcpu=power3 -mtune=power3 -c -o elf64-gen.lo /var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd/elf64-gen.c
libtool: compile: powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd -I. -I. -I/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd -I/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -pipe -mcpu=power3 -mtune=power3 -c /var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd/elf64-gen.c -fPIC -DPIC -o .libs/elf64-gen.o
libtool: compile: powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd -I. -I. -I/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd -I/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -pipe -mcpu=power3 -mtune=power3 -c /var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd/elf64-gen.c -o elf64-gen.o >/dev/null 2>&1
/bin/sh ./libtool --tag=CC --mode=compile powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd -I. -I. -I/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd -I/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -pipe -mcpu=power3 -mtune=power3 -c -o elf64.lo /var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd/elf64.c
libtool: compile: powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd -I. -I. -I/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd -I/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -pipe -mcpu=power3 -mtune=power3 -c /var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd/elf64.c -fPIC -DPIC -o .libs/elf64.o
libtool: compile: powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd -I. -I. -I/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd -I/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -pipe -mcpu=power3 -mtune=power3 -c /var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd/elf64.c -o elf64.o >/dev/null 2>&1
/bin/sh ./libtool --tag=CC --mode=compile powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd -I. -I. -I/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd -I/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -pipe -mcpu=power3 -mtune=power3 -c -o elf.lo /var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd/elf.c
libtool: compile: powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd -I. -I. -I/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd -I/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -pipe -mcpu=power3 -mtune=power3 -c /var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd/elf64-ppc.c -o elf64-ppc.o >/dev/null 2>&1
libtool: compile: powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd -I. -I. -I/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd -I/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -pipe -mcpu=power3 -mtune=power3 -c /var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd/elf.c -fPIC -DPIC -o .libs/elf.o
In file included from /var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/binutils-2.17.50.0.17/bfd/elf.c:7636:
/usr/include/sys/procfs.h:52: error: conflicting types for 'elf_vrreg_t'
/usr/include/asm/elf.h:151: error: previous declaration of 'elf_vrreg_t' was here
/usr/include/sys/procfs.h:53: error: conflicting types for 'elf_vrregset_t'
/usr/include/asm/elf.h:152: error: previous declaration of 'elf_vrregset_t' was here
make[4]: *** [elf.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/build/bfd'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/build/bfd'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/build/bfd'
make[1]: *** [all-bfd] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/work/build'
make: *** [all] Error 2
*
* ERROR: sys-devel/binutils-2.17.50.0.17 failed.
* Call stack:
* ebuild.sh, line 1654: Called dyn_compile
* ebuild.sh, line 990: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* ebuild.sh, line 1334: Called toolchain-binutils_src_compile
* toolchain-binutils.eclass, line 225: Called die
*
* emake failed
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/sys-devel/binutils-2.17.50.0.17/temp/build.log'.
*

I think it's fixable, but not sure what to do to fix it.
_________________
Greg


Last edited by trigggl on Mon Oct 08, 2007 5:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Sep 28, 2007 1:22 pm    Post subject: Reply with quote

Can you provide emerge --info? I suspect that you need to update the kernel headers first.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
trigggl
Apprentice
Apprentice


Joined: 26 Aug 2007
Posts: 234
Location: Arkansas

PostPosted: Sat Sep 29, 2007 10:07 am    Post subject: emerge --info Reply with quote

Here's the output of "emerge --info"
Quote:
Portage 2.1.3.9 (default-linux/ppc/ppc64/2006.1/64bit-userland, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16.46 ppc64)
=================================================================
System uname: 2.6.16.46 ppc64 POWER3 (630+)
Timestamp of tree: Thu, 27 Sep 2007 10:50:01 +0000
app-shells/bash: 3.2_p17
dev-lang/python: 2.4.4-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.61-r1
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool: 1.5.23b
virtual/os-headers: 2.6.21
ACCEPT_KEYWORDS="ppc64"
CBUILD="powerpc64-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=power3 -mtune=power3"
CHOST="powerpc64-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe -mcpu=power3 -mtune=power3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.cites.uiuc.edu/pub/gentoo/ http://open-systems.ufl.edu/mirrors/gentoo/ "
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X alsa apache2 apm arts berkdb bitmap-fonts cli cracklib crypt cups dri eds emboss encode esd foomaticdb fortran gdbm gif gnome gpm gstreamer gtk ibm iconv imlib ipv6 isdnlog jpeg kde libwww mad midi mikmod motif mp3 mpeg mudflap ncurses nls nptl ogg opengl openmp oss pam pcre perl png ppc64 pppd python qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts unicode vorbis xml xorg xv zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="dummy fbdev mach64 mga nv r128 radeon sisusb v4l"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

_________________
Greg
Back to top
View user's profile Send private message
corsair
Retired Dev
Retired Dev


Joined: 06 Oct 2003
Posts: 451
Location: Aachen, Germany

PostPosted: Sat Sep 29, 2007 6:35 pm    Post subject: Reply with quote

you are using an "old" profile. I suggest to update to the latest. Do this (the lines starting with # mean: execute it ;-) ):

Code:

# eselect profile list
Available profile symlink targets:
  [1]   default-linux/ppc/ppc64/2006.1/64bit-userland
  [2]   default-linux/ppc/ppc64/2007.0/64bit-userland
  [3]   hardened/ppc64


you want that profile with 2007.0 in the name. To switch to that one run the following command (replace 2 with the correct value):

Code:

# eselect profile set 2


then your output from emerge --info should read something like this:

Code:

Portage 2.1.3.9 (default-linux/ppc/ppc64/2007.0/64bit-userland, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16.46 ppc64)
[...]


also you are using gcc 3.4.6 where gcc 4.1.2 is latest stable. now that you have switched to the new profile gcc 4.1.2 should be available (it was masked in the older one I think) please update your compiler (i.e. emerge -ua gcc) and switch to it using this commands: first run gcc-config -l. My output looks like this:

Code:

# gcc-config -l
 [1] powerpc64-unknown-linux-gnu-4.1.2 *


As you can see there is only one compiler listed on my machine. the * at the end means that this compiler is the active one. If there were more than one compiler and I wanted to switch to the first one listed I would run:

Code:

# gcc-config 1
 * Switching native-compiler to powerpc64-unknown-linux-gnu-4.1.2 ...   [ OK ]
# source /etc/profile


So what you gonna do is this: run "gcc-config -l" to list the available compilers and switch to powerpc64-unknown-linux-gnu-4.1.2 (whatever number that is). Don't forget to run "source /etc/profile". It's important!

Unfortunately your CFLAGS are broken in >gcc-4.0, so you have to discard "-mcpu=power3 -mtune=power3" from them. Open /etc/make.conf with your favorite editor and delete "-mcpu=power3 -mtune=power3" from CFLAGS and CXXFLAGS.

Now you are ready to compile binutils!

P.S.: you seem to have started with an 2006.1 stage tarball. this is an *ehrm* old one with lots of outdated packages. *If* you are ever going to install this machine again you should use only the 2006.1 install cd and the latest stage3 tarball available (2007.0 currently). Once that kernel bug with your video card is fixed you can use newer install CDs again of cause... The version of the install CD used has nothing to do with the version of the stage tarball you are using. 8)
(well.. to be correct: you might need a newer kernel some day to be able to chroot into the latest unpacked stage3, but that hasn't happened so far. ;-) )
Back to top
View user's profile Send private message
trigggl
Apprentice
Apprentice


Joined: 26 Aug 2007
Posts: 234
Location: Arkansas

PostPosted: Sat Sep 29, 2007 8:37 pm    Post subject: Reply with quote

corsair wrote:
Unfortunately your CFLAGS are broken in >gcc-4.0, so you have to discard "-mcpu=power3 -mtune=power3" from them. Open /etc/make.conf with your favorite editor and delete "-mcpu=power3 -mtune=power3" from CFLAGS and CXXFLAGS.
Is this a good thing or a bad thing? It sounds like a bad thing.

corsair wrote:
P.S.: you seem to have started with an 2006.1 stage tarball. this is an *ehrm* old one with lots of outdated packages. *If* you are ever going to install this machine again you should use only the 2006.1 install cd and the latest stage3 tarball available (2007.0 currently). Once that kernel bug with your video card is fixed you can use newer install CDs again of cause... The version of the install CD used has nothing to do with the version of the stage tarball you are using. 8)
(well.. to be correct: you might need a newer kernel some day to be able to chroot into the latest unpacked stage3, but that hasn't happened so far. ;-) )
So, stick with the kernel I have for now, but use 2007 packages for everything else? I assume I still need to keep the old kernel I'm using.

Thanks for taking the time to map all that stuff out for me. I do plan on installing on at least one more machine, maybe two.
_________________
Greg
Back to top
View user's profile Send private message
trigggl
Apprentice
Apprentice


Joined: 26 Aug 2007
Posts: 234
Location: Arkansas

PostPosted: Sun Sep 30, 2007 1:07 pm    Post subject: Reply with quote

Well, I tried to update gcc, but it wanted to pull in binutils as a dependency, which of course failed. I tried to install gcc with --nodeps but it failed, too. I'm going to loosen up my use settings some and rebuild some things. The system is determined to update binutils and pulls it in for a dependency no matter what I do.
_________________
Greg
Back to top
View user's profile Send private message
trigggl
Apprentice
Apprentice


Joined: 26 Aug 2007
Posts: 234
Location: Arkansas

PostPosted: Mon Oct 08, 2007 5:45 pm    Post subject: Reply with quote

Started over from scratch. Used ClusterSSH on my PC to run a simultaneous install between both RS/6000's. Used stage from 2007.0 and everything is going smooth, so far. Emerged distcc this morning. Plan on using binaries soon.
_________________
Greg
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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