Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 583010 - sys-devel/gcc[jit]: libgccjit causes collisions between different gcc versions
Summary: sys-devel/gcc[jit]: libgccjit causes collisions between different gcc versions
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 569608 590636 613100 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-05-14 10:37 UTC by Michał Górny
Modified: 2023-09-28 12:03 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-05-14 10:37:41 UTC
Multiple gcc versions with USE=jit install /usr/lib/libgccjit*, causing file collisions between them (reproduced at least with 5.3.0 and 5.1.0).
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-05-14 10:44:38 UTC
commit c5f670d98de050ca8fc617606ca2fe38bd5e19b9
Author: Michał Górny <mgorny@gentoo.org>
Date:   Sat May 14 12:41:21 2016

    base/package.use.mask: [QA] Mask sys-devel/gcc[jit], #569608, #583010
Comment 2 Arfrever Frehtes Taifersar Arahesis 2016-08-07 04:25:18 UTC
*** Bug 590636 has been marked as a duplicate of this bug. ***
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-04-08 06:26:57 UTC
*** Bug 613100 has been marked as a duplicate of this bug. ***
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-04-08 06:27:48 UTC
Well, obviously our mask doesn't cover crossdev-forked packages.
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2020-08-24 08:31:09 UTC
*** Bug 569608 has been marked as a duplicate of this bug. ***
Comment 6 Larry the Git Cow gentoo-dev 2020-08-24 09:14:47 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c1d94226bc344629e44ff7d13a19b4e2631a249

commit 8c1d94226bc344629e44ff7d13a19b4e2631a249
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2020-08-24 08:44:20 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-08-24 09:14:42 +0000

    toolchain.eclass: fix relocation of libgccjit
    
    Before the change libgccjit.so was installed to /usr/lib.
    Relocation code in toolchain.eclass:gcc_movelibs() only
    handles /usr/$(get_libdir) -> $LIBDIR location.
    
    As a result gcc did not relocate libraries to version-speciifc
    firectory: caused collisions and installed library into wrong
    LIBDIR.
    
    The change handles libgccjit special case by relocating it
    explicitly.
    
    Reported-by: Michał Górny
    Bug: https://bugs.gentoo.org/583010
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 eclass/toolchain.eclass | 6 ++++++
 1 file changed, 6 insertions(+)
Comment 7 Larry the Git Cow gentoo-dev 2020-08-28 17:55:31 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=568de3ac006537f2b924b8b4e080eb52b5ead91a

commit 568de3ac006537f2b924b8b4e080eb52b5ead91a
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2020-08-28 17:54:26 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-08-28 17:55:23 +0000

    profiles/base/package.use.mask: revert gcc[jit] mask
    
    Bug: https://bugs.gentoo.org/583010
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 profiles/base/package.use.mask | 8 --------
 1 file changed, 8 deletions(-)