problem with cross-compilation i686-pc-mingw32
#Cyrille37#
cyrille37@gmail.com
Thu Mar 27 15:19:00 GMT 2008
#Cyrille37# a écrit :
> Hello
> I could not find how to setup cygwin to make cross compilation for
> host i686-pc-mingw32.
>
> I've got packages like :
> gcc 3.4.4-3
> gcc-core 3.4.4-3
> gcc-g++ 3.4.4-3
> gcc-mingw 20040810-1
> gcc-mingw-core 20050522-1
> gcc-mingw-g++ 20050522-1
>
> but when running the configure for GMPlib it could not find some tools :
>
> $ ./configure --build=core2-pc-cygwin --host=i686-pc-mingw32
> --enable-cxx --disable-static --enable-shared
Ok, I've found the solution after many hours with my friend Google ...
must add CC="gcc -mno-cygwin" on the confiure line :
./configure CC="gcc -mno-cygwin" --build=core2-pc-cygwin
--host=i686-pc-mingw32 --enable-cxx --disable-static --enable-shared
Cyrille
> checking build system type... core2-pc-cygwin
> checking host system type... i686-pc-mingw32
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking for i686-pc-mingw32-strip... no
> checking for strip... strip
> checking whether to enable maintainer-specific portions of
> Makefiles... no
> checking ABI=32
> checking compiler i686-pc-mingw32-gcc -m32 -O2 -fomit-frame-pointer
> ... no
> checking compiler i686-pc-mingw32-gcc -O2 -fomit-frame-pointer ... no
> checking compiler gcc -m32 -O2 -fomit-frame-pointer ... yes
> checking compiler gcc -m32 -O2 -fomit-frame-pointer has
> sizeof(long)==4... yes
> ...
> checking for i686-pc-mingw32-g++... no
> checking for i686-pc-mingw32-c++... no
> checking for i686-pc-mingw32-gpp... no
> checking for i686-pc-mingw32-aCC... no
> checking for i686-pc-mingw32-CC... no
> checking for i686-pc-mingw32-cxx... no
> checking for i686-pc-mingw32-cc++... no
> checking for i686-pc-mingw32-cl... no
> checking for i686-pc-mingw32-FCC... no
> checking for i686-pc-mingw32-KCC... no
> checking for i686-pc-mingw32-RCC... no
> checking for i686-pc-mingw32-xlC_r... no
> checking for i686-pc-mingw32-xlC... no
> checking for g++... g++
> checking whether we are using the GNU C++ compiler... yes
> checking whether g++ accepts -g... yes
> ...
>
> Do you know which packages are missing in my cygwin installation ?
>
> Thanks
> Cyrille
>
>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list