Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problems with gcc 4.1.1 and 2.6.17.7 compile [solved]
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
stmiller
Tux's lil' helper
Tux's lil' helper


Joined: 28 Feb 2006
Posts: 119

PostPosted: Sun Aug 06, 2006 7:13 pm    Post subject: problems with gcc 4.1.1 and 2.6.17.7 compile [solved] Reply with quote

I have emerged the new gcc 4.1.1 and and then emerged the new 2.6.17.7 kernel. I'm trying to compile the kernel and get this at the end of doing a 'make g5_defconfig' or just 'make menuconfig'

Code:
*
:0: error: -m64 not supported in this configuration
:0: error: -m64 not supported in this configuration
/usr/src/linux-2.6.17.7/scripts/gcc-version.sh: line 13: printf: #: invalid number
/usr/src/linux-2.6.17.7/scripts/gcc-version.sh: line 13: printf: #: invalid number
/bin/sh: line 0: [: too many arguments
stmiller linux #


This must be gcc related? I did the following:

Code:
gcc-config powerpc-unknown-linux-gnu-4.1.1
source /etc/profile


And I can confirm gcc --version outputs 4.1.1

JoseJX please help! :) Computer is using 32bit UL with 64bit.

Code:
stmiller linux # cat /proc/cpuinfo
processor       : 0
cpu             : PPC970FX, altivec supported
clock           : 2000.000000MHz
revision        : 3.0 (pvr 003c 0300)

processor       : 1
cpu             : PPC970FX, altivec supported
clock           : 2000.000000MHz
revision        : 3.0 (pvr 003c 0300)

timebase        : 33333333
machine         : PowerMac7,3
motherboard     : PowerMac7,3 MacRISC4 Power Macintosh
detected as     : 336 (PowerMac G5)
pmac flags      : 00000000
L2 cache        : 512K unified
pmac-generation : NewWorld
stmiller linux #


Last edited by stmiller on Fri Dec 01, 2006 12:02 am; edited 1 time in total
Back to top
View user's profile Send private message
hexadevil
n00b
n00b


Joined: 14 Apr 2006
Posts: 13

PostPosted: Tue Aug 15, 2006 9:06 pm    Post subject: Reply with quote

Can I see your make.conf? I had this exact same problem but I'm struggling to remember how I fixed it...
Back to top
View user's profile Send private message
stmiller
Tux's lil' helper
Tux's lil' helper


Joined: 28 Feb 2006
Posts: 119

PostPosted: Tue Aug 15, 2006 9:47 pm    Post subject: Reply with quote

[Edit post] Tried Ubuntu, but back to Gentoo!

Last edited by stmiller on Fri Dec 01, 2006 12:37 am; edited 1 time in total
Back to top
View user's profile Send private message
stmiller
Tux's lil' helper
Tux's lil' helper


Joined: 28 Feb 2006
Posts: 119

PostPosted: Fri Dec 01, 2006 12:02 am    Post subject: Reply with quote

I had this problem again. Seems I forgot to edit the Makefile after fetching the updated kernel.

The CROSS_COMPILE line in the top-level /usr/src/linux/Makefile to be: CROSS_COMPILE ?= powerpc64-unknown-linux-gnu-

And it works!
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