View previous topic :: View next topic |
Author |
Message |
pindar Apprentice
Joined: 30 Apr 2004 Posts: 220
|
Posted: Sun Oct 22, 2006 4:11 pm Post subject: compiling kernel 2.6.18 fails: -m64 not supported[SOLVED] |
|
|
Hi,
I was trying to compile kernel 2.6.18 to finally get sound on my G5, but I get these errors:
Code: | make
:0: error: -m64 not supported in this configuration
:0: error: -m64 not supported in this configuration
/usr/src/linux-2.6.18-gentoo-r1/scripts/gcc-version.sh: line 13: printf: #: invalid number
/usr/src/linux-2.6.18-gentoo-r1/scripts/gcc-version.sh: line 13: printf: #: invalid number
/bin/sh: line 0: [: too many arguments
:0: error: -m64 not supported in this configuration
:0: error: -m64 not supported in this configuration
/usr/src/linux-2.6.18-gentoo-r1/scripts/gcc-version.sh: line 13: printf: #: invalid number
/usr/src/linux-2.6.18-gentoo-r1/scripts/gcc-version.sh: line 13: printf: #: invalid number
CHK include/linux/version.h
CHK include/linux/utsrelease.h
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
CC arch/powerpc/kernel/asm-offsets.s
arch/powerpc/kernel/asm-offsets.c:1: error: -m64 not supported in this configuration
make[1]: *** [arch/powerpc/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
|
Here's my gcc:
Code: | gcc-config -l
[1] powerpc-unknown-linux-gnu-4.1.1 *
|
I'm on ppc64 with 32 bit userland:
Code: | ls -al /etc/make.profil*
lrwxrwxrwx 1 root root 76 Jul 14 13:23 /etc/make.profile -> /usr/portage/profiles/default-linux/ppc/ppc64/2006.1/32bit-userland/970/pmac
|
Any clues? Thanks
Thomas
Last edited by pindar on Sun Oct 22, 2006 5:27 pm; edited 1 time in total |
|
Back to top |
|
|
jaeger63 n00b
Joined: 08 Apr 2006 Posts: 38 Location: Gatineau, Quebec
|
Posted: Sun Oct 22, 2006 4:45 pm Post subject: |
|
|
You have to edit the CROSS-COMPILE line in the makefile to compile the kernel from a 32-bit Userland:
Code: | Important: In case you are in 32-bit userland, you must edit the top
level Makefile in /usr/src/linux and change the CROSS_COMPILE option to
CROSS_COMPILE ?= powerpc64-unknown-linux-gnu-. You must do this before you run
make menuconfig or it may result in kernel compilation problems. |
It's in the fine print in Chapter 7 of the handbook:
http://www.gentoo.org/doc/en/handbook/handbook-ppc64.xml?part=1&chap=7 |
|
Back to top |
|
|
pindar Apprentice
Joined: 30 Apr 2004 Posts: 220
|
Posted: Sun Oct 22, 2006 5:26 pm Post subject: |
|
|
jaeger63 wrote: | You have to edit the CROSS-COMPILE line in the makefile to compile the kernel from a 32-bit Userland:
Code: | Important: In case you are in 32-bit userland, you must edit the top
level Makefile in /usr/src/linux and change the CROSS_COMPILE option to
CROSS_COMPILE ?= powerpc64-unknown-linux-gnu-. You must do this before you run
make menuconfig or it may result in kernel compilation problems. |
It's in the fine print in Chapter 7 of the handbook:
http://www.gentoo.org/doc/en/handbook/handbook-ppc64.xml?part=1&chap=7 |
Thanks for being generous and saying it's in the "fine print." Now I remember I had to do this last time, too! Works now wonderfully, thanks a lot!
Thomas |
|
Back to top |
|
|
|