Hi,
I am attempting to build MLNX on sles11sp3 as non-root. Here is what I did
/usr/bin/rpmbuild --rebuild --define 'build_kernel_ib 1' --define 'build_kernel_ib_devel 1' --define '__find_requires /home/BUILD/find-requires' --define '_topdir /home/BUILD' --target x86_64 --define 'KVERSION 3.0.101-0.35-default' --define 'K_SRC /home/BUILD/reused/usr/src/linux-3.0.101-0.35-obj/x86_64/default' --define '_release 3.0.101_0.35_default' --define 'configure_options --without-quilt --with-core-mod --with-ipoib-mod --with-user_mad-mod --with-user_access-mod --with-addr_trans-mod --with-mthca-mod --with-mlx4-mod --with-mlx4_en-mod --with-cxgb3-mod --with-nes-mod --with-qib-mod --with-mlx5-mod --with-cxgb4-mod --with-srp-mod' /home//BUILD/OFED/SRPMS/mlnx-ofa_kernel-2.3-OFED.2.3.1.0.0.1.g793fc5d.src.rpm
the build fails at 'make kernel'
make[1]: Entering directory `/home/minhdiep/git/lustre-hpdd/BUILD/reused/usr/src/linux-3.0.101-0.35-obj/x86_64/default'
make -C ../../../linux-3.0.101-0.35 O=/home/minhdiep/git/lustre-hpdd/BUILD/reused/usr/src/linux-3.0.101-0.35-obj/x86_64/default/. modules
CC [M] /home/minhdiep/git/lustre-hpdd/BUILD/BUILD/mlnx-ofa_kernel-2.3/obj/default/compat/main.o
In file included from /home/minhdiep/git/lustre-hpdd/BUILD/BUILD/mlnx-ofa_kernel-2.3/obj/default/include/linux/netdevice.h:4,
from /home/minhdiep/git/lustre-hpdd/BUILD/reused/usr/src/linux-3.0.101-0.35/include/net/inet_sock.h:24,
from /home/minhdiep/git/lustre-hpdd/BUILD/reused/usr/src/linux-3.0.101-0.35/include/net/ip.h:30,
from /home/minhdiep/git/lustre-hpdd/BUILD/BUILD/mlnx-ofa_kernel-2.3/obj/default/include/linux/compat-3.1.h:10,
from /home/minhdiep/git/lustre-hpdd/BUILD/BUILD/mlnx-ofa_kernel-2.3/obj/default/include/linux/compat-2.6.h:70,
from <command-line>:0:
After some digging, I found that in gen-compat-config.sh
if (grep -q dev_hw_addr_random ${KLIB_BUILD}/include/linux/etherdevice.h > /dev/null 2>&1 || grep -q dev_hw_addr_random /lib/modules/${KVERSION}/source/include/linux/etherdevice.h > /dev/null 2>&1); t hen
210 ▶·······set_config CONFIG_COMPAT_DEV_HW_ADDR_RANDOM y
211 fi
where KLIB_BUILD is KLIB_BUILD=${KSRC} and KSRC location's include does not have any header files. However, the kernel header files are in the kernel-source. Should KLIB_BUILD be configurable/set during ./configure?
Any suggest should be appreciated.
Thanks
-Minh