Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1514358 - gobject-introspection: gcc fails to compile software when redhat-rpm-config isn't installed
Summary: gobject-introspection: gcc fails to compile software when redhat-rpm-config i...
Status: CLOSED DUPLICATE of bug 1217376
Alias: None
Product: Fedora
Classification: Fedora
Component: gobject-introspection
Version: 26
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Colin Walters
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2017-11-17 08:34 UTC by Florian Weimer
Modified: 2017-11-20 06:47 UTC (History)
19 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1432191
Last Closed: 2017-11-20 06:46:44 UTC

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Red Hat Bugzilla 1218294 None CLOSED Split hardened-cc1 and hardened-ld to a subpackage 2019-01-16 09:47:55 UTC
Red Hat Bugzilla 1432191 None NEW rubygems: gcc fails to compile software when redhat-rpm-config isn't installed 2019-01-16 09:47:55 UTC

Internal Links: 1218294 1432191

Description Florian Weimer 2017-11-17 08:34:52 UTC
+++ This bug was initially created as a clone of Bug #1432191 +++

Description of problem:
Since the hardened by default change, gcc will sometimes fail to compile stuff if redhat-rpm-config isn't installed. This is because it now depends on the redhat-hardened wrappers shipped in redhat-rpm-config.

This problem is so bad that it's documented on

Please split out the hardening wrappers into their own package and make gcc depend on them.

Version-Release number of selected component (if applicable):

Additional info:
This also affects Fedora 24, Fedora 26, and Rawhide.

--- Additional comment from Florian Weimer on 2017-03-14 19:48:24 CET ---

This looks like a ruby bug to me.  It extracts the build flags from the build environment.  As such, it is the responsibility of the ruby package to replicate the build environment (e.g., the rubygems package should depend on redhat-rpm-config).

GCC itself works just fine without redhat-rpm-config.

--- Additional comment from Neal Gompa on 2017-03-18 16:03:16 CET ---

If it was just ruby, sure. But it also happens with lots of different things[1][2][3][4][5].

It's a fairly generic thing, affecting C/C++, Python, and other things that attempt to use GCC.


--- Additional comment from Jonathan Wakely on 2017-03-18 18:20:24 CET ---

It's still not a problem with GCC. Those things are passing an option to gcc telling it to use a file that is part of redhat-rpm-config, so those things should depend on redhat-rpm-config.

If I call gcc with -lcurl and haven't installed libcurl-devel it fails to find the file, but that doesn't mean gcc should depend on libcurl.

--- Additional comment from Neal Gompa on 2017-11-17 03:44:38 CET ---

This is definitely still a problem, because I observed this when setting the CI for gsignond[1][2].


--- Additional comment from Florian Weimer on 2017-11-17 09:32:28 CET ---

This is a bug in rubygems because it bakes toolchain compilation flags into RPM packages.  It should not do that.

Comment 1 Mamoru TASAKA 2017-11-20 06:46:44 UTC
Actually after debugging the case,

it turned out that this case is due to bug 1217376 , i.e. python2 distutils embeds this option, not gobject-introspection.

*** This bug has been marked as a duplicate of bug 1217376 ***

Note You need to log in before you can comment on or make changes to this bug.