[OpenAFS] cannot compile openafs on amd opteron
Jean-Paul Le Fèvre
jean-paul.lefevre@cea.fr
Wed, 3 May 2006 18:11:52 +0200
Hi,
I'm unable to compile openafs on my new AMD Opteron server ...
I'm running :
Linux dappcj103 2.6.12.4 #9 Wed May 3 15:10:01 CEST 2006 i686 unknown unknown
GNU/Linux
I've configured openafs with :
./configure --prefix=/opt/afs --with-afs-sysname=amd64_linux26
--with-linux-kernel-headers=/usr/src/linux
After hours of googling "code model `kernel' not supported" I'm still stuck.
The problem is the same with openafs 1.4.1.
Help would be appreciated.
Here is the trace :
Building in directory: MODLOAD-2.6.12.4-SP
make[4]: Entering directory
`/usr/src/openafs-1.5.1/src/libafs/MODLOAD-2.6.12.4-SP'
Makefile.common:51: warning: overriding commands for target `.c.o'
/usr/src/openafs-1.5.1/src/config/Makefile.config:134: warning: ignoring old
commands for target `.c.o'
env EXTRA_CFLAGS="" /usr/src/openafs-1.5.1/src/libafs/make_kbuild_makefile.pl
MODLOAD-2.6.12.4-SP
libafs.ko /usr/src/openafs-1.5.1/src/config/Makefile.config Makefile.afs
Makefile.common
env EXTRA_CFLAGS="" make -C /usr/src/linux
M=/usr/src/openafs-1.5.1/src/libafs/MODLOAD-2.6.12.4-SP modules
make[5]: Entering directory `/usr/src/linux-2.6.12.4'
CC [M] /usr/src/openafs-1.5.1/src/libafs/MODLOAD-2.6.12.4-SP/afs_atomlist.o
cc1: error: code model `kernel' not supported in the 32 bit mode
make[6]: ***
[/usr/src/openafs-1.5.1/src/libafs/MODLOAD-2.6.12.4-SP/afs_atomlist.o] Error
1
make[5]: *** [_module_/usr/src/openafs-1.5.1/src/libafs/MODLOAD-2.6.12.4-SP]
Error 2
--
___________________________________________________________________
Jean-Paul Le Fèvre * Mail : LeFevre@fonteny.org