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

Steve WIse swise at opengridcomputing.com
Mon Jan 15 16:15:55 PST 2007


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...

>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.






More information about the general mailing list