[GRASS-dev] [GRASS GIS] #3642: r.pi addon compilation issue on Windows

GRASS GIS trac at osgeo.org
Tue Sep 11 22:56:03 PDT 2018


#3642: r.pi addon compilation issue on Windows
-------------------------+-------------------------
 Reporter:  neteler      |      Owner:  grass-dev@…
     Type:  defect       |     Status:  new
 Priority:  normal       |  Milestone:  7.6.0
Component:  Addons       |    Version:  unspecified
 Keywords:  r.pi         |        CPU:  Unspecified
 Platform:  MSWindows 8  |
-------------------------+-------------------------
 The r.pi.* comes with r.pi.library which provides

 and the other modules depending on that. However, at compile time the
 library is produced but then not found:

 {{{
  mkdir -p /c/Users/landa/grass_packager/grass741/x86/addons/r.pi/bin
 mkdir -p /c/Users/landa/grass_packager/grass741/x86/addons/r.pi/etc
 mkdir -p /c/Users/landa/grass_packager/grass741/x86/addons/r.pi/docs/html
 mkdir -p
 /c/Users/landa/grass_packager/grass741/x86/addons/r.pi/docs/man/man1
 mkdir -p
 /c/Users/landa/grass_packager/grass741/x86/addons/r.pi/docs/man/man1/man1
 make -C r.pi.library || echo
 /c/msys32/usr/src/grass_addons/grass7/raster/r.pi/r.pi.library >>
 /c/msys32/usr/src/grass741/error.log
 make[1]: Entering directory
 '/c/msys32/usr/src/grass_addons/grass7/raster/r.pi/r.pi.library'
 test -d OBJ.i386-w64-mingw32 || mkdir -p OBJ.i386-w64-mingw32
 gcc -I/c/OSGeo4W32/include -g -O2   -I/c/OSGeo4W32/include
 -I/c/msys32/usr/src/grass741/dist.i386-w64-mingw32/include
 -I/c/msys32/usr/src/grass741/dist.i386-w64-mingw32/include
 -D_FILE_OFFSET_BITS=64  -DPACKAGE=\""grasslibs"\"
 -I/c/msys32/usr/src/grass741/dist.i386-w64-mingw32/include
 -I/c/msys32/usr/src/grass741/dist.i386-w64-mingw32/include
 -DRELDIR=\"/c/msys32/usr/src/grass_addons/grass7/raster/r.pi/r.pi.library\"
 -o OBJ.i386-w64-mingw32/draw.o -c draw.c
 gcc -I/c/OSGeo4W32/include -g -O2   -I/c/OSGeo4W32/include
 -I/c/msys32/usr/src/grass741/dist.i386-w64-mingw32/include
 -I/c/msys32/usr/src/grass741/dist.i386-w64-mingw32/include
 -D_FILE_OFFSET_BITS=64  -DPACKAGE=\""grasslibs"\"
 -I/c/msys32/usr/src/grass741/dist.i386-w64-mingw32/include
 -I/c/msys32/usr/src/grass741/dist.i386-w64-mingw32/include
 -DRELDIR=\"/c/msys32/usr/src/grass_addons/grass7/raster/r.pi/r.pi.library\"
 -o OBJ.i386-w64-mingw32/frag.o -c frag.c
 gcc -I/c/OSGeo4W32/include -g -O2   -I/c/OSGeo4W32/include
 -I/c/msys32/usr/src/grass741/dist.i386-w64-mingw32/include
 -I/c/msys32/usr/src/grass741/dist.i386-w64-mingw32/include
 -D_FILE_OFFSET_BITS=64  -DPACKAGE=\""grasslibs"\"
 -I/c/msys32/usr/src/grass741/dist.i386-w64-mingw32/include
 -I/c/msys32/usr/src/grass741/dist.i386-w64-mingw32/include
 -DRELDIR=\"/c/msys32/usr/src/grass_addons/grass7/raster/r.pi/r.pi.library\"
 -o OBJ.i386-w64-mingw32/helpers.o -c helpers.c
 gcc -I/c/OSGeo4W32/include -g -O2   -I/c/OSGeo4W32/include
 -I/c/msys32/usr/src/grass741/dist.i386-w64-mingw32/include
 -I/c/msys32/usr/src/grass741/dist.i386-w64-mingw32/include
 -D_FILE_OFFSET_BITS=64  -DPACKAGE=\""grasslibs"\"
 -I/c/msys32/usr/src/grass741/dist.i386-w64-mingw32/include
 -I/c/msys32/usr/src/grass741/dist.i386-w64-mingw32/include
 -DRELDIR=\"/c/msys32/usr/src/grass_addons/grass7/raster/r.pi/r.pi.library\"
 -o OBJ.i386-w64-mingw32/stat_method.o -c stat_method.c
 gcc -shared -o
 /c/msys32/usr/src/grass741/dist.i386-w64-mingw32/lib/libgrass_rpi.7.4.1.dll
 -L/c/msys32/usr/src/grass741/dist.i386-w64-mingw32/lib
 -L/c/msys32/usr/src/grass741/dist.i386-w64-mingw32/lib
 -L/c/msys32/usr/src/grass741/mswindows/osgeo4w/lib -lz -Wl,--export-
 dynamic,--enable-runtime-pseudo-reloc
 -L/c/msys32/usr/src/grass741/mswindows/osgeo4w/lib
 OBJ.i386-w64-mingw32/draw.o OBJ.i386-w64-mingw32/frag.o
 OBJ.i386-w64-mingw32/helpers.o OBJ.i386-w64-mingw32/stat_method.o
 -lgrass_gis.7.4.1 -lintl
 C:/msys32/mingw32/bin/../lib/gcc/i686-w64-mingw32/5.2.0/../../../../i686-w64-mingw32/bin/ld.exe:
 warning: --export-dynamic is not supported for PE targets, did you mean
 --export-all-symbols?
 if [ "" != "" -a -f "".html ] ; then make html ; fi
 make[1]: Leaving directory
 '/c/msys32/usr/src/grass_addons/grass7/raster/r.pi/r.pi.library'
 }}}

 The library was apparently generated as
 /c/msys32/usr/src/grass741/dist.i386-w64-mingw32/lib/libgrass_rpi.7.4.1.dll
 but:

 {{{
 make -C r.pi.corearea || echo
 /c/msys32/usr/src/grass_addons/grass7/raster/r.pi/r.pi.corearea >>
 /c/msys32/usr/src/grass741/error.log
 make[1]: Entering directory
 '/c/msys32/usr/src/grass_addons/grass7/raster/r.pi/r.pi.corearea'
 test -d OBJ.i386-w64-mingw32 || mkdir -p OBJ.i386-w64-mingw32
 gcc -I/c/OSGeo4W32/include -g -O2  -I/c/OSGeo4W32/include
 -I/c/msys32/usr/src/grass741/dist.i386-w64-mingw32/include
 -I/c/msys32/usr/src/grass741/dist.i386-w64-mingw32/include
 -D_FILE_OFFSET_BITS=64  -DPACKAGE=\""grassmods"\"
 -I/c/msys32/usr/src/grass741/dist.i386-w64-mingw32/include
 -I/c/msys32/usr/src/grass741/dist.i386-w64-mingw32/include
 -DRELDIR=\"/c/msys32/usr/src/grass_addons/grass7/raster/r.pi/r.pi.corearea\"
 -o OBJ.i386-w64-mingw32/func.o -c func.c
 gcc -I/c/OSGeo4W32/include -g -O2  -I/c/OSGeo4W32/include
 -I/c/msys32/usr/src/grass741/dist.i386-w64-mingw32/include
 -I/c/msys32/usr/src/grass741/dist.i386-w64-mingw32/include
 -D_FILE_OFFSET_BITS=64  -DPACKAGE=\""grassmods"\"
 -I/c/msys32/usr/src/grass741/dist.i386-w64-mingw32/include
 -I/c/msys32/usr/src/grass741/dist.i386-w64-mingw32/include
 -DRELDIR=\"/c/msys32/usr/src/grass_addons/grass7/raster/r.pi/r.pi.corearea\"
 -o OBJ.i386-w64-mingw32/main.o -c main.c
 make OBJ.i386-w64-mingw32/r.pi.corearea.manifest.res && gcc
 -L/c/msys32/usr/src/grass741/dist.i386-w64-mingw32/lib
 -L/c/msys32/usr/src/grass741/dist.i386-w64-mingw32/lib
 -L/c/msys32/usr/src/grass741/mswindows/osgeo4w/lib -lz -Wl,--export-
 dynamic,--enable-runtime-pseudo-reloc
 -L/c/msys32/usr/src/grass741/mswindows/osgeo4w/lib  -o
 /c/Users/landa/grass_packager/grass741/x86/addons/r.pi/bin/r.pi.corearea.exe
 OBJ.i386-w64-mingw32/func.o OBJ.i386-w64-mingw32/main.o
 /c/msys32/usr/src/grass741/dist.i386-w64-mingw32/lib/fmode.o
 OBJ.i386-w64-mingw32/r.pi.corearea.manifest.res -lgrass_stats.7.4.1
 -lgrass_raster.7.4.1 -lgrass_gis.7.4.1 -lintl -lgrass_rpi
 make[2]: Entering directory
 '/c/msys32/usr/src/grass_addons/grass7/raster/r.pi/r.pi.corearea'
 make[2]: Circular /c/msys32/usr/src/grass741/mswindows/generic.manifest.rc
 <- /c/msys32/usr/src/grass741/mswindows/generic.manifest.rc dependency
 dropped.
 sed     -e 's/@CMD@/r.pi.corearea/' \
         -e 's/@VER_MAJOR@/7/' \
         -e 's/@VER_MINOR@/4/' \
         -e 's/@VER_RELEASE@/1/' \
         /c/msys32/usr/src/grass741/mswindows/generic.manifest.rc >
 OBJ.i386-w64-mingw32/r.pi.corearea.manifest.rc
 sed 's/@CMD@/r.pi.corearea/'
 /c/msys32/usr/src/grass741/mswindows/generic.manifest >
 OBJ.i386-w64-mingw32/r.pi.corearea.exe.manifest
 windres --input=OBJ.i386-w64-mingw32/r.pi.corearea.manifest.rc --input-
 format=rc --output=OBJ.i386-w64-mingw32/r.pi.corearea.manifest.res
 --output-format=coff -I/c/msys32/usr/src/grass741/mswindows
 rm OBJ.i386-w64-mingw32/r.pi.corearea.manifest.rc
 OBJ.i386-w64-mingw32/r.pi.corearea.exe.manifest
 make[2]: Leaving directory
 '/c/msys32/usr/src/grass_addons/grass7/raster/r.pi/r.pi.corearea'
 C:/msys32/mingw32/bin/../lib/gcc/i686-w64-mingw32/5.2.0/../../../../i686-w64-mingw32/bin/ld.exe:
 warning: --export-dynamic is not supported for PE targets, did you mean
 --export-all-symbols?
 C:/msys32/mingw32/bin/../lib/gcc/i686-w64-mingw32/5.2.0/../../../../i686-w64-mingw32/bin/ld.exe:
 cannot find -lgrass_rpi
 collect2.exe: error: ld returned 1 exit status
 /c/msys32/usr/src/grass741/include/Make/Module.make:18: recipe for target
 '/c/Users/landa/grass_packager/grass741/x86/addons/r.pi/bin/r.pi.corearea.exe'
 failed
 make[1]: ***
 [/c/Users/landa/grass_packager/grass741/x86/addons/r.pi/bin/r.pi.corearea.exe]
 Error 1
 make[1]: Leaving directory
 '/c/msys32/usr/src/grass_addons/grass7/raster/r.pi/r.pi.corearea'
 make -C r.pi.corr.mw || echo
 /c/msys32/usr/src/grass_addons/grass7/raster/r.pi/r.pi.corr.mw >>
 /c/msys32/usr/src/grass741/error.log
 make[1]: Entering directory
 '/c/msys32/usr/src/grass_addons/grass7/raster/r.pi/r.pi.corr.mw'
 [...]
 }}}

 Any ideas?

 Log: http://wingrass.fsv.cvut.cz/grass74/x86/addons/latest/logs/r.pi.log

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3642>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list