Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 948969 - dev-libs/libsass-3.6.6: fails to compile (lto): conflicts with -fno-semantic-interposition
Summary: dev-libs/libsass-3.6.6: fails to compile (lto): conflicts with -fno-semantic-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Nowa Ammerlaan
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2025-01-28 17:53 UTC by NHO
Modified: 2025-01-31 14:02 UTC (History)
1 user (show)

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


Attachments
emerge --info (libsass-einfo.log,8.24 KB, text/x-log)
2025-01-28 17:59 UTC, NHO
Details
compressed, ansifiltered build log (libsass.log.zst,17.26 KB, application/zstd)
2025-01-28 18:00 UTC, NHO
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NHO 2025-01-28 17:53:12 UTC
After configuring lto according to wiki, started to rebuild the world
ast.hpp:127:9: error: virtual table of type 'struct Expression' violates one definition rule [-Werror=odr]
  127 |   class Expression : public AST_Node {
      |         ^
ast.hpp:127:9: note: the conflicting type defined in another translation unit
  127 |   class Expression : public AST_Node {
      |         ^
<built-in>: note: virtual method '__cxa_pure_virtual'
ast.hpp:155:13: note: ought to match virtual method '__conv_op ' but does not
  155 |     virtual operator bool() { return true; }
      |             ^
lto1: some warnings being treated as errors


I think it's double include.

Reproducible: Always
Comment 1 NHO 2025-01-28 17:56:03 UTC
emerge -pqv '=dev-libs/libsass-3.6.6::gentoo'
[ebuild   R   ] dev-libs/libsass-3.6.6
Comment 2 NHO 2025-01-28 17:59:19 UTC
Created attachment 917731 [details]
emerge --info
Comment 3 NHO 2025-01-28 17:59:47 UTC
Build log:
https://nhorus.no-ip.biz/sharables/libsass.log
Comment 4 NHO 2025-01-28 18:00:08 UTC
Created attachment 917732 [details]
compressed, ansifiltered build log
Comment 5 NHO 2025-01-30 08:20:47 UTC
Reported upstream in https://github.com/sass/libsass/issues/3193
Comment 6 NHO 2025-01-31 11:06:09 UTC
Upstream recommends to build without "-fno-semantic-interposition"

After changing flags, package builds with -flto.