View previous topic :: View next topic |
Author |
Message |
stmiller Tux's lil' helper
Joined: 28 Feb 2006 Posts: 119
|
Posted: Sun Aug 06, 2006 7:13 pm Post subject: problems with gcc 4.1.1 and 2.6.17.7 compile [solved] |
|
|
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 |
|
|
hexadevil n00b
Joined: 14 Apr 2006 Posts: 13
|
Posted: Tue Aug 15, 2006 9:06 pm Post subject: |
|
|
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 |
|
|
stmiller Tux's lil' helper
Joined: 28 Feb 2006 Posts: 119
|
Posted: Tue Aug 15, 2006 9:47 pm Post subject: |
|
|
[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 |
|
|
stmiller Tux's lil' helper
Joined: 28 Feb 2006 Posts: 119
|
Posted: Fri Dec 01, 2006 12:02 am Post subject: |
|
|
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 |
|
|
|