Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on PPC
  • Search

compiling kernel 2.6.18 fails: -m64 not supported[SOLVED]

Have a PowerPC specific problem? This is the spot.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
pindar
Apprentice
Apprentice
Posts: 220
Joined: Fri Apr 30, 2004 1:33 pm

compiling kernel 2.6.18 fails: -m64 not supported[SOLVED]

  • Quote

Post by pindar » Sun Oct 22, 2006 4:11 pm

Hi,

I was trying to compile kernel 2.6.18 to finally get sound on my G5, but I get these errors:

Code: Select all

 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: Select all

gcc-config -l
 [1] powerpc-unknown-linux-gnu-4.1.1 *
I'm on ppc64 with 32 bit userland:

Code: Select all

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.
Top
jaeger63
n00b
n00b
Posts: 38
Joined: Sat Apr 08, 2006 5:57 pm
Location: Gatineau, Quebec

  • Quote

Post by jaeger63 » Sun Oct 22, 2006 4:45 pm

You have to edit the CROSS-COMPILE line in the makefile to compile the kernel from a 32-bit Userland:

Code: Select all

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/h ... t=1&chap=7
Top
pindar
Apprentice
Apprentice
Posts: 220
Joined: Fri Apr 30, 2004 1:33 pm

  • Quote

Post by pindar » Sun Oct 22, 2006 5:26 pm

jaeger63 wrote:You have to edit the CROSS-COMPILE line in the makefile to compile the kernel from a 32-bit Userland:

Code: Select all

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/h ... t=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
Top
Post Reply

3 posts • Page 1 of 1

Return to “Gentoo on PPC”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic