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

Reply via email to