[OpenAFS-devel] Problem building openafs-1.3.84 by portage under Gentoo linux

Martin MOKREJŠ mmokrejs@ribosome.natur.cuni.cz
Mon, 13 Jun 2005 15:48:37 +0200


Hi,
  I used to build 1.2.13 under portage on Gentoo linux fine.
I think also 1.3.81 but it breaks with 1.3.84. Portage compiles
sources under /var/tmp/portage/ tree and later installs the
results into live filesystem. 

The directory /usr/src/linux-2.6.12-rc6-git2/arch/x86 doesn't exist.
On the other hand, doing "make dest" manually works for me, but probably
make doesn't look for this directory. Isn't that some bug?


[...]
rm -f asm-generic
ln -fs /usr/src/linux/include/asm-generic asm-generic
rm -f asm
ln -fs /usr/src/linux/include/asm-i386 asm
for m in SP ; do \
        KDIR=MODLOAD-2.6.12-rc6-git2-$m ; \
        echo Building in directory: ${KDIR} ; \
        if [ "$m" = "MP" ] ; then \
                SMP_DEF="-DAFS_SMP  " ; \
                TARG="libafs.mp" ; \
        elif [ "$m" = "EP" ] ; then \
                SMP_DEF="-DAFS_SMP  " ; \
                TARG="libafs.ep" ; \
        elif [ "$m" = "BM" ] ; then \
                SMP_DEF="-DAFS_SMP  " ; \
                TARG="libafs.bm" ; \
        else  \
                SMP_DEF=" " ; \
                TARG=libafs ; \
        fi ; \
        cd ${KDIR} ; \
        make -f Makefile.afs SMP_DEF="${SMP_DEF}" linux_compdirs_${TARG} CLIENT=2.6.12-rc6-git2 KDIR=${KDIR} || exit $?; \
        cd ../ ; \
done
Building in directory: MODLOAD-2.6.12-rc6-git2-SP
make[4]: Entering directory `/var/tmp/portage/openafs-1.3.84/work/openafs-1.3.84/src/libafs/MODLOAD-2.6.12-rc6-git2-SP'
Makefile.common:51: warning: overriding commands for target `.c.o'
/var/tmp/portage/openafs-1.3.84/work/openafs-1.3.84/src/config/Makefile.config:132: warning: ignoring old commands for target `.c.o'
env EXTRA_CFLAGS="" /var/tmp/portage/openafs-1.3.84/work/openafs-1.3.84/src/libafs/make_kbuild_makefile.pl MODLOAD-2.6.12-rc6-git2-SP libafs.ko /var/tmp/portage/openafs-1.3.84/work/openafs-1.3.84/src/config/Makefile.config Makefile.afs Makefile.common
env EXTRA_CFLAGS="" make -C /usr/src/linux M=/var/tmp/portage/openafs-1.3.84/work/openafs-1.3.84/src/libafs/MODLOAD-2.6.12-rc6-git2-SP modules
make[5]: Entering directory `/usr/src/linux-2.6.12-rc6-git2'
Makefile:530: /usr/src/linux-2.6.12-rc6-git2/arch/x86/Makefile: No such file or directory
make[5]: *** No rule to make target `/usr/src/linux-2.6.12-rc6-git2/arch/x86/Makefile'.  Stop.
make[5]: Leaving directory `/usr/src/linux-2.6.12-rc6-git2'
make[4]: *** [libafs.ko] Error 2
make[4]: Leaving directory `/var/tmp/portage/openafs-1.3.84/work/openafs-1.3.84/src/libafs/MODLOAD-2.6.12-rc6-git2-SP'