pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

gobject-introspectio fails on macOS



I know this has long had the "uses installed version" bug, but I don't
have one installed, and I think there was a recent change.  I think
that's about shlibs, not includes though.

Here's build output from re-running make.  I can generate a full build
log if that helps anyone.

The first file it wants is in (relative to WRKSRC):
  girepository/giversionmacros.h

There is a dodgy-looking -I:

  -I/private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/output/gir/../girepository

but that's output, not source.

So I don't see how this can work; it seems like the build script is just
wrong.   But it must work for most other people.

Clues appreciated, as usual.




=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Checking for vulnerabilities in gobject-introspection-1.76.1nb1
===> Building for gobject-introspection-1.76.1nb1
ninja: Entering directory `output'
[1/83] Generating gir/gir-girepository with a custom command
FAILED: gir/GIRepository-2.0.gir 
/private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/output/tools/g-ir-scanner --output=gir/GIRepository-2.0.gir --no-libtool --quiet --reparse-validate --add-include-path /private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/output/gir --add-include-path /private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/gir --identifier-prefix=GI --symbol-prefix=g --symbol-prefix=gi --c-include=girepository.h --namespace=GIRepository --nsversion=2.0 --library=girepository-1.0 --pkg-export=gobject-introspection-1.0 -L/private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/output/gir/../girepository --include-uninstalled=/private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/output/gir/GObject-2.0.gir --cflags-begin -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/gir/../girepository -I/private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/output/gir/../girepository -DGI_COMPILATION --cflags-end ../girepository/giarginfo.c ../girepository/gibaseinfo.c ../girepository/gicallableinfo.c ../girepository/giconstantinfo.c ../girepository/gienuminfo.c ../girepository/gifieldinfo.c ../girepository/gifunctioninfo.c ../girepository/giinterfaceinfo.c ../girepository/giobjectinfo.c ../girepository/gipropertyinfo.c ../girepository/giregisteredtypeinfo.c ../girepository/girepository.c ../girepository/gisignalinfo.c ../girepository/gistructinfo.c ../girepository/gitypeinfo.c ../girepository/giunioninfo.c ../girepository/giversion.c ../girepository/givfuncinfo.c ../girepository/giarginfo.h ../girepository/gibaseinfo.h ../girepository/gicallableinfo.h ../girepository/giconstantinfo.h ../girepository/gienuminfo.h ../girepository/gifieldinfo.h ../girepository/gifunctioninfo.h ../girepository/giinterfaceinfo.h ../girepository/giobjectinfo.h ../girepository/gipropertyinfo.h ../girepository/giregisteredtypeinfo.h ../girepository/girepository.h ../girepository/gisignalinfo.h ../girepository/gistructinfo.h ../girepository/gitypeinfo.h ../girepository/gitypelib.h ../girepository/gitypes.h ../girepository/giunioninfo.h ../girepository/givfuncinfo.h girepository/giversion.h
In file included from /private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/output/g-ir-cpp-9o8tyfp7.c:4:
/private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/girepository/giarginfo.h:30:10: error: 'gitypes.h' file not found with <angled> include; use "quotes" instead
#include <gitypes.h>
         ^~~~~~~~~~~
         "gitypes.h"
In file included from /private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/output/g-ir-cpp-9o8tyfp7.c:4:
In file included from /private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/girepository/giarginfo.h:30:
/private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/girepository/gitypes.h:30:10: error: 'giversionmacros.h' file not found with <angled> include; use "quotes" instead
#include <giversionmacros.h>
         ^~~~~~~~~~~~~~~~~~~
         "giversionmacros.h"
In file included from /private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/output/g-ir-cpp-9o8tyfp7.c:5:
/private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/girepository/gibaseinfo.h:31:10: error: 'gitypelib.h' file not found with <angled> include; use "quotes" instead
#include <gitypelib.h>
         ^~~~~~~~~~~~~
         "gitypelib.h"
In file included from /private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/output/g-ir-cpp-9o8tyfp7.c:5:
In file included from /private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/girepository/gibaseinfo.h:31:
/private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/girepository/gitypelib.h:32:10: error: 'giversionmacros.h' file not found with <angled> include; use "quotes" instead
#include <giversionmacros.h>
         ^~~~~~~~~~~~~~~~~~~
         "giversionmacros.h"
In file included from /private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/output/g-ir-cpp-9o8tyfp7.c:5:
/private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/girepository/gibaseinfo.h:32:10: error: 'gitypes.h' file not found with <angled> include; use "quotes" instead
#include <gitypes.h>
         ^~~~~~~~~~~
         "gitypes.h"
In file included from /private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/output/g-ir-cpp-9o8tyfp7.c:6:
/private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/girepository/gicallableinfo.h:30:10: error: 'gitypes.h' file not found with <angled> include; use "quotes" instead
#include <gitypes.h>
         ^~~~~~~~~~~
         "gitypes.h"
In file included from /private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/output/g-ir-cpp-9o8tyfp7.c:7:
/private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/girepository/giconstantinfo.h:30:10: error: 'gitypes.h' file not found with <angled> include; use "quotes" instead
#include <gitypes.h>
         ^~~~~~~~~~~
         "gitypes.h"
In file included from /private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/output/g-ir-cpp-9o8tyfp7.c:8:
/private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/girepository/gienuminfo.h:30:10: error: 'gitypes.h' file not found with <angled> include; use "quotes" instead
#include <gitypes.h>
         ^~~~~~~~~~~
         "gitypes.h"
In file included from /private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/output/g-ir-cpp-9o8tyfp7.c:9:
/private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/girepository/gifieldinfo.h:30:10: error: 'gitypes.h' file not found with <angled> include; use "quotes" instead
#include <gitypes.h>
         ^~~~~~~~~~~
         "gitypes.h"
In file included from /private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/output/g-ir-cpp-9o8tyfp7.c:10:
/private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/girepository/gifunctioninfo.h:30:10: error: 'gitypes.h' file not found with <angled> include; use "quotes" instead
#include <gitypes.h>
         ^~~~~~~~~~~
         "gitypes.h"
In file included from /private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/output/g-ir-cpp-9o8tyfp7.c:11:
/private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/girepository/giinterfaceinfo.h:30:10: error: 'gitypes.h' file not found with <angled> include; use "quotes" instead
#include <gitypes.h>
         ^~~~~~~~~~~
         "gitypes.h"
In file included from /private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/output/g-ir-cpp-9o8tyfp7.c:12:
/private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/girepository/giobjectinfo.h:30:10: error: 'gitypes.h' file not found with <angled> include; use "quotes" instead
#include <gitypes.h>
         ^~~~~~~~~~~
         "gitypes.h"
In file included from /private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/output/g-ir-cpp-9o8tyfp7.c:13:
/private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/girepository/gipropertyinfo.h:30:10: error: 'gitypes.h' file not found with <angled> include; use "quotes" instead
#include <gitypes.h>
         ^~~~~~~~~~~
         "gitypes.h"
In file included from /private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/output/g-ir-cpp-9o8tyfp7.c:14:
/private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/girepository/giregisteredtypeinfo.h:31:10: error: 'gitypes.h' file not found with <angled> include; use "quotes" instead
#include <gitypes.h>
         ^~~~~~~~~~~
         "gitypes.h"
In file included from /private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/output/g-ir-cpp-9o8tyfp7.c:15:
/private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/girepository/girepository.h:31:10: error: 'giarginfo.h' file not found with <angled> include; use "quotes" instead
#include <giarginfo.h>
         ^~~~~~~~~~~~~
         "giarginfo.h"
/private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/girepository/girepository.h:32:10: error: 'gibaseinfo.h' file not found with <angled> include; use "quotes" instead
#include <gibaseinfo.h>
         ^~~~~~~~~~~~~~
         "gibaseinfo.h"
/private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/girepository/girepository.h:33:10: error: 'gicallableinfo.h' file not found with <angled> include; use "quotes" instead
#include <gicallableinfo.h>
         ^~~~~~~~~~~~~~~~~~
         "gicallableinfo.h"
/private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/girepository/girepository.h:34:10: error: 'giconstantinfo.h' file not found with <angled> include; use "quotes" instead
#include <giconstantinfo.h>
         ^~~~~~~~~~~~~~~~~~
         "giconstantinfo.h"
/private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/girepository/girepository.h:35:10: error: 'gienuminfo.h' file not found with <angled> include; use "quotes" instead
#include <gienuminfo.h>
         ^~~~~~~~~~~~~~
         "gienuminfo.h"
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
Traceback (most recent call last):
  File "/opt/pkg/lib/python3.11/site-packages/setuptools/_distutils/unixccompiler.py", line 178, in preprocess
    self.spawn(pp_args)
  File "/opt/pkg/lib/python3.11/site-packages/setuptools/_distutils/ccompiler.py", line 1041, in spawn
    spawn(cmd, dry_run=self.dry_run, **kwargs)
  File "/opt/pkg/lib/python3.11/site-packages/setuptools/_distutils/spawn.py", line 70, in spawn
    raise DistutilsExecError(
distutils.errors.DistutilsExecError: command '/tmp/work/devel/gobject-introspection/work/.wrapper/bin/clang' failed with exit code 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/output/tools/g-ir-scanner", line 99, in <module>
    sys.exit(scanner_main(sys.argv))
             ^^^^^^^^^^^^^^^^^^^^^^
  File "/private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/output/giscanner/scannermain.py", line 600, in scanner_main
    ss, filenames = create_source_scanner(options, args)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/output/giscanner/scannermain.py", line 471, in create_source_scanner
    ss.parse_files(filenames)
  File "/private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/output/giscanner/sourcescanner.py", line 265, in parse_files
    self._parse(headers)
  File "/private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/output/giscanner/sourcescanner.py", line 311, in _parse
    cc.preprocess(tmp_name_cpp,
  File "/private/tmp/work/devel/gobject-introspection/work/gobject-introspection-1.76.1/output/giscanner/ccompiler.py", line 310, in preprocess
    self.compiler.preprocess(source=source,
  File "/opt/pkg/lib/python3.11/site-packages/setuptools/_distutils/unixccompiler.py", line 180, in preprocess
    raise CompileError(msg)
distutils.errors.CompileError: command '/tmp/work/devel/gobject-introspection/work/.wrapper/bin/clang' failed with exit code 1
ninja: build stopped: subcommand failed.
*** Error code 1

Stop.
make[1]: stopped in /n0/gdt/NetBSD-current/pkgsrc/devel/gobject-introspection
*** Error code 1

Stop.
make: stopped in /n0/gdt/NetBSD-current/pkgsrc/devel/gobject-introspection


Home | Main Index | Thread Index | Old Index