Closed gijzelaerr closed 2 years ago
This looks like a bad interaction between ctypesgen and gcc7, e.g., https://trac.osgeo.org/grass/ticket/3331
Indeed, I can reproduce this on Ubuntu 18.04 with gcc 7.3.0. The issue is specifically described here: https://trac.osgeo.org/grass/ticket/3331#comment:17 And there are two patches for the parser attached here: https://trac.osgeo.org/grass/ticket/3331#comment:20 But I haven't yet worked out how/where to apply them, as ctypesgen seems to have its own copy of the parser.
It looks like they (GRASS) include a version of ctypesgen in their distribution. Maybe the thing to do it for leda_telescope to fork ctypesgen, fix this bug, and then update the bifrost documentation to point to the new repository. I'm usually against such things but the ctypesgen version that we currently point to has not been updated since May 2015.
i've manually tried the two fixes in the patches mentioned in the comment, but the error remains the same.
I managed to get it to work with this patch:
You can use this patch to patch the ctypesgen found here:
https://github.com/davidjamesca/ctypesgen
The patch is included in our Ubuntu 18.04 package ctypesgen for KERN:
for which i'm also making a bifrost package.
compiling latest master branch 1e61eda4276f5cebf3784234df333f39ba947612 gives