[Slackbuilds-users] Finding why build fails

Erich Ritz erich.public at protonmail.com
Mon Feb 15 21:36:50 UTC 2021


Hi Rich,

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, February 15, 2021 2:19 PM, Rich Shepard <rshepard at appl-ecosys.com> wrote:

> I'm trying to build pygobject3-python3 but it fails:
> In file included from /usr/include/python3.9/abstract.h:843:0,
> from /usr/include/python3.9/Python.h:151,
> from ./pyglib.h:23,
> from gobjectmodule.c:27:
> /usr/include/python3.9/cpython/abstract.h:131:1: error: C++ style comments are not allowed in ISO C90

This is the important part.  But we don't see the line that caused the error.

I installed pygobject3-python3-3.18.2-x86_64-1_SBo way back in March 2019, so obviously it compiled fine back then.  I also just recompiled and it compiled fine for me.

Based on the error message I can only assume some compiler flag is being passed to the compiler to be strict about not allowing C++ comments on C code.  The command that tries to compile this file would give a clue (try to find it in the build log).

What about your setup is not standard?

The remaining lines don't contain any useful information:

> // Backwards compatibility aliases for API that was provisional in Python 3.8
> ^
> /usr/include/python3.9/cpython/abstract.h:131:1: error: (this will be reported only once per input file)
> Makefile:743: recipe for target '_gi_la-gobjectmodule.lo' failed
> make[3]: *** [_gi_la-gobjectmodule.lo] Error 1
> make[3]: Leaving directory '/tmp/SBo/pygobject-3.18.2/gi'
> Makefile:1056: recipe for target 'all-recursive' failed
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory '/tmp/SBo/pygobject-3.18.2/gi'
> Makefile:674: recipe for target 'all-recursive' failed
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory '/tmp/SBo/pygobject-3.18.2'
> Makefile:497: recipe for target 'all' failed
> make: *** [all] Error 2
>
> The only prerequisite is py3cairo so I rebuilt and reinstalled
> py3cairo-1.10.0-x86_64-3_SBo.
>
> Since this didn't resolve the pygobject-3.18.2 build failure where do I look
> for the reason? (I can provide a full build log if that helps.) I've

At a minimum the build command that caused the error would help tremendously.

> encountered 'recipe for target all failed' or 'no target for all' before so
> learning what causes it would be really helpful.
>
> TIA,
>
> Rich
>
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/

Erich


More information about the SlackBuilds-users mailing list