[CLN-list] CLN vs weird mixture of Cygwin and MinGW

Ralf Wildenhues Ralf.Wildenhues at gmx.de
Fri Aug 25 15:02:47 CEST 2006


Hello Richard,

* Richard Haney wrote on Wed, Aug 23, 2006 at 12:02:38AM CEST:
> 
> It _seems_ to me, based on my (admittedly limited) knowledge and on
> "grep"ing directories and exploring files as described in my first of
> the two messages, that 
> 
> >    --build=i586-mingw32msvc --host=i586-mingw32msvc
> 
> is incorrect because:

I agree that the naming is probably weird or broken, but for some
reason, there is a set of cross-compiling tools available with said
prefix.  The config.sub script exists to canonicalize the --host
argument somewhat.  (Let's call its output `host', and the argument to
`--host' the `host_alias'.)

What configure does is search for tools that begin with `${host_alias}-':
  i586-mingw32msvc-gcc
  i586-mingw32msvc-ld
  i586-mingw32msvc-objdump
  ...

If you happen to have these and want to use them, then issue
  --host=i586-mingw32msvc

(no need to issue --build, unless `configure' detects that wrongly).

> (1) my processor is a Celeron processor, which seems to mean that the
> first part of the system type should be "i686" and not "i586"

I have yet to see a package where this difference is very relevant
(and if it is, they usually do different kind of testing); in any
case it should not hurt.

> (2) because there is no meaningful occurrence of the string "msvc" in
> "C:/gnu/cln-1.1.13" or in "C:/gnu/cln-1.1.13/autoconf", which fact
> _seems_ to suggest that the second part of the system type should
> definitely not be the "mingw32msvc" that was suggested above.

Yeah, as I said I would agree that the naming is, erm, weird.
I haven't tried to find out who to blame, though.  ;-)

Other than that, I've personally made the experience that it is easiest
to either use either completely Cygwin or completely MinGW and build for
the same, too;  if you have to create something not depending on Cygwin
from within Cygwin, allow me to quote gettext/README.woe32 (with fixed
order ;-):

|    ./configure --host=i586-pc-mingw32 --prefix=/usr/local/mingw \
|    CPPFLAGS="-mno-cygwin -Wall -I/usr/local/mingw/include" \
|    CFLAGS="-mno-cygwin -O2 -g" \
|    CXXFLAGS="-mno-cygwin -O2 -g" \
|    LDFLAGS="-mno-cygwin -L/usr/local/mingw/lib"

after installing the mingw runtime package from the Cygwin site.

Hope this helps somewhat.

Cheers,
Ralf


More information about the CLN-list mailing list