Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936623 - app-emulation/libguestfs-1.48.6-r1 build failure with clang-18: ld.lld: error: unknown argument '-pipe'
Summary: app-emulation/libguestfs-1.48.6-r1 build failure with clang-18: ld.lld: error...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-07-25 10:57 UTC by ppw0
Modified: 2025-02-20 09:16 UTC (History)
0 users

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


Attachments
build log (app-emulation:libguestfs-1.48.6-r1:20240725-104900.log,352.42 KB, text/x-log)
2024-07-25 10:57 UTC, ppw0
Details
emerge --info (emerge_info.log,5.77 KB, text/x-log)
2024-07-25 10:58 UTC, ppw0
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ppw0 2024-07-25 10:57:55 UTC
Created attachment 898294 [details]
build log

In an llvm-18[default-libcxx] environment, libguestfs-1.48.6-r1 will fail to emerge with the following error:
```
make[2]: Entering directory '/var/tmp/portage/app-emulation/libguestfs-1.48.6-r1/work/libguestfs-1.48.6/perl'
perl Build.PL --prefix "/usr"
ld.lld: error: unknown argument '-pipe'
ld.lld: error: unknown argument '-fno-strict-aliasing'
ld.lld: error: unknown argument '-Wl,-O1'
ld.lld: error: unknown argument '-Wl,--as-needed'
ld.lld: error: unknown argument '-Wl,-z,pack-relative-relocs'
ld.lld: error: unknown argument '-Wl,--as-needed'
Warning: ExtUtils::CBuilder not installed or no compiler detected
Proceeding with configuration, but compilation may fail during Build

Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Sys-Guestfs' version '1.0'
make[2]: Leaving directory '/var/tmp/portage/app-emulation/libguestfs-1.48.6-r1/work/libguestfs-1.48.6/perl'
make[2]: Entering directory '/var/tmp/portage/app-emulation/libguestfs-1.48.6-r1/work/libguestfs-1.48.6/perl'
./Build
Building Sys-Guestfs
Error: no compiler detected to compile 'lib/Sys/Guestfs.c'.  Aborting
make[2]: *** [Makefile:1252: all-local] Error 255
make[2]: Leaving directory '/var/tmp/portage/app-emulation/libguestfs-1.48.6-r1/work/libguestfs-1.48.6/perl'
make[1]: *** [Makefile:1085: all-recursive] Error 1
make: *** [Makefile:991: all] Error 2
```

Possibly related to bug 882373.

Attaching logs.
Comment 1 ppw0 2024-07-25 10:58:21 UTC
Created attachment 898295 [details]
emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2025-02-20 09:16:48 UTC
The bug has been closed via the following commit(s):

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

commit 184dbcb88b4ddb2bce8341da32faa08ce3bfff40
Author:     Christopher Byrne <salah.coronya@gmail.com>
AuthorDate: 2024-07-31 05:54:33 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2025-02-20 09:08:54 +0000

    app-emulation/libguestfs: add 1.54.1
    
    Removal of "systemtap" USE flag. No longer supported by upstream
    Removal of "gtk" USE flag. No longer links against GTK.
    Merge "inspect-icons" into {R,}DEPEND. This flag didn't do what it said,
    it just added some additional support for some icon formats.
    Added "vala" use flag for Vala binding.
    Completely refactored dependencies. This package's build system is a mess.
    It automagically probes things, some of which it never uses with
    certain options.
    libvirt will be the default backend with the libvirt USE flag is set.
    Either dev-libs/libisoburn or app-cdr/cdrtools can satisfy dependency
    (former preferred)
    Several bugs fixed
    Broken tests skipped, some previously broken tests were fixed.
    Python 3.13 support added
    
    Without KVM acceleration, the tests take a long time
    (On a 8-core 11th gen Intel processor with hyperthreading it takes
    2 to 3 hours to run the test suite). One of the tests alone have 600
    sub-tests and takes 30-60 minutes to complete just that one test.
    This can worked around by adding a strategic "addwrite /dev/kvm"
    and the proper /dev/kvm permissions so Portage can access it
    (for testing only, not for production use!). Or turn off the sandboxes, however,
    some tests will succeed when they would normally fail in the sandbox,
    so I don't recommend it for development purposes.
    With KVM, the whole testsuite runs in 5-10 minutes.
    
    Closes: https://bugs.gentoo.org/816759
    Closes: https://bugs.gentoo.org/911641
    Closes: https://bugs.gentoo.org/930590
    Closes: https://bugs.gentoo.org/933712
    Closes: https://bugs.gentoo.org/936623
    Closes: https://bugs.gentoo.org/857849
    Signed-off-by: Christopher Byrne <salah.coronya@gmail.com>
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 app-emulation/libguestfs/Manifest                  |   1 +
 ...-1.52.1-disable-obsolete-lvmetad-in-tests.patch |  12 ++
 app-emulation/libguestfs/libguestfs-1.54.1.ebuild  | 225 +++++++++++++++++++++
 3 files changed, 238 insertions(+)