Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 861152

Summary: net-analyzer/echoping-6.0.2_p434-r5 fails to compile (lto): <artificial>:(.text+0xadd): undefined reference to sqrt
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 618550    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2022-07-26 06:40:32 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-analyzer/echoping-6.0.2_p434-r5 fails to compile (lto).
Discovered on: amd64 (internal ref: lto_tinderbox)

NOTE:
This machine uses lto with CFLAGS=-flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing
Comment 1 Agostino Sarubbo gentoo-dev 2022-07-26 06:40:34 UTC
Created attachment 794438 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-07-26 06:40:36 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


<artificial>:(.text+0xadd): undefined reference to `sqrt'
collect2: error: ld returned 1 exit status
Comment 3 Larry the Git Cow gentoo-dev 2024-03-05 04:48:43 UTC
The bug has been closed via the following commit(s):

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

commit fc6853db1f910a17d2293e6b9d23987bbc45d66e
Author:     Eli Schwartz <eschwartz93@gmail.com>
AuthorDate: 2024-03-05 03:54:37 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-05 04:47:52 +0000

    net-analyzer/echoping: fix underlinking to libm
    
    Caused compilation failures if LTO was used.
    
    Closes: https://bugs.gentoo.org/861152
    Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 .../echoping/echoping-6.0.2_p434-r5.ebuild         |  1 +
 .../files/0001-correctly-link-to-libm.patch        | 32 ++++++++++++++++++++++
 2 files changed, 33 insertions(+)