12 Aug 2006 17:13
Re: Problem xcompiling mingw-runtime-3.10
On Monday 24 July 2006 1:14 pm, Michael Gerdau wrote:
> During my recent tests regarding dbginfo in mingw gcc libs I realized
> I can't create a linux hosted xcompiler incorporating
> mingw-runtime-3.10
Michael,
I too am experiencing difficulties in this area, but I am seeing very
different symptoms from those you report, and even very different
behaviours across differing Linux host variants; perhaps Danny, or
Chris Faylor could comment on the symptoms of failure I've observed.
I'm using your script, and I've set it up thus:
# Directories:--
#
PACKAGE_DIR=$HOME/packages/mingw-3.4.5
BUILD_ROOT=$HOME/sandbox/mingw/build/mingw-3.4.5
PREFIX=$HOME/sandbox/mingw/staged
#
# Package Versions:--
#
GCC_VERSION="3.4.5-20060117-1"
BINUTILS_VERSION="2.17.50-20060716-1"
W32API_VERSION="3.7"
RUNTIME_VERSION="3.10"
Now, running the script on my aged Mandrake 8.2 host, where the native
compiler is gcc-2.96, this configuration gives me an i586-mingw32-gcc in
$HOME/sandbox/mingw/staged, which appears to work correctly, creating
(Continue reading)
On Saturday 12 August 2006 9:39 pm, Michael Gerdau wrote:
> > Danny, FWIW, the `config.log' is littered with reports of fatal
> > redefinitions of `exit(int)' throwing different exceptions; is this
> > in some way significant? Is it just not possible to build a gcc-3.x
> > cross with a native gcc-4.x?
>
> I don't see these using a native gcc 3.3.5
AIUI, gcc-4.x is a great deal more stringent in standards enforcement
than any gcc-3.x version ever was. Autoconf-2.60 no longer uses `exit'
calls in any of it's macros, presumably because of such problems.
> What I see is the test to determine the default executable extension
> (presumably .exe) fails because the link step needs crt2.o which is
> not yet there at this point in time -- at first glance it seems like
> a bootstrapping problem.
>
> Is there a way to skip over that particular test at that stage ?
No, it's a fundamental component of the test for a working compiler.
However, since this occurs at the stage where you are now using the cross
compiler you just built, to compile its support libraries for the foreign
host, it should not need any of those libraries to pre-exist. The
standard test, for a compile with `host == build', runs a check to ensure
that the compiler generates working executables; it should automatically
RSS Feed