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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Configure tries to run cross-compiled programs (when building crossgcc under cygwin)


Dan Kegel wrote:
> Brett Hunt wrote ...
> > [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..."
> (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".
> ...
> in several places, configure tries to run
> powerpc programs on windows, and I get an error dialog box.

The script works fine on Linux, but fails on Cygwin.
One suspicious difference is in gcc-build-ppc405/powerpc-linux/config.cache
:
in Linux, it has
  ac_cv_prog_cc_cross=${ac_cv_prog_cc_cross=yes}
but in Cygwin, it has
  ac_cv_prog_cc_cross=${ac_cv_prog_cc_cross='no'}
Now if only I could figure out gcc's configure system...
I have no idea what is creating that setting.

(BTW, I'm building gcc3.0.2.  I think Brett had the problem in 3.0.4.)
- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]