#1178 closed defect (wontfix)
WinGrass: g.extension - problem with path to $GISBASE
Reported by: | hellik | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 6.4.2 |
Component: | Installation | Version: | svn-releasebranch64 |
Keywords: | wingrass, g.extension, path, installation, addons | Cc: | |
CPU: | x86-32 | Platform: | MSWindows Vista |
Description
a self build WinGrass64svn-installer (svn-client included):
on the msys-commandline:
GRASS 6.4> g.extension extension=r.stream.order Fetching <r.stream.order> from GRASS-Addons SVN (be patient)... A r.stream.order\orders.png A r.stream.order\main.c A r.stream.order\description.html A r.stream.order\global.h A r.stream.order\io.c A r.stream.order\order.c A r.stream.order\Makefile Checked out revision 43684. Compiling <r.stream.order>... Makefile:12: c:/Program: No such file or directory Makefile:12: Files/GRASS-64-SVN/include/Make/Module.make: No such file or directory make: *** No rule to make target `Files/GRASS-64-SVN/include/Make/Module.make'. Stop. FEHLER: Compilation failed, sorry. Please check above error messages. rm: cannot remove directory `C:\\gisdata\\grassdata/wgs84gc/user1/.tmp/7992.0/r.stream.order': Permission denied GRASS 6.4>
there seems GISBASE=c:/Program Files/GRASS-64-SVN isn't recognized because of a whitespace in the path?
and from the wxgui:
g.extension --verbose extension=r.stream.order svnurl=https://svn.osgeo.org/grass/grass-addons/ prefix=$GISBASE Tut mir leid, <Files/GRASS-64-SVN> ist keine gültige Option Sorry, <Files/GRASS-64-SVN> is not a valid optiopn [...]
Helmut
Attachments (1)
Change History (44)
follow-up: 3 comment:1 by , 14 years ago
follow-up: 4 comment:2 by , 14 years ago
the problem is certainly on that line of the script:
make MODULE_TOPDIR="$GISBASE"
but I don't know how to fix it. (maybe g.dirseps or sed 's/ /\\ /g'
if Windows is detected?)
Hamish
ps- while harmlessly used a lot in the script, ${curly} brackets do not actually protect spaces in file or path names, just variable names from following characters which would otherwise continue the variable name, or for readability.
follow-up: 6 comment:3 by , 14 years ago
Replying to neteler:
Please add " -x" (without quotes to the first line of g.extension and run again to understand how
cd "$TMPDIR/$MODULE" g.message message="Compiling <${MODULE}>..." make MODULE_TOPDIR="$GISBASE" if [ $? -ne 0 ] ; then ...is running.
with added -x in the first line:
Welcome to GRASS 6.4.1svn (2010) GRASS homepage: http://grass.osgeo.org/ This version running thru: Bourne Shell (/bin/sh) Help is available with the command: g.manual -i See the licence terms with: g.version -c If required, restart the GUI with: g.gui wxpython When ready to quit enter: exit GRASS 6.4> g.extension extension=r.stream.order + '[' -z '/C/Program Files/GRASS-64-SVN' ']' + '[' extension=r.stream.order '!=' @ARGS_PARSED@ ']' + exec g.parser '/C/Program Files/GRASS-64-SVN/scripts/g.extension' extension=r .stream.order Fetching <r.stream.order> from GRASS-Addons SVN (be patient)... A r.stream.order\orders.png A r.stream.order\main.c A r.stream.order\description.html A r.stream.order\global.h A r.stream.order\io.c A r.stream.order\order.c A r.stream.order\Makefile Checked out revision 43689. Compiling <r.stream.order>... Makefile:12: c:/Program: No such file or directory Makefile:12: Files/GRASS-64-SVN/include/Make/Module.make: No such file or direc tory make: *** No rule to make target `Files/GRASS-64-SVN/include/Make/Module.make'. Stop. FEHLER: Compilation failed, sorry. Please check above error messages. rm: cannot remove directory `C:\\gisdata\\grassdata/wgs84gc/user1/.tmp/3488.0/r .stream.order': Permission denied GRASS 6.4>
Helmut
follow-up: 5 comment:4 by , 14 years ago
Replying to hamish:
the problem is certainly on that line of the script:
make MODULE_TOPDIR="$GISBASE"but I don't know how to fix it. (maybe g.dirseps or
sed 's/ /\\ /g'
if Windows is detected?)Hamish
ps- while harmlessly used a lot in the script, ${curly} brackets do not actually protect spaces in file or path names, just variable names from following characters which would otherwise continue the variable name, or for readability.
I've tried it now with Grass64svn living in C:\OSGeo4W\apps\grass\grass-6.4.1svn:
GRASS 6.4> g.extension extension=r.stream.order which: wget: unknown command Fetching <r.stream.order> from GRASS-Addons SVN (be patient)... A r.stream.order\orders.png A r.stream.order\main.c A r.stream.order\description.html A r.stream.order\global.h A r.stream.order\io.c A r.stream.order\order.c A r.stream.order\Makefile Checked out revision 43689. Compiling <r.stream.order>... test -d OBJ.i686-pc-mingw32 || mkdir -p OBJ.i686-pc-mingw32 gcc -I/c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32/include -I/c/OSGeo4W/a pps/gdal-16/include -I/c/OSGeo4W/include -g -O2 -I/c/OSGeo4W/apps/gdal-16/incl ude -I/c/OSGeo4W/include -I/c/OSGeo4W/include -DPACKAGE=\""grassmods"\" -I /c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32/include -o OBJ.i686-pc-mingw 32/io.o -c io.c io.c:1:27: grass/glocale.h: No such file or directory In file included from io.c:2: global.h:5:23: grass/gis.h: No such file or directory global.h:6:24: grass/Vect.h: No such file or directory global.h:7:24: grass/dbmi.h: No such file or directory In file included from io.c:2: global.h:80: error: syntax error before '*' token global.h:81: error: syntax error before '*' token global.h:93: error: syntax error before '*' token global.h:93: warning: data definition has no type or storage class global.h:94: error: syntax error before '*' token global.h:94: warning: data definition has no type or storage class io.c: In function `open_raster': io.c:8: error: storage size of 'cellhd' isn't known io.c:10: warning: assignment makes pointer from integer without a cast io.c:16: error: `CELL_TYPE' undeclared (first use in this function) io.c:16: error: (Each undeclared identifier is reported only once io.c:16: error: for each function it appears in.) io.c:26: error: invalid use of undefined type `struct Cell_head' io.c:26: error: invalid use of undefined type `struct Cell_head' io.c: In function `create_base_maps': io.c:37: error: `CELL' undeclared (first use in this function) io.c:37: error: `r_dirs' undeclared (first use in this function) io.c:37: error: `r_streams' undeclared (first use in this function) io.c:38: error: `DCELL' undeclared (first use in this function) io.c:38: error: `r_accum' undeclared (first use in this function) io.c:47: error: syntax error before ')' token io.c:48: error: syntax error before ')' token io.c:50: error: syntax error before ')' token io.c:50: error: syntax error before ')' token io.c:52: error: syntax error before ')' token io.c:53: error: syntax error before ')' token io.c:55: error: syntax error before ')' token io.c:62: warning: assignment makes pointer from integer without a cast io.c:63: warning: assignment makes pointer from integer without a cast io.c:73: error: syntax error before ')' token io.c: In function `stream_number': io.c:120: error: `CELL' undeclared (first use in this function) io.c:120: error: syntax error before "c_min" io.c:121: error: storage size of 'stream_range' isn't known io.c:124: warning: assignment makes pointer from integer without a cast io.c:126: error: `c_min' undeclared (first use in this function) io.c:126: error: `c_max' undeclared (first use in this function) io.c: In function `write_maps': io.c:136: error: `CELL' undeclared (first use in this function) io.c:136: error: `strahler_buf' undeclared (first use in this function) io.c:136: error: `shreeve_buf' undeclared (first use in this function) io.c:136: error: `hack_buf' undeclared (first use in this function) io.c:136: error: `horton_buf' undeclared (first use in this function) io.c:136: error: `topo_buf' undeclared (first use in this function) io.c:138: error: storage size of 'history' isn't known io.c:142: error: `CELL_TYPE' undeclared (first use in this function) io.c: In function `create_table': io.c:285: error: `dbConnection' undeclared (first use in this function) io.c:285: error: syntax error before "conn" io.c:286: error: `dbDriver' undeclared (first use in this function) io.c:286: error: `driver' undeclared (first use in this function) io.c:287: error: `dbHandle' undeclared (first use in this function) io.c:287: error: syntax error before "handle" io.c:288: error: `dbString' undeclared (first use in this function) io.c:334: error: `db_sql' undeclared (first use in this function) io.c:335: error: `val_string' undeclared (first use in this function) io.c:336: error: `table_name' undeclared (first use in this function) io.c:337: error: `handle' undeclared (first use in this function) io.c:341: error: `conn' undeclared (first use in this function) io.c:383: error: `DB_OK' undeclared (first use in this function) io.c:393: error: `DB_PRIV_SELECT' undeclared (first use in this function) io.c:393: error: `DB_GROUP' undeclared (first use in this function) io.c:393: error: `DB_PUBLIC' undeclared (first use in this function) make: *** [OBJ.i686-pc-mingw32/io.o] Error 1 FEHLER: Compilation failed, sorry. Please check above error messages. rm: cannot remove directory `C:\\gisdata\\grassdata/wgs84gc/user1/.tmp/3648.0/r .stream.order': Permission denied
compiling is starting, but a lot of errors (maybe r.stream.order isn't for Grass64?)
Helmut
comment:5 by , 14 years ago
Replying to hellik:
compiling is starting, but a lot of errors (maybe r.stream.order isn't for Grass64?)
and I've tried also the example from the manual
GRASS 6.4> g.extension extension=i.landsat.toar which: wget: unknown command Fetching <i.landsat.toar> from GRASS-Addons SVN (be patient)... A i.landsat.toar\landsat_set.c A i.landsat.toar\local_proto.h A i.landsat.toar\main.c A i.landsat.toar\description.html A i.landsat.toar\landsat.c A i.landsat.toar\earth_sun.c A i.landsat.toar\landsat.h A i.landsat.toar\landsat_met.c A i.landsat.toar\Makefile A i.landsat.toar\earth_sun.h Checked out revision 43689. Compiling <i.landsat.toar>... test -d OBJ.i686-pc-mingw32 || mkdir -p OBJ.i686-pc-mingw32 gcc -I/c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32/include -I/c/OSGeo4W/apps/gdal-16/include -I/c/OSGeo4W/include -g -O2 -I/c/OSGeo4W/apps/gdal-16/include -I/c/OSGeo4W/include -DPACKAGE=\""grassmods"\" -I/c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32/include -o OBJ.i686-pc-mingw32/earth_sun.o -c earth_sun.c gcc -I/c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32/include -I/c/OSGeo4W/apps/gdal-16/include -I/c/OSGeo4W/include -g -O2 -I/c/OSGeo4W/apps/gdal-16/include -I/c/OSGeo4W/include -DPACKAGE=\""grassmods"\" -I/c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32/include -o OBJ.i686-pc-mingw32/landsat.o -c landsat.c landsat.c:4:23: grass/gis.h: No such file or directory make: *** [OBJ.i686-pc-mingw32/landsat.o] Error 1 FEHLER: Compilation failed, sorry. Please check above error messages. rm: cannot remove directory `C:\\gisdata\\grassdata/wgs84gc/user1/.tmp/3116.0/i.landsat.toar': Permission denied GRASS 6.4>
ah, maybe it looks for the includes in
C:\OSGeo4W\usr\src\grass64svn\dist.i686-pc-mingw32\include
as instead in?
C:\OSGeo4W\apps\grass\grass-6.4.1svn\include
the first one doesn't exist after a make distclean.
Helmut
follow-ups: 7 11 comment:6 by , 14 years ago
Replying to hellik:
with added -x in the first line:
Makefile:12: c:/Program: No such file or directory Makefile:12: Files/GRASS-64-SVN/include/Make/Module.make: No such file or directory
Makefiles can't handle spaces in filenames, and this is rather fundamental to the way make works. Spaces separate tokens, and there isn't any (documented) mechanism to quote spaces.
If the variables were only used in commands, you could quote them, but that won't work elsewhere (e.g. "include" statements or dependencies).
The only workaround I know is to use 8.3 names (e.g. "/c/progra~1" rather than "/c/Program Files"), but I don't know how to perform that conversion from within a script (from C, you can use GetShortPathName()).
follow-up: 8 comment:7 by , 14 years ago
Replying to glynn:
Replying to hellik:
with added -x in the first line:
Makefile:12: c:/Program: No such file or directory Makefile:12: Files/GRASS-64-SVN/include/Make/Module.make: No such file or directoryMakefiles can't handle spaces in filenames, and this is rather fundamental to the way make works. Spaces separate tokens, and there isn't any (documented) mechanism to quote spaces.
If the variables were only used in commands, you could quote them, but that won't work elsewhere (e.g. "include" statements or dependencies).
The only workaround I know is to use 8.3 names (e.g. "/c/progra~1" rather than "/c/Program Files"), but I don't know how to perform that conversion from within a script (from C, you can use GetShortPathName()).
would a little bat-script on the windows-command-line help?
%~1 - expands %1 removing any surrounding quotes (") %~f1 - expands %1 to a fully qualified path name %~d1 - expands %1 to a drive letter only %~p1 - expands %1 to a path only %~n1 - expands %1 to a file name only %~x1 - expands %1 to a file extension only %~s1 - expanded path contains short names only %~a1 - expands %1 to file attributes %~t1 - expands %1 to date/time of file %~z1 - expands %1 to size of file %~$PATH:1 - searches the directories listed in the PATH environment variable and expands %1 to the fully qualified name of the first one found. If the environment variable name is not defined or the file is not found by the search, then this modifier expands to the empty string The modifiers can be combined to get compound results: %~dp1 - expands %1 to a drive letter and path only %~nx1 - expands %1 to a file name and extension only %~dp$PATH:1 - searches the directories listed in the PATH environment variable for %1 and expands to the drive letter and path of the first one found. %~ftza1 - expands %1 to a DIR like output line
for example param.bat:
@echo off echo %%~1 = %~1 echo %%~f1 = %~f1 echo %%~d1 = %~d1 echo %%~p1 = %~p1 echo %%~n1 = %~n1 echo %%~x1 = %~x1 echo %%~s1 = %~s1 echo %%~a1 = %~a1 echo %%~t1 = %~t1 echo %%~z1 = %~z1 echo %%~$PATHATH:1 = %~$PATHATH:1 echo %%~dp1 = %~dp1 echo %%~nx1 = %~nx1 echo %%~dp$PATH:1 = %~dp$PATH:1 echo %%~ftza1 = %~ftza1
a little test with following installation path "C:\Program Files\GRASS-64-SVN\"
C:\wd>param.bat "C:\Program Files\GRASS-64-SVN\" %~1 = C:\Program Files\GRASS-64-SVN\ %~f1 = C:\Program Files\GRASS-64-SVN\ %~d1 = C: %~p1 = \Program Files\GRASS-64-SVN\ %~n1 = %~x1 = %~s1 = C:\PROGRA~1\GRASS-~2\ %~a1 = d----c--- %~t1 = 25.09.2010 16:56 %~z1 = 4096 %~$PATHATH:1 = %~dp1 = C:\Program Files\GRASS-64-SVN\ %~nx1 = %~dp$PATH:1 = C:\Program Files\GRASS-64-SVN\ %~ftza1 = d----c--- 25.09.2010 16:56 4096 C:\Program Files\GRASS-64-SVN\ C:\wd>
Helmut
follow-ups: 9 10 12 comment:8 by , 14 years ago
Replying to hellik:
would a little bat-script on the windows-command-line help?
%~1 - expands %1 removing any surrounding quotes (") %~f1 - expands %1 to a fully qualified path name ...
This doesn't work for me (on XP Pro). Is this a !Vista/Win7 feature?
comment:9 by , 14 years ago
Replying to glynn:
Replying to hellik:
would a little bat-script on the windows-command-line help?
%~1 - expands %1 removing any surrounding quotes (") %~f1 - expands %1 to a fully qualified path name ...This doesn't work for me (on XP Pro). Is this a !Vista/Win7 feature?
I've get above from following websites:
http://stackoverflow.com/questions/659647/how-to-get-folder-path-from-file-path-with-cmd
http://weblogs.asp.net/jgalloway/archive/2006/11/20/top-10-dos-batch-tips-yes-dos-batch.aspx
I've only WinVista32, but I don't think it's only in WinVista/Win7.
you can get this information as part of the help information for: for /? in the windows-command-line.
in one of the above mentioned websites:
Batch file parameters are read as %1, %2, etc. DOS Command Extensions - available on Windows 2000 and up - [...]
Helmut
comment:10 by , 14 years ago
Replying to glynn:
Replying to hellik:
would a little bat-script on the windows-command-line help?
%~1 - expands %1 removing any surrounding quotes (") %~f1 - expands %1 to a fully qualified path name ...This doesn't work for me (on XP Pro). Is this a !Vista/Win7 feature?
as mentioned in:
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/for.mspx?mfr=true
it should also be working in WinXP
Helmut
comment:11 by , 14 years ago
Replying to glynn:
The only workaround I know is to use 8.3 names (e.g. "/c/progra~1" rather than "/c/Program Files"), but I don't know how to perform that conversion from within a script (from C, you can use GetShortPathName()).
maybe we could expose that function as a new -s flag of g.dirseps?
As Helmut noted, and IIRC the Windows installer scripts use somewhere, there is a Windows XP batch file solution to shortening them as well. The answer will be in our own archives from 6 months ago or so as I remember testing it.
Hamish
comment:12 by , 14 years ago
Replying to glynn:
This doesn't work for me (on XP Pro). Is this a !Vista/Win7 feature?
Correction: it doesn't work when "executing" the batch file directly from the shell. It does work if you explicitly invoke it via cmd, e.g.:
~ $ cmd /c "foo.bat \"$APPDATA\""
follow-up: 14 comment:13 by , 14 years ago
The answer will be in our own archives from 6 months ago or so..
two batch file leads to get 8.3 shortened path names:
dir /x
and
%~sX
see #629 comment 3, and
http://old.nabble.com/make-target---dependency-names-with-spaces-td22997327.html http://sourceforge.net/tracker/index.php?func=detail&aid=1087569&group_id=2435&atid=202435
Hamish
follow-ups: 15 16 comment:14 by , 14 years ago
Replying to hamish:
The answer will be in our own archives from 6 months ago or so..
two batch file leads to get 8.3 shortened path names:
dir /x
and
%~sX
see #629 comment 3, and
http://old.nabble.com/make-target---dependency-names-with-spaces-td22997327.html http://sourceforge.net/tracker/index.php?func=detail&aid=1087569&group_id=2435&atid=202435
Hamish
I've searched a little bit through the wingrass-nsis-code.
getting the short name of the installation path is already there: (https://trac.osgeo.org/grass/browser/grass/branches/develbranch_6/mswindows/GRASS-Installer.nsi#L804)
;Get the short form of the install path (to allow for paths with spaces) VAR /GLOBAL INST_DIR_SHORT GetFullPathName /SHORT $INST_DIR_SHORT $INSTALL_DIR
so maybe this can be used? where could this be included and as which variable?
Helmut
p.s. noted that this is a statical approach, but at the moment it's a chance to test g.extension in wingrass. later on - after testing g.extension - it could be changed into a dynamically approach as described in comment:7
comment:15 by , 14 years ago
Replying to hellik:
;Get the short form of the install path (to allow for paths with spaces) VAR /GLOBAL INST_DIR_SHORT GetFullPathName /SHORT $INST_DIR_SHORT $INSTALL_DIR
as information the reference from the nsis-manual http://nsis.sourceforge.net/Docs/Chapter4.html#4.9
4.9.3.9 GetFullPathName [/SHORT] user_var(output) path_or_file Assign to the user variable $x, the full path of the file specified. If the path portion of the parameter is not found, the error flag will be set and $x will be empty. If /SHORT is specified, the path is converted to the short filename form. However, if /SHORT is not specified, the path isn't converted to its long filename form. To get the long filename, call GetLongPathName using the System plug-in. Note that GetLongPathName is only available on Windows 98, Windows 2000 and above. StrCpy $INSTDIR $PROGRAMFILES\NSIS SetOutPath $INSTDIR GetFullPathName $0 .. DetailPrint $0 # will print C:\Program Files GetFullPathName /SHORT $0 $INSTDIR DetailPrint $0 # will print C:\Progra~1\NSIS StrCpy $0 C:\Progra~1\NSIS System::Call 'kernel32::GetLongPathName(t r0, t .r1, i ${NSIS_MAX_STRLEN}) i .r2' StrCmp $2 error +2 StrCpy $0 $1 DetailPrint $0 # will print C:\Program Files\NSIS, where supported
follow-ups: 17 18 comment:16 by , 14 years ago
Replying to hellik:
p.s. noted that this is a statical approach, but at the moment it's a chance to test g.extension in wingrass. later on - after testing g.extension - it could be changed into a dynamically approach as described in comment:7
right, notice in the above comment:7 you get:
%~s1 = C:\PROGRA~1\GRASS-~2\
as you have more than 1 grass installed. Of course people will add and remove different grasses after the initial install, so setting it to the shortened version as it was at install time is not ideal. I can even imagine someone downloading multiple versions of WinGrass and trying to run both the installers at the same time, with interesting results if GRASS-~1 suddenly becomes GRASS-~2 as far as the file system is concerned.
Hamish
ps- why not "C:\Program Files\GRASS-6.4.SVN" ? -64- looks a little weird to me and could be confused with 64bit. does the .4 or .svn get mistaken for a file type? On the other hand, final \GRASS-64 (or is it GRASS-640?) fits into 8.3 already which avoids some of the shortname headaches. Same for the names in the Start menu structure.
comment:17 by , 14 years ago
Replying to hamish:
Replying to hellik:
p.s. noted that this is a statical approach, but at the moment it's a chance to test g.extension in wingrass. later on - after testing g.extension - it could be changed into a dynamically approach as described in comment:7
right, notice in the above comment:7 you get:
%~s1 = C:\PROGRA~1\GRASS-~2\as you have more than 1 grass installed. Of course people will add and remove different grasses after the initial install, so setting it to the shortened version as it was at install time is not ideal.
but we are already there, see (see http://trac.osgeo.org/grass/browser/grass/branches/releasebranch_6_4/mswindows/GRASS-Installer.nsi#L812)
;create the $INSTALL_DIR\msys\etc\fstab with the main grass dir mount info ClearErrors FileOpen $0 $INSTALL_DIR\msys\etc\fstab w IfErrors done_create_fstab FileWrite $0 '$INST_DIR_SHORT /grass$\r$\n' FileClose $0 done_create_fstab:
which leads on my laptop after a lot install/deinstall from different WinGrass64/65/70-versions to
C:\PROGRA~1\GRASS-~3 /grass
which is different of situation at installation time.
I have no idea at the moment if this (;create the $INSTALL_DIR\msys\etc\fstab with the main grass dir mount info)affects a WinGrass-installation?
ps- why not "C:\Program Files\GRASS-6.4.SVN" ? -64- looks a little weird to me and could be confused with 64bit. does the .4 or .svn get mistaken for a file type? On the other hand, final \GRASS-64 (or is it GRASS-640?) fits into 8.3 already which avoids some of the shortname headaches. Same for the names in the Start menu structure.
I would vote for a rearrangement/renaming of the WinGrass-installation if this could enhance the situation.
any hints for suitable naming convention for the different WinGrass-Versions?
Helmut
comment:18 by , 14 years ago
Replying to hamish:
ps- why not "C:\Program Files\GRASS-6.4.SVN" ? -64- looks a little weird to me and could be confused with 64bit. does the .4 or .svn get mistaken for a file type?
for example I have different examples of installation paths in my WinVista-box which are working:
C:\Program Files\ET GeoTools 9.4 for ArcGIS 9.2 C:\Program Files\MSXML 4.0 C:\Program Files\OpenOffice.org 3 C:\Program Files\Scribus 1.3.5.1 C:\Program Files\Notepad++
Helmut
follow-ups: 20 21 22 comment:19 by , 14 years ago
FileOpen $0 $INSTALL_DIR\msys\etc\fstab w IfErrors done_create_fstab FileWrite $0 '$INST_DIR_SHORT /grass$\r$\n'
IIRC the fstab file was one of the MSys dev's "we don't support spaces in path names and won't even accept bugfix patches" fun times. (/etc/fstab is whitespace delimited)
Should we (can we?) rewrite that file each time at program startup to reflect the current shortname version of the path?
no reports of it breaking anything (yet).
Hamish
comment:20 by , 14 years ago
Replying to hamish:
FileOpen $0 $INSTALL_DIR\msys\etc\fstab w IfErrors done_create_fstab FileWrite $0 '$INST_DIR_SHORT /grass$\r$\n'IIRC the fstab file was one of the MSys dev's "we don't support spaces in path names and won't even accept bugfix patches" fun times. (/etc/fstab is whitespace delimited)
Should we (can we?) rewrite that file each time at program startup to reflect the current shortname version of the path?
for this maybe (?) write access is needed in C:\Program Files\GRASS-64-SVN\, but I don't know if this is guaranteed on every windows-installation (see stats.out from r.terraflow).
Helmut
p.s. the windows-world seems to be a little bit mysterious
comment:21 by , 14 years ago
Replying to hamish:
IIRC the fstab file was one of the MSys dev's "we don't support spaces in path names and won't even accept bugfix patches" fun times. (/etc/fstab is whitespace delimited)
Should we (can we?) rewrite that file each time at program startup to reflect the current shortname version of the path?
It's important to be clear on one thing: are we providing "GRASS for Windows" or "GRASS for MSys"? You cannot make one package which does both perfectly. Improving MSys compatibility will tend to harm Windows compatibility and vice-versa.
MSys shouldn't be needed at run time other than for shell scripts. If these are problematic, maybe we should consider moving to Python for 6.4.1?
Building is always going to be problematic. make is fundamentally a Unix tool, but using anything else puts a substantial (and arguably unreasonable) burden upon developers. Ordinarily you would just assume a certain level of competence from people who want to build from source.
If you want an "easy mode" in the form of g.extension, I think that it's primarily g.extension's responsibility to handle the Windows issues.
follow-up: 23 comment:22 by , 14 years ago
Replying to hamish:
Should we (can we?) rewrite that file each time at program startup to reflect the current shortname version of the path?
a possible example from the osgeo4w-commandline-starting-script for getting dynamically the current path:
@echo off rem Root OSGEO4W home dir to the same directory this script exists in set OSGEO4W_ROOT=%~dp0 rem Remove trailing backslash set OSGEO4W_ROOT=%OSGEO4W_ROOT:~0,-1%
Helmut
follow-ups: 24 25 comment:23 by , 14 years ago
Replying to hellik:
Replying to hamish:
Should we (can we?) rewrite that file each time at program startup to reflect the current shortname version of the path?
a possible example from the osgeo4w-commandline-starting-script for getting dynamically the current path:
@echo off rem Root OSGEO4W home dir to the same directory this script exists in set OSGEO4W_ROOT=%~dp0 rem Remove trailing backslash set OSGEO4W_ROOT=%OSGEO4W_ROOT:~0,-1%Helmut
FYI instead of the installation path in windows written in the startup-script grass64svn.bat by the nsis-installer once during installation:
for example
[...] rem Set GRASS Installation Directory Variable set GRASSDIR=C:\Program Files\GRASS-64-SVN [...]
I've tried following in the startup-script grass64svn.bat
[...] set GRASSDIR=%~dps0 set GRASSDIR=%GRASSDIR:~0,-1% [...]
the installation path is expanded in the short form without a trailing backslash.
wingrass64 is starting and working normally.
so maybe this way of getting the shortform of the installation path could help for make used by g.extension (maybe also for the +nadgrids-problem with spaces in path, ...)?
Helmut
p.s. any idea about http://trac.osgeo.org/grass/ticket/1103 (releasing the windows command line)
comment:24 by , 14 years ago
Replying to hellik:
I've tried following in the startup-script grass64svn.bat
[...] set GRASSDIR=%~dps0 set GRASSDIR=%GRASSDIR:~0,-1% [...]the installation path is expanded in the short form without a trailing backslash.
wingrass64 is starting and working normally.
so maybe this way of getting the shortform of the installation path could help for make used by g.extension (maybe also for the +nadgrids-problem with spaces in path, ...)?
now I've tried the i.landsat.toar example from the manpage with this above mentioned approach of the short path name (WinGrass64 installed in C:\Program Files\GRASS-64-SVN)
g.extension extension=i.landsat.toar svnurl=https://svn.osgeo.org/grass/grass-addons which: wget: unknown command Fetching <i.landsat.toar> from GRASS-Addons SVN (be patient)... A i.landsat.toar\landsat_set.c A i.landsat.toar\local_proto.h A i.landsat.toar\main.c A i.landsat.toar\description.html A i.landsat.toar\landsat.c A i.landsat.toar\earth_sun.c A i.landsat.toar\landsat.h A i.landsat.toar\landsat_met.c A i.landsat.toar\Makefile A i.landsat.toar\earth_sun.h U i.landsat.toar Checked out revision 44051. Compiling <i.landsat.toar>... mkdir -p /c/osgeo4w/usr/src/grass64svn/bin.i686-pc-mingw32 mkdir -p /c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32/include/grass mkdir -p /c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32/lib mkdir -p /c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32/bin mkdir -p /c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32/etc mkdir -p /c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32/driver mkdir -p /c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32/driver/db mkdir -p /c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32/fonts test -d OBJ.i686-pc-mingw32 || mkdir -p OBJ.i686-pc-mingw32 gcc -I/c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32/include -I/c/OSGeo4W/apps/gdal-16/include -I/c/OSGeo4W/include -g -O2 -I/c/OSGeo4W/apps/gdal-16/include -I/c/OSGeo4W/include -DPACKAGE=\""grassmods"\" -I/c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32/include -o OBJ.i686-pc-mingw32/earth_sun.o -c earth_sun.c gcc.exe: installation problem, cannot exec `cc1': No such file or directory make: *** [OBJ.i686-pc-mingw32/earth_sun.o] Error 1 ERROR: Compilation failed, sorry. Please check above error messages. rm: cannot remove directory `C:\\gisdata\\grassdata/nc_spm_0 8/user1/.tmp/6444.0/i.landsat.toar': Permission denied
so there is mentioned in message above:
/c/osgeo4w/usr/src/grass64svn/bin.i686-pc-mingw32
this is a relict of the original wingrass building environment, but, normally, this isn't there.
Helmut
follow-up: 26 comment:25 by , 14 years ago
Replying to hellik:
[...] set GRASSDIR=%~dps0 set GRASSDIR=%GRASSDIR:~0,-1% [...]the installation path is expanded in the short form without a trailing backslash.
some updated information with a recent self built Wingrass65svn-installer:
I've changed and added following in the startup script
rem Set GRASS Installation Directory Variable rem set GRASSDIR=C:\Program Files\GRASS 6.5.SVN set GRASSDIR=%~dps0 set GRASSDIR=%GRASSDIR:~0,-1% rem set GRASS_ADDON_PATH set GRASS_ADDON_PATH=%~dps0 set GRASS_ADDON_PATH=%GRASS_ADDON_PATH:~0,-1%\addons
result:
g.extension --verbose extension=i.landsat.toar svnurl=https://svn.osgeo.org/grass/grass-addons Using WGET for downloading data. Fetching <i.landsat.toar> from GRASS-Addons SVN (be patient)... A i.landsat.toar\landsat_set.c A i.landsat.toar\local_proto.h A i.landsat.toar\main.c A i.landsat.toar\description.html A i.landsat.toar\landsat.c A i.landsat.toar\earth_sun.c A i.landsat.toar\landsat.h A i.landsat.toar\landsat_met.c A i.landsat.toar\Makefile A i.landsat.toar\earth_sun.h U i.landsat.toar Checked out revision 45194. Compiling <i.landsat.toar>... C:/PROGRA~1/GRASS6~1.SVN/include/Make/Module.make:25: warning: overriding commands for target `install' C:/PROGRA~1/GRASS6~1.SVN/include/Make/Rules.make:90: warning: ignoring old commands for target `install' mkdir -p /c/OSGeo4W/apps/grass/grass-6.5.svn/bin.i686-pc-mingw32 mkdir -p /c/OSGeo4W/apps/grass/grass-6.5.svn/dist.i686-pc-mingw32/include/grass mkdir -p /c/OSGeo4W/apps/grass/grass-6.5.svn/dist.i686-pc-mingw32/lib mkdir -p /c/OSGeo4W/apps/grass/grass-6.5.svn/dist.i686-pc-mingw32/bin mkdir -p /c/OSGeo4W/apps/grass/grass-6.5.svn/dist.i686-pc-mingw32/etc mkdir -p /c/OSGeo4W/apps/grass/grass-6.5.svn/dist.i686-pc-mingw32/driver mkdir -p /c/OSGeo4W/apps/grass/grass-6.5.svn/dist.i686-pc-mingw32/driver/db mkdir -p /c/OSGeo4W/apps/grass/grass-6.5.svn/dist.i686-pc-mingw32/fonts test -d OBJ.i686-pc-mingw32 || mkdir -p OBJ.i686-pc-mingw32 gcc -I/c/OSGeo4W/apps/grass/grass-6.5.svn/dist.i686-pc-mingw32/include -I/c/OSGeo4W/apps/gdal-16/include -I/c/OSGeo4W/include -g -O2 -I/c/OSGeo4W/apps/gdal-16/include -I/c/OSGeo4W/include -DPACKAGE=\""grassmods"\" -I/c/OSGeo4W/apps/grass/grass-6.5.svn/dist.i686-pc-mingw32/include -o OBJ.i686-pc-mingw32/earth_sun.o -c earth_sun.c gcc.exe: installation problem, cannot exec `cc1': No such file or directory make: *** [OBJ.i686-pc-mingw32/earth_sun.o] Error 1 ERROR: Compilation failed, sorry. Please check above error messages. rm: cannot remove directory `C:\\gisdata\\grassdata/nc_spm_0 8/g65/.tmp/6348.0/i.landsat.toar': Permission denied
Helmut
follow-up: 27 comment:26 by , 14 years ago
Replying to hellik:
gcc -I/c/OSGeo4W/apps/grass/grass-6.5.svn/dist.i686-pc-mingw32/include '''-I/c/OSGeo4W/apps/gdal-16/include''' -I/c/OSGeo4W/include -g -O2 -I/c/OSGeo4W/apps/gdal-16/include -I/c/OSGeo4W/include -DPACKAGE=\""grassmods"\" -I/c/OSGeo4W/apps/grass/grass-6.5.svn/dist.i686-pc-mingw32/include -o OBJ.i686-pc-mingw32/earth_sun.o -c earth_sun.c
AFAICS the files from c/OSGeo4W/apps/gdal-16/include are not really packed into the WinGrass-installer.
Helmut
follow-up: 28 comment:27 by , 14 years ago
Replying to hellik:
gcc.exe: installation problem, cannot exec `cc1': No suchfile or directory
what does this mean?
Helmut
follow-up: 29 comment:28 by , 14 years ago
Replying to hellik:
Replying to hellik:
gcc.exe: installation problem, cannot exec `cc1': No suchfile or directorywhat does this mean?
Helmut
these exes are in C:\OSGeo4W\libexec\gcc\mingw32\3.4.5 and not packed into the wingrass-installer.
if I put these files in C:\Program Files\GRASS 6.5.SVN\extrabin
there is following result
(Wed Jan 26 16:02:04 2011) g.extension --verbose extension=i.landsat.toar svnurl=https://svn.osgeo.org/grass/grass-addons Using WGET for downloading data. Fetching <i.landsat.toar> from GRASS-Addons SVN (be patient)... A i.landsat.toar\landsat_set.c A i.landsat.toar\local_proto.h A i.landsat.toar\main.c A i.landsat.toar\description.html A i.landsat.toar\landsat.c A i.landsat.toar\earth_sun.c A i.landsat.toar\landsat.h A i.landsat.toar\landsat_met.c A i.landsat.toar\Makefile A i.landsat.toar\earth_sun.h U i.landsat.toar Checked out revision 45194. Compiling <i.landsat.toar>... C:/PROGRA~1/GRASS6~1.SVN/include/Make/Module.make:25: warning: overriding commands for target `install' C:/PROGRA~1/GRASS6~1.SVN/include/Make/Rules.make:90: warning: ignoring old commands for target `install' test -d OBJ.i686-pc-mingw32 || mkdir -p OBJ.i686-pc-mingw32 gcc -I/c/OSGeo4W/apps/grass/grass-6.5.svn/dist.i686-pc-mingw32/include -I/c/OSGeo4W/apps/gdal-16/include -I/c/OSGeo4W/include -g -O2 -I/c/OSGeo4W/apps/gdal-16/include -I/c/OSGeo4W/include -DPACKAGE=\""grassmods"\" -I/c/OSGeo4W/apps/grass/grass-6.5.svn/dist.i686-pc-mingw32/include -o OBJ.i686-pc-mingw32/earth_sun.o -c earth_sun.c In file included from earth_sun.c:25: c:/OSGeo4W/include/stdio.h:26:20: stddef.h: No such file or directory c:/OSGeo4W/include/stdio.h:28:20: stdarg.h: No such file or directory In file included from earth_sun.c:25: c:/OSGeo4W/include/stdio.h:191: error: syntax error before "size_t" c:/OSGeo4W/include/stdio.h:207: error: syntax error before "size_t" c:/OSGeo4W/include/stdio.h:208: error: syntax error before "__gnuc_va_list" c:/OSGeo4W/include/stdio.h:209: error: syntax error before "__gnuc_va_list" c:/OSGeo4W/include/stdio.h:210: error: syntax error before "__gnuc_va_list" c:/OSGeo4W/include/stdio.h:211: error: syntax error before "size_t" c:/OSGeo4W/include/stdio.h:296: error: syntax error before "__gnuc_va_list" c:/OSGeo4W/include/stdio.h:297: error: syntax error before "__gnuc_va_list" c:/OSGeo4W/include/stdio.h:298: error: syntax error before "__gnuc_va_list" c:/OSGeo4W/include/stdio.h:311: error: syntax error before "__gnuc_va_list" c:/OSGeo4W/include/stdio.h:312: error: syntax error before "__gnuc_va_list" c:/OSGeo4W/include/stdio.h:313: error: syntax error before "__gnuc_va_list" c:/OSGeo4W/include/stdio.h:319: error: syntax error before "size_t" c:/OSGeo4W/include/stdio.h:320: error: syntax error before "size_t" c:/OSGeo4W/include/stdio.h:330: error: syntax error before "size_t" c:/OSGeo4W/include/stdio.h:330: warning: conflicting types for built-in function 'snprintf' c:/OSGeo4W/include/stdio.h:331: error: syntax error before "size_t" c:/OSGeo4W/include/stdio.h:333: error: syntax error before "__gnuc_va_list" c:/OSGeo4W/include/stdio.h:335: error: syntax error before "__gnuc_va_list" c:/OSGeo4W/include/stdio.h:337: error: syntax error before "__gnuc_va_list" c:/OSGeo4W/include/stdio.h:411: warning: `__cdecl__' attribute only applies to function types c:/OSGeo4W/include/stdio.h:411: warning: `__nothrow__' attribute ignored c:/OSGeo4W/include/stdio.h:411: error: syntax error before "fread" c:/OSGeo4W/include/stdio.h:412: warning: `__cdecl__' attribute only applies to function types c:/OSGeo4W/include/stdio.h:412: warning: `__nothrow__' attribute ignored c:/OSGeo4W/include/stdio.h:412: error: syntax error before "fwrite" In file included from earth_sun.c:25: c:/OSGeo4W/include/stdio.h:562: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h:563: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h:564: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h:565: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h:566: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h:567: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h:568: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h:569: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h:570: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h:571: warning: `__cdecl__' attribute only applies to function types c:/OSGeo4W/include/stdio.h:571: warning: `__nothrow__' attribute ignored c:/OSGeo4W/include/stdio.h:571: error: syntax error before "fgetwc" c:/OSGeo4W/include/stdio.h:572: warning: `__cdecl__' attribute only applies to function types c:/OSGeo4W/include/stdio.h:572: warning: `__nothrow__' attribute ignored c:/OSGeo4W/include/stdio.h:572: error: syntax error before "fputwc" c:/OSGeo4W/include/stdio.h:573: warning: `__cdecl__' attribute only applies to function types c:/OSGeo4W/include/stdio.h:573: warning: `__nothrow__' attribute ignored c:/OSGeo4W/include/stdio.h:573: error: syntax error before "ungetwc" c:/OSGeo4W/include/stdio.h:577: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h:578: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h:582: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h:582: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h:582: warning: data definition has no type or storage class c:/OSGeo4W/include/stdio.h:583: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h:584: warning: `__cdecl__' attribute only applies to function types c:/OSGeo4W/include/stdio.h:584: warning: `__nothrow__' attribute ignored c:/OSGeo4W/include/stdio.h:584: error: syntax error before "getwc" c:/OSGeo4W/include/stdio.h:585: warning: `__cdecl__' attribute only applies to function types c:/OSGeo4W/include/stdio.h:585: warning: `__nothrow__' attribute ignored c:/OSGeo4W/include/stdio.h:585: error: syntax error before "getwchar" c:/OSGeo4W/include/stdio.h:586: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h:586: warning: data definition has no type or storage class c:/OSGeo4W/include/stdio.h:587: warning: `__cdecl__' attribute only applies to function types c:/OSGeo4W/include/stdio.h:587: warning: `__nothrow__' attribute ignored c:/OSGeo4W/include/stdio.h:587: error: syntax error before "putwc" c:/OSGeo4W/include/stdio.h:588: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h:589: warning: `__cdecl__' attribute only applies to function types c:/OSGeo4W/include/stdio.h:589: warning: `__nothrow__' attribute ignored c:/OSGeo4W/include/stdio.h:589: error: syntax error before "putwchar" c:/OSGeo4W/include/stdio.h:590: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h:591: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h:592: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h:593: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h:594: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h:594: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h:594: warning: data definition has no type or storage class c:/OSGeo4W/include/stdio.h:595: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h:595: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h:595: warning: data definition has no type or storage class c:/OSGeo4W/include/stdio.h:596: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h:597: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h:598: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h:599: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h:603: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h:605: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h: In function `vsnwprintf': c:/OSGeo4W/include/stdio.h:606: error: `s' undeclared (first use in this function) c:/OSGeo4W/include/stdio.h:606: error: (Each undeclared identifier is reported only once c:/OSGeo4W/include/stdio.h:606: error: for each function it appears in.) c:/OSGeo4W/include/stdio.h:606: error: `n' undeclared (first use in this function) c:/OSGeo4W/include/stdio.h:606: error: `format' undeclared (first use in this function) c:/OSGeo4W/include/stdio.h:606: error: `arg' undeclared (first use in this function) c:/OSGeo4W/include/stdio.h: At top level: c:/OSGeo4W/include/stdio.h:607: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h:609: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h:610: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h:620: error: syntax error before '*' token c:/OSGeo4W/include/stdio.h:627: warning: `__cdecl__' attribute only applies to function types c:/OSGeo4W/include/stdio.h:627: warning: `__nothrow__' attribute ignored c:/OSGeo4W/include/stdio.h:627: error: syntax error before "_fgetwchar" c:/OSGeo4W/include/stdio.h:628: warning: `__cdecl__' attribute only applies to function types c:/OSGeo4W/include/stdio.h:628: warning: `__nothrow__' attribute ignored c:/OSGeo4W/include/stdio.h:628: error: syntax error before "_fputwchar" c:/OSGeo4W/include/stdio.h:633: warning: `__cdecl__' attribute only applies to function types c:/OSGeo4W/include/stdio.h:633: warning: `__nothrow__' attribute ignored c:/OSGeo4W/include/stdio.h:633: error: syntax error before "fgetwchar" c:/OSGeo4W/include/stdio.h:634: warning: `__cdecl__' attribute only applies to function types c:/OSGeo4W/include/stdio.h:634: warning: `__nothrow__' attribute ignored c:/OSGeo4W/include/stdio.h:634: error: syntax error before "fputwchar" In file included from earth_sun.c:26: c:/OSGeo4W/include/stdlib.h:79: error: syntax error before '*' token c:/OSGeo4W/include/stdlib.h:79: warning: data definition has no type or storage class c:/OSGeo4W/include/stdlib.h:150: error: syntax error before '*' token c:/OSGeo4W/include/stdlib.h:150: warning: data definition has no type or storage class c:/OSGeo4W/include/stdlib.h:262: error: syntax error before '*' token c:/OSGeo4W/include/stdlib.h:262: warning: data definition has no type or storage class c:/OSGeo4W/include/stdlib.h:307: error: syntax error before '*' token c:/OSGeo4W/include/stdlib.h:308: error: syntax error before '*' token c:/OSGeo4W/include/stdlib.h:333: error: syntax error before '*' token c:/OSGeo4W/include/stdlib.h:334: error: syntax error before '*' token c:/OSGeo4W/include/stdlib.h:335: error: syntax error before '*' token c:/OSGeo4W/include/stdlib.h:337: error: syntax error before '*' token c:/OSGeo4W/include/stdlib.h:338: error: syntax error before '*' token c:/OSGeo4W/include/stdlib.h:341: error: syntax error before '*' token c:/OSGeo4W/include/stdlib.h:341: error: syntax error before '*' token c:/OSGeo4W/include/stdlib.h:341: warning: data definition has no type or storage class c:/OSGeo4W/include/stdlib.h:342: error: syntax error before '*' token c:/OSGeo4W/include/stdlib.h:343: error: syntax error before '*' token c:/OSGeo4W/include/stdlib.h:344: error: syntax error before '*' token c:/OSGeo4W/include/stdlib.h:345: error: syntax error before '*' token c:/OSGeo4W/include/stdlib.h:346: error: syntax error before '*' token c:/OSGeo4W/include/stdlib.h:347: error: syntax error before '*' token c:/OSGeo4W/include/stdlib.h:347: error: syntax error before '*' token c:/OSGeo4W/include/stdlib.h:347: warning: data definition has no type or storage class c:/OSGeo4W/include/stdlib.h:352: warning: `__cdecl__' attribute only applies to function types c:/OSGeo4W/include/stdlib.h:352: warning: `__nothrow__' attribute ignored c:/OSGeo4W/include/stdlib.h:352: error: syntax error before "wcstombs" c:/OSGeo4W/include/stdlib.h:353: error: syntax error before "wchar_t" c:/OSGeo4W/include/stdlib.h:355: error: syntax error before "size_t" c:/OSGeo4W/include/stdlib.h:356: warning: `__cdecl__' attribute only applies to function types c:/OSGeo4W/include/stdlib.h:356: warning: `__nothrow__' attribute ignored c:/OSGeo4W/include/stdlib.h:356: error: syntax error before "mbstowcs" c:/OSGeo4W/include/stdlib.h:357: error: syntax error before '*' token c:/OSGeo4W/include/stdlib.h:362: warning: parameter names (without types) in function declaration c:/OSGeo4W/include/stdlib.h:363: warning: parameter names (without types) in function declaration c:/OSGeo4W/include/stdlib.h:364: error: syntax error before "size_t" c:/OSGeo4W/include/stdlib.h:376: error: syntax error before "size_t" c:/OSGeo4W/include/stdlib.h:377: error: syntax error before ')' token c:/OSGeo4W/include/stdlib.h:378: error: syntax error before "size_t" c:/OSGeo4W/include/stdlib.h:379: error: syntax error before ')' token c:/OSGeo4W/include/stdlib.h:425: error: syntax error before "size_t" c:/OSGeo4W/include/stdlib.h:430: error: syntax error before '*' token c:/OSGeo4W/include/stdlib.h:430: error: syntax error before "wchar_t" c:/OSGeo4W/include/stdlib.h:430: warning: data definition has no type or storage class c:/OSGeo4W/include/stdlib.h:431: error: syntax error before '*' token c:/OSGeo4W/include/stdlib.h:431: error: syntax error before "wchar_t" c:/OSGeo4W/include/stdlib.h:431: warning: data definition has no type or storage class c:/OSGeo4W/include/stdlib.h:432: error: syntax error before '*' token c:/OSGeo4W/include/stdlib.h:432: error: syntax error before "wchar_t" c:/OSGeo4W/include/stdlib.h:432: warning: data definition has no type or storage class c:/OSGeo4W/include/stdlib.h:438: error: syntax error before '*' token c:/OSGeo4W/include/stdlib.h:439: error: syntax error before '*' token c:/OSGeo4W/include/stdlib.h:439: error: syntax error before "wchar_t" c:/OSGeo4W/include/stdlib.h:439: warning: data definition has no type or storage class c:/OSGeo4W/include/stdlib.h:440: error: syntax error before '*' token c:/OSGeo4W/include/stdlib.h:440: error: syntax error before "wchar_t" c:/OSGeo4W/include/stdlib.h:440: warning: data definition has no type or storage class c:/OSGeo4W/include/stdlib.h:525: error: syntax error before '*' token c:/OSGeo4W/include/stdlib.h:528: error: syntax error before '*' token c:/OSGeo4W/include/stdlib.h:528: error: syntax error before "wchar_t" c:/OSGeo4W/include/stdlib.h:528: warning: data definition has no type or storage class c:/OSGeo4W/include/stdlib.h:529: error: syntax error before '*' token c:/OSGeo4W/include/stdlib.h:529: error: syntax error before "wchar_t" c:/OSGeo4W/include/stdlib.h:529: warning: data definition has no type or storage class c:/OSGeo4W/include/stdlib.h:538: error: syntax error before '*' token c:/OSGeo4W/include/stdlib.h: In function `wtoll': c:/OSGeo4W/include/stdlib.h:539: error: `_w' undeclared (first use in this function) c:/OSGeo4W/include/stdlib.h: At top level: c:/OSGeo4W/include/stdlib.h:540: error: syntax error before '*' token c:/OSGeo4W/include/stdlib.h:540: error: syntax error before "wchar_t" c:/OSGeo4W/include/stdlib.h: In function `lltow': c:/OSGeo4W/include/stdlib.h:541: error: `_n' undeclared (first use in this function) c:/OSGeo4W/include/stdlib.h:541: error: `_w' undeclared (first use in this function) c:/OSGeo4W/include/stdlib.h:541: error: `_i' undeclared (first use in this function) c:/OSGeo4W/include/stdlib.h: At top level: c:/OSGeo4W/include/stdlib.h:542: error: syntax error before '*' token c:/OSGeo4W/include/stdlib.h:542: error: syntax error before "wchar_t" c:/OSGeo4W/include/stdlib.h: In function `ulltow': c:/OSGeo4W/include/stdlib.h:543: error: `_n' undeclared (first use in this function) c:/OSGeo4W/include/stdlib.h:543: error: `_w' undeclared (first use in this function) c:/OSGeo4W/include/stdlib.h:543: error: `_i' undeclared (first use in this function) In file included from earth_sun.c:27: c:/OSGeo4W/include/string.h: At top level: c:/OSGeo4W/include/string.h:36: error: syntax error before "size_t" c:/OSGeo4W/include/string.h:37: error: syntax error before "size_t" c:/OSGeo4W/include/string.h:38: error: syntax error before "size_t" c:/OSGeo4W/include/string.h:39: error: syntax error before "size_t" c:/OSGeo4W/include/string.h:40: error: syntax error before "size_t" c:/OSGeo4W/include/string.h:46: warning: `__cdecl__' attribute only applies to function types c:/OSGeo4W/include/string.h:46: warning: `__nothrow__' attribute ignored c:/OSGeo4W/include/string.h:46: error: syntax error before "strcspn" c:/OSGeo4W/include/string.h:49: warning: `__cdecl__' attribute only applies to function types c:/OSGeo4W/include/string.h:49: warning: `__nothrow__' attribute ignored c:/OSGeo4W/include/string.h:49: error: syntax error before "strlen" c:/OSGeo4W/include/string.h:50: error: syntax error before "size_t" c:/OSGeo4W/include/string.h:51: error: syntax error before "size_t" c:/OSGeo4W/include/string.h:52: error: syntax error before "size_t" c:/OSGeo4W/include/string.h:55: warning: `__cdecl__' attribute only applies to function types c:/OSGeo4W/include/string.h:55: warning: `__nothrow__' attribute ignored c:/OSGeo4W/include/string.h:55: error: syntax error before "strspn" c:/OSGeo4W/include/string.h:58: warning: `__cdecl__' attribute only applies to function types c:/OSGeo4W/include/string.h:58: warning: `__nothrow__' attribute ignored c:/OSGeo4W/include/string.h:58: error: syntax error before "strxfrm" c:/OSGeo4W/include/string.h:65: error: syntax error before "size_t" c:/OSGeo4W/include/string.h:66: error: syntax error before "size_t" c:/OSGeo4W/include/string.h:72: error: syntax error before "size_t" c:/OSGeo4W/include/string.h:73: error: syntax error before "size_t" c:/OSGeo4W/include/string.h:77: error: syntax error before "size_t" c:/OSGeo4W/include/string.h:80: error: syntax error before "size_t" c:/OSGeo4W/include/string.h:81: error: syntax error before "size_t" c:/OSGeo4W/include/string.h:90: error: syntax error before "size_t" c:/OSGeo4W/include/string.h:91: error: syntax error before "size_t" c:/OSGeo4W/include/string.h:101: error: syntax error before "size_t" c:/OSGeo4W/include/string.h:102: error: syntax error before "size_t" c:/OSGeo4W/include/string.h:104: error: syntax error before "size_t" c:/OSGeo4W/include/string.h: In function `strncasecmp': c:/OSGeo4W/include/string.h:105: error: `__sz1' undeclared (first use in this function) c:/OSGeo4W/include/string.h:105: error: `__sz2' undeclared (first use in this function) c:/OSGeo4W/include/string.h:105: error: `__sizeMaxCompare' undeclared (first use in this function) c:/OSGeo4W/include/string.h: At top level: c:/OSGeo4W/include/string.h:106: error: syntax error before "size_t" c:/OSGeo4W/include/string.h:111: error: syntax error before "size_t" c:/OSGeo4W/include/string.h:122: error: syntax error before '*' token c:/OSGeo4W/include/string.h:122: error: syntax error before '*' token c:/OSGeo4W/include/string.h:122: warning: data definition has no type or storage class c:/OSGeo4W/include/string.h:123: error: syntax error before '*' token c:/OSGeo4W/include/string.h:123: error: syntax error before '*' token c:/OSGeo4W/include/string.h:123: warning: data definition has no type or storage class c:/OSGeo4W/include/string.h:124: error: syntax error before '*' token c:/OSGeo4W/include/string.h:125: error: syntax error before '*' token c:/OSGeo4W/include/string.h:126: error: syntax error before '*' token c:/OSGeo4W/include/string.h:126: error: syntax error before '*' token c:/OSGeo4W/include/string.h:126: warning: data definition has no type or storage class c:/OSGeo4W/include/string.h:127: warning: `__cdecl__' attribute only applies to function types c:/OSGeo4W/include/string.h:127: warning: `__nothrow__' attribute ignored c:/OSGeo4W/include/string.h:127: error: syntax error before "wcscspn" c:/OSGeo4W/include/string.h:129: warning: `__cdecl__' attribute only applies to function types c:/OSGeo4W/include/string.h:129: warning: `__nothrow__' attribute ignored c:/OSGeo4W/include/string.h:129: error: syntax error before "wcslen" c:/OSGeo4W/include/string.h:130: error: syntax error before '*' token c:/OSGeo4W/include/string.h:130: warning: data definition has no type or storage class c:/OSGeo4W/include/string.h:131: error: syntax error before '*' token c:/OSGeo4W/include/string.h:132: error: syntax error before '*' token c:/OSGeo4W/include/string.h:132: error: syntax error before '*' token c:/OSGeo4W/include/string.h:132: warning: data definition has no type or storage class c:/OSGeo4W/include/string.h:133: error: syntax error before '*' token c:/OSGeo4W/include/string.h:133: error: syntax error before '*' token c:/OSGeo4W/include/string.h:133: warning: data definition has no type or storage class c:/OSGeo4W/include/string.h:134: error: syntax error before '*' token c:/OSGeo4W/include/string.h:134: error: syntax error before '*' token c:/OSGeo4W/include/string.h:134: warning: data definition has no type or storage class c:/OSGeo4W/include/string.h:135: warning: `__cdecl__' attribute only applies to function types c:/OSGeo4W/include/string.h:135: warning: `__nothrow__' attribute ignored c:/OSGeo4W/include/string.h:135: error: syntax error before "wcsspn" c:/OSGeo4W/include/string.h:136: error: syntax error before '*' token c:/OSGeo4W/include/string.h:136: warning: data definition has no type or storage class c:/OSGeo4W/include/string.h:137: error: syntax error before '*' token c:/OSGeo4W/include/string.h:137: error: syntax error before '*' token c:/OSGeo4W/include/string.h:137: warning: data definition has no type or storage class c:/OSGeo4W/include/string.h:138: warning: `__cdecl__' attribute only applies to function types c:/OSGeo4W/include/string.h:138: warning: `__nothrow__' attribute ignored c:/OSGeo4W/include/string.h:138: error: syntax error before "wcsxfrm" c:/OSGeo4W/include/string.h:148: error: syntax error before '*' token c:/OSGeo4W/include/string.h:148: warning: data definition has no type or storage class c:/OSGeo4W/include/string.h:149: error: syntax error before '*' token c:/OSGeo4W/include/string.h:150: error: syntax error before '*' token c:/OSGeo4W/include/string.h:151: error: syntax error before '*' token c:/OSGeo4W/include/string.h:151: error: syntax error before '*' token c:/OSGeo4W/include/string.h:151: warning: data definition has no type or storage class c:/OSGeo4W/include/string.h:152: error: syntax error before '*' token c:/OSGeo4W/include/string.h:153: error: syntax error before '*' token c:/OSGeo4W/include/string.h:153: error: syntax error before '*' token c:/OSGeo4W/include/string.h:153: warning: data definition has no type or storage class c:/OSGeo4W/include/string.h:154: error: syntax error before '*' token c:/OSGeo4W/include/string.h:154: error: syntax error before '*' token c:/OSGeo4W/include/string.h:154: warning: data definition has no type or storage class c:/OSGeo4W/include/string.h:155: error: syntax error before '*' token c:/OSGeo4W/include/string.h:155: error: syntax error before '*' token c:/OSGeo4W/include/string.h:155: warning: data definition has no type or storage class c:/OSGeo4W/include/string.h:156: error: syntax error before '*' token c:/OSGeo4W/include/string.h:156: error: syntax error before '*' token c:/OSGeo4W/include/string.h:156: warning: data definition has no type or storage class c:/OSGeo4W/include/string.h:159: error: syntax error before '*' token c:/OSGeo4W/include/string.h:160: error: syntax error before '*' token c:/OSGeo4W/include/string.h:169: error: syntax error before '*' token c:/OSGeo4W/include/string.h:171: error: syntax error before '*' token c:/OSGeo4W/include/string.h: In function `wcscmpi': c:/OSGeo4W/include/string.h:172: error: `__ws1' undeclared (first use in this function) c:/OSGeo4W/include/string.h:172: error: `__ws2' undeclared (first use in this function) c:/OSGeo4W/include/string.h: At top level: c:/OSGeo4W/include/string.h:173: error: syntax error before '*' token c:/OSGeo4W/include/string.h:173: error: syntax error before '*' token c:/OSGeo4W/include/string.h:173: warning: data definition has no type or storage class c:/OSGeo4W/include/string.h:174: error: syntax error before '*' token c:/OSGeo4W/include/string.h:175: error: syntax error before '*' token c:/OSGeo4W/include/string.h:176: error: syntax error before '*' token c:/OSGeo4W/include/string.h:176: error: syntax error before '*' token c:/OSGeo4W/include/string.h:176: warning: data definition has no type or storage class c:/OSGeo4W/include/string.h:177: error: syntax error before '*' token c:/OSGeo4W/include/string.h:178: error: syntax error before '*' token c:/OSGeo4W/include/string.h:178: error: syntax error before '*' token c:/OSGeo4W/include/string.h:178: warning: data definition has no type or storage class c:/OSGeo4W/include/string.h:179: error: syntax error before '*' token c:/OSGeo4W/include/string.h:179: error: syntax error before '*' token c:/OSGeo4W/include/string.h:179: warning: data definition has no type or storage class c:/OSGeo4W/include/string.h:180: error: syntax error before '*' token c:/OSGeo4W/include/string.h:180: error: syntax error before '*' token c:/OSGeo4W/include/string.h:180: warning: data definition has no type or storage class c:/OSGeo4W/include/string.h:181: error: syntax error before '*' token c:/OSGeo4W/include/string.h:181: error: syntax error before '*' token c:/OSGeo4W/include/string.h:181: warning: data definition has no type or storage class make: *** [OBJ.i686-pc-mingw32/earth_sun.o] Error 1 ERROR: Compilation failed, sorry. Please check above error messages. rm: cannot remove directory `C:\\gisdata\\grassdata/nc_spm_0 8/g65/.tmp/1580.0/i.landsat.toar': Permission denied (Wed Jan 26 16:02:22 2011) Befehl ausgeführt (17 sec)
one step further, but the next issue ...
Helmut
by , 14 years ago
Attachment: | grass_cmd_history_r.stream.order.txt added |
---|
comment:29 by , 14 years ago
Replying to hellik:
in this example again:
set GRASSDIR=%~dps0 set GRASSDIR=%GRASSDIR:~0,-1% rem set GRASS_ADDON_PATH set GRASS_ADDON_PATH=%~dps0 set GRASS_ADDON_PATH=%GRASS_ADDON_PATH:~0,-1%\addons
and cc1.exe etc. included in C:\Program Files\GRASS 6.5.SVN\extrabin
attached the result of trying to install r.stream.order by g.extension (which compiles without any problem if included in an normal grass-compilation in the windows-osgeo4w-stack).
there are a lot of references to files in c:/OSGeo4W/include/, but maybe this shouldn't be because normally (in the fact that Grass is installed by the WinGrass-installer) there is no c:/OSGeo4W/include/-folder on a windows-system. AFAICT the files living in c:/OSGeo4W/include/ are not packaged at the moment into the WinGrass-installer.
Helmut
follow-up: 32 comment:31 by , 14 years ago
Replying to neteler:
More fixes have been applied in SVN, please retry.
tested with WinGRASS-6.4.SVN-r46317-1-Setup.exe
GRASS 6.4> g.extension extension=r.stream.order which: wget: unknown command WARNUNG: GRASS_ADDON_PATH is not defined, installing to ~/.grass6/addons/ Fetching <r.stream.order> from GRASS-Addons SVN (be patient)... A r.stream.order\orders.png A r.stream.order\main.c A r.stream.order\description.html A r.stream.order\global.h A r.stream.order\io.c A r.stream.order\order.c A r.stream.order\Makefile Checked out revision 46320. Compiling <r.stream.order>... makefile:12: c:/Program: No such file or directory makefile:12: Files/GRASS: No such file or directory makefile:12: 6.4.SVN/include/Make/Module.make: No such file or directory make: *** No rule to make target `6.4.SVN/include/Make/Module.make'. Stop. FEHLER: Compilation failed, sorry. Please check above error messages. rm: cannot remove directory `C:\\gisdata\\grassdata/nc_spm_08/user1/.tmp/4928.0/r.stream.order': Permission denied
there's still the whitespace-issue.
Helmut
follow-up: 33 comment:32 by , 14 years ago
Replying to hellik: [...]
there's still the whitespace-issue.
if I set GISBASE manually in g.extension to
GISBASE=C:/PROGRA~1/GRASS6~1.SVN
GRASS 6.4> g.extension extension=r.stream.order which: wget: unknown command WARNUNG: GRASS_ADDON_PATH is not defined, installing to ~/.grass6/addons/ Fetching <r.stream.order> from GRASS-Addons SVN (be patient)... A r.stream.order\orders.png A r.stream.order\main.c A r.stream.order\description.html A r.stream.order\global.h A r.stream.order\io.c A r.stream.order\order.c A r.stream.order\Makefile Checked out revision 46320. Compiling <r.stream.order>... C:/PROGRA~1/GRASS6~1.SVN/include/Make/Module.make:25: warning: overriding commands for target `install' C:/PROGRA~1/GRASS6~1.SVN/include/Make/Rules.make:90: warning: ignoring old commands for target `install' mkdir -p C:\gisdata\grassdata/nc_spm_08/user1/.tmp/5376.0/dist/include/grass mkdir -p C:\gisdata\grassdata/nc_spm_08/user1/.tmp/5376.0/dist/bin mkdir -p C:\gisdata\grassdata/nc_spm_08/user1/.tmp/5376.0/dist/etc mkdir -p C:\gisdata\grassdata/nc_spm_08/user1/.tmp/5376.0/dist/driver mkdir -p C:\gisdata\grassdata/nc_spm_08/user1/.tmp/5376.0/dist/driver/db mkdir -p C:\gisdata\grassdata/nc_spm_08/user1/.tmp/5376.0/dist/fonts test -d OBJ.i686-pc-mingw32 || mkdir -p OBJ.i686-pc-mingw32 gcc -IC:/PROGRA~1/GRASS6~1.SVN/include -I/home/syringia/.grass6/addons/include -IC:\gisdata\grassdata/nc_spm_08/user1/.tmp/ 5376.0/dist/include -I/c/OSGeo4W/include -g -O2 -I/c/OSGeo4W/include -I/c/OSGeo4W/include -I/c/OSGeo4W/include -DPACKAG E=\""grassmods"\" -IC:/PROGRA~1/GRASS6~1.SVN/include -I/home/syringia/.grass6/addons/include -IC:\gisdata\grassdata/nc_spm _08/user1/.tmp/5376.0/dist/include -o OBJ.i686-pc-mingw32/io.o -c io.c gcc.exe: installation problem, cannot exec `cc1': No such file or directory make: *** [OBJ.i686-pc-mingw32/io.o] Error 1 FEHLER: Compilation failed, sorry. Please check above error messages. rm: cannot remove directory `C:\\gisdata\\grassdata/nc_spm_08/user1/.tmp/5376.0/r.stream.order': Permission denied
Helmut
follow-up: 34 comment:33 by , 14 years ago
Replying to hellik:
Replying to hellik: [...]
gcc.exe: installation problem, cannot exec `cc1': No such file or directory
cc1.exe lives in the osgeo4w-build-environment in c:\OSGeo4W\libexec\gcc\mingw32\3.4.5\cc1.exe, but isn't included in the nightly-wingrass-installer.
so cc1.exe should be included in C:\Program Files\GRASS 6.4.SVN\extrabin by the wingrass-installer.
Helmut
p.s. is there any working g.extension-addon-example in the addons?
follow-up: 35 comment:34 by , 14 years ago
Milestone: | 6.4.1 → 6.4.2 |
---|
Replying to hellik:
Replying to hellik:
Replying to hellik: [...]
gcc.exe: installation problem, cannot exec `cc1': No such file or directorycc1.exe lives in the osgeo4w-build-environment in c:\OSGeo4W\libexec\gcc\mingw32\3.4.5\cc1.exe, but isn't included in the nightly-wingrass-installer.
so cc1.exe should be included in C:\Program Files\GRASS 6.4.SVN\extrabin by the wingrass-installer.
and in the wingrass-installer there also missing files from
C:\OSGeo4W\include
and
C:\OSGeo4W\lib\gcc\mingw32\3.4.5\include (like stddef.h or stdarg.h)
see comment #29
Helmut
follow-up: 36 comment:35 by , 14 years ago
Replying to hellik:
Replying to hellik:
Replying to hellik:
Replying to hellik: [...]
gcc.exe: installation problem, cannot exec `cc1': No such file or directorycc1.exe lives in the osgeo4w-build-environment in c:\OSGeo4W\libexec\gcc\mingw32\3.4.5\cc1.exe, but isn't included in the nightly-wingrass-installer.
so cc1.exe should be included in C:\Program Files\GRASS 6.4.SVN\extrabin by the wingrass-installer.
and in the wingrass-installer there also missing files from
C:\OSGeo4W\include
and
C:\OSGeo4W\lib\gcc\mingw32\3.4.5\include (like stddef.h or stdarg.h)
now I've tried following:
- added manually GISBASE=C:/PROGRA~1/GRASS6~1.SVN to g.extension
- added cc1.exe in C:\Program Files\GRASS 6.4.SVN\extrabin
- added include files from C:\OSGeo4W\include and C:\OSGeo4W\lib\gcc\mingw32\3.4.5\include in C:\Program Files\GRASS 6.4.SVN\include
then there are some steps further with compiling by g.extension in a wingrass-installation
GRASS 6.4> g.extension extension=r.stream.order which: wget: unknown command WARNUNG: GRASS_ADDON_PATH is not defined, installing to ~/.grass6/addons/ Fetching <r.stream.order> from GRASS-Addons SVN (be patient)... A r.stream.order\orders.png A r.stream.order\main.c A r.stream.order\description.html A r.stream.order\global.h A r.stream.order\io.c A r.stream.order\order.c A r.stream.order\Makefile Checked out revision 46320. Compiling <r.stream.order>... C:/PROGRA~1/GRASS6~1.SVN/include/Make/Module.make:25: warning: overriding comma nds for target `install' C:/PROGRA~1/GRASS6~1.SVN/include/Make/Rules.make:90: warning: ignoring old comm ands for target `install' mkdir -p C:\gisdata\grassdata/nc_spm_08/user1/.tmp/6948.0/dist/include/grass mkdir -p C:\gisdata\grassdata/nc_spm_08/user1/.tmp/6948.0/dist/bin mkdir -p C:\gisdata\grassdata/nc_spm_08/user1/.tmp/6948.0/dist/etc mkdir -p C:\gisdata\grassdata/nc_spm_08/user1/.tmp/6948.0/dist/driver mkdir -p C:\gisdata\grassdata/nc_spm_08/user1/.tmp/6948.0/dist/driver/db mkdir -p C:\gisdata\grassdata/nc_spm_08/user1/.tmp/6948.0/dist/fonts test -d OBJ.i686-pc-mingw32 || mkdir -p OBJ.i686-pc-mingw32 gcc -IC:/PROGRA~1/GRASS6~1.SVN/include -I/home/syringia/.grass6/addons/include -IC:\gisdata\grassdata/nc_spm_08/user1/.tmp/6948.0/dist/include -I/c/OSGeo4W/in clude -g -O2 -I/c/OSGeo4W/include -I/c/OSGeo4W/include -I/c/OSGeo4W/include -DPACKAGE=\""grassmods"\" -IC:/PROGRA~1/GRASS6~1.SVN/include -I/home/syringia /.grass6/addons/include -IC:\gisdata\grassdata/nc_spm_08/user1/.tmp/6948.0/dist /include -o OBJ.i686-pc-mingw32/io.o -c io.c In file included from C:/PROGRA~1/GRASS6~1.SVN/include/grass/gis.h:651, from global.h:5, from io.c:2: C:/PROGRA~1/GRASS6~1.SVN/include/grass/gisdefs.h:129: warning: `libintl_printf' is an unrecognized format function type C:/PROGRA~1/GRASS6~1.SVN/include/grass/gisdefs.h:418: warning: `libintl_printf' is an unrecognized format function type C:/PROGRA~1/GRASS6~1.SVN/include/grass/gisdefs.h:429: warning: `libintl_printf' is an unrecognized format function type C:/PROGRA~1/GRASS6~1.SVN/include/grass/gisdefs.h:457: warning: `libintl_printf' is an unrecognized format function type C:/PROGRA~1/GRASS6~1.SVN/include/grass/gisdefs.h:459: warning: `libintl_printf' is an unrecognized format function type C:/PROGRA~1/GRASS6~1.SVN/include/grass/gisdefs.h:461: warning: `libintl_printf' is an unrecognized format function type C:/PROGRA~1/GRASS6~1.SVN/include/grass/gisdefs.h:463: warning: `libintl_printf' is an unrecognized format function type C:/PROGRA~1/GRASS6~1.SVN/include/grass/gisdefs.h:464: warning: `libintl_printf' is an unrecognized format function type C:/PROGRA~1/GRASS6~1.SVN/include/grass/gisdefs.h:1114: warning: `libintl_printf ' is an unrecognized format function type gcc -IC:/PROGRA~1/GRASS6~1.SVN/include -I/home/syringia/.grass6/addons/include -IC:\gisdata\grassdata/nc_spm_08/user1/.tmp/6948.0/dist/include -I/c/OSGeo4W/in clude -g -O2 -I/c/OSGeo4W/include -I/c/OSGeo4W/include -I/c/OSGeo4W/include -DPACKAGE=\""grassmods"\" -IC:/PROGRA~1/GRASS6~1.SVN/include -I/home/syringia /.grass6/addons/include -IC:\gisdata\grassdata/nc_spm_08/user1/.tmp/6948.0/dist /include -o OBJ.i686-pc-mingw32/main.o -c main.c In file included from C:/PROGRA~1/GRASS6~1.SVN/include/grass/gis.h:651, from global.h:5, from main.c:19: C:/PROGRA~1/GRASS6~1.SVN/include/grass/gisdefs.h:129: warning: `libintl_printf' is an unrecognized format function type C:/PROGRA~1/GRASS6~1.SVN/include/grass/gisdefs.h:418: warning: `libintl_printf' is an unrecognized format function type C:/PROGRA~1/GRASS6~1.SVN/include/grass/gisdefs.h:429: warning: `libintl_printf' is an unrecognized format function type C:/PROGRA~1/GRASS6~1.SVN/include/grass/gisdefs.h:457: warning: `libintl_printf' is an unrecognized format function type C:/PROGRA~1/GRASS6~1.SVN/include/grass/gisdefs.h:459: warning: `libintl_printf' is an unrecognized format function type C:/PROGRA~1/GRASS6~1.SVN/include/grass/gisdefs.h:461: warning: `libintl_printf' is an unrecognized format function type C:/PROGRA~1/GRASS6~1.SVN/include/grass/gisdefs.h:463: warning: `libintl_printf' is an unrecognized format function type C:/PROGRA~1/GRASS6~1.SVN/include/grass/gisdefs.h:464: warning: `libintl_printf' is an unrecognized format function type C:/PROGRA~1/GRASS6~1.SVN/include/grass/gisdefs.h:1114: warning: `libintl_printf ' is an unrecognized format function type gcc -IC:/PROGRA~1/GRASS6~1.SVN/include -I/home/syringia/.grass6/addons/include -IC:\gisdata\grassdata/nc_spm_08/user1/.tmp/6948.0/dist/include -I/c/OSGeo4W/in clude -g -O2 -I/c/OSGeo4W/include -I/c/OSGeo4W/include -I/c/OSGeo4W/include -DPACKAGE=\""grassmods"\" -IC:/PROGRA~1/GRASS6~1.SVN/include -I/home/syringia /.grass6/addons/include -IC:\gisdata\grassdata/nc_spm_08/user1/.tmp/6948.0/dist /include -o OBJ.i686-pc-mingw32/order.o -c order.c In file included from C:/PROGRA~1/GRASS6~1.SVN/include/grass/gis.h:651, from global.h:5, from order.c:4: C:/PROGRA~1/GRASS6~1.SVN/include/grass/gisdefs.h:129: warning: `libintl_printf' is an unrecognized format function type C:/PROGRA~1/GRASS6~1.SVN/include/grass/gisdefs.h:418: warning: `libintl_printf' is an unrecognized format function type C:/PROGRA~1/GRASS6~1.SVN/include/grass/gisdefs.h:429: warning: `libintl_printf' is an unrecognized format function type C:/PROGRA~1/GRASS6~1.SVN/include/grass/gisdefs.h:457: warning: `libintl_printf' is an unrecognized format function type C:/PROGRA~1/GRASS6~1.SVN/include/grass/gisdefs.h:459: warning: `libintl_printf' is an unrecognized format function type C:/PROGRA~1/GRASS6~1.SVN/include/grass/gisdefs.h:461: warning: `libintl_printf' is an unrecognized format function type C:/PROGRA~1/GRASS6~1.SVN/include/grass/gisdefs.h:463: warning: `libintl_printf' is an unrecognized format function type C:/PROGRA~1/GRASS6~1.SVN/include/grass/gisdefs.h:464: warning: `libintl_printf' is an unrecognized format function type C:/PROGRA~1/GRASS6~1.SVN/include/grass/gisdefs.h:1114: warning: `libintl_printf ' is an unrecognized format function type gcc -LC:/PROGRA~1/GRASS6~1.SVN/lib -L/home/syringia/.grass6/addons/lib -LC:\gis data\grassdata/nc_spm_08/user1/.tmp/6948.0/dist/lib -Wl,--export-dynamic,--enab le-runtime-pseudo-reloc -L/c/OSGeo4W/lib -L/osgeo4w/usr/src/grass64_release/ms windows/osgeo4w/lib -o C:\gisdata\grassdata/nc_spm_08/user1/.tmp/6948.0/dis t/bin/r.stream.order.exe OBJ.i686-pc-mingw32/io.o OBJ.i686-pc-mingw32/main.o OB J.i686-pc-mingw32/order.o C:/PROGRA~1/GRASS6~1.SVN/lib/gis/OBJ.i686-pc-mingw32/ fmode.o -lgrass_vect.6.4.2svn -lgrass_dbmibase.6.4.2svn -lgrass_gis.6.4.2svn -l grass_datetime.6.4.2svn -lxdr -liberty -lws2_32 -lz -lintl -lgrass_dbmic lient.6.4.2svn -lgrass_dbmibase.6.4.2svn -lgrass_gis.6.4.2svn -lgrass_datetime. 6.4.2svn -lxdr -liberty -lws2_32 -lz -lintl -lgrass_gis.6.4.2svn -lgrass _datetime.6.4.2svn -lxdr -liberty -lws2_32 -lz -lintl -lgrass_dgl.6.4.2s vn -lgrass_dig2.6.4.2svn -lgrass_gis.6.4.2svn -lgrass_datetime.6.4.2svn -lxdr - liberty -lws2_32 -lz -lintl -lgrass_rtree.6.4.2svn -lgrass_gis.6.4.2svn -lgrass_datetime.6.4.2svn -lxdr -liberty -lws2_32 -lz -lintl -lgrass_link m.6.4.2svn -lgrass_rtree.6.4.2svn -lgrass_dig2.6.4.2svn -lgrass_gis.6.4.2svn - lgrass_datetime.6.4.2svn -lxdr -liberty -lws2_32 -lz -lintl -lgrass_rtree .6.4.2svn -lgrass_dgl.6.4.2svn -lgrass_rtree.6.4.2svn -lgrass_linkm.6.4.2svn - lgrass_dbmiclient.6.4.2svn -lgrass_dbmibase.6.4.2svn -lgrass_gis.6.4.2svn -lgra ss_datetime.6.4.2svn -lxdr -liberty -lws2_32 -lz -lintl -lgrass_gis.6.4. 2svn -lgrass_datetime.6.4.2svn -lxdr -liberty -lws2_32 -lz -lintl -lgras s_dbmibase.6.4.2svn -lgrass_gis.6.4.2svn -lgrass_datetime.6.4.2svn -lxdr -liber ty -lws2_32 -lz -lintl /c/OSGeo4W/lib/gdal_i.lib /c/OSGeo4W/lib/geos_c_ i.lib -lgeos_c_i -lgrass_dbmiclient.6.4.2svn -lgrass_dbmibase.6.4.2svn -lgrass _gis.6.4.2svn -lgrass_datetime.6.4.2svn -lxdr -liberty -lws2_32 -lz -lintl -lgrass_gis.6.4.2svn -lgrass_datetime.6.4.2svn -lxdr -liberty -lws2_32 -l z -lintl -lgrass_dbmibase.6.4.2svn -lgrass_gis.6.4.2svn -lgrass_datetime.6. 4.2svn -lxdr -liberty -lws2_32 -lz -lintl -lgrass_gis.6.4.2svn -lgrass_ datetime.6.4.2svn -lxdr -liberty -lws2_32 -lz -lintl -lxdr -liberty -lws 2_32 -lz gcc.exe: C:/PROGRA~1/GRASS6~1.SVN/lib/gis/OBJ.i686-pc-mingw32/fmode.o: No such file or directory make: *** [C:\gisdata\grassdata/nc_spm_08/user1/.tmp/6948.0/dist/bin/r.stream.o rder.exe] Error 1 FEHLER: Compilation failed, sorry. Please check above error messages. rm: cannot remove directory `C:\\gisdata\\grassdata/nc_spm_08/user1/.tmp/6948.0 /r.stream.order': Permission denied GRASS 6.4>
Helmut
follow-up: 37 comment:36 by , 14 years ago
Replying to hellik:
the remaining issue seems to be:
gcc.exe: C:/PROGRA~1/GRASS6~1.SVN/lib/gis/OBJ.i686-pc-mingw32/fmode.o: No such file or directory
Helmut
comment:37 by , 14 years ago
Replying to hellik:
Replying to hellik:
the remaining issue seems to be:
gcc.exe: C:/PROGRA~1/GRASS6~1.SVN/lib/gis/OBJ.i686-pc-mingw32/fmode.o: No such file or directory
and there seems to be some leftovers from the osgeo4w-buildenvironment of the wingrass-installer
for example
gcc -IC:/PROGRA~1/GRASS6~1.SVN/include -I/home/syringia/.grass6/addons/include -IC:\gisdata\grassdata/nc_spm_08/user1/.tmp/6948.0/dist/include -I/c/OSGeo4W/include -g -O2 <== -I/c/OSGeo4W/include -I/c/OSGeo4W/include -I/c/OSGeo4W/include <== -DPACKAGE=\""grassmods"\" -IC:/PROGRA~1/GRASS6~1.SVN/include -I/home/syringia
[...]
gcc -LC:/PROGRA~1/GRASS6~1.SVN/lib -L/home/syringia/.grass6/addons/lib -LC:\gisdata\grassdata/nc_spm_08/user1/.tmp/6948.0/dist/lib -Wl,--export-dynamic, --enable-runtime-pseudo-reloc -L/c/OSGeo4W/lib -L/osgeo4w/usr/src/grass64_release/mswindows/osgeo4w/lib <==
Helmut
follow-up: 39 comment:38 by , 14 years ago
I suspect that the update from r46315 needs also to go into the "make install" target in the main Makefile of GRASS.
comment:39 by , 14 years ago
Replying to neteler:
I suspect that the update from r46315 needs also to go into the "make install" target in the main Makefile of GRASS.
I've tested this now with a self compiled grass65svn where the startup script is in
C:\OSGeo4W\usr\src\grass6_devel\bin.i686-pc-mingw32
and all the rest is in
C:\OSGeo4W\usr\src\grass6_devel\dist.i686-pc-mingw32
GRASS 6.5> g.extension extension=r.stream.order WARNUNG: GRASS_ADDON_PATH is not defined, installing to ~/.grass6/addons/ Fetching <r.stream.order> from GRASS-Addons SVN (be patient)... A r.stream.order\orders.png A r.stream.order\main.c A r.stream.order\description.html A r.stream.order\global.h A r.stream.order\io.c A r.stream.order\order.c A r.stream.order\Makefile Checked out revision 46330. Compiling <r.stream.order>... c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include/Make/Module.make:2 5: warning: overriding commands for target `install' c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include/Make/Rules.make:90 : warning: ignoring old commands for target `install' mkdir -p C:\gisdata\grassdata/nc_spm_08/g65/.tmp/7172.0/dist/include/grass mkdir -p C:\gisdata\grassdata/nc_spm_08/g65/.tmp/7172.0/dist/bin mkdir -p C:\gisdata\grassdata/nc_spm_08/g65/.tmp/7172.0/dist/etc mkdir -p C:\gisdata\grassdata/nc_spm_08/g65/.tmp/7172.0/dist/driver mkdir -p C:\gisdata\grassdata/nc_spm_08/g65/.tmp/7172.0/dist/driver/db mkdir -p C:\gisdata\grassdata/nc_spm_08/g65/.tmp/7172.0/dist/fonts test -d OBJ.i686-pc-mingw32 || mkdir -p OBJ.i686-pc-mingw32 gcc -Ic:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include -I/c/Users/s yringia/.grass6/addons/include -IC:\gisdata\grassdata/nc_spm_08/g65/.tmp/7172.0 /dist/include -I/c/OSGeo4W/include -g -O2 -I/c/OSGeo4W/include -I/c/OSGeo4W/i nclude -I/c/OSGeo4W/include -DPACKAGE=\""grassmods"\" -Ic:/osgeo4w/usr/src/g rass6_devel/dist.i686-pc-mingw32/include -I/c/Users/syringia/.grass6/addons/inc lude -IC:\gisdata\grassdata/nc_spm_08/g65/.tmp/7172.0/dist/include -o OBJ.i686- pc-mingw32/io.o -c io.c In file included from c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/incl ude/grass/gis.h:651, from global.h:5, from io.c:2: c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include/grass/gisdefs.h:12 9: warning: `libintl_printf' is an unrecognized format function type c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include/grass/gisdefs.h:41 8: warning: `libintl_printf' is an unrecognized format function type c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include/grass/gisdefs.h:42 9: warning: `libintl_printf' is an unrecognized format function type c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include/grass/gisdefs.h:45 7: warning: `libintl_printf' is an unrecognized format function type c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include/grass/gisdefs.h:45 9: warning: `libintl_printf' is an unrecognized format function type c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include/grass/gisdefs.h:46 1: warning: `libintl_printf' is an unrecognized format function type c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include/grass/gisdefs.h:46 3: warning: `libintl_printf' is an unrecognized format function type c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include/grass/gisdefs.h:46 4: warning: `libintl_printf' is an unrecognized format function type c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include/grass/gisdefs.h:11 10: warning: `libintl_printf' is an unrecognized format function type gcc -Ic:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include -I/c/Users/s yringia/.grass6/addons/include -IC:\gisdata\grassdata/nc_spm_08/g65/.tmp/7172.0 /dist/include -I/c/OSGeo4W/include -g -O2 -I/c/OSGeo4W/include -I/c/OSGeo4W/i nclude -I/c/OSGeo4W/include -DPACKAGE=\""grassmods"\" -Ic:/osgeo4w/usr/src/g rass6_devel/dist.i686-pc-mingw32/include -I/c/Users/syringia/.grass6/addons/inc lude -IC:\gisdata\grassdata/nc_spm_08/g65/.tmp/7172.0/dist/include -o OBJ.i686- pc-mingw32/main.o -c main.c In file included from c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/incl ude/grass/gis.h:651, from global.h:5, from main.c:19: c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include/grass/gisdefs.h:12 9: warning: `libintl_printf' is an unrecognized format function type c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include/grass/gisdefs.h:41 8: warning: `libintl_printf' is an unrecognized format function type c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include/grass/gisdefs.h:42 9: warning: `libintl_printf' is an unrecognized format function type c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include/grass/gisdefs.h:45 7: warning: `libintl_printf' is an unrecognized format function type c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include/grass/gisdefs.h:45 9: warning: `libintl_printf' is an unrecognized format function type c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include/grass/gisdefs.h:46 1: warning: `libintl_printf' is an unrecognized format function type c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include/grass/gisdefs.h:46 3: warning: `libintl_printf' is an unrecognized format function type c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include/grass/gisdefs.h:46 4: warning: `libintl_printf' is an unrecognized format function type c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include/grass/gisdefs.h:11 10: warning: `libintl_printf' is an unrecognized format function type gcc -Ic:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include -I/c/Users/s yringia/.grass6/addons/include -IC:\gisdata\grassdata/nc_spm_08/g65/.tmp/7172.0 /dist/include -I/c/OSGeo4W/include -g -O2 -I/c/OSGeo4W/include -I/c/OSGeo4W/i nclude -I/c/OSGeo4W/include -DPACKAGE=\""grassmods"\" -Ic:/osgeo4w/usr/src/g rass6_devel/dist.i686-pc-mingw32/include -I/c/Users/syringia/.grass6/addons/inc lude -IC:\gisdata\grassdata/nc_spm_08/g65/.tmp/7172.0/dist/include -o OBJ.i686- pc-mingw32/order.o -c order.c In file included from c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/incl ude/grass/gis.h:651, from global.h:5, from order.c:4: c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include/grass/gisdefs.h:12 9: warning: `libintl_printf' is an unrecognized format function type c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include/grass/gisdefs.h:41 8: warning: `libintl_printf' is an unrecognized format function type c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include/grass/gisdefs.h:42 9: warning: `libintl_printf' is an unrecognized format function type c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include/grass/gisdefs.h:45 7: warning: `libintl_printf' is an unrecognized format function type c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include/grass/gisdefs.h:45 9: warning: `libintl_printf' is an unrecognized format function type c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include/grass/gisdefs.h:46 1: warning: `libintl_printf' is an unrecognized format function type c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include/grass/gisdefs.h:46 3: warning: `libintl_printf' is an unrecognized format function type c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include/grass/gisdefs.h:46 4: warning: `libintl_printf' is an unrecognized format function type c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include/grass/gisdefs.h:11 10: warning: `libintl_printf' is an unrecognized format function type gcc -Lc:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/lib -L/c/Users/syrin gia/.grass6/addons/lib -LC:\gisdata\grassdata/nc_spm_08/g65/.tmp/7172.0/dist/li b -Wl,--export-dynamic,--enable-runtime-pseudo-reloc -L/c/OSGeo4W/lib -L/c/osg eo4w/usr/src/grass6_devel/mswindows/osgeo4w/lib -o C:\gisdata\grassdata/nc_ spm_08/g65/.tmp/7172.0/dist/bin/r.stream.order.exe OBJ.i686-pc-mingw32/io.o OBJ .i686-pc-mingw32/main.o OBJ.i686-pc-mingw32/order.o c:/osgeo4w/usr/src/grass6_d evel/dist.i686-pc-mingw32/lib/gis/OBJ.i686-pc-mingw32/fmode.o -lgrass_vect.6.5. svn -lgrass_dbmibase.6.5.svn -lgrass_gis.6.5.svn -lgrass_datetime.6.5.svn -lxdr -liberty -lws2_32 -lz -lintl -lgrass_dbmiclient.6.5.svn -lgrass_dbmibas e.6.5.svn -lgrass_gis.6.5.svn -lgrass_datetime.6.5.svn -lxdr -liberty -lws2_32 -lz -lintl -lgrass_gis.6.5.svn -lgrass_datetime.6.5.svn -lxdr -liberty - lws2_32 -lz -lintl -lgrass_dgl.6.5.svn -lgrass_dig2.6.5.svn -lgrass_gis. 6.5.svn -lgrass_datetime.6.5.svn -lxdr -liberty -lws2_32 -lz -lintl -lgra ss_rtree.6.5.svn -lgrass_gis.6.5.svn -lgrass_datetime.6.5.svn -lxdr -liberty - lws2_32 -lz -lintl -lgrass_linkm.6.5.svn -lgrass_rtree.6.5.svn -lgrass_d ig2.6.5.svn -lgrass_gis.6.5.svn -lgrass_datetime.6.5.svn -lxdr -liberty -lws2_3 2 -lz -lintl -lgrass_rtree.6.5.svn -lgrass_dgl.6.5.svn -lgrass_rtree.6.5 .svn -lgrass_linkm.6.5.svn -lgrass_dbmiclient.6.5.svn -lgrass_dbmibase.6.5.svn -lgrass_gis.6.5.svn -lgrass_datetime.6.5.svn -lxdr -liberty -lws2_32 -lz - lintl -lgrass_gis.6.5.svn -lgrass_datetime.6.5.svn -lxdr -liberty -lws2_32 -lz -lintl -lgrass_dbmibase.6.5.svn -lgrass_gis.6.5.svn -lgrass_datetime.6 .5.svn -lxdr -liberty -lws2_32 -lz -lintl /c/OSGeo4W/lib/gdal_i.lib /c/ OSGeo4W/lib/geos_c_i.lib -lgeos_c_i -lgrass_dbmiclient.6.5.svn -lgrass_dbmibas e.6.5.svn -lgrass_gis.6.5.svn -lgrass_datetime.6.5.svn -lxdr -liberty -lws2_32 -lz -lintl -lgrass_gis.6.5.svn -lgrass_datetime.6.5.svn -lxdr -liberty - lws2_32 -lz -lintl -lgrass_dbmibase.6.5.svn -lgrass_gis.6.5.svn -lgrass_ datetime.6.5.svn -lxdr -liberty -lws2_32 -lz -lintl -lgrass_gis.6.5.svn -lgrass_datetime.6.5.svn -lxdr -liberty -lws2_32 -lz -lintl -lxdr -libe rty -lws2_32 -lz gcc.exe: c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/lib/gis/OBJ.i686- pc-mingw32/fmode.o: No such file or directory make: *** [C:\gisdata\grassdata/nc_spm_08/g65/.tmp/7172.0/dist/bin/r.stream.ord er.exe] Error 1 FEHLER: Compilation failed, sorry. Please check above error messages. rm: cannot remove directory `C:\\gisdata\\grassdata/nc_spm_08/g65/.tmp/7172.0/r .stream.order': Permission denied GRASS 6.5>
so there is the same error:
gcc.exe: c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/lib/gis/OBJ.i686-pc-mingw32/fmode.o: No such file or directory <== make: *** [C:\gisdata\grassdata/nc_spm_08/g65/.tmp/7172.0/dist/bin/r.stream.order.exe] Error 1 FEHLER: Compilation failed, sorry. Please check above error messages.
best regards Helmut
follow-up: 41 comment:40 by , 13 years ago
AFAIK some improvements have been done in SVN, please retry.
follow-up: 42 comment:41 by , 13 years ago
Replying to neteler:
AFAIK some improvements have been done in SVN, please retry.
there is no improvement at the moment for compiling with spaces in path, but you're informed why the compilation fails:
g.extension --verbose extension=r.stream.angle svnurl=https://svn.osgeo.org/grass/grass-addons Using WGET for downloading data. GRASS_ADDON_PATH is not defined, installing to ~/.grass6/addons/ The GRASS program path: [c:/Program Files/GRASS 6.4RC1] contains a space. The build which follows will likely fail. Fetching <r.stream.angle> from GRASS-Addons SVN (be patient)... A r.stream.angle\tangent.c A r.stream.angle\init.c A r.stream.angle\main.c A r.stream.angle\description.html A r.stream.angle\global.h A r.stream.angle\seg_line.c A r.stream.angle\io.c A r.stream.angle\order.c A r.stream.angle\Makefile Checked out revision 48766. Compiling <r.stream.angle>... Makefile:12: c:/Program: No such file or directory Makefile:12: Files/GRASS: No such file or directory Makefile:12: 6.4RC1/include/Make/Module.make: No such file or directory make: *** No rule to make target `6.4RC1/include/Make/Module.make'. Stop. ERROR: Compilation failed, sorry. Please check above error messages. rm: cannot remove directory `C:\\gisdata\\grassdata/nc_spm_0 8/user1/.tmp/6060.0/r.stream.angle': Permission denied (Wed Oct 12 19:14:25 2011) Command finished (24 sec)
Helmut
comment:42 by , 13 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Replying to hellik:
Replying to neteler:
AFAIK some improvements have been done in SVN, please retry.
there is no improvement at the moment for compiling with spaces in path, but you're informed why the compilation fails:
g.extension --verbose extension=r.stream.angle svnurl=https://svn.osgeo.org/grass/grass-addons Using WGET for downloading data. GRASS_ADDON_PATH is not defined, installing to ~/.grass6/addons/ The GRASS program path: [c:/Program Files/GRASS 6.4RC1] contains a space. The build which follows will likely fail. Fetching <r.stream.angle> from GRASS-Addons SVN (be patient)... A r.stream.angle\tangent.c A r.stream.angle\init.c A r.stream.angle\main.c A r.stream.angle\description.html A r.stream.angle\global.h A r.stream.angle\seg_line.c A r.stream.angle\io.c A r.stream.angle\order.c A r.stream.angle\Makefile Checked out revision 48766. Compiling <r.stream.angle>... Makefile:12: c:/Program: No such file or directory Makefile:12: Files/GRASS: No such file or directory Makefile:12: 6.4RC1/include/Make/Module.make: No such file or directory make: *** No rule to make target `6.4RC1/include/Make/Module.make'. Stop. ERROR: Compilation failed, sorry. Please check above error messages. rm: cannot remove directory `C:\\gisdata\\grassdata/nc_spm_0 8/user1/.tmp/6060.0/r.stream.angle': Permission denied (Wed Oct 12 19:14:25 2011) Command finished (24 sec)
now there are precompiled addons-binaries available for wingrass. closing as wontfix.
Helmut
comment:43 by , 13 years ago
extra whitespace added so that warning that it probably won't work if there are spaces in the 'make' pathname(s) becomes easier to see.
Hamish
Please add " -x" (without quotes to the first line of g.extension and run again to understand how
is running.