[ofa-general] librdmacm build failure

Steve Wise swise at opengridcomputing.com
Thu Mar 1 15:33:41 PST 2007


Does your configure.in need something this (cut from libibverbs
configure.in)?  I'm not a automake or configure whiz at all, so I'm just
guessing.  But libibverbs builds fine and it uses a version script
too...




if test $ac_cv_version_script = yes; then
    LIBIBVERBS_VERSION_SCRIPT='-Wl,--version-script=$(srcdir)/src/libibverbs.map'
else
    LIBIBVERBS_VERSION_SCRIPT=
fi


On Thu, 2007-03-01 at 17:00 -0600, Steve Wise wrote:
> On Thu, 2007-03-01 at 14:56 -0800, Sean Hefty wrote:
> > > gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -g -Wall -D_GNU_SOURCE -g -O2 -MT
> > > src_librdmacm_la-cma.lo -MD -MP -MF .deps/src_librdmacm_la-cma.Tpo -c
> > > src/cma.c  -fPIC -DPIC -o .libs/src_librdmacm_la-cma.o gcc -DHAVE_CONFIG_H
> > > -I. -I. -I. -I./include -g -Wall -D_GNU_SOURCE -g -O2 -MT
> > > src_librdmacm_la-cma.lo -MD -MP -MF .deps/src_librdmacm_la-cma.Tpo -c
> > > src/cma.c -o src_librdmacm_la-cma.o >/dev/null 2>&1 /bin/sh ./libtool
> > > --tag=CC --mode=link gcc -g -Wall -D_GNU_SOURCE -g -O2   -o src/librdmacm.la
> > > -rpath /usr/local/lib -version-info 1 -export-dynamic
> > > @LIBRDMACM_VERSION_SCRIPT@ src_librdmacm_la-cma.lo  -libverbs mkdir src/.libs
> > >  gcc -shared  .libs/src_librdmacm_la-cma.o  -libverbs
> > > @LIBRDMACM_VERSION_SCRIPT@ -Wl,-soname -Wl,librdmacm.so.1 -o
> > > src/.libs/librdmacm.so.1.0.0 gcc: @LIBRDMACM_VERSION_SCRIPT@: No such file or
> > > directory make[1]: *** [src/librdmacm.la] Error 1 make[1]: Leaving directory
> > > `/usr/local/src/git/librdmacm' make: *** [all] Error 2 
> > > vic14:/usr/local/src/git/librdmacm
> > 
> > I'm not seeing this on 2.6.18 or 2.6.21-rc1, ever after doing a fresh clone of 
> > librdmacm.  Did you rerun autogen and configure before make?
> > 
> yep.  It was fresh clone.  
> 
> distro=sles10
> kernel=2.6.21-rc2
> 
> vic14:/usr/local/src/git
> # git clone git://staging.openfabrics.org/~shefty/librdmacm
> Generating pack...
> Done counting 428 objects.
> Deltifying 428 objects.
>  100% (428/428) done
> Total 428 (delta 213), reused 329 (delta 159)
> vic14:/usr/local/src/git
> # cd librdmacm/
> vic14:/usr/local/src/git/librdmacm
> # ./autogen.sh && ./configure && make && make install
> + test -d ./config
> + mkdir ./config
> + aclocal -I config
> + libtoolize --force --copy
> Putting files in AC_CONFIG_AUX_DIR, `config'.
> + autoheader
> + automake --foreign --add-missing --copy
> configure.in: installing `config/install-sh'
> configure.in: installing `config/missing'
> Makefile.am: installing `config/compile'
> Makefile.am: installing `config/depcomp'
> + autoconf
> 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-suse-linux
> checking host system type... x86_64-suse-linux
> checking for style of include used by make... GNU
> 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... /usr/bin/sed
> checking for egrep... grep -E
> checking for ld used by gcc... /usr/x86_64-suse-linux/bin/ld
> checking if the linker (/usr/x86_64-suse-linux/bin/ld) is GNU ld... yes
> checking for /usr/x86_64-suse-linux/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 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 g77... no
> checking for f77... no
> checking for xlf... no
> checking for frt... no
> checking for pgf77... no
> checking for fort77... no
> checking for fl32... no
> checking for af77... no
> checking for f90... no
> checking for xlf90... no
> checking for pgf90... no
> checking for epcf90... no
> checking for f95... no
> checking for fort... no
> checking for xlf95... no
> checking for ifc... no
> checking for efc... no
> checking for pgf95... no
> checking for lf95... no
> checking for gfortran... gfortran
> checking whether we are using the GNU Fortran 77 compiler... yes
> checking whether gfortran 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 ar... ar
> checking for ranlib... ranlib
> 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/x86_64-suse-linux/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/x86_64-suse-linux/bin/ld -m elf_x86_64
> checking if the linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) is GNU ld... yes
> checking whether the g++ linker (/usr/x86_64-suse-linux/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/x86_64-suse-linux/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 gfortran option to produce PIC... -fPIC
> checking if gfortran PIC flag -fPIC works... yes
> checking if gfortran static flag -static works... yes
> checking if gfortran supports -c -o file.o... yes
> checking whether the gfortran linker (/usr/x86_64-suse-linux/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 gcc... (cached) 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 an ANSI C-conforming const... yes
> checking for long... yes
> checking size of long... 8
> checking for ibv_get_device_list in -libverbs... yes
> checking for ANSI C header files... (cached) yes
> checking infiniband/verbs.h usability... yes
> checking infiniband/verbs.h presence... yes
> checking for infiniband/verbs.h... yes
> checking whether ld accepts --version-script... yes
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating librdmacm.spec
> config.status: creating config.h
> config.status: executing depfiles commands
> make  all-am
> make[1]: Entering directory `/usr/local/src/git/librdmacm'
> if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include   -g -Wall -D_GNU_SOURCE -g -O2 -MT src_librdmacm_la-cma.lo -MD -MP -MF ".deps/src_librdmacm_la-cma.Tpo" -c -o src_librdmacm_la-cma.lo `test -f 'src/cma.c' || echo './'`src/cma.c; \
> then mv -f ".deps/src_librdmacm_la-cma.Tpo" ".deps/src_librdmacm_la-cma.Plo"; else rm -f ".deps/src_librdmacm_la-cma.Tpo"; exit 1; fi
> mkdir .libs
>  gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -g -Wall -D_GNU_SOURCE -g -O2 -MT src_librdmacm_la-cma.lo -MD -MP -MF .deps/src_librdmacm_la-cma.Tpo -c src/cma.c  -fPIC -DPIC -o .libs/src_librdmacm_la-cma.o
>  gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -g -Wall -D_GNU_SOURCE -g -O2 -MT src_librdmacm_la-cma.lo -MD -MP -MF .deps/src_librdmacm_la-cma.Tpo -c src/cma.c -o src_librdmacm_la-cma.o >/dev/null 2>&1
> /bin/sh ./libtool --tag=CC --mode=link gcc -g -Wall -D_GNU_SOURCE -g -O2   -o src/librdmacm.la -rpath /usr/local/lib -version-info 1 -export-dynamic @LIBRDMACM_VERSION_SCRIPT@ src_librdmacm_la-cma.lo  -libverbs
> mkdir src/.libs
> gcc -shared  .libs/src_librdmacm_la-cma.o  -libverbs  @LIBRDMACM_VERSION_SCRIPT@ -Wl,-soname -Wl,librdmacm.so.1 -o src/.libs/librdmacm.so.1.0.0
> gcc: @LIBRDMACM_VERSION_SCRIPT@: No such file or directory
> make[1]: *** [src/librdmacm.la] Error 1
> make[1]: Leaving directory `/usr/local/src/git/librdmacm'
> make: *** [all] Error 2
> vic14:/usr/local/src/git/librdmacm
> #
> 
> 
> _______________________________________________
> general mailing list
> general at lists.openfabrics.org
> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
> 
> To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general




More information about the general mailing list