[ofa-general] error building ofa_kernel RPMs
David Rioja
rams at englobe-tec.com
Wed Dec 3 09:58:06 PST 2008
Dear all,
I've tried to build OFED 1.2.5 in my server with fedora core 9. First I
had a problem while building ofa_user RPMs but this got solved by
installing zlib-static package. I think I have all the rest of
dependencies installed, both x68_64 and i386 versions.
Now the error comes in the next step: building ofa_kernel RPMs. Here I
paste the echoes:
***
Building InfiniBand Software RPMs. Please wait...
Building ofa_user RPMs. Please wait...
Running rpmbuild --rebuild --define '_topdir /var/tmp/OFEDRPM' --define
'_prefix /usr' --define 'build_root /var/tmp/OFED' --define
'configure_options --with-libcxgb3 --with-libibcm --with-libibverbs
--with-libmlx4 --with-libmthca --with-librdmacm --with-mstflint
--with-perftest --sysconfdir=/etc --mandir=/usr/share/man' --define
'configure_options32 --with-libcxgb3 --with-libibcm --with-libibverbs
--with-libmlx4 --with-libmthca --with-librdmacm --sysconfdir=/etc
--mandir=/usr/share/man' --define 'build_32bit 1' --define '_mandir
/usr/share/man'
/root/InfiniBand/OFED-1.2.5.5/SRPMS/ofa_user-1.2.5.5-0.src.rpm
Building ofa_kernel RPMs. Please wait...
Running rpmbuild --rebuild --define '_topdir /var/tmp/OFEDRPM' --define
'_prefix /usr' --define 'build_root /var/tmp/OFED' --define
'configure_options --with-cxgb3-mod --with-ipoib-mod --with-mthca-mod
--with-core-mod --with-user_mad-mod --with-user_access-mod
--with-addr_trans-mod --with-mlx4-mod ' --define 'KVERSION
2.6.25-14.fc9.x86_64' --define 'KSRC
/lib/modules/2.6.25-14.fc9.x86_64/build' --define 'build_kernel_ib 1'
--define 'build_kernel_ib_devel 1' --define 'NETWORK_CONF_DIR
/etc/sysconfig/network-scripts' --define 'modprobe_update 1' --define
'include_ipoib_conf 1'
/root/InfiniBand/OFED-1.2.5.5/SRPMS/ofa_kernel-1.2.5.5-0.src.rpm
-
ERROR: Failed executing "rpmbuild --rebuild --define '_topdir
/var/tmp/OFEDRPM' --define '_prefix /usr' --define 'build_root
/var/tmp/OFED' --define 'configure_options --with-cxgb3-mod
--with-ipoib-mod --with-mthca-mod --with-core-mod --with-user_mad-mod
--with-user_access-mod --with-addr_trans-mod --with-mlx4-mod ' --define
'KVERSION 2.6.25-14.fc9.x86_64' --define 'KSRC
/lib/modules/2.6.25-14.fc9.x86_64/build' --define 'build_kernel_ib 1'
--define 'build_kernel_ib_devel 1' --define 'NETWORK_CONF_DIR
/etc/sysconfig/network-scripts' --define 'modprobe_update 1' --define
'include_ipoib_conf 1'
/root/InfiniBand/OFED-1.2.5.5/SRPMS/ofa_kernel-1.2.5.5-0.src.rpm"
See log file: /tmp/OFED.build.32431.log
***
The tail of /tmp/OFED.build.32431.log is as follows:
***
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
mkdir -p /var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.5/.tmp_versions ; rm -f
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.5/.tmp_versions/*
make -f scripts/Makefile.build obj=/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.5
make -f scripts/Makefile.build
obj=/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.5/drivers/infiniband
make -f scripts/Makefile.build
obj=/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.5/drivers/infiniband/core
gcc
-Wp,-MD,/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.5/drivers/infiniband/core/.addr.o.d
-nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.3.0/include
-D__KERNEL__ \
\
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.5/include \
-I/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.5/drivers/infiniband/include \
-Iinclude \
\
-include include/linux/autoconf.h \
-include
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.5/include/linux/autoconf.h \
-Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
-fno-common -Werror-implicit-function-declaration -Os
-fno-stack-protector -m64 -mtune=generic -mno-red-zone -mcmodel=kernel
-funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1
-DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare
-fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow
-fno-omit-frame-pointer -fno-optimize-sibling-calls -g
-Wdeclaration-after-statement -Wno-pointer-sign -DMODULE
-D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(addr)"
-D"KBUILD_MODNAME=KBUILD_STR(ib_addr)" -c -o
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.5/drivers/infiniband/core/addr.o
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.5/drivers/infiniband/core/addr.c
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.5/drivers/infiniband/core/addr.c:
In function ‘rdma_translate_ip’:
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.5/drivers/infiniband/core/addr.c:113:
warning: passing argument 1 of ‘ip_dev_find’ makes pointer from integer
without a cast
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.5/drivers/infiniband/core/addr.c:113:
error: too few arguments to function ‘ip_dev_find’
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.5/drivers/infiniband/core/addr.c:
In function ‘addr_send_arp’:
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.5/drivers/infiniband/core/addr.c:161:
warning: passing argument 1 of ‘ip_route_output_key’ from incompatible
pointer type
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.5/drivers/infiniband/core/addr.c:161:
warning: passing argument 2 of ‘ip_route_output_key’ from incompatible
pointer type
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.5/drivers/infiniband/core/addr.c:161:
error: too few arguments to function ‘ip_route_output_key’
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.5/drivers/infiniband/core/addr.c:
In function ‘addr_resolve_remote’:
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.5/drivers/infiniband/core/addr.c:182:
warning: passing argument 1 of ‘ip_route_output_key’ from incompatible
pointer type
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.5/drivers/infiniband/core/addr.c:182:
warning: passing argument 2 of ‘ip_route_output_key’ from incompatible
pointer type
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.5/drivers/infiniband/core/addr.c:182:
error: too few arguments to function ‘ip_route_output_key’
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.5/drivers/infiniband/core/addr.c:
In function ‘addr_resolve_local’:
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.5/drivers/infiniband/core/addr.c:264:
warning: passing argument 1 of ‘ip_dev_find’ makes pointer from integer
without a cast
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.5/drivers/infiniband/core/addr.c:264:
error: too few arguments to function ‘ip_dev_find’
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.5/drivers/infiniband/core/addr.c:268:
error: implicit declaration of function ‘ZERONET’
/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.5/drivers/infiniband/core/addr.c:272:
error: implicit declaration of function ‘LOOPBACK’
make[4]: ***
[/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.5/drivers/infiniband/core/addr.o]
Error 1
make[3]: ***
[/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.5/drivers/infiniband/core] Error 2
make[2]: ***
[/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.5/drivers/infiniband] Error 2
make[1]: *** [_module_/var/tmp/OFEDRPM/BUILD/ofa_kernel-1.2.5.5] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.25-14.fc9.x86_64'
make: *** [kernel] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.62604 (%install)
RPM build errors:
user vlad does not exist - using root
group vlad does not exist - using root
user vlad does not exist - using root
group vlad does not exist - using root
Bad exit status from /var/tmp/rpm-tmp.62604 (%install)
ERROR: Failed executing "rpmbuild --rebuild --define '_topdir
/var/tmp/OFEDRPM' --define '_prefix /usr' --define 'build_root
/var/tmp/OFED' --define 'configure_options --with-cxgb3-mod
--with-ipoib-mod --with-mthca-mod --with-core-mod --with-user_mad-mod
--with-user_access-mod --with-addr_trans-mod --with-mlx4-mod ' --define
'KVERSION 2.6.25-14.fc9.x86_64' --define 'KSRC
/lib/modules/2.6.25-14.fc9.x86_64/build' --define 'build_kernel_ib 1'
--define 'build_kernel_ib_devel 1' --define 'NETWORK_CONF_DIR
/etc/sysconfig/network-scripts' --define 'modprobe_update 1' --define
'include_ipoib_conf 1'
/root/InfiniBand/OFED-1.2.5.5/SRPMS/ofa_kernel-1.2.5.5-0.src.rpm"
***
My kernel version is 2.6.25-14.fc9.x86_64. Is this supported? If yes,
has anyone idea of what can be going wrong?
Thank you in advance,
David
More information about the general
mailing list