View previous topic :: View next topic |
Author |
Message |
jdc18 n00b
Joined: 05 Oct 2007 Posts: 48
|
Posted: Sat Feb 14, 2009 11:15 pm Post subject: Not able to compile kernel on sunfire 280r |
|
|
HI i am trying to compile a kernel for that machine but i cant, i tried with the genkernel on the first time but didnt work so i went oldschool and tried to compile but i get this error:
Code: | # make
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -s arch/sparc64/Kconfig
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/linux/utsrelease.h
UPD include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-sparc64
CC kernel/bounds.s
kernel/bounds.c:1: error: -m64 is not supported by this configuration
kernel/bounds.c:1: error: -mlong-double-64 not allowed with -m64
kernel/bounds.c:1: error: -mcmodel= is not supported on 32 bit systems
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
|
This are my CFLAGs i used to have -mcpu=ultrasparc but i changed it to ultrasparc3
Code: | CFLAGS="-O2 -mcpu=ultrasparc3 -pipe" |
This is my .config file |
|
Back to top |
|
|
microtechno Apprentice
Joined: 17 Apr 2006 Posts: 224 Location: Adelaide, Australia
|
Posted: Sun Feb 15, 2009 3:08 am Post subject: |
|
|
Hi
It would seem that in your processor section of the kernel you have enabled 64 bit options. This is having a conflict as it cant be run.. hence the is not supported on 32 bit systems.
Sugest going through the menuconfig -> processor type and features section slowly and read each options help. Check what you have selected there.
then try the make again once you have changed/fixed it.
hope that helps _________________ The next statement is true.......The last statement was false..
My Computer
Asus M2N-SLI Deluxe MB
AMD X2 6000+
3GB DDR 667
Gigabyte ATI Radeon 2900XT
Dual Boot Vista/Gentoo (Gnome)
|
|
Back to top |
|
|
Ferris Retired Dev
Joined: 13 Jan 2003 Posts: 426 Location: N. Virginia (USA)
|
Posted: Mon Feb 23, 2009 3:21 pm Post subject: |
|
|
Your flags are fine, but for reasons unknown standard gcc cannot handle -m64. You need to 'emerge kgcc64' if you haven't already done so (the compiler for building the kernel), then when you build the kernel, you need
make CROSS_COMPILE="sparc64-unknown-linux-gnu-" ...
And no, I don't know why upstream forced this.
Regards,
Ferris |
|
Back to top |
|
|
|