This is the mail archive of the gcc@gcc.gnu.org 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


-----BEGIN PGP SIGNED MESSAGE-----
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
"--prefix=/mingw".

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:

  http://sourceforge.net/projects/mingw

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.

HTH,
Ranjit.

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

Bangalore, INDIA.    Web: http://rmathew.com/


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFED8m7Yb1hx2wRS48RAnNhAKCJNFc3gOMsI65ikZ02e3ByIvhEbgCfVO/4
+45uaXnryeFJGxsLUAwHNOs=
=DXH5
-----END PGP SIGNATURE-----


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