[geos-devel] MinGW build of Geos on Win7

Theuns Heydenrych theunsheydenrych at gmail.com
Tue Nov 4 04:55:28 PST 2014


What i have figured out so far is to list the default search path for gcc
in MinGW is to issue the command
gcc -### -o foo foo.c

This will produce the following:
$ gcc -### -o foo foo.c > /c/dev/gcc.txt
gcc.exe: error: foo.c: No such file or directory
Using built-in specs.
COLLECT_GCC=c:\Tools\MinGW\bin\gcc.exe
COLLECT_LTO_WRAPPER=c:/Tools/MinGW/bin/../libexec/gcc/i686-w64-mingw32/4.9.1/lto-wrapper.exe
Target: i686-w64-mingw32
Configured with: ../../../src/gcc-4.9.1/configure --host=i686-w64-mingw32
--build=i686-w64-mingw32 --target=i686-w64-mingw32 --prefix=/mingw32
--with-sysroot=/c/mingw491/i686-491-posix-dwarf-rt_v3-rev0/mingw32
--with-gxx-include-dir=/mingw32/i686-w64-mingw32/include/c++
--enable-shared --enable-static --disable-multilib
--enable-languages=ada,c,c++,fortran,objc,obj-c++,lto
--enable-libstdcxx-time=yes --enable-threads=posix
--enable-libgomp --enable-libatomic --enable-lto --enable-graphite
--enable-checking=release --enable-fully-dynamic-string
--enable-version-specific-runtime-libs --disable-sjlj-exceptions
--with-dwarf2
--disable-isl-version-check --disable-cloog-version-check
--disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap
--disable-rpath --disable-win32-registry --disable-nls --disable-werror
--disable-symvers --with-gnu-as --with-gnu-ld --with-arch=i686
--with-tune=generic --with-libiconv --with-system-zlib
--with-gmp=/c/mingw491/prerequisites/i686-w64-mingw32-static
--with-mpfr=/c/mingw491/prerequisites/i686-w64-mingw32-static
--with-mpc=/c/mingw491/prerequisites/i686-w64-mingw32-static
--with-isl=/c/mingw491/prerequisites/i686-w64-mingw32-static
--with-cloog=/c/mingw491/prerequisites/i686-w64-mingw32-static
--enable-cloog-backend=isl --with-pkgversion='i686-posix-dwarf-rev0,
Built by MinGW-W64 project' --with-bugurl=
http://sourceforge.net/projects/mingw-w64
CFLAGS='-O2 -pipe
-I/c/mingw491/i686-491-posix-dwarf-rt_v3-rev0/mingw32/opt/include
-I/c/mingw491/prerequisites/i686-zlib-static/include
-I/c/mingw491/prerequisites/i686-w64-mingw32-static/include'
CXXFLAGS='-O2 -pipe
-I/c/mingw491/i686-491-posix-dwarf-rt_v3-rev0/mingw32/opt/include
-I/c/mingw491/prerequisites/i686-zlib-static/include
-I/c/mingw491/prerequisites/i686-w64-mingw32-static/include'
CPPFLAGS= LDFLAGS='-pipe
-L/c/mingw491/i686-491-posix-dwarf-rt_v3-rev0/mingw32/opt/lib
-L/c/mingw491/prerequisites/i686-zlib-static/lib
-L/c/mingw491/prerequisites/i686-w64-mingw32-static/lib'
Thread model: posix
gcc version 4.9.1 (i686-posix-dwarf-rev0, Built by MinGW-W64 project)

So there right at the end is the "offending" path, some script that should
extract the -L paths, is bringing the ' character in, at the end of the
line.
No where that script is and how to fix it i dont know.

Any suggestions?



On Tue, Nov 4, 2014 at 1:59 PM, Theuns Heydenrych <
theunsheydenrych at gmail.com> wrote:

> It looks like the input is coming from libtool.m4, but i have no idea how
> to debug this.
> I might stare at the problem and not even know it.
>
> Is there a way of listing the internal library paths of the compiler or
> the linker?
> Because it looks like if during configuration it asks somehow for the
> internal paths and test that.
>
> On Tue, Nov 4, 2014 at 12:18 PM, Sandro Santilli <strk at keybit.net> wrote:
>
>> On Tue, Nov 04, 2014 at 12:10:32PM +0200, Theuns Heydenrych wrote:
>> > Thanks Sandro
>> > I did run the commands you suggested and yes,
>> > "prerequisites/i686-w64-mingw32-static"
>> > appear in the output.
>> > It also appear with the extra ' in the output, like
>> prerequisites/i686-w64-
>> > mingw32-static/lib'
>> >
>> > How do i fix this?
>> >
>> > Here is the grep result.
>> > $ grep prerequisites/i686-w64-mingw32-static debug.log
>> > + test '-L/c/mingw491/prerequisites/i686-w64-mingw32-static/lib'\''' =
>> -L
>>
>> Check higher in the output, where did this value come from ?
>>
>>  '-L/c/mingw491/prerequisites/i686-w64-mingw32-static/lib'\'''
>>
>> You might need to reference the output to some .m4 input which could
>> be on your system (somewhere in autoconf install dir) and would sound
>> broken.
>>
>> --strk;
>>
>>   ()   Free GIS & Flash consultant/developer
>>   /\   http://strk.keybit.net/services.html
>> _______________________________________________
>> geos-devel mailing list
>> geos-devel at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/geos-devel
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geos-devel/attachments/20141104/0798fd17/attachment.html>


More information about the geos-devel mailing list