pkgsrc-Users archive

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

compilation of devel/gobject-instrospection fails, glib/gmacros.h missing



Hello,

Yesterday I've decided to try pkgsrc/stable on Linux 64 bit (Ubuntu
16.04, gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.5)).

After bootstrap I went on to install cad/kicad. Pkgsrc started
installing all possible dependencies and after 10 hours of compiling
it stopped at devel/gobject-introspection missing glib/gmacros.h. I
see that someone has already encountered this problem on MacOS:

https://mail-index.netbsd.org/pkgsrc-users/2015/05/21/msg021577.html

What workaround can be in my case, bearing in mind that I wasn't
installing gobject-introspection on its own, but it came to me as a
dependency to kicad (or to a kicad's dependency).

Here's the output:

In file included from
/opt/pkgsrc/devel/gobject-introspection/work/gobject-introspection-1.54.1/g-ir-cpp-s6rlhb.c:4:0:
/opt/pkg/lib/glib-2.0/include/glibconfig.h:9:26: fatal error:
glib/gmacros.h: No such file or directory
compilation terminated.
Traceback (most recent call last):
  File "./g-ir-scanner", line 66, in <module>
    sys.exit(scanner_main(sys.argv))
  File "./giscanner/scannermain.py", line 538, in scanner_main
    ss = create_source_scanner(options, args)
  File "./giscanner/scannermain.py", line 446, in create_source_scanner
    ss.parse_files(filenames)
  File "./giscanner/sourcescanner.py", line 262, in parse_files
    self._parse(headers)
  File "./giscanner/sourcescanner.py", line 307, in _parse
    self._cpp_options)
  File "./giscanner/ccompiler.py", line 210, in preprocess
    extra_postargs=extra_postargs)
  File "/opt/pkg/lib/python2.7/distutils/unixccompiler.py", line 114,
in preprocess
    raise CompileError, msg
distutils.errors.CompileError: command 'cc' failed with exit status 1
Makefile:3533: recipe for target 'GLib-2.0.gir' failed
make[2]: *** [GLib-2.0.gir] Error 1
make[2]: Leaving directory
'/opt/pkgsrc/devel/gobject-introspection/work/gobject-introspection-1.54.1'
Makefile:2820: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
'/opt/pkgsrc/devel/gobject-introspection/work/gobject-introspection-1.54.1'
Makefile:1580: recipe for target 'all' failed
make: *** [all] Error 2
*** Error code 2

Stop.
bmake[4]: stopped in /opt/pkgsrc/devel/gobject-introspection
*** Error code 1

Stop.
bmake[3]: stopped in /opt/pkgsrc/devel/gobject-introspection
*** Error code 1

Stop.
bmake[2]: stopped in /opt/pkgsrc/multimedia/gstreamer1
*** Error code 1

Stop.
bmake[1]: stopped in /opt/pkgsrc/x11/wxGTK30
*** Error code 1


Home | Main Index | Thread Index | Old Index