[openib-general] problem building user libs with build_ofa_user.sh

Steve WIse swise at opengridcomputing.com
Tue Jan 16 06:19:34 PST 2007


On Tue, 2007-01-16 at 11:04 +0200, Michael S. Tsirkin wrote:
> > Quoting Steve WIse <swise at opengridcomputing.com>:
> > Subject: problem building user libs with build_ofa_user.sh
> > 
> > Vlad, 
> > 
> > I'm trying to build the ofed 1.2 user package on sles9sp3 using
> > ofabuild/build_ofa_user.sh and running into problems configuring
> > libmthca and others.  The config of libmthca fails first, with the
> > config.log showing this error:
> > 
> > configure:20907: gcc -o conftest -g -O2 -I../libibverbs/include -L. conftest.c -libverbs  >&5
> > ./libibverbs.a: file not recognized: File truncated
> > collect2: ld returned 1 exit status
> > configure:20910: $? = 1
> > configure: program exited with status 1
> > configure: failed program was:
> > 
> > 
> > I _think_ it is because build_ofa_user.sh creates an empty libibverbs.a
> > file for some reason, and the sles9sp3 gcc isn't liking it...
> 
> We create it just so that configure passes.
> This is weird - works fine for us on same system.
> gcc should not even look at that file since all symbols are resolved.
> What does gcc --version report?
> 

vic11:~ # gcc --version
gcc (GCC) 3.3.3 (SuSE Linux)


> > >From build_ofa_user.sh:
> > 
> >                 echo "Running: $ENV ./configure --cache-file=${CACHEFILE} --disable-libcheck CPPFLAGS=\"-I../libibverbs/include\" LDFLAGS=\"-L.\""
> >                 echo > libibverbs.a
> >                 if ! ( $ENV ./configure  --cache-file=${CACHEFILE} --disable-libcheck CPPFLAGS="-I../libibverbs/include" LDFLAGS="-L." > ${conflog}.${dir} 2>&1 )
> >                 then
> >                         echo "Failed to execute (in $(pwd)): $ENV ./configure --cache-file=${CACHEFILE} --disable-libcheck CPPFLAGS=\"-I../libibverbs/include\" LDFLAGS=\"-L.\""
> >                         /bin/rm -f libibverbs.a
> >                         exit 1
> >                 fi
> > 
> > 
> > Steve.
> 
> 
> Try replacing 'echo > libibverbs.a' with 'ar qc liby.a' - does this help?
> 







More information about the general mailing list