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

Bug 897864

Summary: net-irc/iroffer-dinoex-3.32-r2 fails to compile (MUSL-CLANG-SYSTEM): x86_64-gentoo-linux-musl-ld.bfd: cannot find gcrt1.o: No such file or directory
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: jy6x2b32pie9
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2023-02-26 08:22:08 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-irc/iroffer-dinoex-3.32-r2 fails to compile (MUSL-CLANG-SYSTEM).
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
(MUSL-CLANG-SYSTEM) in the summary means that bug was found on a machine that runs MUSL libc + clang16 but this bug MAY or MAY NOT BE related to musl/clang16.
Comment 1 Agostino Sarubbo gentoo-dev 2023-02-26 08:22:11 UTC
Created attachment 854766 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-02-26 08:22:12 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


/usr/bin/x86_64-gentoo-linux-musl-ld.bfd: cannot find gcrt1.o: No such file or directory
clang-16: error: linker command failed with exit code 1 (use -v to see invocation)
Comment 4 NHO 2025-02-13 07:41:38 UTC
It's enabled by USE=debug, to be precise -profiling flag being passed to configure
and replicated on ld.lld system

clang -pg -g -L/usr/local/lib -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--as-needed o.fr/iroffer_admin.o o.fr/iroffer_dccchat.o o.fr/iroffer_display.o o.fr/iroffer_main.o o.fr/iroffer_misc.o o.fr/iroffer_statefile.o o.fr/iroffer_transfer.o o.fr/iroffer_upload.o o.fr/plumb_md5.o o.fr/dinoex_admin.o o.fr/dinoex_main.o o.fr/dinoex_misc.o o.fr/dinoex_http.o o.fr/dinoex_upload.o o.fr/dinoex_transfer.o o.fr/dinoex_geoip.o o.fr/dinoex_maxminddb.o o.fr/dinoex_ssl.o o.fr/dinoex_curl.o o.fr/dinoex_irc.o o.fr/dinoex_queue.o o.fr/dinoex_telnet.o o.fr/dinoex_badip.o o.fr/dinoex_jobs.o o.fr/dinoex_kqueue.o o.fr/dinoex_ruby.o o.fr/dinoex_user.o o.fr/dinoex_chat.o o.fr/dinoex_config.o o.fr/crc32.o o.fr/upnp.o o.fr/blowfish.o o.fr/strnatcmp.o o.fr/iroffer_utilities.o o.fr/dinoex_utilities.o   -lssl -lcrypto  -o iroffer-fr
ld.lld: error: cannot open gcrt1.o: No such file or directory

I think preventing -profiling on musl systems is a solution here.
Comment 5 Larry the Git Cow gentoo-dev 2025-02-13 08:06:38 UTC
The bug has been closed via the following commit(s):

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

commit 910e9cf3909430b7e21b3f0484d3adf5d58981e5
Author:     NHOrus <jy6x2b32pie9@yahoo.com>
AuthorDate: 2025-02-13 07:48:52 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-02-13 08:06:17 +0000

    net-irc/iroffer-dinoex: update EAPI 7 -> 8, fix build on musl
    
    USE=debug enables profiling, it passes `-pr` flag to linker.
    Musl doesn't support this flag, and package tries to link against
    missing glibc library.
    
    Closes: https://bugs.gentoo.org/897864
    Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 net-irc/iroffer-dinoex/iroffer-dinoex-3.32-r2.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)