Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 831322 - net-libs/libad9361-iio-0.2 fails to compile: ld.lld: error: libad9361.so.0.2: undefined reference to round [--no-allow-shlib-undefined]
Summary: net-libs/libad9361-iio-0.2 fails to compile: ld.lld: error: libad9361.so.0.2:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Rick Farina (Zero_Chaos)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-16 18:08 UTC by Agostino Sarubbo
Modified: 2022-06-14 19:23 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,61.55 KB, text/plain)
2022-01-16 18:08 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-01-16 18:08:09 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-libs/libad9361-iio-0.2 fails to compile.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
This machine uses CLANG as a compiler and LLD as a linker
Comment 1 Agostino Sarubbo gentoo-dev 2022-01-16 18:08:12 UTC
Created attachment 762359 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-01-16 18:08:13 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
ld.lld: error: libad9361.so.0.2: undefined reference to acos [--no-allow-shlib-undefined]
ld.lld: error: libad9361.so.0.2: undefined reference to atan2 [--no-allow-shlib-undefined]
ld.lld: error: libad9361.so.0.2: undefined reference to ceil [--no-allow-shlib-undefined]
ld.lld: error: libad9361.so.0.2: undefined reference to cos [--no-allow-shlib-undefined]
ld.lld: error: libad9361.so.0.2: undefined reference to exp [--no-allow-shlib-undefined]
ld.lld: error: libad9361.so.0.2: undefined reference to exp2 [--no-allow-shlib-undefined]
ld.lld: error: libad9361.so.0.2: undefined reference to floor [--no-allow-shlib-undefined]
ld.lld: error: libad9361.so.0.2: undefined reference to fmod [--no-allow-shlib-undefined]
ld.lld: error: libad9361.so.0.2: undefined reference to log [--no-allow-shlib-undefined]
ld.lld: error: libad9361.so.0.2: undefined reference to log10 [--no-allow-shlib-undefined]
ld.lld: error: libad9361.so.0.2: undefined reference to pow [--no-allow-shlib-undefined]
ld.lld: error: libad9361.so.0.2: undefined reference to round [--no-allow-shlib-undefined]
ld.lld: error: libad9361.so.0.2: undefined reference to sin [--no-allow-shlib-undefined]
ld.lld: error: libad9361.so.0.2: undefined reference to sqrt [--no-allow-shlib-undefined]
ld.lld: error: libad9361.so.0.2: undefined reference to round [--no-allow-shlib-undefined]
Comment 3 Larry the Git Cow gentoo-dev 2022-06-14 19:21:00 UTC
The bug has been closed via the following commit(s):

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

commit e92180dd9914751b757db65136aa6ea97d1e8ee7
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-14 18:43:42 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-14 18:44:02 +0000

    net-libs/libad9361-iio: EAPI 8; fix lld build; GNUInstallDirs
    
    ... and fix libdir in installed .pc file.
    
    Closes: https://bugs.gentoo.org/831322
    Signed-off-by: Sam James <sam@gentoo.org>

 .../libad9361-iio-0.2-cmake-gnuinstalldirs.patch   | 50 ++++++++++++++++++++++
 .../files/libad9361-iio-0.2-fix-lld-tests.patch    | 49 +++++++++++++++++++++
 .../files/libad9361-iio-0.2-libdir-pkgconfig.patch | 14 ++++++
 net-libs/libad9361-iio/libad9361-iio-0.2-r1.ebuild | 28 ++++++++++++
 net-libs/libad9361-iio/libad9361-iio-9999.ebuild   | 22 +++++-----
 5 files changed, 152 insertions(+), 11 deletions(-)