[Coin-discuss] Cross-compiling COIN projects (Osi)

Andreas Waechter andreasw at watson.ibm.com
Fri Feb 29 05:10:56 EST 2008


Hi again,

> Does not work, I used the following line to try to compile Osi 0.97.1 on
> a x86 32bit Ubuntu host:
>
> COIN_SKIP_PROJECTS="DyLP" CXXFLAGS="-m64" CFLAGS="-m64" FFLAGS="-m64"
> ADD_CFLAGS="-m64" ADD_CXXFLAGS="-m64" ADD_FFLAGS="-m64" ./configure
> --host "" --prefix=/tmp/coin-osi-0.97.1-amd64 --without-dylp
>
> The result is an immediate (after less than 10 lines of configure output):
>
> checking whether the C compiler works... configure: error: cannot run C
> compiled programs.
> If you meant to cross compile, use '--host'.
>
> Now, the problem is, that there is no 64 bit cross compiler, because gcc
> can cross compile with -m64 and -m32 on all modern Linux distributions.
>
> Also, it seems that even without cross compiling, ADD_CXXFLAGS is
> ignored and I do not see "-m64" in the calls to g++.

Please try what happens if you set all the variables in the argument list 
for configure, i.e.,

./configure --host="SOMETHINGUSEFUL" --prefix=/tmp/coin-osi-0.97.1-amd64 
--without-dylp COIN_SKIP_PROJECTS="DyLP" CXXFLAGS="-m64" CFLAGS="-m64" 
FFLAGS="-m64" ADD_CFLAGS="-m64" ADD_CXXFLAGS="-m64" ADD_FFLAGS="-m64"

Regards,

Andreas



More information about the Coin-discuss mailing list