Boost logo

Boost :

From: Patrick Hartling (patrick_at_[hidden])
Date: 2004-03-18 15:29:45


I am trying to make a 64-bit build of Boost 1.31.0 on IRIX using the
MIPSpro Compilers 7.3.1.3m, but I cannot seem to get any of the dynamic
libraries to link. The bjam command line I am using is this:

bjam -sTOOLS=mipspro "-sBUILD=debug release <runtime-link>static/dynamic <address-model>64"

(I have $PYTHON_ROOT pointing to a 64-bit build of Python 2.2.3.) All
link actions for dynamic libraries fail thusly:

ld64: FATAL 12 : Expecting n64 objects: /usr/lib32//c++init.o is n32.

Looking at the output after the failed action, I see -L/usr/lib32 in the
link line, and I am pretty sure it should not be there. The complete
output of the first failed action is this:

    "/usr/bin/CC" \
        -o "bin/boost/libs/date_time/build/libboost_date_time.so/mipspro/debug/address-model-64/libboost_date_time-mp-d-1_31.so" \
       "bin/boost/libs/date_time/build/libboost_date_time.so/mipspro/debug/address-model-64/greg_month.o" "bin/boost/libs/date_time/build/libboost_date_time.so/mipspro/debug/address-model-64/greg_weekday.o" "bin/boost/libs/date_time/build/libboost_date_time.so/mipspro/debug/address-model-64/date_generators.o" \
         \
        "-DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG" "-DBOOST_ALL_DYN_LINK=1" \
        "-nostdinc" "-LANG:std" "-OPT:Olimit=0" "-OPT:IEEE_NaN_inf=ON" "-no_auto_include" "-64" "-mips3" "-O0" "-g" "-INLINE:none" \
         \
         \
        "-I/usr/include/CC" "-I//usr/include/CC" "-I/mnt/rigby/home13/users/patrick/src/Boost/blah/boost_1_31_0/boost/compatibility/cpp_c_headers" \
        "-I/usr/include" "-I//usr/include" "-I/mnt/rigby/home13/users/patrick/src/Boost/blah/boost_1_31_0" \
        "-nostdlib" "-shared" \
         \
         \
         \
        "-L/usr/lib32/mips3" "-L/usr/lib32/" "-L//usr/lib32/mips3" "-L//usr/lib32/" "-L/usr/lib32/mips3" "-L/usr/lib32/" "-L//usr/lib32/mips3" "-L//usr/lib32/" "-L/usr/lib64/mips3" "-L/usr/lib64/" "-L//usr/lib64/mips3" "-L//usr/lib64/" \
        "-lm"

All the object files being linked in this case are 64-bit, so I think
that the compile action is behaving correctly. Am I forgetting
something in my bjam command or otherwise misusing bjam?

 -Patrick

-- 
Patrick L. Hartling                     | Research Assistant, VRAC
patrick_at_[hidden]                | 2274 Howe Hall Room 2624
http://www.vrac.iastate.edu/~patrick/   | http://www.vrac.iastate.edu/
PGP: http://wwwkeys.gpg.cz:11371/pks/lookup?op=get&search=0xEBF86398

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk