[ewg] Installation problems of OFED-1.5.2

Tanin fanqielee at gmail.com
Tue Feb 22 19:12:28 PST 2011


 Dear all,

I have recompiled the kernel to 2.6.18, and try to install  OFED-1.5.2
instead.

Now the kernel version is

[litan at tera04 OFED-1.5.2]$ uname -a
Linux tera04.ultralight.org 2.6.18-prep #1 SMP Tue Feb 22 18:51:00 EST 2011
x86_64 x86_64 x86_64 GNU/Linux

But I still get lots of redefinition errors as follows:

Build ofa_kernel RPM
Running rpmbuild --rebuild  --define '_topdir /var/tmp//OFED_topdir'
--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
--with-ipoib-mod --with-sdp-mod --with-srp-mod --with-rds-mod' --define
'build_kernel_ib 1' --define 'build_kernel_ib_devel 1' --define 'KVERSION
2.6.18-prep' --define 'K_SRC /lib/modules/2.6.18-prep/build' --define
'network_dir /etc/sysconfig/network-scripts' --define '_prefix /usr'
--define '__arch_install_post %{nil}'
/atlas/data18a/litan/OFED-1.5.3-rc5/SRPMS/ofa_kernel-1.5.3-OFED.1.5.3.rc5.src.rpm


Failed to build ofa_kernel RPM
See /tmp/OFED.22046.logs/ofa_kernel.rpmbuild.log

the file /tmp/OFED.22046.logs/ofa_kernel.rpmbuild.log
:

-I/usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.x86_64/arch//include \
-include /lib/modules/2.6.18-prep/build/include/linux/autoconf.h \
  -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
-fno-common -Wstrict-prototypes -Wundef
-Werror-implicit-function-declaration -fno-delete-null-pointer-checks
-fwrapv -Os  -mtune=generic -m64 -mno-red-zone -mcmodel=kernel -pipe
-fno-reorder-blocks -Wno-sign-compare -fno-asynchronous-unwind-tables
-funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fomit-frame-pointer
-g  -fno-stack-protector -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/OFED_topdir/BUILD/ofa_kernel-1.5.2/drivers/infiniband/core/.tmp_addr.o
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.5.2/drivers/infiniband/core/addr.c
In file included from include/linux/list.h:6,
                 from include/linux/mutex.h:13,
                 from
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.5.2/drivers/infiniband/core/addr.c:36:
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.5.2/kernel_addons/backport/2.6.18/include/linux/stddef.h:9:
error: redeclaration of enumerator 'false'
include/linux/stddef.h:16: error: previous definition of 'false' was here
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.5.2/kernel_addons/backport/2.6.18/include/linux/stddef.h:11:
error: redeclaration of enumerator 'true'
include/linux/stddef.h:18: error: previous definition of 'true' was here
In file included from include/linux/prefetch.h:13,
                 from include/linux/list.h:8,
                 from include/linux/mutex.h:13,
                 from
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.5.2/drivers/infiniband/core/addr.c:36:
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.5.2/kernel_addons/backport/2.6.18/include/linux/types.h:6:
error: redefinition of typedef 'bool'
include/linux/types.h:36: error: previous declaration of 'bool' was here
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.5.2/kernel_addons/backport/2.6.18/include/linux/types.h:7:
error: redefinition of typedef '__sum16'
include/linux/types.h:180: error: previous declaration of '__sum16' was here
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.5.2/kernel_addons/backport/2.6.18/include/linux/types.h:8:
error: redefinition of typedef '__wsum'
include/linux/types.h:181: error: previous declaration of '__wsum' was here


I have the full log file in the attachment. Dose it related to that I try
many times to install different version of OFED? Thanks a million!



-- 
Best regards,

-----------------------------------------------------------------------------------------------
Li, Tan
PhD Candidate & Research Assistant,
Electrical Engineering,
Stony Brook University, NY

Personal Web Site: https://sites.google.com/site/homepagelitan/Home

Email: fanqielee at gmail.com




-- 
Best regards,

-----------------------------------------------------------------------------------------------
Li, Tan
PhD Candidate & Research Assistant,
Electrical Engineering,
Stony Brook University, NY

Personal Web Site: https://sites.google.com/site/homepagelitan/Home

Email: fanqielee at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ewg/attachments/20110222/1c781c9e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ofa_kernel.rpmbuild.log
Type: application/octet-stream
Size: 1048175 bytes
Desc: not available
URL: <http://lists.openfabrics.org/pipermail/ewg/attachments/20110222/1c781c9e/attachment.obj>


More information about the ewg mailing list