Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 861152 - net-analyzer/echoping-6.0.2_p434-r5 fails to compile (lto): <artificial>:(.text+0xadd): undefined reference to sqrt
Summary: net-analyzer/echoping-6.0.2_p434-r5 fails to compile (lto): <artificial>:(.te...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2022-07-26 06:40 UTC by Agostino Sarubbo
Modified: 2024-03-05 04:48 UTC (History)
0 users

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


Attachments
build.log (build.log,106.48 KB, text/plain)
2022-07-26 06:40 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 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(+)