From: Warren Young <wyml@etr-usa.com>
To: The Cygwin Mailing List <cygwin@cygwin.com>
Subject: Re: posix vs. win32 paths (segfault vs. gdb)
Date: Thu, 10 Dec 2015 22:58:00 -0000 [thread overview]
Message-ID: <2C683C64-3342-45F7-9A8B-B8C3D2B06037@etr-usa.com> (raw)
In-Reply-To: <CA+Ei1Of8xBkUTTqp+fiHKcxZcCSkDC1rVdyUnt3Riy_wfTLLFA@mail.gmail.com>
On Dec 9, 2015, at 11:53 AM, Martin Landa <landa.martin@gmail.com> wrote:
>
> I am trying
> to compile GRASS GIS program on cygwin using *mingw32-w64* toolchain.
MinGW isn’t really on topic here. Although these are Cygwin packages, build problems using them are typically not Cygwin problems.
Cygwin GNU make and MinGW GNU make behave quite differently, even though they’re built from the same source code. The two key differences are that MinGW make uses cmd.exe for shell commands instead of /bin/sh, and that MinGW make can’t understand Cygwin’s POSIX paths.
Consequently, a package that supports building under both Cygwin and MinGW must have two different build systems. The makefiles must differ.
GIS is a pretty specialized field, and GRASS is huge, so you’ll be lucky if anyone on the list has even tried what you’re proposing. (Which is why I’m bothering to respond in the first place, even though I am not a GRASS user, and the closest I’ve gotten to GIS is the “ooo, maps” level of spectator appreciation.)
> First of all tried to launch this command from terminal:
Good, you’ve already tried the first thing I thought of asking.
Not everyone would even recognize that monstrosity as a single command, much less know enough to try and run it to see what happens. Good job.
> and it failed with Segmentation fault.
>
> Then I tried to launch it via gdb (so I changed last line to `gdb
> --args /home/landa/grass_trunk/dist.x86_64-w64-mingw32/bin/db.columns.exe
> --html-description` and type `run`:
You should prefix “gdb” with the PATH and LC_ALL environment overrides to fully match what GNU make is doing.
I don’t know if it matters, but let’s not introduce unnecessary variables.
> if I change path to this file from posix to win32 then the program
> run successfully without any error and produce desired output.
That sounds like the GRASS build process detected a POSIX-like environment, so it assumed that the resulting executables would also understand POSIX paths, which they won’t if built by MinGW GCC.
That means that either GRASS requires a POSIX environment, or it has a separate build process for MinGW, which you aren’t using by building under Cygwin.
Have you read this?
https://trac.osgeo.org/grass/wiki/CompileOnWindows
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
next prev parent reply other threads:[~2015-12-10 22:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-09 18:53 Martin Landa
2015-12-10 22:58 ` Warren Young [this message]
2015-12-14 15:56 ` Martin Landa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2C683C64-3342-45F7-9A8B-B8C3D2B06037@etr-usa.com \
--to=wyml@etr-usa.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).