Can't compile in vanilla fedora enviroments.
So I am trying to make a fedora test for the gitlab-ci but I have a hard time getting it to compile.
I adapted the dependencies from the opensuse test and everything seems to be there. But for some reason it fails to compile Rsvg-2.0.gir
.
I was able to reproduce it in a local vm too. At first I though it might be SELinux, tried disabling it, It's not.
At this point I have no idea how it compiles in my f27 install but fails in the vm/container environment.
I might be missing a dependency but autogen.sh
didn't complain. Tried both f27 and rawhide.
Steps to reproduce:
- Get a fedora 27 iso
- Boot a vm
- Install the dependencies
- run
autogen.sh --enable-debug
- run
make
ormake check
and watch it fail
Error:
GISCAN Rsvg-2.0.gir
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
Traceback (most recent call last):
File "/usr/bin/g-ir-scanner", line 66, in <module>
sys.exit(scanner_main(sys.argv))
File "/usr/lib64/gobject-introspection/giscanner/scannermain.py", line 547, in scanner_main
shlibs = create_binary(transformer, options, args)
File "/usr/lib64/gobject-introspection/giscanner/scannermain.py", line 422, in create_binary
gdump_parser.get_error_quark_functions())
File "/usr/lib64/gobject-introspection/giscanner/dumper.py", line 302, in compile_introspection_binary
return dc.run()
File "/usr/lib64/gobject-introspection/giscanner/dumper.py", line 168, in run
introspection_obj = self._compile(c_path)
File "/usr/lib64/gobject-introspection/giscanner/dumper.py", line 208, in _compile
self._options.init_sections)
File "/usr/lib64/gobject-introspection/giscanner/ccompiler.py", line 251, in compile
output_dir=os.path.abspath(os.sep))
File "/usr/lib64/python2.7/distutils/ccompiler.py", line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/usr/lib64/python2.7/distutils/unixccompiler.py", line 134, in _compile
raise CompileError, msg
distutils.errors.CompileError: command 'gcc' failed with exit status 1
make[2]: Leaving directory '/builds/alatiera/librsvg'
make[2]: *** [/usr/share/gobject-introspection-1.0/Makefile.introspection:160: Rsvg-2.0.gir] Error 1
make[1]: Leaving directory '/builds/alatiera/librsvg'
make[1]: *** [Makefile:1478: check-recursive] Error 1
make: *** [Makefile:1770: check] Error 2