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)


"William A. Gatliff" wrote:
> .... and the same exact configure command, when run on non-PPC Linux
> hosts, works?  Hmmm...

Yes.  As I posted a bit later:
 
> 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.)

To figure out what was creating gcc-build-tempdir/powerpc-linux/config.cache,
I ran the following script while doing a build:

while [ ! -f gcc-build-ppc405/powerpc-linux/config.cache ] ; do
        wc mybuild.log
        sleep 10
done

So now I know it was created between line 2700 and 3000 of my build log file;
during that region, it finished building nof/libgcc.a, built things like
nof/crtbegin.o, and finally built g++-cross.  Sigh.  Guess I should have used
'sleep 1' instead of sleep 10... still no idea what creates that config.cache.
Guess I'll let it run again while I drive in to work.

- 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]