Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 878069 - sci-geosciences/grass: spurious "errors" (warnings) when compiling
Summary: sci-geosciences/grass: spurious "errors" (warnings) when compiling
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: mario.haustein
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-23 08:22 UTC by Martin Mokrejš
Modified: 2022-10-24 15:16 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2022-10-23 08:22:16 UTC
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)
Comment 1 Martin Mokrejš 2022-10-23 08:24:16 UTC
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.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-24 15:15:57 UTC
It's ctypesgen going wrong: https://github.com/ctypesgen/ctypesgen/issues/82.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-24 15:16:38 UTC
This is _reaaaally_ beyond us, I'm afraid. Beg GRASS to migrate to SWIG?