Hi, during compilation of sci-geosciences/grass-8.2.0-r2 I get the following messages: python3.9 -t -m py_compile /mnt/nocrypt/var/tmp/portage/portage/sci-geosciences/grass-8.2.0-r2/work/grass-8.2.0/dist.x86_64-pc-linux-gnu/etc/python/grass/lib/dbmi.py ERROR: /usr/include/sys/cdefs.h:281: Syntax error at '\n' ERROR: /usr/include/sys/cdefs.h:308: Syntax error at '\n' ERROR: /usr/include/sys/cdefs.h:315: Syntax error at '\n' ERROR: /usr/include/sys/cdefs.h:321: Syntax error at '\n' ERROR: /usr/include/sys/cdefs.h:330: Syntax error at '\n' ERROR: /usr/include/sys/cdefs.h:331: Syntax error at '\n' ERROR: /usr/include/sys/cdefs.h:339: Syntax error at '\n' ERROR: /usr/include/sys/cdefs.h:397: Syntax error at '\n' ERROR: /usr/include/sys/cdefs.h:406: Syntax error at '\n' ERROR: /usr/include/sys/cdefs.h:433: Syntax error at '\n' python3.9 -t -m py_compile /mnt/nocrypt/var/tmp/portage/portage/sci-geosciences/grass-8.2.0-r2/work/grass-8.2.0/dist.x86_64-pc-linux-gnu/etc/python/grass/lib/ogsf.py ERROR: /usr/include/sys/cdefs.h:281: Syntax error at '\n' ERROR: /usr/include/sys/cdefs.h:308: Syntax error at '\n' ERROR: /usr/include/sys/cdefs.h:315: Syntax error at '\n' ERROR: /usr/include/sys/cdefs.h:321: Syntax error at '\n' ERROR: /usr/include/sys/cdefs.h:330: Syntax error at '\n' ERROR: /usr/include/sys/cdefs.h:331: Syntax error at '\n' ERROR: /usr/include/sys/cdefs.h:339: Syntax error at '\n' ERROR: /usr/include/sys/cdefs.h:397: Syntax error at '\n' ERROR: /usr/include/sys/cdefs.h:406: Syntax error at '\n' ERROR: /usr/include/sys/cdefs.h:433: Syntax error at '\n' ERROR: /usr/include/X11/Xfuncproto.h:100: Syntax error at '\n' ERROR: /usr/include/X11/Xfuncproto.h:101: Syntax error at '\n' ERROR: /usr/include/X11/Xfuncproto.h:102: Syntax error at '\n' ERROR: /usr/include/X11/Xfuncproto.h:127: Syntax error at '\n' ERROR: /usr/include/X11/Xfuncproto.h:136: Syntax error at '\n' ERROR: /usr/include/X11/Xfuncproto.h:182: Syntax error at '\n' ERROR: /usr/include/X11/Xfuncproto.h:216: Syntax error at '\n' ERROR: /usr/include/X11/Xfuncproto.h:224: Syntax error at '\n' ERROR: /usr/include/GL/gl.h:88: Syntax error at '\n' ERROR: /usr/include/GL/gl.h:92: Syntax error at '\n' The ERROR does not propagate back and the grass package install successfully. In the cdefs.h file I see one '\\n' instance by eye but not DOS line endings. I did not inspect: x11-base/xorg-proto-2022.2 (/usr/include/X11/Xfuncproto.h) media-libs/libglvnd-1.5.0 (/usr/include/GL/gl.h)
And to explain, it seemed to be it is about line-ending initially, maybe it is indeed just a syntax error detected at the end of a line.
It's ctypesgen going wrong: https://github.com/ctypesgen/ctypesgen/issues/82.
This is _reaaaally_ beyond us, I'm afraid. Beg GRASS to migrate to SWIG?