public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* posix vs. win32 paths (segfault vs. gdb)
@ 2015-12-09 18:53 Martin Landa
  2015-12-10 22:58 ` Warren Young
  0 siblings, 1 reply; 3+ messages in thread
From: Martin Landa @ 2015-12-09 18:53 UTC (permalink / raw)
  To: cygwin

Hi all,

I am new to cygwin, so sorry for probably silly questions. I am trying
to compile GRASS GIS program on cygwin using *mingw32-w64* toolchain.
I am able to compile GRASS libs and tools. Part of build process is
calling compiled GRASS tools to produce their manual pages. The
critical part of build system (which is based on GNU make) looks like:

if [ "/home/landa/grass_trunk/dist.x86_64-w64-mingw32/bin/db.columns.exe"
!= "" ] ; then GISRC=/home/landa/grass_trunk/dist.x86_64-w64-mingw32/demolocation/.grassrc71
GISBASE=/dist.x86_64-w64-mingw32
PATH="/home/landa/grass_trunk/dist.x86_64-w64-mingw32/bin:/home/landa/grass_trunk/dist.x86_64-w64-mingw32/bin:/home/landa/grass_trunk/dist.x86_64-w64-mingw32/scripts:$PATH"
PYTHONPATH="/home/landa/grass_trunk/dist.x86_64-w64-mingw32/etc/python;/home/landa/grass_trunk/dist.x86_64-w64-mingw32/gui/wxpython;$PYTHONPATH"
PATH="/home/landa/grass_trunk/dist.x86_64-w64-mingw32/bin:/home/landa/grass_trunk/dist.x86_64-w64-mingw32/scripts:/home/landa/grass_trunk/dist.x86_64-w64-mingw32/lib:/home/landa/grass_trunk/dist.x86_64-w64-mingw32/lib:./:/usr/bin/:/usr/local/bin::/cygdrive/c/OSGeo4W64/bin:/home/landa/grass_trunk/mswindows/osgeo4w"
LC_ALL=C /home/landa/grass_trunk/dist.x86_64-w64-mingw32/bin/db.columns.exe
--html-description < /dev/null | grep -v '</body>\|</html>' >
db.columns.tmp.html ; fi
../../include/Make/Html.make:14: target „db.columns.tmp.html“ failed
make[4]: *** [db.columns.tmp.html] Error 1

First of all tried to launch this command from terminal:

GISRC=/home/landa/grass_trunk/dist.x86_64-w64-mingw32/demolocation/.grassrc71 \
GISBASE=/dist.x86_64-w64-mingw32 \
PATH="/home/landa/grass_trunk/dist.x86_64-w64-mingw32/bin:/home/landa/grass_trunk/dist.x86_64-w64-mingw32/bin:/home/landa/grass_trunk/dist.x86_64-w64-mingw32/scripts:$PATH"
\
PYTHONPATH="/home/landa/grass_trunk/dist.x86_64-w64-mingw32/etc/python;/home/landa/grass_trunk/dist.x86_64-w64-mingw32/gui/wxpython;$PYTHONPATH"
\
PATH="/home/landa/grass_trunk/dist.x86_64-w64-mingw32/bin:/home/landa/grass_trunk/dist.x86_64-w64-mingw32/scripts:/home/landa/grass_trunk/dist.x86_64-w64-mingw32/lib:/home/landa/grass_trunk/dist.x86_64-w64-mingw32/lib:./:/usr/bin/:/usr/local/bin::/cygdrive/c/OSGeo4W64/bin:/home/landa/grass_trunk/mswindows/osgeo4w"
LC_ALL=C \
/home/landa/grass_trunk/dist.x86_64-w64-mingw32/bin/db.columns.exe
--html-description

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`:

* program started (no segfault)
* it failed to open file on disc which exist and is readable
* if I change path to this file from posix to win32 then the program
run successfully without any error and produce desired output.

I spent several hours on this issue and starting to be lost. I will
appreciate any help, thanks in advance for any kind of support! Martin

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa

--
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-12-14 15:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-09 18:53 posix vs. win32 paths (segfault vs. gdb) Martin Landa
2015-12-10 22:58 ` Warren Young
2015-12-14 15:56   ` Martin Landa

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).