[ofa-general] Error building OFED 1.2 sources
Rajouri Jammu
rajouri.jammu at gmail.com
Thu Aug 30 21:54:11 PDT 2007
Hi,
I would like to make some changes to the OFED-1.2 kernel source. In
order to make sure I'm doing the right thing I tried compiling the
original sources (without any changes)
the make is bailing out with an error (see below for the steps).
I'm building on stock Centos5 kernel.
Note that build.sh script worked but I would like to make changes to
the sources and make sure it compiles before following the
ofed_path.sh procedure.
Any help would be great.
This is what I did:
tar -zxvf OFED-1.2.tgz
rpm -ivh OFED-1.2/SRPM/ofa_kernel-1.2-0.src.rpm
This created the source tar ball in
/usr/src/redhat/SOURCES/
tar -zxvf /usr/src/redhat/SOURCES/ofa_kernel-1.2.tgz
cd /usr/src/redhat/SOURCES/ofa_kernel-1.2
./configure
make
The make immediatly bails out with the following error:
modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-8.1.8.el5-i686'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (
\
echo; \
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 /usr/src/redhat/SOURCES/ofa_kernel-1.2/.tmp_versions
Here is the full output of make
Building kernel modules
Kernel version: 2.6.18-8.1.8.el5
Modules directory: //lib/modules/2.6.18-8.1.8.el5/updates
Kernel sources: /lib/modules/2.6.18-8.1.8.el5/build
env EXTRA_CFLAGS=" -I/usr/src/redhat/SOURCES/ofa_kernel-1.2/include
-I/usr/src/redhat/SOURCES/ofa_kernel-1.2/drivers/infiniband/include \
-I/usr/src/redhat/SOURCES/ofa_kernel-1.2/drivers/infiniband/ulp/ipoib
\
-I/usr/src/redhat/SOURCES/ofa_kernel-1.2/drivers/infiniband/debug \
-I/usr/src/redhat/SOURCES/ofa_kernel-1.2/drivers/infiniband/hw/cxgb3/core
\
-I/usr/src/redhat/SOURCES/ofa_kernel-1.2/drivers/net/cxgb3 \
-I/usr/src/redhat/SOURCES/ofa_kernel-1.2/drivers/net/rds " \
make -C /lib/modules/2.6.18-8.1.8.el5/build
SUBDIRS="/usr/src/redhat/SOURCES/ofa_kernel-1.2"
KERNELRELEASE=2.6.18-8.1.8.el5 \
EXTRAVERSION=-8.1.8.el5 V=1 \
CONFIG_INFINIBAND= \
CONFIG_INFINIBAND_IPOIB= \
CONFIG_INFINIBAND_IPOIB_CM= \
CONFIG_INFINIBAND_SDP= \
CONFIG_INFINIBAND_SRP= \
CONFIG_INFINIBAND_USER_MAD= \
CONFIG_INFINIBAND_USER_ACCESS= \
CONFIG_INFINIBAND_ADDR_TRANS= \
CONFIG_INFINIBAND_MTHCA= \
CONFIG_INFINIBAND_IPOIB_DEBUG= \
CONFIG_INFINIBAND_ISER= \
CONFIG_SCSI_ISCSI_ATTRS= \
CONFIG_ISCSI_TCP= \
CONFIG_INFINIBAND_EHCA= \
CONFIG_INFINIBAND_EHCA_SCALING= \
CONFIG_RDS= \
CONFIG_RDS_IB= \
CONFIG_RDS_TCP= \
CONFIG_RDS_DEBUG= \
CONFIG_INFINIBAND_IPOIB_DEBUG_DATA= \
CONFIG_INFINIBAND_SDP_SEND_ZCOPY= \
CONFIG_INFINIBAND_SDP_RECV_ZCOPY= \
CONFIG_INFINIBAND_SDP_DEBUG= \
CONFIG_INFINIBAND_SDP_DEBUG_DATA= \
CONFIG_INFINIBAND_IPATH= \
CONFIG_INFINIBAND_MTHCA_DEBUG= \
CONFIG_INFINIBAND_MADEYE= \
CONFIG_INFINIBAND_VNIC= \
CONFIG_INFINIBAND_VNIC_DEBUG= \
CONFIG_INFINIBAND_VNIC_STATS= \
CONFIG_CHELSIO_T3= \
CONFIG_INFINIBAND_CXGB3= \
CONFIG_INFINIBAND_CXGB3_DEBUG= \
LINUXINCLUDE=' \
-I/usr/src/redhat/SOURCES/ofa_kernel-1.2/kernel_addons/backport/2.6.18_FC6/include/
\
-I/usr/src/redhat/SOURCES/ofa_kernel-1.2/include \
-I/usr/src/redhat/SOURCES/ofa_kernel-1.2/drivers/infiniband/include \
-Iinclude \
$(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include) \
-include include/linux/autoconf.h \
-include
/usr/src/redhat/SOURCES/ofa_kernel-1.2/include/linux/autoconf.h \
' \
modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-8.1.8.el5-i686'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (
\
echo; \
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 /usr/src/redhat/SOURCES/ofa_kernel-1.2/.tmp_versions
rm -f /usr/src/redhat/SOURCES/ofa_kernel-1.2/.tmp_versions/*
make -f scripts/Makefile.build obj=/usr/src/redhat/SOURCES/ofa_kernel-1.2
Building modules, stage 2.
make -rR -f /usr/src/kernels/2.6.18-8.1.8.el5-i686/scripts/Makefile.modpost
scripts/mod/modpost -m -a -i
/usr/src/kernels/2.6.18-8.1.8.el5-i686/Module.symvers -I
/usr/src/redhat/SOURCES/ofa_kernel-1.2/Module.symvers -o
/usr/src/redhat/SOURCES/ofa_kernel-1.2/Module.symvers
make[1]: Leaving directory `/usr/src/kernels/2.6.18-8.1.8.el5-i686'
More information about the general
mailing list