[ofa-general] OFED-1.3.1 fails on CentOS 5.0 in libmlx4
Vidvuds Ozolins
vidvuds at ucla.edu
Thu May 29 18:00:47 PDT 2008
Hi All,
When I try installing OFED-1.3.1 on CentOS 5.0 I get the following
error message:
Build libmlx4 RPM
Running rpmbuild --rebuild --define '_topdir /var/tmp/OFED_topdir' --
define 'dist ' --target x86_64 --define '_prefix /usr' --define
'_exec_prefix /usr' --define '_sysconfdir /etc' --define '_usr /usr' /
home/vidvuds/OFED-1.3.1-rc3/SRPMS/libmlx4-1.0-0.1.ofed20080421.src.rpm
Failed to build libmlx4 RPM
See /tmp/OFED.18735.logs/libmlx4.rpmbuild.log
Anyone knows what is going on? The contents of the logfile are:
[root at smithers OFED-1.3.1-rc3]# more /tmp/OFED.18735.logs/
libmlx4.rpmbuild.log
Running rpmbuild --rebuild --define '_topdir /var/tmp/OFED_topdir' --
define 'dist ' --target
x86_64 --define '_prefix /usr' --define '_exec_prefix /usr' --define
'_sysconfdir /etc' --de
fine '_usr /usr' /home/vidvuds/OFED-1.3.1-rc3/SRPMS/
libmlx4-1.0-0.1.ofed20080421.src.rpm
error: Macro %dist has empty body
error: Macro %dist has empty body
warning: user vlad does not exist - using root
warning: group vlad does not exist - using root
warning: user vlad does not exist - using root
warning: group vlad does not exist - using root
Installing /home/vidvuds/OFED-1.3.1-rc3/SRPMS/
libmlx4-1.0-0.1.ofed20080421.src.rpm
Building target platforms: x86_64
Building for target x86_64
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.87202
+ umask 022
+ cd /var/tmp/OFED_topdir/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /var/tmp/OFED_topdir/BUILD
+ rm -rf libmlx4-1.0
+ /bin/gzip -dc /var/tmp/OFED_topdir/SOURCES/
libmlx4-1.0-0.1.ofed20080421.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd libmlx4-1.0
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.87202
+ umask 022
+ cd /var/tmp/OFED_topdir/BUILD
+ cd libmlx4-1.0
+ LANG=C
+ export LANG
+ unset DISPLAY
+ CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -
fstack-protector --param=s
sp-buffer-size=4 -m64 -mtune=generic'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -
fstack-protector --param
=ssp-buffer-size=4 -m64 -mtune=generic'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -
fstack-protector --param=s
sp-buffer-size=4 -m64 -mtune=generic'
+ export FFLAGS
++ find . -name config.guess -o -name config.sub
+ for i in '$(find . -name config.guess -o -name config.sub)'
++ basename ./config/config.sub
+ '[' -f /usr/lib/rpm/redhat/config.sub ']'
+ /bin/rm -f ./config/config.sub
++ basename ./config/config.sub
+ /bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config/config.sub
`/usr/lib/rpm/redhat/config.sub' -> `./config/config.sub'
+ for i in '$(find . -name config.guess -o -name config.sub)'
++ basename ./config/config.guess
+ '[' -f /usr/lib/rpm/redhat/config.guess ']'
+ /bin/rm -f ./config/config.guess
++ basename ./config/config.guess
+ /bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config/config.guess
`/usr/lib/rpm/redhat/config.guess' -> `./config/config.guess'
+ ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-
linux-gnu --target=x86_64-
redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --
bindir=/usr/bin --sbind
ir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/
include --libdir=/usr/l
ib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/
usr/com --mandir=/usr/s
hare/man --infodir=/usr/share/info
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-redhat-linux-gnu
checking host system type... x86_64-redhat-linux-gnu
checking for style of include used by make... GNU
checking for x86_64-redhat-linux-gnu-gcc... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for x86_64-redhat-linux-gnu-g++... no
checking for x86_64-redhat-linux-gnu-c++... no
checking for x86_64-redhat-linux-gnu-gpp... no
checking for x86_64-redhat-linux-gnu-aCC... no
checking for x86_64-redhat-linux-gnu-CC... no
checking for x86_64-redhat-linux-gnu-cxx... no
checking for x86_64-redhat-linux-gnu-cc++... no
checking for x86_64-redhat-linux-gnu-cl... no
checking for x86_64-redhat-linux-gnu-FCC... no
checking for x86_64-redhat-linux-gnu-KCC... no
checking for x86_64-redhat-linux-gnu-RCC... no
checking for x86_64-redhat-linux-gnu-xlC_r... no
checking for x86_64-redhat-linux-gnu-xlC... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for x86_64-redhat-linux-gnu-g77... no
checking for x86_64-redhat-linux-gnu-f77... no
checking for x86_64-redhat-linux-gnu-xlf... no
checking for x86_64-redhat-linux-gnu-frt... no
checking for x86_64-redhat-linux-gnu-pgf77... no
checking for x86_64-redhat-linux-gnu-fort77... no
checking for x86_64-redhat-linux-gnu-fl32... no
checking for x86_64-redhat-linux-gnu-af77... no
checking for x86_64-redhat-linux-gnu-f90... no
checking for x86_64-redhat-linux-gnu-xlf90... no
checking for x86_64-redhat-linux-gnu-pgf90... no
checking for x86_64-redhat-linux-gnu-epcf90... no
checking for x86_64-redhat-linux-gnu-f95... no
checking for x86_64-redhat-linux-gnu-fort... no
checking for x86_64-redhat-linux-gnu-xlf95... no
checking for x86_64-redhat-linux-gnu-ifc... no
checking for x86_64-redhat-linux-gnu-efc... no
checking for x86_64-redhat-linux-gnu-pgf95... no
checking for x86_64-redhat-linux-gnu-lf95... no
checking for x86_64-redhat-linux-gnu-gfortran... no
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... no
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for x86_64-redhat-linux-gnu-ar... no
checking for ar... ar
checking for x86_64-redhat-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for x86_64-redhat-linux-gnu-strip... no
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports
shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports
shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports
shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... no
checking if g77 static flag -static works... no
checking if g77 supports -c -o file.o... no
checking whether the g77 linker (/usr/bin/ld -m elf_x86_64) supports
shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for x86_64-redhat-linux-gnu-gcc... gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for ibv_get_device_list in -libverbs... yes
checking infiniband/driver.h usability... yes
checking infiniband/driver.h presence... yes
checking for infiniband/driver.h... yes
checking for ANSI C header files... (cached) yes
checking valgrind/memcheck.h usability... yes
checking valgrind/memcheck.h presence... yes
checking for valgrind/memcheck.h... yes
checking for an ANSI C-conforming const... yes
checking for long... yes
checking size of long... 8
checking for struct ibv_context.xrc_ops... no
checking for ibv_read_sysfs_file... yes
checking for ibv_dontfork_range... yes
checking for ibv_dofork_range... yes
checking for ibv_register_driver... yes
checking whether ld accepts --version-script... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libmlx4.spec
config.status: creating config.h
config.status: executing depfiles commands
+ make -j8
make all-am
make[1]: Entering directory `/var/tmp/OFED_topdir/BUILD/libmlx4-1.0'
if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -
I. -I. -g -Wall -D_G
NU_SOURCE -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -
fstack-protector --param=s
sp-buffer-size=4 -m64 -mtune=generic -MT buf.lo -MD -MP -MF ".deps/
buf.Tpo" -c -o buf.lo `tes
t -f 'src/buf.c' || echo './'`src/buf.c; \
then mv -f ".deps/buf.Tpo" ".deps/buf.Plo"; else rm -f ".deps/
buf.Tpo"; exit 1; fi
if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -
I. -I. -g -Wall -D_G
NU_SOURCE -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -
fstack-protector --param=s
sp-buffer-size=4 -m64 -mtune=generic -MT cq.lo -MD -MP -MF ".deps/
cq.Tpo" -c -o cq.lo `test -
f 'src/cq.c' || echo './'`src/cq.c; \
then mv -f ".deps/cq.Tpo" ".deps/cq.Plo"; else rm -f ".deps/cq.Tpo";
exit 1; fi
if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -
I. -I. -g -Wall -D_G
NU_SOURCE -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -
fstack-protector --param=s
sp-buffer-size=4 -m64 -mtune=generic -MT dbrec.lo -MD -MP -MF ".deps/
dbrec.Tpo" -c -o dbrec.l
o `test -f 'src/dbrec.c' || echo './'`src/dbrec.c; \
then mv -f ".deps/dbrec.Tpo" ".deps/dbrec.Plo"; else rm -f ".deps/
dbrec.Tpo"; exit 1;
fi
if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -
I. -I. -g -Wall -D_G
NU_SOURCE -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -
fstack-protector --param=s
sp-buffer-size=4 -m64 -mtune=generic -MT mlx4.lo -MD -MP -MF ".deps/
mlx4.Tpo" -c -o mlx4.lo `
test -f 'src/mlx4.c' || echo './'`src/mlx4.c; \
then mv -f ".deps/mlx4.Tpo" ".deps/mlx4.Plo"; else rm -f ".deps/
mlx4.Tpo"; exit 1; fi
if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -
I. -I. -g -Wall -D_G
NU_SOURCE -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -
fstack-protector --param=s
sp-buffer-size=4 -m64 -mtune=generic -MT qp.lo -MD -MP -MF ".deps/
qp.Tpo" -c -o qp.lo `test -
f 'src/qp.c' || echo './'`src/qp.c; \
then mv -f ".deps/qp.Tpo" ".deps/qp.Plo"; else rm -f ".deps/qp.Tpo";
exit 1; fi
if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -
I. -I. -g -Wall -D_G
NU_SOURCE -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -
fstack-protector --param=s
sp-buffer-size=4 -m64 -mtune=generic -MT srq.lo -MD -MP -MF ".deps/
srq.Tpo" -c -o srq.lo `tes
t -f 'src/srq.c' || echo './'`src/srq.c; \
then mv -f ".deps/srq.Tpo" ".deps/srq.Plo"; else rm -f ".deps/
srq.Tpo"; exit 1; fi
if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -
I. -I. -g -Wall -D_G
NU_SOURCE -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -
fstack-protector --param=s
sp-buffer-size=4 -m64 -mtune=generic -MT verbs.lo -MD -MP -MF ".deps/
verbs.Tpo" -c -o verbs.l
o `test -f 'src/verbs.c' || echo './'`src/verbs.c; \
then mv -f ".deps/verbs.Tpo" ".deps/verbs.Plo"; else rm -f ".deps/
verbs.Tpo"; exit 1;
fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -Wall -D_GNU_SOURCE -O2 -g -pipe -
Wall -Wp,-D_FORTIFY_SOU
RCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -
mtune=generic -MT dbrec.
lo -MD -MP -MF .deps/dbrec.Tpo -c src/dbrec.c -fPIC -DPIC -o .libs/
dbrec.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -Wall -D_GNU_SOURCE -O2 -g -pipe -
Wall -Wp,-D_FORTIFY_SOU
RCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -
mtune=generic -MT buf.lo
-MD -MP -MF .deps/buf.Tpo -c src/buf.c -fPIC -DPIC -o .libs/buf.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -Wall -D_GNU_SOURCE -O2 -g -pipe -
Wall -Wp,-D_FORTIFY_SOU
RCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -
mtune=generic -MT mlx4.l
o -MD -MP -MF .deps/mlx4.Tpo -c src/mlx4.c -fPIC -DPIC -o .libs/mlx4.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -Wall -D_GNU_SOURCE -O2 -g -pipe -
Wall -Wp,-D_FORTIFY_SOU
RCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -
mtune=generic -MT srq.lo
-MD -MP -MF .deps/srq.Tpo -c src/srq.c -fPIC -DPIC -o .libs/srq.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -Wall -D_GNU_SOURCE -O2 -g -pipe -
Wall -Wp,-D_FORTIFY_SOU
RCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -
mtune=generic -MT cq.lo
-MD -MP -MF .deps/cq.Tpo -c src/cq.c -fPIC -DPIC -o .libs/cq.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -Wall -D_GNU_SOURCE -O2 -g -pipe -
Wall -Wp,-D_FORTIFY_SOU
RCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -
mtune=generic -MT qp.lo
-MD -MP -MF .deps/qp.Tpo -c src/qp.c -fPIC -DPIC -o .libs/qp.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -Wall -D_GNU_SOURCE -O2 -g -pipe -
Wall -Wp,-D_FORTIFY_SOU
RCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -
mtune=generic -MT verbs.
lo -MD -MP -MF .deps/verbs.Tpo -c src/verbs.c -fPIC -DPIC -o .libs/
verbs.o
In file included from src/buf.c:39:
src/mlx4.h:282: error: field 'ibv_xrcd' has incomplete type
make[1]: *** [buf.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from src/dbrec.c:42:
src/mlx4.h:282: error: field 'ibv_xrcd' has incomplete type
make[1]: *** [dbrec.lo] Error 1
In file included from src/srq.c:42:
src/mlx4.h:282: error: field 'ibv_xrcd' has incomplete type
make[1]: *** [srq.lo] Error 1
In file included from src/cq.c:47:
src/mlx4.h:282: error: field 'ibv_xrcd' has incomplete type
In file included from src/mlx4.c:49:
src/mlx4.h:282: error: field 'ibv_xrcd' has incomplete type
In file included from src/qp.c:44:
src/mlx4.h:282: error: field 'ibv_xrcd' has incomplete type
src/cq.c: In function 'mlx4_cq_clean':
src/cq.c:408: error: 'struct ibv_srq' has no member named 'xrc_cq'
src/qp.c: In function 'mlx4_post_send':
src/qp.c:244: error: 'IBV_QPT_XRC' undeclared (first use in this
function)
src/qp.c:244: error: (Each undeclared identifier is reported only once
src/qp.c:244: error: for each function it appears in.)
src/qp.c:245: error: 'struct ibv_send_wr' has no member named
'xrc_remote_srq_num'
make[1]: *** [cq.lo] Error 1
make[1]: *** [mlx4.lo] Error 1
src/qp.c: In function 'mlx4_calc_sq_wqe_size':
src/qp.c:547: error: 'IBV_QPT_XRC' undeclared (first use in this
function)
src/qp.c: In function 'mlx4_set_sq_sizes':
src/qp.c:636: error: 'IBV_QPT_XRC' undeclared (first use in this
function)
make[1]: *** [qp.lo] Error 1
In file included from src/verbs.c:44:
src/mlx4.h:282: error: field 'ibv_xrcd' has incomplete type
src/verbs.c: In function 'mlx4_destroy_srq':
src/verbs.c:329: error: 'struct ibv_srq' has no member named 'xrc_cq'
src/verbs.c:331: error: 'struct ibv_srq' has no member named 'xrc_cq'
src/verbs.c:340: error: 'struct ibv_srq' has no member named 'xrc_cq'
src/verbs.c: In function 'mlx4_create_qp':
src/verbs.c:388: error: 'IBV_QPT_XRC' undeclared (first use in this
function)
src/verbs.c:388: error: (Each undeclared identifier is reported only
once
src/verbs.c:388: error: for each function it appears in.)
src/verbs.c: In function 'mlx4_modify_qp':
src/verbs.c:517: error: 'IBV_QPT_XRC' undeclared (first use in this
function)
src/verbs.c: In function 'mlx4_destroy_qp':
src/verbs.c:579: error: 'IBV_QPT_XRC' undeclared (first use in this
function)
make[1]: *** [verbs.lo] Error 1
make[1]: Leaving directory `/var/tmp/OFED_topdir/BUILD/libmlx4-1.0'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.87202 (%build)
RPM build errors:
Macro %dist has empty body
Macro %dist has empty body
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.87202 (%build)
Thanks,
Vidvuds
Vidvuds Ozolins
Dept. of Materials Science and Engineering
University of California, Los Angeles
3121E Engineering V
P.O. Box 951595
Los Angeles, CA 90095-1595
Office: (310) 267-5538
E-mail: vidvuds at ucla.edu
More information about the general
mailing list