[GRASS-dev] Seeking advices for image segmentation algorithms and windows compile question

Markus Neteler neteler at osgeo.org
Sat May 14 03:02:53 PDT 2016


Hi,

On Fri, May 13, 2016 at 3:44 AM, Yang, Bo (yangb2) <yangb2 at mail.uc.edu> wrote:
...
> For the 32 bit version, error is appendix I; After I run ‘make’, the report
> is in appendix II.

please be so kind and reduce the copy.paste stuff to a minimum.
Repetitive errors you may remove and replace with [...] in order to
make it readable.

> Appendix I:
> GRASS GIS 7.1.svn r68419 compilation log
> --------------------------------------------------
> Started compilation: Wed, May 11, 2016  7:34:55 PM
> Errors in:
> /usr/src/grass_trunk/lib/python/ctypes
[...]

> /usr/src/grass_trunk/temporal/t.vect.univar
> In case of errors please change into the directory with error and run
> 'make'.

Now, where is the error message of
/usr/src/grass_trunk/lib/python/ctypes
?
The same as below?


> -------------------------
>
> Appendix II:
>
> $ make
>
> make /usr/src/grass_trunk/dist.i386-w64-mingw32/etc/python/grass/lib
> make[1]: Entering directory '/usr/src/grass_trunk/lib/python/ctypes'
> make[1]: '/usr/src/grass_trunk/dist.i386-w64-mingw32/etc/python/grass/lib'
> is up to date.
> make[1]: Leaving directory '/usr/src/grass_trunk/lib/python/ctypes'
> make OBJ.i386-w64-mingw32/date.py OBJ.i386-w64-mingw32/gis.py
[...]

> /usr/src/grass_trunk/dist.i386-w64-mingw32/etc/python/grass/lib/ctypes_loader.pyc
> make[1]: Entering directory '/usr/src/grass_trunk/lib/python/ctypes'
> make[1]: 'OBJ.i386-w64-mingw32/date.py' is up to date.
[...]
>
> PYTHONPATH="C:/msys32/usr/src/grass_trunk/dist.i386-w64-mingw32/etc/python;C:/msys32/usr/src/grass_trunk/dist.i386-w64-mingw32/gui/wxpython;$PYTHONPATH"
> PATH="/usr/src/grass_trunk/dist.i386-w64-mingw32/bin:/usr/src/grass_trunk/dist.i386-w64-mingw32/bin:/usr/src/grass_trunk/dist.i386-w64-mingw32/scripts:/usr/src/grass_trunk/dist.i386-w64-mingw32/lib:/usr/src/grass_trunk/dist.i386-w64-mingw32/lib:/mingw32/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0"
> LC_ALL=C ./ctypesgen.py --cpp "gcc -E -I/c/OSGeo4W/include
> -D_FILE_OFFSET_BITS=64
> -I/usr/src/grass_trunk/dist.i386-w64-mingw32/include
> -I/usr/src/grass_trunk/dist.i386-w64-mingw32/include
> -D__GLIBC_HAVE_LONG_LONG" -lgrass_gproj.7.1.svn -I/c/OSGeo4W/include
> /usr/src/grass_trunk/dist.i386-w64-mingw32/include/grass/gprojects.h
> /usr/src/grass_trunk/dist.i386-w64-mingw32/include/grass/defs/gprojects.h
> -o OBJ.i386-w64-mingw32/proj.py
> Status: Preprocessing c:/users/hao2309/appdata/local/temp/tmp8qrwop.h
> Status: gcc -E -I/c/OSGeo4W/include -D_FILE_OFFSET_BITS=64
> -I/usr/src/grass_trunk/dist.i386-w64-mingw32/include
> -I/usr/src/grass_trunk/dist.i386-w64-mingw32/include
> -D__GLIBC_HAVE_LONG_LONG -U __GNUC__ -dD -IC:/OSGeo4W/include
> "-Dinline=" "-D__inline__=" "-D__extension__=" "-D_Bool=uint8_t"
> "-D__const=const" "-D__asm__(x)=" "-D__asm(x)=" "-DCTYPESGEN=1"
> c:/users/hao2309/appdata/local/temp/tmp8qrwop.h
> Error: gcc -E -I/c/OSGeo4W/include -D_FILE_OFFSET_BITS=64
[...]

> -D__GLIBC_HAVE_LONG_LONG:
> C:/msys32/mingw32/i686-w64-mingw32/include/vadefs.h:35:2: error:
> #error VARARGS not implemented for this compiler

--> here is an issue!


[...]
> Error: gcc -E -I/c/OSGeo4W/include -D_FILE_OFFSET_BITS=64
> -I/usr/src/grass_trunk/dist.i386-w64-mingw32/include
> -I/usr/src/grass_trunk/dist.i386-w64-mingw32/include
> -D__GLIBC_HAVE_LONG_LONG:   ^
> Status: Parsing c:/users/hao2309/appdata/local/temp/tmp8qrwop.h
> Error: C:/msys32/mingw32/i686-w64-mingw32/include/malloc.h:144: Syntax
> error at '{'
> Error: C:/msys32/mingw32/i686-w64-mingw32/include/malloc.h:149: Syntax
> error at 'return'
> Error: C:/msys32/mingw32/i686-w64-mingw32/include/malloc.h:163: Syntax
> error at '{'
> Error: C:/msys32/mingw32/i686-w64-mingw32/include/malloc.h:165: Syntax
> error at 'if'
> Error: C:/msys32/mingw32/i686-w64-mingw32/include/malloc.h:177: Syntax
> error at '}'
> Error: C:/msys32/mingw32/i686-w64-mingw32/include/stdio.h:144: Syntax
> error at 'va_list'
> Error: C:/msys32/mingw32/i686-w64-mingw32/include/time.h:228: Syntax
> error at ';'
> Status: Processing description list.
> Traceback (most recent call last):
>   File "./ctypesgen.py", line 142, in <module>
>     ctypesgencore.processor.process(descriptions, options)
>   File "./ctypesgencore/processor/pipeline.py", line 58, in process
>     find_source_libraries(data, options)
>   File "./ctypesgencore/processor/operations.py", line 206, in
> find_source_libraries
>     library = ctypesgencore.libraryloader.load_library(library_name)
>   File "./ctypesgencore/libraryloader.py", line 62, in load_library
>     return self.load(path)
>   File "./ctypesgencore/libraryloader.py", line 240, in load
>     return _WindowsLibrary(path)
>   File "./ctypesgencore/libraryloader.py", line 223, in __init__
>     self.cdll = ctypes.cdll.LoadLibrary(path)
>   File "C:/msys32/mingw32/lib/python2.7/ctypes/__init__.py", line 443,
> in LoadLibrary
>     return self._dlltype(name)
>   File "C:/msys32/mingw32/lib/python2.7/ctypes/__init__.py", line 365,
> in __init__
>     self._handle = _dlopen(self._name, mode)
> WindowsError: [Error 126] The specified module could not be found
> Makefile:99: recipe for target 'OBJ.i386-w64-mingw32/proj.py' failed
> make[1]: *** [OBJ.i386-w64-mingw32/proj.py] Error 1
> make[1]: Leaving directory '/usr/src/grass_trunk/lib/python/ctypes'
> Makefile:77: recipe for target 'default' failed
> make: *** [default] Error 2


(I have taken out all the extra newlines coming from your Windows
email software)

Looks like this report?
https://trac.osgeo.org/grass/ticket/1125


Markus


More information about the grass-dev mailing list