POSIX paths in #include directives don't work with MinGW
lrn1986 at gmail.com
Sun Mar 24 20:14:49 CET 2013
-----BEGIN PGP SIGNED MESSAGE-----
On 24.03.2013 23:10, Torbjorn Granlund wrote:
> LRN <lrn1986 at gmail.com> writes:
> GMP version: 5.1.1 tarball
> How to reproduce: run ./configure in MSYS on W32, using any
> W32-native MinGW toolchain (doesn't matter which one)
> What is wrong: GMP_INCLUDE_GMP_H and GMP_FUNC_ALLOCA generate
> things like #include "$srcdir/gmp-impl.h" $srcdir is expanded to
> something like "/tc/gmp-5.1.1-1/gmp-5.1.1/gmp-h.in", because the
> shell is POSIXly. However, the compiler (MinGW) is a native W32
> program, and does not understand POSIX paths, fails to compile
> mp_limb_t test, and configure script fails as a result.
> This is a surprising bug report, given that GMP for MingW is in
> widespread use. I cannot tell why your install is different.
The difference is that i'm calling configure script by its absolute
name, i.e. /tc/gmp-5.1.1-1/gmp-5.1.1/configure ...
I've changed absolute name to a relative one (luckily, i know where my
build directory is located in relation to the source directory), and
the problem was gone.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
-----END PGP SIGNATURE-----
More information about the gmp-bugs