This is the mail archive of the
crossgcc@sources.redhat.com
mailing list for the crossgcc project.
See the CrossGCC FAQ for lots
more information.
re: Configure tries to run cross-compiled programs (when buildingcrossgcc under cygwin)
- From: Dan Kegel <dkegel at ixiacom dot com>
- To: crossgcc <crossgcc at sources dot redhat dot com>, Dan Kegel<dkegel at ixiacom dot com>
- Date: Wed, 21 Aug 2002 19:13:01 -0700
- Subject: re: Configure tries to run cross-compiled programs (when buildingcrossgcc under cygwin)
Brett Hunt wrote in gcc-help in May 2002 (highly edited):
> [I'm building a cross-compiler on cygwin targetting x86 linux.
> The build seems to progress fine until it tries to run 'ltconfig' for libstdc++.
> It locks up on "checking whether a program can dlopen itself..."
> This is just one of several places the build script improperly
> tries to run linux programs on windows. Why doesn't it notice I'm
> building a cross-compiler?]
For his real message, see
http://gcc.gnu.org/ml/gcc-help/2002-05/msg00165.html
I'm running into the exact same thing (I'm trying to build a ppc405
cross-compiler, but the problem is the same). For reference,
the cygwin gcc I'm using to build this cross-compiler is "2.95.3-5".
At first, I thought it was because I invoked configure wrong, as follows:
../gcc-3.0.2/configure --target=powerpc-linux --prefix=/opt/hardhat/devkit/ppc/405 --with-headers=/opt/hardhat/devkit/ppc/405/target/usr/include --enable-shared --enable-long-long
--enable-threads=posix --enable-langugages=c,c++ --enable-cxx-flags=-mcpu=403 --with-cpu=403 --nfp
since the autoconf doc hinted that for cross-compiling, you really need to define
all three of host, build, and target. So I tried
../gcc-3.0.2/configure --target=powerpc-linux --host=i686-pc-cygwin --build=i686-pc-cygwin --prefix=/opt/hardhat/devkit/ppc/405 --with-headers=/opt/hardhat/devkit/ppc/405/target/usr/include
--enable-shared --enable-threads=posix --enable-langugages=c,c++ --enable-cxx-flags=-mcpu=403 --with-cpu=403 --nfp
but got the same result, namely: in several places, configure tries to run
powerpc programs on windows, and I get an error dialog box. Clicking
'close' each time more or less lets configure procede, though perhaps
because it's confused about whether it's a cross-compile, I don't know
if the result is going to be usable.
Anyone out there have a clue for me?
Thanks!
- Dan
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com