@rwmjones, @solticedhiver: thanks for the hints, I have removed -fuse-ld=mold from CFLAGS, and even removed mold from the system, then disabled lto option in makepkg.conf and even virt-v2v's PKGBUILD options(), but I still get this: https://paste.rs/PUMnw.txt. here's my makepkg.conf: https://paste.rs/eRVI2.txt
Search Criteria
Package Details: virt-v2v 2.9.2-1
Package Actions
| Git Clone URL: | https://aur.archlinux.org/virt-v2v.git (read-only, click to copy) |
|---|---|
| Package Base: | virt-v2v |
| Description: | Convert a guest image to use with KVM |
| Upstream URL: | https://libguestfs.org/virt-v2v.1.html |
| Keywords: | kvm libvirt qemu |
| Licenses: | GPL-2.0-or-later |
| Submitter: | solsticedhiver |
| Maintainer: | solsticedhiver |
| Last Packager: | solsticedhiver |
| Votes: | 4 |
| Popularity: | 0.031827 |
| First Submitted: | 2022-01-26 22:25 (UTC) |
| Last Updated: | 2025-07-30 15:00 (UTC) |
Dependencies (9)
- libguestfs (libguestfs-gitAUR)
- libnbd (libnbd-ocaml-gitAUR)
- libosinfo
- nbdkitAUR
- ocaml (ocaml-gitAUR) (make)
- ocaml-findlib (make)
- ocaml-libvirt (ocaml-libvirt-gitAUR) (make)
- mingw-w64-rhsrvanyAUR (optional) – for Windows based VM
- virtio-winAUR (optional) – for windows based VM
Required by (0)
Sources (2)
seqfault commented on 2023-07-29 20:12 (UTC) (edited on 2023-07-30 10:29 (UTC) by seqfault)
rwmjones commented on 2023-07-29 10:56 (UTC)
There's not very much difference between 2.2 (stable) and 2.3 (development) series, and we are testing both in RHEL. I doubt very much that it will make any difference to this linking issue.
solsticedhiver commented on 2023-07-29 10:50 (UTC)
@seqfault it is building fine here for me. Did you make any change to your CFLAGS or CXXFLAGS or LTOFLAGS in /etc/makepkg.conf or elsewhere?
@rwmjones As requested by seqfault, should I switch to 2.3.5 version (development version) or stay on stable? I am seeing that fedora is using 2.3.5
rwmjones commented on 2023-07-29 10:34 (UTC)
I've never seen an error like that, but it seems to be something to do with mold + LTO + OCaml, which is a complicated topic to say the least. Can you disable LTO? Does this affect any other OCaml programs on Arch? (For example https://aur.archlinux.org/packages/freetennis)
seqfault commented on 2023-07-29 10:05 (UTC)
@solticedhiver: can't compile: https://paste.rs/DKEIh.txt
solsticedhiver commented on 2023-06-01 11:49 (UTC)
the libnbd maintainer does not want to add ocaml as a dependancy
@PeterWang-dev just rebuild libnbd with ocaml installed
rwmjones commented on 2023-06-01 09:03 (UTC)
The OCaml bindings of libnbd are required, eg on Fedora that would be ocaml-libnbd-devel. However I'm not sure if they are built on Arch. https://aur.archlinux.org/packages/libnbd exists, but it only depends on Perl so it probably doesn't build the OCaml (nor Python) bindings.
PeterWang-dev commented on 2023-06-01 07:26 (UTC)
Build error. libnbd installed but cannot be found.
checking for OCaml findlib package nbd... not found
configure: error: the OCaml module 'nbd' (from libnbd) is required
solsticedhiver commented on 2023-05-19 16:17 (UTC)
this does not currently build with ocaml 5.0. I'll wait for a fix to update the PKGBUILD with the depends
Pinned Comments
solsticedhiver commented on 2023-11-15 21:57 (UTC)
With the newer libnbd package from [extra] version 1.18.1-2 or above, everything should work smoothly and as expected ...