CC="i686-pc-linux-gnu-gcc" ./maint/depend.sh src/server -I./include -O2
-march=native -pipe -I/usr/lib/include -D__STATIC_FLOWPROTO_MULTIQUEUE__
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I . -I . -I./src/client/sysint
-I./src/common/misc -I./src/common/quickhash -I./src/common/quicklist
-I./src/common/id-generator -I./src/common/gossip -I./src/common/gen-locks
-I./src/io/trove -I./src/io/bmi -I./src/io/description -I./src/io/buffer
-I./src/io/job -I./src/io/dev -I./src/proto -DPVFS2_VERSION="\"2.7.1\""
-D__STATIC_METHOD_BMI_TCP__ -DUSE_MMAP_RA_CACHE -pipe -Wall -Wstrict-prototypes
-I./src/server src/server/readdir.c > src/server/readdir.d
for i in pvfs2-utils.c devpvfs2-req.c pvfs2-cache.c dcache.c file.c inode.c
dir.c namei.c super.c pvfs2-mod.c pvfs2-bufmap.c symlink.c xattr.c acl.c
xattr-trusted.c xattr-default.c waitqueue.c pvfs2-proc.c pvfs2-kernel.h
pvfs2-dev-proto.h pvfs2-bufmap.h upcall.h downcall.h pvfs2-proc.h; do \
if [ ! -f $i -a ! -L $i ] ; then \
ln -s ../../.././src/kernel/linux-2.6/$i ;\
fi ;\
done
make -C /usr/src/linux
SUBDIRS=/var/tmp/portage/sys-cluster/pvfs2-2.7.1/work/pvfs-2.7.1/src/kernel/linux-2.6
modules
CC [M]
/var/tmp/portage/sys-cluster/pvfs2-2.7.1/work/pvfs-2.7.1/src/kernel/linux-2.6/pvfs2-utils.o
CC [M]
/var/tmp/portage/sys-cluster/pvfs2-2.7.1/work/pvfs-2.7.1/src/kernel/linux-2.6/devpvfs2-req.o
CC [M]
/var/tmp/portage/sys-cluster/pvfs2-2.7.1/work/pvfs-2.7.1/src/kernel/linux-2.6/pvfs2-cache.o
CC [M]
/var/tmp/portage/sys-cluster/pvfs2-2.7.1/work/pvfs-2.7.1/src/kernel/linux-2.6/dcache.o
CC [M]
/var/tmp/portage/sys-cluster/pvfs2-2.7.1/work/pvfs-2.7.1/src/kernel/linux-2.6/file.o
CC [M]
/var/tmp/portage/sys-cluster/pvfs2-2.7.1/work/pvfs-2.7.1/src/kernel/linux-2.6/inode.o
CC [M]
/var/tmp/portage/sys-cluster/pvfs2-2.7.1/work/pvfs-2.7.1/src/kernel/linux-2.6/dir.o
CC [M]
/var/tmp/portage/sys-cluster/pvfs2-2.7.1/work/pvfs-2.7.1/src/kernel/linux-2.6/namei.o
CC [M]
/var/tmp/portage/sys-cluster/pvfs2-2.7.1/work/pvfs-2.7.1/src/kernel/linux-2.6/super.o
CC [M]
/var/tmp/portage/sys-cluster/pvfs2-2.7.1/work/pvfs-2.7.1/src/kernel/linux-2.6/pvfs2-mod.o
CC [M]
/var/tmp/portage/sys-cluster/pvfs2-2.7.1/work/pvfs-2.7.1/src/kernel/linux-2.6/pvfs2-bufmap.o
CC [M]
/var/tmp/portage/sys-cluster/pvfs2-2.7.1/work/pvfs-2.7.1/src/kernel/linux-2.6/symlink.o
CC [M]
/var/tmp/portage/sys-cluster/pvfs2-2.7.1/work/pvfs-2.7.1/src/kernel/linux-2.6/xattr.o
CC [M]
/var/tmp/portage/sys-cluster/pvfs2-2.7.1/work/pvfs-2.7.1/src/kernel/linux-2.6/acl.o
CC [M]
/var/tmp/portage/sys-cluster/pvfs2-2.7.1/work/pvfs-2.7.1/src/kernel/linux-2.6/xattr-trusted.o
CC [M]
/var/tmp/portage/sys-cluster/pvfs2-2.7.1/work/pvfs-2.7.1/src/kernel/linux-2.6/xattr-default.o
CC [M]
/var/tmp/portage/sys-cluster/pvfs2-2.7.1/work/pvfs-2.7.1/src/kernel/linux-2.6/waitqueue.o
CC [M]
/var/tmp/portage/sys-cluster/pvfs2-2.7.1/work/pvfs-2.7.1/src/kernel/linux-2.6/pvfs2-proc.o
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `echo >/dev/null(cat /dev/null; echo
kernel//var/tmp/portage/sys-cluster/pvfs2-2.7.1/work/pvfs-2.7.1/src/kernel/linux-2.6/pvfs2.ko;)
>
/var/tmp/portage/sys-cluster/pvfs2-2.7.1/work/pvfs-2.7.1/src/kernel/linux-2.6/modules.order'
make[3]: ***
[/var/tmp/portage/sys-cluster/pvfs2-2.7.1/work/pvfs-2.7.1/src/kernel/linux-2.6/modules.order]
Fehler 2
make[3]: *** Warte auf noch nicht beendete Prozesse...
make[2]: ***
[_module_/var/tmp/portage/sys-cluster/pvfs2-2.7.1/work/pvfs-2.7.1/src/kernel/linux-2.6]
Fehler 2
make[1]: *** [default] Fehler 2
make: *** [just_kmod] Fehler 2
*
* ERROR: sys-cluster/pvfs2-2.7.1 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 3635: Called linux-mod_src_compile
* environment, line 2862: Called die
* The specific snippet of code:
* eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"
CC=\"$(get-KERNEL_CC)\"
LDFLAGS=\"$(get_abi_LDFLAGS)\"
${BUILD_FIXES} ${BUILD_PARAMS}
${BUILD_TARGETS} " || die
"Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)"
LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
* The die message:
* Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CC=i686-pc-linux-gnu-gcc
LDFLAGS= just_kmod
*
* If you need support, post the topmost build error, and the call stack if
relevant.
* A complete build log is located at
'/var/log/portage/sys-cluster:pvfs2-2.7.1:20080418-175926.log'.
* The ebuild environment file is located at
'/var/tmp/portage/sys-cluster/pvfs2-2.7.1/temp/environment'.
*
the problem is caused by the included Makefile.in
--snip--
ifeq ($(QUIET_COMPILE),1)
# say a one-line description of the action, do not echo the command
Q=@echo
E=@
else
# do not say the short Q lines, but do echo the entire command
Q=@echo >/dev/null
E=
endif
--snip--
here Q is defined and this causes the error, there was a change in the kernel
Makefile between 2.6.24 and 2.6.25 so that all pvfs ebuilds fail at this point.
setting Q=@ instead of Q=@echo >/dev/null fixes this error and all builds fine.
Reproducible: Always
Steps to Reproduce:
1. emerge gentoo-sources-2.6.25
2. emerge pvfs2
3. kernel module won't build
Actual Results:
kernel module isn't build
Expected Results:
kernel module should be build