Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mac Newbie
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
Bad Penguin
Guru
Guru


Joined: 18 Aug 2004
Posts: 507

PostPosted: Tue Nov 01, 2005 5:34 pm    Post subject: Mac Newbie Reply with quote

My apologies, I am a mac newbie :)

I have what I guess is an emac and am trying to figure out the best make.profile and make.conf flags to use for it. I have no idea if this thing is a ppc64 or what. It is currently running the generic ppc/2005.1/ppc profile. Whenever I attempt an emerge -e system it fails to build gcc, although a plain emerge gcc works correctly.

If anyone can point me in the right direction it would be greatly appreciated. In the install handbook, there are several profiles listed for ppc, I have no idea which one I should be using...

Here is /proc/cpuinfo

Code:

processor       : 0
cpu             : 7455, altivec supported
clock           : 999MHz
revision        : 3.3 (pvr 8001 0303)
bogomips        : 993.28
machine         : PowerMac4,4
motherboard     : PowerMac4,4 MacRISC2 MacRISC Power Macintosh
detected as     : 80 (eMac)
pmac flags      : 00000001
L2 cache        : 256K unified
memory          : 128MB
pmac-generation : NewWorld


And my current make.conf:

Code:

# 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 -mtune=powerpc -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CXXFLAGS="${CFLAGS}"

#SYNC="rsync://speedy.apps4med.net/gentoo-portage"
#SYNC="rsync://code.apps4med.com/portage"

USE="artswrappersuid mysql qt alsa kde -nls dvdr cdr samba scanner cdparanoia tiff \
-info gimpprint xine dvdread -ipv6 ogg dvd -gpm aalib divx4linux encode lzo \
mythtv real sdl svga tga theora v4l xanim xmms xvid"


Any ideas on which profile I should be using, and the best CFLAGS settings for these boxes?
Back to top
View user's profile Send private message
sktrdie
Apprentice
Apprentice


Joined: 13 Mar 2005
Posts: 153

PostPosted: Tue Nov 01, 2005 7:42 pm    Post subject: Reply with quote

could you paste the error it gives when emerging
Back to top
View user's profile Send private message
Bad Penguin
Guru
Guru


Joined: 18 Aug 2004
Posts: 507

PostPosted: Tue Nov 01, 2005 7:53 pm    Post subject: Reply with quote

sktrdie wrote:
could you paste the error it gives when emerging

I changed my profile to ppc/2005.1/ppc/G4 and CFLAGS to CFLAGS="-mcpu=7450 -O2 -pipe -fno-strict-aliasing -maltivec -mabi=altivec -mpowerpc-gfxopt" and ran another emerge -e system.

Right now it is at 53 or 87, I believe gcc is 55. Will post if it fails again...
Back to top
View user's profile Send private message
Bad Penguin
Guru
Guru


Joined: 18 Aug 2004
Posts: 507

PostPosted: Tue Nov 01, 2005 8:50 pm    Post subject: Reply with quote

sktrdie wrote:
could you paste the error it gives when emerging

Bummer, it failed with my new profile and CFLAGS, looks like the exact same error.

Code:

make[4]: Entering directory `/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc'
stage2/xgcc -Bstage2/ -B/usr/powerpc-unknown-linux-gnu/bin/ -c    -mcpu=7450 -O2 -pipe -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition     -DHAVE_CONFIG_H    -I. -I. -I/var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc -I/var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/. -I/var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/../include  /var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/gcc/c-objc-common.c -o c-objc-common.o
make[4]: stage2/xgcc: Command not found
make[4]: *** [c-objc-common.o] Error 127
make[4]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc'
make[3]: *** [stage3_build] Error 2
make[3]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc'
make[2]: *** [quickstrap] Error 2
make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build'
make: *** [bootstrap-lean] Error 2

!!! ERROR: sys-devel/gcc-3.4.4-r1 failed.
!!! Function gcc_do_make, Line 1308, Exitcode 2
!!! emake failed with bootstrap-lean
!!! If you need support, post the topmost build error, NOT this status message.


Here is emerge info:

Code:

Portage 2.0.51.22-r3 (default-linux/ppc/2005.1/ppc/G4, gcc-3.4.4, glibc-2.3.5-r2, 2.6.10-gentoo-r8 ppc)
=================================================================
System uname: 2.6.10-gentoo-r8 ppc 7455, altivec supported
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-mcpu=7450 -O2 -pipe -fno-strict-aliasing -maltivec -mabi=altivec -mpowerpc-gfxopt"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=7450 -O2 -pipe -fno-strict-aliasing -maltivec -mabi=altivec -mpowerpc-gfxopt"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc X aalib alsa artswrappersuid berkdb bitmap-fonts cdparanoia cdr crypt cups curl divx4linux dvd dvdr dvdread eds emboss encode esd fam fortran gif gimpprint gnome gstreamer gtk gtk2 imlib jpeg kde libwww lzo mad motif mp3 mpeg mysql mythtv ncurses ogg oggvorbis opengl pam pdflib perl png python qt readline samba scanner sdl spell ssl tcpd tga theora tiff truetype truetype-fonts type1-fonts udev unicode v4l vorbis xanim xine xml2 xmms xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Nov 02, 2005 4:14 am    Post subject: Reply with quote

This mac is a G4, it is a 32 bit Mac. Your CFLAGs look fine, except that -mpowerpc-gfxopt is redundant when using -mcpu=7450.

That said, I've never seen that error before. Which stage are you starting from?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Bad Penguin
Guru
Guru


Joined: 18 Aug 2004
Posts: 507

PostPosted: Wed Nov 02, 2005 4:31 am    Post subject: Reply with quote

JoseJX wrote:
This mac is a G4, it is a 32 bit Mac. Your CFLAGs look fine, except that -mpowerpc-gfxopt is redundant when using -mcpu=7450.

That said, I've never seen that error before. Which stage are you starting from?


IIRC, it was originally installed via 2005.0/stage1, currently it is 2005.1/stage3. It has been running for a while, I just prefer doing the emerge -e system && emerge -e system && emerge -e world && emerge -e world after toolchain updates. I have not been able to get gcc to compile during an emerge -e system. It does, however, work just fine with a plain emerge gcc.

I wish I had more accurate information for you, it has been a few months :)
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Nov 02, 2005 4:35 am    Post subject: Reply with quote

Well, it's weird. :)

Maybe check again with gcc-config to make sure a valid profile is set, then perform an env-update, then a source /etc/profile.

The only other thing I can think of is perhaps a weird PATH setting.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Bad Penguin
Guru
Guru


Joined: 18 Aug 2004
Posts: 507

PostPosted: Wed Nov 02, 2005 3:16 pm    Post subject: Reply with quote

JoseJX wrote:
Well, it's weird. :)

Maybe check again with gcc-config to make sure a valid profile is set, then perform an env-update, then a source /etc/profile.

The only other thing I can think of is perhaps a weird PATH setting.


Will try...

Code:

macdaddy ~ # gcc-config -l
 [1] powerpc-unknown-linux-gnu-3.4.4 *
 [2] powerpc-unknown-linux-gnu-3.4.4-hardened
 [3] powerpc-unknown-linux-gnu-3.4.4-hardenednopie
 [4] powerpc-unknown-linux-gnu-3.4.4-hardenednopiessp
 [5] powerpc-unknown-linux-gnu-3.4.4-hardenednossp

macdaddy ~ # gcc-config -f powerpc-unknown-linux-gnu-3.4.4
 * Switching native-compiler to powerpc-unknown-linux-gnu-3.4.4 ...

macdaddy ~ # echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/powerpc-unknown-linux-gnu/gcc-bin/3.4.4:/usr/qt/3/bin:/usr/kde/3.4/sbin:/usr/kde/3.4/bin
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Nov 02, 2005 3:53 pm    Post subject: Reply with quote

No idea, sorry. If you find the solution, I'd be interested to know what it was.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 997

PostPosted: Wed Nov 02, 2005 4:47 pm    Post subject: Reply with quote

I have seen this kind of error once before. Somehow the compilation deletes the stage2 directory before it is finished using it.
I was not able to reproduce the error.
You might try running emerge -e system, and when it fails, run
Code:
emerge --resume --skipfirst

Then emerge gcc, then emerge -e system again.
Back to top
View user's profile Send private message
Bad Penguin
Guru
Guru


Joined: 18 Aug 2004
Posts: 507

PostPosted: Wed Nov 02, 2005 7:03 pm    Post subject: Reply with quote

JoseJX wrote:
Well, it's weird. :)

Maybe check again with gcc-config to make sure a valid profile is set, then perform an env-update, then a source /etc/profile.

The only other thing I can think of is perhaps a weird PATH setting.


Well, looks like the gcc-config -f, rm -rf /var/tmp/portage/gcc*, env-update, and source /etc/profile worked. I finally made it past gcc in the emerge -e system. Kind of weird since the gcc version has never changed on the box :)

I will keep my fingers crossed and see if it makes it through the remaining packages and a second pass at emerge -e system.

Thanks for the helpful suggestion.
Back to top
View user's profile Send private message
Bad Penguin
Guru
Guru


Joined: 18 Aug 2004
Posts: 507

PostPosted: Thu Nov 03, 2005 2:31 pm    Post subject: Reply with quote

Bad Penguin wrote:
Well, looks like the gcc-config -f, rm -rf /var/tmp/portage/gcc*, env-update, and source /etc/profile worked. I finally made it past gcc in the emerge -e system. Kind of weird since the gcc version has never changed on the box :)

I will keep my fingers crossed and see if it makes it through the remaining packages and a second pass at emerge -e system.


Well, no go. It worked the first time with an emerge --resume, not the second pass. It appears to be an itermittent problem. A little googling tells me that this is a bug listed as resolved on the gcc bugzilla, yet it is not. Just my luck :)

I guess I just can't do an emerge -e system, which kind of sucks. I will just have to do a normal emerge gcc when it fails in another session, then the emerge --resume --skipfirst.
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