This is the mail archive of the mailing list for the GCC project.

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: Successful Build: gcc-4.1-20051230 i686-pc-mingw32

Hash: SHA1

Incognito wrote:
> I started again (deleted the generated files) and configured with "sh
> ../gcc-4.1.0/configure --prefix=/home/gcc41 --enable-threads=win32
> --with-ld=/mingw/bin/ld --with-win32-nlsapi=unicode" and fired "make
> bootstrap". I think this time make made more than the last time, but ejected
> an error again:

Before building GCC, you need to ensure that the prefix
folder you specify has the C headers. If you're replacing
your compiler, the simplest way to achieve this is to say

Otherwise you need to first extract "mingw-runtime" and
"w32api" into (say) "/home/gcc41" before specifying it as
the prefix for the new GCC. You can find the latest versions
of these packages on the MinGW SF page:

You might also want to extract "binutils" into the same
folder before proceeding.

On reading the messages in this thread, on a whim I built
GCC 4.1.0 for MinGW (C,C++) using the release tarballs.
As I noted in PR24382, you need to specify "--with-ld"
explicitly as well as use a relative path to the GCC
"configure" script (otherwise it fails trying to find
"/tmp/gcc-4.1.0/gcc/input.h", even though it's present).

Here're the configuration details:
- ------------------------------ 8< ------------------------------
~ > gcc -v
Using built-in specs.
Target: i686-pc-mingw32
Configured with: ../gcc-4.1.0/configure --prefix=/mingw \
- --target=i686-pc-mingw32 --enable-languages=c,c++ --disable-nls \
- --disable-debug --enable-__cxa_atexit --enable-threads=win32 \
- --disable-win32-registry --with-ld=/mingw/bin/ld.exe \
- --with-as=/mingw/bin/as.exe
Thread model: win32
gcc version 4.1.0
- ------------------------------ 8< ------------------------------

I used "mingw-runtime" version 3.9, "w32api" version 3.6
and "binutils" version 2.16.91-20060119-1, all as available
from the MinGW SF project mentioned earlier. I built GCC
by invoking "make bootstrap" after configuration. The build
environment was MSYS 1.0.11.


- --
Ranjit Mathew      Email: rmathew AT gmail DOT com

Bangalore, INDIA.    Web:

Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla -


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