Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Not able to compile kernel on sunfire 280r
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
jdc18
n00b
n00b


Joined: 05 Oct 2007
Posts: 48

PostPosted: Sat Feb 14, 2009 11:15 pm    Post subject: Not able to compile kernel on sunfire 280r Reply with quote

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
View user's profile Send private message
microtechno
Apprentice
Apprentice


Joined: 17 Apr 2006
Posts: 224
Location: Adelaide, Australia

PostPosted: Sun Feb 15, 2009 3:08 am    Post subject: Reply with quote

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
View user's profile Send private message
Ferris
Retired Dev
Retired Dev


Joined: 13 Jan 2003
Posts: 426
Location: N. Virginia (USA)

PostPosted: Mon Feb 23, 2009 3:21 pm    Post subject: Reply with quote

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. :wink:

Regards,
Ferris
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc 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