[Coin-symphony] LDFLAGS for 32bit librarary

Ashutosh Mahajan asm4 at Lehigh.EDU
Wed Aug 16 10:46:42 EDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


hi Claude,

On Wed, 16 Aug 2006, claude philippe medard wrote:

> Hello,
> 
> I just suscribed to SYMPHONY. can't wait to play :-)
> I am trying to build a 32bit library on a 64bit linux laptop.
> Problem: in SYMPHONY's Makefile,
> I can not get my additions to LDFLAGS or SYSLIBPATHS for LINUX to kick in:
> -L/usr/lib/gcc-lib/i386-redhat-linux/3.2.3.

this is a known problem with libtool in coin. see active ticket at:

https://projects.coin-or.org/BuildTools/ticket/13

unfortunately its a low priority.

i have seen this problem myself. looking at your Osi experience and
suggestions, i can try to tweak Makefiles and/or libtools for Symphony but im
not sure if its going to work.

> I did manage to set the CFLAGS (via MORECFLAGS: -m32 -march=i386 -mcpu=i386.)
> to build 32bit objects successfully. However, the loading still tries to spit
> spit out
> a 64bit lib:
> i) warnings while building object files.
> ii) when puttting it all together (libsym.so),
>    /usr/bin/ld is trying to link in /usr/lib64/objects (reading stuff).
> 
> Background:
> I am building a 32bit application on my 64bit laptop,
> basically because my existing cplex & xpress libs are 32bit libs.
> no problem it runs, thanks to g++32/gcc32 CFLAGS or CXXFLAGS
> set to:  -m32 -march=i386 -mcpu=i386.
> 
> FYI:
> I sucessfully built all of my recently downloaded
> COIN-Clp/Osi/... as 32bit libs, also adding the LDFLAGS
> -L/usr/lib/gcc-lib/i386-redhat-linux/3.2.3.
> For example, to hook in cplex 32 bit lib into Osi, i did:
> //pwd: coin-Osi:
> ./configure CXX=g++32 CXXFLAGS='-m32 -march=i386 -mcpu=i386' CC=gcc32 CFLAGS=
> '-m32 -march=i386 -mcpu=i386' LDFLAGS=-L/usr/lib/gcc-lib/i386-redhat-linux/
> 3.2.3 FFLAGS='-m32 -march=i386 -mcpu=i386' --prefix=/home/claude/funwork/COIN/
> coin-Osi/i386_linux --with-cplex-lib="/optimization/ilog/cplex75/lib/
> i86_linux2_glibc2.2_gcc3.0/static_pic_mt -lcplex" --with-cplex-incdir=/
> optimization/ilog/cplex75/include/ilcplex --disable-cplex-libcheck
> --enable-static -C
> 



- --
regards
Ashutosh Mahajan
http://www.lehigh.edu/~asm4



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFE4y/QVsGrdJ19wHsRAkLiAJ9GTpjJUy5RrhTtwpT2feus/gpWHACgmpGF
n8Oc4MuNm2jpW7+jYw0FP+Q=
=MXtr
-----END PGP SIGNATURE-----



More information about the Symphony mailing list