Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
64bit kernel on 32bit clusters
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
scolari
n00b
n00b


Joined: 04 Feb 2008
Posts: 4

PostPosted: Mon Feb 04, 2008 4:41 pm    Post subject: 64bit kernel on 32bit clusters Reply with quote

Hello,

We have a cluster of machines, this cluster is getting old so we replace machines with new ones. The cluster is mainly made of athlon-xp and athlon-64. Up to now we mantained 32 bit for both the user space and kernel for the entire cluster. Yesterday we tried to compile a 64 bit kernel for the sparkling new 64 bit machine but we din't succeded. In fact the gcc compiler have an -m64 option but it give the following error:

sorry, unimplemented: 64-bit mode not compiled in

Searching the web we found that this error is the normality for gcc 32-bit. We also found that some gcc (the debian ones) can compiles -m64 also in 32-bit modes. This option can be very usefull and we will not need to install a cross-compiler.
Is there some option in Gentoo to build such this compiler? I heard there is a patch somewere, can someone point me some direction?

Thanks!
Back to top
View user's profile Send private message
DarkGian
n00b
n00b


Joined: 31 Oct 2007
Posts: 3

PostPosted: Tue Feb 05, 2008 5:17 pm    Post subject: Reply with quote

Hi everybody, I am one of scolari's colleagues.
It may be a little OT since the question seems more focused on the -m64 option of gcc, but I thought of of trying the gentoo way and emerging crossdev. I followed step by step what written in the Gentoo Embedded Handbook and managed to create my sysroot for the tuple x86_64-unknown-linux-gnu, with crossdev working just fine. I then succeded "xmerging" vanilla-sources, but in the final phase, while actually building the kernel, I get the weird error:
Code:

calculon linux-2.6.23.9-cross # INSTALL_MOD_PATH=/usr/x86_64-unknown-linux-gnu make
[...]
  CC      arch/x86_64/boot/a20.o
arch/i386/boot/a20.c:1: error: CPU you selected does not support x86-64 instruction set
arch/i386/boot/a20.c:1: error: CPU you selected does not support x86-64 instruction set
make[1]: *** [arch/x86_64/boot/a20.o] Error 1
make: *** [bzImage] Error 2

I cut the first lines of output because the error comes in a really late stage, but all wen't fine until this.

The machine I'm building on is a (don't laugh please!) 750 MHz Pentium III (Coppermine). On the makefile I manually set ARCH=x86_64 and CROSS_COMPILE=x86_64-unknown-linux-gnu. Am I missing something? This was only a test. Should I expect different behaviour when building on a Pentium IV class dual Xeon machine for some reason?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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