[GRASS-dev] winGRASS addons - consolidation/fix release needed!!

Helmut Kudrnovsky hellik at web.de
Sat Sep 7 12:49:03 PDT 2019


Martin Landa wrote
> Hi,
> 
> so 7. 9. 2019 v 20:40 odesílatel Martin Landa <

> landa.martin@

> > napsal:
>> not sure. libgrass_display.7.9.dll is successfully built, but cannot
>> be loaded for unknown reasons. Ma
> 
> in other words problem is not ctypes compilation, but loading
> libgrass_display.7.9.dll. It fails on different places (ctypes,
> display modules).

screening package.log, a similar OSError: [WinError 127] issue is here:

------
GISRC=/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/demolocation/.grassrc79
GISBASE=C:/msys64/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32
PATH="/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/bin:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/bin:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/scripts:$PATH"
PYTHONPATH="C:/msys64/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python;C:/msys64/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/gui/wxpython;$PYTHONPATH"
PATH="/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/bin:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/bin:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/scripts:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/lib:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/lib:/c/OSGeo4W64/apps/Python37:/c/OSGeo4W64/bin:/usr/src/grass_trunk_git/grass/mswindows/osgeo4w/lib:/usr/src/grass_trunk_git/grass/mswindows/osgeo4w:/usr/bin:/mingw64/bin"
LC_ALL=C LANG=C LANGUAGE=C ./ctypesgen.py --cpp "gcc -E
-I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG" -lgrass_g3d.7.9  
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include/grass/raster3d.h
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include/grass/defs/raster3d.h
-o OBJ.x86_64-w64-mingw32/raster3d.py
GISRC=/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/demolocation/.grassrc79
GISBASE=C:/msys64/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32
PATH="/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/bin:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/bin:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/scripts:$PATH"
PYTHONPATH="C:/msys64/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/etc/python;C:/msys64/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/gui/wxpython;$PYTHONPATH"
PATH="/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/bin:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/bin:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/scripts:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/lib:/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/lib:/c/OSGeo4W64/apps/Python37:/c/OSGeo4W64/bin:/usr/src/grass_trunk_git/grass/mswindows/osgeo4w/lib:/usr/src/grass_trunk_git/grass/mswindows/osgeo4w:/usr/bin:/mingw64/bin"
LC_ALL=C LANG=C LANGUAGE=C ./ctypesgen.py --cpp "gcc -E
-I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG" -lgrass_arraystats.7.9  
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include/grass/arraystats.h
/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include/grass/defs/arraystats.h
-o OBJ.x86_64-w64-mingw32/arraystats.py
Status: Preprocessing C:\Users\hkmyr\AppData\Local\Temp\tmplbjp8651.h
Status: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG -U __GNUC__ -dD "-Dinline=" "-D__inline__="
"-D__extension__=" "-D_Bool=uint8_t" "-D__const=const" "-D__asm__(x)="
"-D__asm(x)=" "-DCTYPESGEN=1"
"C:\Users\hkmyr\AppData\Local\Temp\tmplbjp8651.h"
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG: In file included from
C:/msys64/mingw64/x86_64-w64-mingw32/include/_mingw.h:284,
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG:                  from
C:/msys64/mingw64/x86_64-w64-mingw32/include/corecrt.h:10,
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG:                  from
C:/msys64/mingw64/x86_64-w64-mingw32/include/crtdefs.h:10,
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG:                  from
C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:9,
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG:                  from
C:\msys64\usr\src\grass_trunk_git\grass\dist.x86_64-w64-mingw32\include\grass\dbmi.h:15,
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG:                  from
C:\Users\hkmyr\AppData\Local\Temp\tmplbjp8651.h:1:
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG:
C:/msys64/mingw64/x86_64-w64-mingw32/include/vadefs.h:35:2: error: #error
VARARGS not implemented for this compiler
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG:    35 | #error VARARGS not implemented for this
compiler
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG:       |  ^~~~~
[...]
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/stdio_s.h:511:
Syntax error at 'va_list'Status: Preprocessing
C:\Users\hkmyr\AppData\Local\Temp\tmpmx7zuxid.h
Status: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG -U __GNUC__ -dD "-Dinline=" "-D__inline__="
"-D__extension__=" "-D_Bool=uint8_t" "-D__const=const" "-D__asm__(x)="
"-D__asm(x)=" "-DCTYPESGEN=1"
"C:\Users\hkmyr\AppData\Local\Temp\tmpmx7zuxid.h"
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG: In file included from
C:/msys64/mingw64/x86_64-w64-mingw32/include/_mingw.h:284,
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG:                  from
C:/msys64/mingw64/x86_64-w64-mingw32/include/corecrt.h:10,
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG:                  from
C:/msys64/mingw64/x86_64-w64-mingw32/include/crtdefs.h:10,
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG:                  from
C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:9,
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG:                  from
C:/msys64/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include/grass/gis.h:24,
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG:                  from
C:\msys64\usr\src\grass_trunk_git\grass\dist.x86_64-w64-mingw32\include\grass\raster3d.h:4,
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG:                  from
C:\Users\hkmyr\AppData\Local\Temp\tmpmx7zuxid.h:1:
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG:
C:/msys64/mingw64/x86_64-w64-mingw32/include/vadefs.h:35:2: error: #error
VARARGS not implemented for this compiler
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG:    35 | #error VARARGS not implemented for this
compiler
Error: gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64    
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-I/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include
-D__GLIBC_HAVE_LONG_LONG:       |  ^~~~~
Status: Parsing C:\Users\hkmyr\AppData\Local\Temp\tmpmx7zuxid.h
[...]
Error: C:/msys64/mingw64/x86_64-w64-mingw32/include/sec_api/string_s.h:79:
Syntax error at ':'
Error:
C:/msys64/usr/src/grass_trunk_git/grass/dist.x86_64-w64-mingw32/include/grass/defs/gis.h:157:
Syntax error at 'va_list'
Status: Processing description list.
Traceback (most recent call last):
  File "./ctypesgen.py", line 165, in <module>
    ctypesgencore.processor.process(descriptions, options)
  File
"C:\msys64\usr\src\grass_trunk_git\grass\lib\python\ctypes\ctypesgencore\processor\pipeline.py",
line 60, in process
    find_source_libraries(data, options)
  File
"C:\msys64\usr\src\grass_trunk_git\grass\lib\python\ctypes\ctypesgencore\processor\operations.py",
line 206, in find_source_libraries
    library = ctypesgencore.libraryloader.load_library(library_name)
  File
"C:\msys64\usr\src\grass_trunk_git\grass\lib\python\ctypes\ctypesgencore\libraryloader.py",
line 258, in load_library
    result = LibraryLoader.load_library(self, libname)
  File
"C:\msys64\usr\src\grass_trunk_git\grass\lib\python\ctypes\ctypesgencore\libraryloader.py",
line 63, in load_library
    return self.load(path)
  File
"C:\msys64\usr\src\grass_trunk_git\grass\lib\python\ctypes\ctypesgencore\libraryloader.py",
line 279, in load
    return _WindowsLibrary(path)
  File
"C:\msys64\usr\src\grass_trunk_git\grass\lib\python\ctypes\ctypesgencore\libraryloader.py",
line 240, in __init__
    self.cdll = ctypes.cdll.LoadLibrary(path)
  File "C:\OSGeo4W64\apps\Python37\lib\ctypes\__init__.py", line 434, in
LoadLibrary
    return self._dlltype(name)
  File "C:\OSGeo4W64\apps\Python37\lib\ctypes\__init__.py", line 356, in
__init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 127] Die angegebene Prozedur wurde nicht gefunden
----------------




-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html


More information about the grass-dev mailing list