[ewg] ofed 1.5.1 with kernel 2.6.32.27

Dark Charlot jcldc13 at gmail.com
Thu Jan 13 23:56:34 PST 2011


 Dear experts,

 First I don't know if I am posting in the right mailing list, if not,
please apologize and let me know.

Here is my problem:
I am running a mandriva cluster ( Mandriva 2010.0 kernel 2.6.31.12), with a
bunch of mellanox cards. I struggled during one week but finally I was able
to install OFED 1.5.1 on my running kernel  2.6.31.12 (linux kernel provided
by the mandriva distribution) and now it works very well and fast !

Recently I upgraded a part of my cluster with the latest stable kernel
2.6.32.27 downloaded from http://www.kernel.org.

So far, I am not able to build the ofa_kernel from OFED 1.5.1 package for
the kernel 2.6.32.27.

When I tried to rebuild the RPM, it stops with the following message :

-------------------------------------------------------------------------------------------------------------------------------------------------
rpm -ivh ofa_kernel-1.5.1-OFED.1.5.1..src.rpm

cd rpmbuild/SPECS

rpmbuild -vv -bb ofa_kernel.spec --define 'configure_options --with-core-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 ' --define 'build_kernel_ib 1' --define
'build_kernel_ib_devel 1' --define 'KVERSION 2.6.32.27' --define 'K_SRC
/net/direct/rhdata/jcl/linux-2.6.32.27' --define 'network_dir
/etc/sysconfig/network-scripts' --define '_prefix /usr' --define
'__arch_install_post %{nil}'
....
....
....
Installing kernel modules
make -C /net/direct/rhdata/jcl/linux-2.6.32.27
SUBDIRS="/root/rpmbuild/BUILD/ofa_kernel-1.5.1" \
                INSTALL_MOD_PATH=/root/rpmbuild/BUILD/ofa_kernel-1.5.1 \
                 modules_install;
make[1]: Entering directory `/net/direct/rhdata/jcl/linux-2.6.32.27'
  INSTALL
/root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/infiniband/core/ib_addr.ko
  INSTALL
/root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/infiniband/core/ib_cm.ko
  INSTALL
/root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/infiniband/core/ib_core.ko
  INSTALL
/root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/infiniband/core/ib_mad.ko
  INSTALL
/root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/infiniband/core/ib_sa.ko
  INSTALL
/root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/infiniband/core/ib_ucm.ko
  INSTALL
/root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/infiniband/core/ib_umad.ko
  INSTALL
/root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/infiniband/core/ib_uverbs.ko
  INSTALL
/root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/infiniband/core/iw_cm.ko
  INSTALL
/root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/infiniband/core/rdma_cm.ko
  INSTALL
/root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/infiniband/core/rdma_ucm.ko
  INSTALL
/root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/infiniband/hw/cxgb3/iw_cxgb3.ko
  INSTALL
/root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/infiniband/hw/mlx4/mlx4_ib.ko
  INSTALL
/root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/infiniband/hw/mthca/ib_mthca.ko
  INSTALL
/root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/infiniband/hw/nes/iw_nes.ko
  INSTALL /root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/net/cxgb3/cxgb3.ko
  INSTALL
/root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/net/mlx4/mlx4_core.ko
  INSTALL /root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/net/mlx4/mlx4_en.ko
  DEPMOD  2.6.32.27
WARNING: /root/rpmbuild/BUILD/ofa_kernel-1.5.1/lib/modules/
2.6.32.27/extra/drivers/infiniband/core/ib_addr.ko needs unknown symbol
ipv6_dev_get_saddr
WARNING: /root/rpmbuild/BUILD/ofa_kernel-1.5.1/lib/modules/
2.6.32.27/extra/drivers/infiniband/core/ib_addr.ko needs unknown symbol
ip6_route_output
WARNING: /root/rpmbuild/BUILD/ofa_kernel-1.5.1/lib/modules/
2.6.32.27/extra/drivers/infiniband/core/ib_addr.ko needs unknown symbol
ipv6_chk_addr
WARNING: /root/rpmbuild/BUILD/ofa_kernel-1.5.1/lib/modules/
2.6.32.27/extra/drivers/infiniband/hw/nes/iw_nes.ko needs unknown symbol
crc32c
make[1]: *** [_emodinst_post] Error 1
make[1]: Leaving directory `/net/direct/rhdata/jcl/linux-2.6.32.27'
make: *** [install_modules] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.Shec49 (%install)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.Shec49 (%install)

-------------------------------------------------------------------------------------------------------------------------------------------------

 According to the output, there are some unresolved symbols which I don't
understand.... It looks like I get this unresolved symbols, **only** if I am
using a linux kernel that I manually compiled. If I used a kernel provided
by my distribution, these unresolved symbols vanished....
What I am doing wrong ? Is there specifics options to set when we compile
the linux kernel from sources ?

 Thanks in advance for your help.

   Jean-Charles.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ewg/attachments/20110114/39ecc107/attachment.html>


More information about the ewg mailing list