[OpenAFS-devel] Another build problem on sparc-linux
Pete Zaitcev
zaitcev@redhat.com
Sat, 13 Sep 2003 16:55:54 -0400
> From: Dean Anderson <dean@av8.com>
> Date: Sat, 13 Sep 2003 16:10:13 -0400 (EDT)
> gcc -O2 -fomit-frame-pointer -fno-strength-reduce -fno-strict-aliasing
> -fno-common -pipe -mcpu=v8 -mno-fpu -fcall-used-g5 -fcall-used-g7
> -D__KERNEL__ -DCPU=sparc -DKERNEL -D_KERNEL -DMODULE -D__BOOT_KERNEL_UP=1
> -D__BOOT_KERNEL_SMP=0 -I. -I../ -I/usr/src/redhat/SOURCES/openafs-1.2.9/t
> libafs/config -c ../afs/afs_analyze.c; In file included from
> linux/fs.h:297,
> Here is the command line from a kernel module that is include with the
> linux kernel:
>
> kgcc -D__KERNEL__ -I/usr/src/linux-2.4.20-2.3sparc/include -Wall
> -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
> -fomit-frame-pointer -fomit-frame-pointer -m64 -pipe -mno-fpu
> -mcpu=ultrasparc -mcmodel=medlow -ffixed-g4 -fcall-used-g5 -fcall-used-g7
> -Wno-sign-compare -Wa,--undeclared-regs -DMODULE -DMODVERSIONS -include
> /usr/src/linux-2.4.20-2.3sparc/include/linux/modversions.h -nostdinc
> -iwithprefix include -DKBUILD_BASENAME=dn_nsp_out -c -o dn_nsp_out.o
> dn_nsp_out.c
Very smart of you to capture that, now make your libafs command
line the same, including kgcc, -m64, modversions.h, etc.
Also make sure that libafs/linux points to a live,
configured kernel (in this case /usr/src/linux-2.4.20-2.3sparc),
and not a fresh unpacked tarball.
-- Pete