This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: compiling gcc under mingw
- From: Brian Dessent <brian at dessent dot net>
- To: gcc-help at gcc dot gnu dot org
- Date: Sun, 04 Jun 2006 23:54:04 -0700
- Subject: Re: compiling gcc under mingw
- References: <43a7c3700606042331y51d64c62rbe54ba13ee156ae9@mail.gmail.com> <43a7c3700606042333p6cf9ac60hef439413341646e6@mail.gmail.com>
- Reply-to: gcc-help at gcc dot gnu dot org
Alexander Shabanov wrote:
> When I compiled gcc, I created 2 obj directories: obj_cygwin and obj_mingw,
> then simply executed '../configure' and 'make'.
> What I am doing wrong under mingw?
Your build dir is a subdirectory of the source dir. Read the install
docs -- this is not supported. I'm not sure if it's the cause of your
problem though.
Mingw has always seemed somewhat fickle about finding some of the build
tools like ld. You might try telling it explicitly, e.g.
--with-ld=/mingw/bin/ld. I also seem to recall something about needing
to specify the full absolute path to configure, not ../foo/configure.
Or perhaps it was that you must always use a relative path, I can't
remember. Mingw seems to encounter these build issues because it uses
native win32 paths, unlike Cygwin and almost every other port which uses
POSIX paths.
Brian