[OpenAFS-devel] afs on sparc64

John F Davis johndavi@us.ibm.com
Sun, 24 Oct 2004 12:48:31 -0400


I get this same error using two build methods:

1) cd /usr/src/linux
2) make-kpkg configure
3) make-kpkg modules

1) cd /usr/src/modules/openafs
2) make -f debian/rules KVERS=2.4.27-sparc64 KSRC=/usr/src/linux 

Building in directory: MODLOAD-2.4.27-SP
make[5]: Entering directory 
sparc64-linux-gcc  -O2 -fomit-frame-pointer -fno-strength-reduce 
-fno-strict-aliasing -fno-common -pipe -mcpu=ultrasparc -m64 -mno-fpu 
-mcmodel=medlow -ffixed-g4 -fcall-used-g5 -fcall-used-g7 -Wno-sign-compare 
-I/usr/src/linux/include -I/usr/src/modules/openafs/src/config -c 
In file included from ../afs/../afs/../rx/../rx/rx_packet.h:45,
from ../afs/../afs/../rx/rx.h:38,
from ../afs/../afs/afsincludes.h:30,
from ../afs/osi_groups.c:22:
/usr/include/sys/sysmacros.h:30: warning: `major' redefined
../linux/kdev_t.h:80: warning: this is the location of the previous 
/usr/include/sys/sysmacros.h:31: warning: `minor' redefined
../linux/kdev_t.h:81: warning: this is the location of the previous 
../afs/osi_groups.c:181: parse error before `old_gid_t'
../afs/osi_groups.c:182: parse error before `old_gid_t'
../afs/osi_groups.c: In function `afs32_xsetgroups':
../afs/osi_groups.c:194: `gidsetsize' undeclared (first use in this 
../afs/osi_groups.c:194: (Each undeclared identifier is reported only once
../afs/osi_groups.c:194: for each function it appears in.)
../afs/osi_groups.c:194: `grouplist' undeclared (first use in this 
make[5]: *** [osi_groups.o] Error 1
make[5]: Leaving directory 
make[4]: *** [linux_compdirs] Error 2
make[4]: Leaving directory `/usr/src/modules/openafs/src/libafs'
make[3]: *** [libafs] Error 2
make[3]: Leaving directory `/usr/src/modules/openafs'
make[2]: *** [build] Error 2
make[2]: Leaving directory `/usr/src/modules/openafs'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/modules/openafs'
make: *** [build-modules-stamp] Error 2

Notes about this error. 
I am using a 2.4.27 kernel from kernel.org (not a debian package version). 
I have installed .deb kernel-headers-2.4.27-1which puts include files in 
/usr/src., but I am not sure if they are being used.
/usr/include/linux from .deb linux-kernel-headers
/usr/include/sys (warning above) from .deb libc6-dev
/usr/bin/sparc64-linux-gcc.egcs64 from .deb egcs64

Other dpkg info from debian unstable:

Other notes about gcc.  If i deinstall egcs64 and try using the gcc code.

sparc64-linux-gcc is not found and the make-kpkg modules step fails to 
build for afs.  I can build the kernel though.


Chaskiel M Grundman <cg2v@andrew.cmu.edu> 
Sent by: openafs-devel-admin@openafs.org
10/23/2004 01:04 PM


Re: [OpenAFS-devel] afs on sparc64

--On Saturday, October 23, 2004 11:04:31 -0400 John F Davis
<johndavi@us.ibm.com> wrote:

> Does anybody run afs on sparc64 Linux?
yes. I ran debian stable/woody (and now debian stable-to-be/sarge) on an
ultra 5.
> If so, how did  you do it?
I don't remember how I built 1.2.3 for 2.4.18 on stable. It was a while
ago, and one of the reasons I upgraded this box to sarge early was that I
couldn't reproduce it.

I built 1.2.11 for 2.4.24-sparc64 by getting the kernel-image-sparc source
package, unpacking openafs-modules-source into /usr/src/modules, unpacking
kernel-image-sparc, and the correct sequence of 'make-kpkg --arch sparc64'
commands. I don't remember all the details right now.

2.4.27 seems like it will be easier to deal with, since it actually
includes an i386-style kernel-headers package:

install kernel-headers-2.4.27-1-sparc64
unpack openafs-modules-source wherever you want it.
<cd to the top of openafs-modules-source>
make -f debian/rules KVERS=2.4.27-1-sparc64 \
KSRC=/usr/src/kernel-headers-2.4.27-1-sparc64 kdist_image

I just built a module in this way, and it looks like it's not going to 

It has some references that I don't think will resolve:
U current

I'll look at this some more and post a followup.

> I tried building two versions of openafs for debian on a sparc ultra10
> using 2.4.27 sparc64 and egcs.  Neither would work.
neither what? If you are running sarge or unstable, then you should not 
egcs. If you are running stable, where did you get the 2.4.27 kernel?

[attachment "C.DTF" deleted by John F Davis/Raleigh/IBM]