Skip to content

Linux Kernel 2.6.25 on Gentoo sparc (error: -m64 is not supported by this configuration)

I wanted to try the new 2.6.25 kernel on a Sunblade 100 I'm reinstalling. But immediately after entering "make" I got the following error:
arch/sparc64/kernel/asm-offsets.c:1: error: -m64 is not supported by this configuration
arch/sparc64/kernel/asm-offsets.c:1: error: -mlong-double-64 not allowed with -m64
arch/sparc64/kernel/asm-offsets.c:1: error: -mcmodel= is not supported on 32 bit systems
make[1]: *** [arch/sparc64/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2


I found the solution here, along with the explanation. To make it short, to get it to work, for now you'll have to type:
 # CROSS_COMPILE=sparc64-unknown-linux-gnu- make


  • Twitter
  • Bookmark Linux Kernel 2.6.25 on Gentoo sparc (error: -m64 is not supported by this configuration) at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Linux Kernel 2.6.25 on Gentoo sparc (error: -m64 is not supported by this configuration)
  • Mixx Linux Kernel 2.6.25 on Gentoo sparc (error: -m64 is not supported by this configuration)
  • Bloglines Linux Kernel 2.6.25 on Gentoo sparc (error: -m64 is not supported by this configuration)
  • Technorati Linux Kernel 2.6.25 on Gentoo sparc (error: -m64 is not supported by this configuration)
  • Fark this: Linux Kernel 2.6.25 on Gentoo sparc (error: -m64 is not supported by this configuration)
  • Bookmark Linux Kernel 2.6.25 on Gentoo sparc (error: -m64 is not supported by this configuration) at YahooMyWeb
  • Bookmark Linux Kernel 2.6.25 on Gentoo sparc (error: -m64 is not supported by this configuration) at Furl.net
  • Bookmark Linux Kernel 2.6.25 on Gentoo sparc (error: -m64 is not supported by this configuration) at reddit.com
  • Bookmark Linux Kernel 2.6.25 on Gentoo sparc (error: -m64 is not supported by this configuration) at blinklist.com
  • Bookmark Linux Kernel 2.6.25 on Gentoo sparc (error: -m64 is not supported by this configuration) at Spurl.net
  • Bookmark Linux Kernel 2.6.25 on Gentoo sparc (error: -m64 is not supported by this configuration) at NewsVine
  • Bookmark Linux Kernel 2.6.25 on Gentoo sparc (error: -m64 is not supported by this configuration) at Simpy.com
  • Bookmark Linux Kernel 2.6.25 on Gentoo sparc (error: -m64 is not supported by this configuration) at blogmarks
  • Bookmark Linux Kernel 2.6.25 on Gentoo sparc (error: -m64 is not supported by this configuration) with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Print this article!
  • E-mail this story to a friend!
  • Identi.ca

Diskless Linux on a Sunblade 100

Initially written on 2006-05-17

On my other (x86/amd64) diskless machines, I use PXE with pxegrub. My setup is quite similar to (and inspired by) this one.

Now, on sparc machines, there is no BIOS nor PXE. But you don't need all that, since you have the Open Boot... This is how I managed to make my Sunblade 100 totally diskless (using a "vanilla" kernel, the latest version being currently 2.6.16.16).

Note: In this example, 10.0.0.10 will be my dhcp/nfs/tftp server which I will refer to as 'fileserver'. 10.0.0.30 is the sunblade.

- when configuring the kernel:
[*] Default bootloader kernel arguments (ip=dhcp root=/dev/nfs nfsroot=10.0.0.10:/diskless/sunblade)

(in "Networking" -> "Networking support" -> "Networking options")
[*]   IP: kernel level autoconfiguration
[*] IP: DHCP support
[*] IP: BOOTP support
[*] IP: RARP support

(in "File systems" -> "Network File Systems")
<*> NFS file system support
[*] Provide NFSv3 client support
[*] Root file system on NFS

Configure all other settings as you would do for a disk install, but make sure you compile your NIC driver in the kernel (not as module)

Then:
make
make modules_install
make tftpboot.img ROOT_IMG=/dev/null
(the resulting tftpboot.img will be in arch/sparc64/boot/tftpboot.img)

I copied tftpboot.img to fileserver as tftpimage-2.6.16.16, and added the following entry in my dhcpd.conf:
host sunblade {
hardware ethernet 00:03:BA:08:12:34;
fixed-address 10.0.0.30;
always-reply-rfc1048 on;
filename "sunblade/boot/tftpimage-2.6.16.16";
}


Finally, to net-boot your diskless Sunblade you'll need to enter
boot net:dhcp
in the Open Boot prompt. When you are happy with it, you can set it as default:
setenv boot-device net:dhcp cdrom disk net



Notes:

- apparently, instead of using make tftpboot.img you can just "elftoaout" vmlinux

- another alternative would be to use tilo, which comes with silo, to build the image
  • Twitter
  • Bookmark Diskless Linux on a Sunblade 100 at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Diskless Linux on a Sunblade 100
  • Mixx Diskless Linux on a Sunblade 100
  • Bloglines Diskless Linux on a Sunblade 100
  • Technorati Diskless Linux on a Sunblade 100
  • Fark this: Diskless Linux on a Sunblade 100
  • Bookmark Diskless Linux on a Sunblade 100 at YahooMyWeb
  • Bookmark Diskless Linux on a Sunblade 100 at Furl.net
  • Bookmark Diskless Linux on a Sunblade 100 at reddit.com
  • Bookmark Diskless Linux on a Sunblade 100 at blinklist.com
  • Bookmark Diskless Linux on a Sunblade 100 at Spurl.net
  • Bookmark Diskless Linux on a Sunblade 100 at NewsVine
  • Bookmark Diskless Linux on a Sunblade 100 at Simpy.com
  • Bookmark Diskless Linux on a Sunblade 100 at blogmarks
  • Bookmark Diskless Linux on a Sunblade 100 with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Print this article!
  • E-mail this story to a friend!
  • Identi.ca

Gentoo sparc: sys-devel/kgcc64 vs. sys-devel/gcc-sparc64 (blocking each other)

If you get this:
[blocks B ] sys-devel/gcc-sparc64 (is blocking sys-devel/kgcc64-3.4.6)

Check this thread on the gentoo forums:
There are a couple of architectures on Gentoo that have a 32-bit userland, but need a 64-bit kernel compiler. kgcc64 is an attempt to provide one package for all of those architectures rather than the gcc- packages that exist now. The way we migrated over to this caused the issue you are seeing.

Basically, you'll need to
emerge --unmerge gcc-sparc64 && emerge sys-devel/kgcc64


  • Twitter
  • Bookmark Gentoo sparc: sys-devel/kgcc64 vs. sys-devel/gcc-sparc64 (blocking each other) at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Gentoo sparc: sys-devel/kgcc64 vs. sys-devel/gcc-sparc64 (blocking each other)
  • Mixx Gentoo sparc: sys-devel/kgcc64 vs. sys-devel/gcc-sparc64 (blocking each other)
  • Bloglines Gentoo sparc: sys-devel/kgcc64 vs. sys-devel/gcc-sparc64 (blocking each other)
  • Technorati Gentoo sparc: sys-devel/kgcc64 vs. sys-devel/gcc-sparc64 (blocking each other)
  • Fark this: Gentoo sparc: sys-devel/kgcc64 vs. sys-devel/gcc-sparc64 (blocking each other)
  • Bookmark Gentoo sparc: sys-devel/kgcc64 vs. sys-devel/gcc-sparc64 (blocking each other) at YahooMyWeb
  • Bookmark Gentoo sparc: sys-devel/kgcc64 vs. sys-devel/gcc-sparc64 (blocking each other) at Furl.net
  • Bookmark Gentoo sparc: sys-devel/kgcc64 vs. sys-devel/gcc-sparc64 (blocking each other) at reddit.com
  • Bookmark Gentoo sparc: sys-devel/kgcc64 vs. sys-devel/gcc-sparc64 (blocking each other) at blinklist.com
  • Bookmark Gentoo sparc: sys-devel/kgcc64 vs. sys-devel/gcc-sparc64 (blocking each other) at Spurl.net
  • Bookmark Gentoo sparc: sys-devel/kgcc64 vs. sys-devel/gcc-sparc64 (blocking each other) at NewsVine
  • Bookmark Gentoo sparc: sys-devel/kgcc64 vs. sys-devel/gcc-sparc64 (blocking each other) at Simpy.com
  • Bookmark Gentoo sparc: sys-devel/kgcc64 vs. sys-devel/gcc-sparc64 (blocking each other) at blogmarks
  • Bookmark Gentoo sparc: sys-devel/kgcc64 vs. sys-devel/gcc-sparc64 (blocking each other) with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Print this article!
  • E-mail this story to a friend!
  • Identi.ca