Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 927177 - net-dns/pdns-recursor-5.0.5 fails to compile: lib.rs.h:863:(.text+0x219): undefined reference to rust::cxxbridge1::String::String()
Summary: net-dns/pdns-recursor-5.0.5 fails to compile: lib.rs.h:863:(.text+0x219): und...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sven Wegener
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2024-03-17 08:09 UTC by Agostino Sarubbo
Modified: 2025-01-18 23:45 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,944.61 KB, text/plain)
2024-03-17 08:09 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-03-17 08:09:45 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-dns/pdns-recursor-5.0.3 fails to compile.
Discovered on: amd64 (internal ref: lto_tinderbox)
System: LTO-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#LTO)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-03-17 08:09:47 UTC
Created attachment 887799 [details]
build.log

build log and emerge --info
Comment 2 Sven Wegener gentoo-dev 2024-04-28 20:18:24 UTC
I'm able to reproduce and the issue comes from the settings code written in rust not being compiled with lto and the top-level linking then failing. Need to look further into it, as forcing -Clinker-plugin-lto for the rust code causes other build issues.
Comment 3 Agostino Sarubbo gentoo-dev 2024-05-28 06:45:23 UTC
lto_tinderbox has reproduced this issue with version 5.0.5 - Updating summary.
Comment 4 Larry the Git Cow gentoo-dev 2025-01-18 20:58:38 UTC
The bug has been closed via the following commit(s):

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

commit 20bf7f5e75297d1cafaa05e6c9970f4493e94ad6
Author:     Sven Wegener <swegener@gentoo.org>
AuthorDate: 2025-01-18 20:50:24 +0000
Commit:     Sven Wegener <swegener@gentoo.org>
CommitDate: 2025-01-18 20:58:33 +0000

    net-dns/pdns-recursor: filter LTO flags
    
    We build a library using rust that gets linked into the main binary, which is
    incompatible with LTO.
    
    See filter-lto usage in cargo.eclass.
    
    Closes: https://bugs.gentoo.org/927177
    Closes: https://bugs.gentoo.org/942414
    Signed-off-by: Sven Wegener <swegener@gentoo.org>

 net-dns/pdns-recursor/pdns-recursor-5.0.9-r1.ebuild | 1 +
 net-dns/pdns-recursor/pdns-recursor-5.1.3-r1.ebuild | 1 +
 net-dns/pdns-recursor/pdns-recursor-5.2.0.ebuild    | 3 ++-
 3 files changed, 4 insertions(+), 1 deletion(-)