Bug 1410498

Summary: g++ -print-file-name=plugin uses full version number in path
Product: [Fedora] Fedora Reporter: Dave Johansen <davejohansen>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: boris, davejohansen, finjulhich, jakub, jwakely, law, mpolacek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-01 20:43:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
gcc patch for version from OpenSUSE none

Description Dave Johansen 2017-01-05 15:42:07 UTC
g++ -print-file-name=plugin uses the full version number in the path when just the major version number is all that's required for compatibility. This means that plugins have to require the specific version of gcc and have to be rebuild after every update to gcc. For what it's worth, gcc on Ubuntu only uses the major version number ( see https://bugzilla.redhat.com/show_bug.cgi?id=1408943#c9 ).

Comment 1 Jakub Jelinek 2017-01-05 15:55:25 UTC
That is the standard behavior of gcc.  Ubuntu+SuSE use some hack that has never been submitted upstream.

Comment 2 Dave Johansen 2017-01-06 04:53:58 UTC
Created attachment 1237858 [details]
gcc patch for version from OpenSUSE

Taken from http://download.opensuse.org/source/distribution/leap/42.2/repo/oss/suse/src/gcc6-6.1.1+r238085-1.12.src.rpm

Comment 3 Dave Johansen 2017-01-06 04:54:51 UTC
(In reply to Jakub Jelinek from comment #1)
> That is the standard behavior of gcc.  Ubuntu+SuSE use some hack that has
> never been submitted upstream.

I attached the patch from OpenSUSE that I believe is changing the directory. Can that be flowed upstream?

Comment 4 Dave Johansen 2017-01-10 17:25:31 UTC
I opened a bugzilla for gcc.

Comment 5 MM 2017-02-25 17:05:48 UTC
Just curious here, was there some progress?

Comment 6 Dave Johansen 2017-02-26 05:50:30 UTC
gcc 7 in Fedora Rawhide (26) now just uses the major version as the plugin path. You can see the details in the linked to gcc bugzilla.

Comment 7 Fedora End Of Life 2017-02-28 10:53:06 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle.
Changing version to '26'.