Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PPC64: Can't compile binutils
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
hawaiian717
n00b
n00b


Joined: 13 May 2004
Posts: 71

PostPosted: Fri Oct 12, 2007 5:04 pm    Post subject: PPC64: Can't compile binutils Reply with quote

I'm trying to update my Power Mac G5's Gentoo install, but emerge is failing on binutils:

*
* 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
*

Looks like this might be the error:

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

Here is my emerge --info:

Portage 2.1.3.9 (default-linux/ppc/ppc64/2006.1/64bit-userland/970/pmac, gcc-3.4.6, glibc-2.3.6-r5, 2.6.20-gentoo-r5 ppc64)
=================================================================
System uname: 2.6.20-gentoo-r5 ppc64 PPC970, altivec supported
Timestamp of tree: Fri, 12 Oct 2007 15:20:01 +0000
app-shells/bash: 3.2_p17
dev-lang/python: 2.4.3-r4
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
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.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.21
ACCEPT_KEYWORDS="ppc64"
CBUILD="powerpc64-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=970 -mtune=970 -maltivec -mabi=altivec"
CHOST="powerpc64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe -mcpu=970 -mtune=970 -maltivec -mabi=altivec"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.llarian.net/ ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo http://ftp.ucsb.edu/pub/mirrors/linux/gentoo ftp://gentoo/llarian.net/pub/gentoo"
MAKEOPTS="-j3"
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 altivec apache2 apm arts berkdb bitmap-fonts cdr cli cracklib crypt cups dri dvd dvdr eds emboss encode esd foomaticdb fortran gdbm gif gpm gstreamer 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 subversion tcpd truetype truetype-fonts type1-fonts unicode vorbis xml xorg xscreensaver 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon fbdev"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Back to top
View user's profile Send private message
trigggl
Apprentice
Apprentice


Joined: 26 Aug 2007
Posts: 234
Location: Arkansas

PostPosted: Fri Oct 12, 2007 5:30 pm    Post subject: Reply with quote

I had that same exact problem and probably for the same reason.

Dump 2006.1 and use the 2007 stage.

https://forums.gentoo.org/viewtopic-t-590132.html
_________________
Greg
Back to top
View user's profile Send private message
hawaiian717
n00b
n00b


Joined: 13 May 2004
Posts: 71

PostPosted: Fri Oct 12, 2007 7:36 pm    Post subject: Reply with quote

Doesn't seem to help. I updated to the 2007.0 profile, still didn't help. Like you saw, emerge -ua gcc wanted to try in pull in binutils first, so that wouldn't help. For me, emerge -ua --nodeps gcc did work though, and afterwards I set powerp64-unknown-linux-gnu-4.1.2 as the default compiler. Tried emerging binutils again but I'm still getting the same error.

<rant>
All I wanted was an up to date system so I could take a stab at creating an ebuild for Red Hat's Enterprise Security Client (a gui program for dealing with smart cards that goes along with app-crypt/coolkey which I got into Portage a few months ago). It's stuff like this that's souring me on Gentoo though. It seems fine if you keep it up to date, like I do with my always-on PPC 603 webserver, but if you let it get stale it gets to be too much of a hassle to bring back up to date. I spend most of my time in OS X, and my x86 PC has already had Gentoo replaced with Fedora.
</rant>
Back to top
View user's profile Send private message
trigggl
Apprentice
Apprentice


Joined: 26 Aug 2007
Posts: 234
Location: Arkansas

PostPosted: Fri Oct 12, 2007 7:42 pm    Post subject: Reply with quote

You have to start over. You must start with the 2007 stage after booting the install cd. I used the 2006.1 install cd because the 2007 cd wouldn't boot on my system, but you shouldn't need to I don't think. Even if you do use the 2006.1 install cd, it has nothing to do with what stage you use.
_________________
Greg
Back to top
View user's profile Send private message
trigggl
Apprentice
Apprentice


Joined: 26 Aug 2007
Posts: 234
Location: Arkansas

PostPosted: Fri Oct 12, 2007 7:45 pm    Post subject: Reply with quote

hawaiian717 wrote:
<rant>
All I wanted was an up to date system so I could take a stab at creating an ebuild for Red Hat's Enterprise Security Client (a gui program for dealing with smart cards that goes along with app-crypt/coolkey which I got into Portage a few months ago). It's stuff like this that's souring me on Gentoo though. It seems fine if you keep it up to date, like I do with my always-on PPC 603 webserver, but if you let it get stale it gets to be too much of a hassle to bring back up to date. I spend most of my time in OS X, and my x86 PC has already had Gentoo replaced with Fedora.
</rant>

Perhaps it's time to call it a bug.
_________________
Greg
Back to top
View user's profile Send private message
hawaiian717
n00b
n00b


Joined: 13 May 2004
Posts: 71

PostPosted: Fri Oct 12, 2007 7:47 pm    Post subject: Reply with quote

To be completely honest, it's not worth it for me to do that. If I were going to start over, I might as well just reallocate that disk space back to Mac OS X and be done with it. The only thing I've done with the Linux partition was testing my coolkey ebuild on ppc64, and was going to use it to try and develop the esc ebuild since I no longer have an x86 Gentoo box. But I don't care about it that much -- I already have smart card support working on OS X and Windows and Fedora and Gentoo, and was just thinking it would be nice to bring a useful tool over to Gentoo. Reinstalling Gentoo to do it though, isn't worth it to me.
Back to top
View user's profile Send private message
trigggl
Apprentice
Apprentice


Joined: 26 Aug 2007
Posts: 234
Location: Arkansas

PostPosted: Fri Oct 12, 2007 7:59 pm    Post subject: Reply with quote

hawaiian717 wrote:
To be completely honest, it's not worth it for me to do that. If I were going to start over, I might as well just reallocate that disk space back to Mac OS X and be done with it. The only thing I've done with the Linux partition was testing my coolkey ebuild on ppc64, and was going to use it to try and develop the esc ebuild since I no longer have an x86 Gentoo box. But I don't care about it that much -- I already have smart card support working on OS X and Windows and Fedora and Gentoo, and was just thinking it would be nice to bring a useful tool over to Gentoo. Reinstalling Gentoo to do it though, isn't worth it to me.

I hear you. I'm using Gentoo because it's the only install cd that will boot on my RS/6000's. So, for me, it is worth it. AIX (IBM's version of Unix) is just too hard to work with. It may be easier with a fresh install, but I haven't tried that yet and I hate CDE (The Window Manager that comes with it).
_________________
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: Sun Oct 14, 2007 12:46 pm    Post subject: Reply with quote

hawaiian717 wrote:
Doesn't seem to help. I updated to the 2007.0 profile, still didn't help. Like you saw, emerge -ua gcc wanted to try in pull in binutils first, so that wouldn't help. For me, emerge -ua --nodeps gcc did work though, and afterwards I set powerp64-unknown-linux-gnu-4.1.2 as the default compiler. Tried emerging binutils again but I'm still getting the same error.


you set the compiler and after that you did "env-update && source /etc/profile". did you?
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