Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 866407 - sys-devel/mold-1.6.0 [-system-tbb] fails to compile (lto): global_control.h:59: error: type ‘tbb::detail::d1::global_control::parameter’ violates the C++ One Definition Rule [-Werror=odr]
Summary: sys-devel/mold-1.6.0 [-system-tbb] fails to compile (lto): global_control.h:5...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Sam James
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2022-08-24 21:17 UTC by Kostadin Shishmanov
Modified: 2022-11-11 11:39 UTC (History)
1 user (show)

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


Attachments
buildlog (sys-devel:mold-1.4.1:20220824-211023.log,58.21 KB, text/x-log)
2022-08-24 21:18 UTC, Kostadin Shishmanov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kostadin Shishmanov 2022-08-24 21:17:34 UTC
sys-devel/mold-1.4.1 fails to compile with FLAGS=-flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing

Reproducible: Always
Comment 1 Kostadin Shishmanov 2022-08-24 21:18:00 UTC
Created attachment 800884 [details]
buildlog
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-27 16:45:59 UTC
Thanks for reporting upstream. Please pop a link in the Gentoo bug when you do so we can keep track.
Comment 3 Agostino Sarubbo gentoo-dev 2022-11-09 07:47:23 UTC
lto_tinderbox has reproduced this issue with version 1.6.0 - Updating summary.
Comment 4 Matthew Smith gentoo-dev 2022-11-09 07:59:54 UTC
It's fixed in the upstream tbb sources but the vendored tbb sources have not been updated yet.

We should be able to drop the system-tbb USE flag and never use the vendored sources now that https://github.com/oneapi-src/oneTBB/pull/824 is merged.

tbb has already updated in ::gentoo so I'll update mold today.
Comment 5 Larry the Git Cow gentoo-dev 2022-11-10 09:44:19 UTC
The bug has been referenced in the following commit(s):

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

commit cb42d493187bcd84a0b37110aae09c0a519a109e
Author:     Matthew Smith <matthew@gentoo.org>
AuthorDate: 2022-11-10 09:43:01 +0000
Commit:     Matthew Smith <matthew@gentoo.org>
CommitDate: 2022-11-10 09:44:05 +0000

    sys-devel/mold: remove system-tbb USE flag
    
    Latest upstream version now contains the required fixes, so it can be
    reliably used instead of the vendored copy.
    
    Bug: https://bugs.gentoo.org/866407
    Signed-off-by: Matthew Smith <matthew@gentoo.org>

 sys-devel/mold/{mold-1.6.0.ebuild => mold-1.6.0-r1.ebuild} | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
Comment 6 Matthew Smith gentoo-dev 2022-11-11 11:39:57 UTC
system-mold USE flag dropped, now the old vendored copy will not be used.