[Coin-discuss] Compile of dip on AIX - help required

Derek Jones scunacc at yahoo.com
Wed Jun 2 16:36:12 EDT 2010


Thanks I'll try that change and see if it works. Appreciated!

Kind regards

Derek.


Stefan Vigerske wrote:
> Hi,
> 
> this looks like a problem with confusing LIBS and LDADD in the Cbc (and
> Clp) Makefile.
> Problem is that the LIBS flag is also used when building libClp, libCbc,
> and libCbcSolver, but should only be used for building binaries.
> 
> For a workaround, edit the generated Makefiles as shown here:
> https://projects.coin-or.org/GAMSlinks/browser/trunk/makefiles.patch
> 
> A real fix will come with some larger changes in the build system - that
> may still take some time.
> 
> Stefan
> 
> 
> Am 02.06.2010 21:37, schrieb Derek Jones:
>> Hi folks,
>>
>> With Matt Galati's help, I've been trying to compile Dip from the trunk
>> under AIX
>>
>> Hitting problems with the Cbc section.
>>
>> Here's what I have so far:
>>
>>
>> ./configure \
>> --prefix=/lapps/local_Alper \
>> --disable-shared \
>> --enable-static=yes \
>> AR="ar  -X64 " \
>> NM="nm  -X64 " \
>> F77="xlf -q64 " \
>> CC="xlc   -q64 " \
>> CXX="xlC   -q64 " \
>> CFLAGS="    -O -bmaxdata:0x3f0000000    " \
>> CXXFLAGS="   -O -bmaxdata:0x3f0000000 -qrtti " \
>> FFLAGS="   " \
>> LIBS=" -lm -lpthread " \
>> LDFLAGS=" " \
>> --with-cplex-incdir=/opt/ilog/
>> cplex121/include/ilcplex \
>> --with-cplex-lib="
>> /opt/ilog/cplex121/lib/power64_aix5.3_7.0/static_stl/libcplex.a
>> /opt/ilog/cplex121/lib/power64_aix5.3_7.0/static_stl/libilocplex.a  "
>>
>> It gets a good way through, but fails like this:
>>
>> xlC -q64 -O -bmaxdata:0x3f0000000 -qrtti -o cbc CoinSolve.o
>> ./.libs/libCbcSolver.a ./.libs/libCbc.a
>> /home/derjones/COIN/coin-Dip/Cbc/../Cgl/src/.libs/libCgl.a
>> /home/derjones/COIN/coin-Dip/Cbc/../Osi/src/OsiClp/.libs/libOsiClp.a
>> /home/derjones/COIN/coin-Dip/Cbc/../Osi/src/.libs/libOsi.a
>> /home/derjones/COIN/coin-Dip/Cbc/../Clp/src/.libs/libClp.a
>> /home/derjones/COIN/coin-Dip/Cbc/../CoinUtils/src/.libs/libCoinUtils.a
>> /home/derjones/COIN/coin-Dip/Cbc/../Osi/src/OsiCpx/.libs/libOsiCpx.a
>> -lblas /opt/ilog/cplex121/lib/
>> power64_aix5.3_7.0/static_stl/libcplex.a
>> /opt/ilog/cplex121/lib/power64_aix5.3_7.0/static_stl/libilocplex.a -lm
>> -lpthread
>> -blibpath:/lapps/local_Alper/lib:/usr/vac/lib:/usr/vacpp/lib:/usr/lib:/lib
>> munch: Error reading input file ./.libs/libCbcSolver.a
>> make[2]: *** [cbc] Error 1
>> make[2]: Leaving directory `/home/derjones/COIN/coin-Dip/Cbc/src'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/home/derjones/COIN/coin-Dip/Cbc'
>> make: *** [all-recursive] Error 1
>>
>>
>> Here's the lib info.
>>
>> portia $ cd Cbc/src
>> portia $ ar t .libs/libCbcSolver.
>> libCbcSolver.a    libCbcSolver.la   libCbcSolver.lai
>> portia $ ar t .libs/libCbcSolver.a
>> libcplex.a
>> libilocplex.a
>> lt1-libcplex.a
>> lt2-libilocplex.a
>> lt3-libcplex.a
>> lt4-libilocplex.a
>> libcplex.a
>> libilocplex.a
>> libcplex.a
>> libilocplex.a
>> libcplex.a
>> libilocplex.a
>> portia $ ls -l .libs/libCbcSolver.a
>> -rw-rw-r--    1 derjones xplat      61283112 Jun 02 15:04
>> .libs/libCbcSolver.a
>> portia $
>>
>>
>> portia $ file .libs/libCbcSolver.a
>> .libs/libCbcSolver.a: archive (big format)
>>
>> Any ideas? How about the configure?
>>
>> Help appreciated,
>>
>> Kind regards
>>
>> Derek.
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Coin-discuss mailing list
>> Coin-discuss at list.coin-or.org
>> http://list.coin-or.org/mailman/listinfo/coin-discuss
> 
> 




More information about the Coin-discuss mailing list