[GRASS-dev] winGRASS addons - consolidation/fix release needed!!
Michael Barton
Michael.Barton at asu.edu
Sat Sep 7 18:19:11 PDT 2019
I wonder if this is a similar cause to the apparent ctypes error I hit on the Mac trying to compile GRASS trunk with Python 3.
Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University
voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu
On Sep 7, 2019, at 1:22 PM, grass-dev-request at lists.osgeo.org<mailto:grass-dev-request at lists.osgeo.org> wrote:
Date: Sat, 7 Sep 2019 12:49:03 -0700 (MST)
From: Helmut Kudrnovsky <hellik at web.de<mailto:hellik at web.de>>
To: grass-dev at lists.osgeo.org<mailto:grass-dev at lists.osgeo.org>
Subject: Re: [GRASS-dev] winGRASS addons - consolidation/fix release
needed!!
Message-ID: <1567885743816-0.post at n6.nabble.com<mailto:1567885743816-0.post at n6.nabble.com>>
Content-Type: text/plain; charset=UTF-8
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: https://urldefense.proofpoint.com/v2/url?u=http-3A__osgeo-2Dorg.1560.x6.nabble.com_Grass-2DDev-2Df3991897.html&d=DwIGaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=4NKHaV-OqIkEhKBePcRK-tT2F-_8HQG-5ALkFLfvSWc&s=f4bqDSfbzowXE7k-Os6Ofh_aWtgJL0LbuyWAeBOF_gk&e=
------------------------------
Message: 3
Date: Sat, 7 Sep 2019 13:20:48 -0700 (MST)
From: Helmut Kudrnovsky <hellik at web.de<mailto:hellik at web.de>>
To: grass-dev at lists.osgeo.org<mailto:grass-dev at lists.osgeo.org>
Subject: Re: [GRASS-dev] winGRASS addons - consolidation/fix release
needed!!
Message-ID: <1567887648694-0.post at n6.nabble.com<mailto:1567887648694-0.post at n6.nabble.com>>
Content-Type: text/plain; charset=UTF-8
Martin Landa wrote
Hi Helmut,
so 7. 9. 2019 v 20:31 odesÃlatel Martin Landa <
landa.martin@
> napsal:
so apparently you have the same problem as me. It fails to load
libgrass_display.7.9.dll for unknown reason. It also causes that all
display modules fails to be compiled (or at least manual pages are not
generated).
try to run from msys terminal (or something similar depending on your
paths):
GISRC=/c/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/demolocation/.grassrc79
GISBASE=C:/msys64/usr/src/grass79/dist.x86_64-w64-mingw32
PATH="/c/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/bin:/c/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/bin:/c/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/scripts:$PATH"
PYTHONPATH="C:/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/etc/python;C:/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/gui/wxpython;$PYTHONPATH"
PATH="/c/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/bin:/c/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/bin:/c/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/scripts:/c/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/lib:/c/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/lib:/c/OSGeo4W64/apps/Python37:/c/OSGeo4W64/bin:/c/msys64/usr/src/grass79/mswindows/osgeo4w/lib:/c/msys64/usr/src/grass79/mswindows/osgeo4w:/usr/bin:/mingw64/bin"
LC_ALL=C LANG=C LANGUAGE=C
/c/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/bin/d.barscale.exe
--html-description
You will probably do not get any output or even error (which is problem).
But when you run the same command for r.info.exe, it works.
GISRC=/c/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/demolocation/.grassrc79
GISBASE=C:/msys64/usr/src/grass79/dist.x86_64-w64-mingw32
PATH="/c/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/bin:/c/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/bin:/c/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/scripts:$PATH"
PYTHONPATH="C:/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/etc/python;C:/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/gui/wxpython;$PYTHONPATH"
PATH="/c/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/bin:/c/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/bin:/c/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/scripts:/c/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/lib:/c/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/lib:/c/OSGeo4W64/apps/Python37:/c/OSGeo4W64/bin:/c/msys64/usr/src/grass79/mswindows/osgeo4w/lib:/c/msys64/usr/src/grass79/mswindows/osgeo4w:/usr/bin:/mingw64/bin"
LC_ALL=C LANG=C LANGUAGE=C
/c/msys64/usr/src/grass79/dist.x86_64-w64-mingw32/bin/r.info.exe
--html-description
in both test cases (d.barscale.exe --html-description, r.info.exe
--html-description), I get nothing, neither an error message nor
--html-description output.
-----
best regards
Helmut
--
Sent from: https://urldefense.proofpoint.com/v2/url?u=http-3A__osgeo-2Dorg.1560.x6.nabble.com_Grass-2DDev-2Df3991897.html&d=DwIGaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=4NKHaV-OqIkEhKBePcRK-tT2F-_8HQG-5ALkFLfvSWc&s=f4bqDSfbzowXE7k-Os6Ofh_aWtgJL0LbuyWAeBOF_gk&e=
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20190908/aa184f40/attachment-0001.html>
More information about the grass-dev
mailing list