Opened 3 years ago

Closed 20 months ago

#3231 closed defect (fixed)

ctypesgen.py fails during grass compilation

Reported by: vince Owned by: grass-dev@…
Priority: normal Milestone: 7.2.2
Component: Compiling Version: svn-releasebranch72
Keywords: MacOS X Cc:
CPU: Unspecified Platform: MacOSX

Description

GISRC=/opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/grass-7.2.0RC2/dist.x86_64-apple-darwin16.4.0/demolocation/.grassrc72 GISBASE=/opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/grass-7.2.0RC2/dist.x86_64-apple-darwin16.4.0 PATH="/opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/grass-7.2.0RC2/dist.x86_64-apple-darwin16.4.0/bin:/opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/grass-7.2.0RC2/dist.x86_64-apple-darwin16.4.0/bin:/opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/grass-7.2.0RC2/dist.x86_64-apple-darwin16.4.0/scripts:$PATH" PYTHONPATH="/opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/grass-7.2.0RC2/dist.x86_64-apple-darwin16.4.0/etc/python:/opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/grass-7.2.0RC2/dist.x86_64-apple-darwin16.4.0/gui/wxpython:$PYTHONPATH" DYLD_LIBRARY_PATH="/opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/grass-7.2.0RC2/dist.x86_64-apple-darwin16.4.0/bin:/opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/grass-7.2.0RC2/dist.x86_64-apple-darwin16.4.0/bin:/opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/grass-7.2.0RC2/dist.x86_64-apple-darwin16.4.0/scripts:/opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/grass-7.2.0RC2/dist.x86_64-apple-darwin16.4.0/lib:/opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/grass-7.2.0RC2/dist.x86_64-apple-darwin16.4.0/lib:" LC_ALL=C ./ctypesgen.py --cpp "/usr/bin/clang -E -I/Volumes/Air/opt/local/include      -I/opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/grass-7.2.0RC2/dist.x86_64-apple-darwin16.4.0/include -I/opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/grass-7.2.0RC2/dist.x86_64-apple-darwin16.4.0/include -D__GLIBC_HAVE_LONG_LONG" -lgrass_imagery.7.2.0RC2   /opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/grass-7.2.0RC2/dist.x86_64-apple-darwin16.4.0/include/grass/imagery.h /opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/grass-7.2.0RC2/dist.x86_64-apple-darwin16.4.0/include/grass/defs/imagery.h -o OBJ.x86_64-apple-darwin16.4.0/imagery.py
Status: Preprocessing /opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/.tmp/tmpTkYOM2.h
Status: /usr/bin/clang -E -I/Volumes/Air/opt/local/include      -I/opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/grass-7.2.0RC2/dist.x86_64-apple-darwin16.4.0/include -I/opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/grass-7.2.0RC2/dist.x86_64-apple-darwin16.4.0/include -D__GLIBC_HAVE_LONG_LONG -U __BLOCKS__ -U __GNUC__ -dD "-Dinline=" "-D__inline__=" "-D__extension__=" "-D_Bool=uint8_t" "-D__const=const" "-D__asm__(x)=" "-D__asm(x)=" "-DCTYPESGEN=1" "-D__uint16_t=uint16_t" "-D__uint32_t=uint32_t" "-D__uint64_t=uint64_t" /opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/.tmp/tmpTkYOM2.h
Error: /usr/bin/clang -E -I/Volumes/Air/opt/local/include      -I/opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/grass-7.2.0RC2/dist.x86_64-apple-darwin16.4.0/include -I/opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/grass-7.2.0RC2/dist.x86_64-apple-darwin16.4.0/include -D__GLIBC_HAVE_LONG_LONG: In file included from /opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/.tmp/tmpTkYOM2.h:1:
Error: /usr/bin/clang -E -I/Volumes/Air/opt/local/include      -I/opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/grass-7.2.0RC2/dist.x86_64-apple-darwin16.4.0/include -I/opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/grass-7.2.0RC2/dist.x86_64-apple-darwin16.4.0/include -D__GLIBC_HAVE_LONG_LONG: In file included from /opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/grass-7.2.0RC2/dist.x86_64-apple-darwin16.4.0/include/grass/gis.h:24:
Error: /usr/bin/clang -E -I/Volumes/Air/opt/local/include      -I/opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/grass-7.2.0RC2/dist.x86_64-apple-darwin16.4.0/include -I/opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/grass-7.2.0RC2/dist.x86_64-apple-darwin16.4.0/include -D__GLIBC_HAVE_LONG_LONG: In file included from /usr/include/stdio.h:64:
Error: /usr/bin/clang -E -I/Volumes/Air/opt/local/include      -I/opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/grass-7.2.0RC2/dist.x86_64-apple-darwin16.4.0/include -I/opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/grass-7.2.0RC2/dist.x86_64-apple-darwin16.4.0/include -D__GLIBC_HAVE_LONG_LONG: /usr/include/sys/cdefs.h:81:2: warning: "Unsupported compiler detected" [-W#warnings]
Error: /usr/bin/clang -E -I/Volumes/Air/opt/local/include      -I/opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/grass-7.2.0RC2/dist.x86_64-apple-darwin16.4.0/include -I/opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/grass-7.2.0RC2/dist.x86_64-apple-darwin16.4.0/include -D__GLIBC_HAVE_LONG_LONG: #warning "Unsupported compiler detected"
Error: /usr/bin/clang -E -I/Volumes/Air/opt/local/include      -I/opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/grass-7.2.0RC2/dist.x86_64-apple-darwin16.4.0/include -I/opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/grass-7.2.0RC2/dist.x86_64-apple-darwin16.4.0/include -D__GLIBC_HAVE_LONG_LONG:  ^
Error: /usr/bin/clang -E -I/Volumes/Air/opt/local/include      -I/opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/grass-7.2.0RC2/dist.x86_64-apple-darwin16.4.0/include -I/opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/grass-7.2.0RC2/dist.x86_64-apple-darwin16.4.0/include -D__GLIBC_HAVE_LONG_LONG: 1 warning generated.
Status: Parsing /opt/local/var/macports/build/_macports-ports_gis_grass7/grass7/work/.tmp/tmpTkYOM2.h
Error: /usr/include/sys/stdio.h:39: Syntax error at '__attribute__'
Error: /usr/include/sys/stdio.h:39: Syntax error at '='
Error: /usr/include/sys/stdio.h:46: Syntax error at '__attribute__'
Error: /usr/include/sys/stdio.h:46: Syntax error at '='
Error: /usr/include/sys/stdio.h:46: Syntax error at '='
Error: /usr/include/sys/stdio.h:46: Syntax error at '='
Error: /usr/include/sys/stdio.h:46: Syntax error at '='
Error: /usr/include/sys/stdio.h:47: Syntax error at '__attribute__'
Error: /usr/include/sys/stdio.h:47: Syntax error at '='
Error: /usr/include/sys/stdio.h:47: Syntax error at '='
Error: /usr/include/sys/stdio.h:47: Syntax error at '='
Error: /usr/include/sys/stdio.h:47: Syntax error at '='
Error: /usr/include/stdio.h:133: Syntax error at '_close'
Error: /usr/include/stdio.h:134: Syntax error at '_read'
Error: /usr/include/stdio.h:135: Syntax error at '_seek'
Error: /usr/include/stdio.h:136: Syntax error at '_write'
Error: /usr/include/stdio.h:136: Syntax error at ','
Error: /usr/include/stdio.h:153: Syntax error at '}'
Error: /usr/include/stdio.h:231: Syntax error at '*'
Error: /usr/include/stdio.h:232: Syntax error at '*'
Error: /usr/include/stdio.h:233: Syntax error at '*'
…

+ hundreds of lines of the same ilk.

Change History (5)

comment:1 Changed 3 years ago by martinl

Milestone: 7.2.0

comment:2 Changed 3 years ago by neteler

Milestone: 7.2.07.2.1

Ticket retargeted after milestone closed

comment:3 Changed 2 years ago by martinl

Milestone: 7.2.17.2.2

comment:4 Changed 2 years ago by neteler

Milestone: 7.2.27.2.3

Ticket retargeted after milestone closed

comment:5 Changed 20 months ago by neteler

Milestone: 7.2.37.2.2
Resolution: fixed
Status: newclosed

This got fixed in r71219 in relbranch72 (see also #3331) and published with 7.2.2.

Closing. Please reopen if needed.

Note: See TracTickets for help on using tickets.