Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Build breaks on arm64, armv7, i386: undefined reference to `resvg_parse_tree_from_data' #494

Open
yurivict opened this issue Nov 13, 2024 · 8 comments

Comments

@yurivict
Copy link

The FreeBSD package fails to build on these architectures, but it builds fine on amd64.

sample log

The build uses the resvg-c-api-0.44.0_1 package that provides libresvg.a and libresvg.so
I verified that libresvg.a from the i386 package resvg-c-api-0.44.0_1 does contain resvg_parse_tree_from_data and other resvg_xx functions. But for some reason usql fails to use them.

Version: 0.19.12

@kenshaw
Copy link
Member

kenshaw commented Nov 13, 2024

@yurivict thanks for bringing this to my attention. There is a very large change coming to usql that will provide terminal graphic based chart rendering. At the moment, there is no pure Go rendering available for SVGs, at least not at a caliber good enough to handle the SVGs that are generated by the chart dependencies, as such I have created a wrapper around the very minimal Rust resvg library, which is: github.com/xo/resvg.

As such, the issue here is that there are no build artifacts for that platform and architecture:

$ cat resvg.go
// Package resvg is a wrapper around rust's [resvg] c-api crate.
//
// [resvg]: https://github.com/RazrFalcon/resvg
package resvg

/*
#cgo CFLAGS: -I${SRCDIR}/libresvg
#cgo darwin,amd64 LDFLAGS: -L${SRCDIR}/libresvg/darwin_amd64 -lresvg -lm
#cgo darwin,arm64 LDFLAGS: -L${SRCDIR}/libresvg/darwin_arm64 -lresvg -lm
#cgo linux,amd64 LDFLAGS: -L${SRCDIR}/libresvg/linux_amd64 -lresvg -lm
#cgo linux,arm64 LDFLAGS: -L${SRCDIR}/libresvg/linux_arm64 -lresvg -lm
#cgo linux,arm LDFLAGS: -L${SRCDIR}/libresvg/linux_arm -lresvg -lm
#cgo windows,amd64 LDFLAGS: -L${SRCDIR}/libresvg/windows_amd64 -lresvg -lm -lkernel32 -ladvapi32 -lbcrypt -lntdll -luserenv -lws2_32
...

As you can see, FreeBSD/NetBSD/etc. binaries are not available.

I had tried to build the artifacts for FreeBSD, but was not able to properly do so for FreeBSD, NetBSD, Solaris, and the other *Nix's. If you'd like to give a shot at fixing the build scripts in github.com/xo/resvg to generate the necessary binaries for FreeBSD, I'd be glad to incorporate it into the github.com/xo/resvg package.

Alternately, a pure Go SVG renderer would be equally welcome (this is said tongue-in-cheek, and meant to be a joke -- I don't really expect there to ever be a pure Go SVG renderer any time in the next decade).

@kenshaw
Copy link
Member

kenshaw commented Nov 13, 2024

One other thing that I am likely to do before the full release of the chart rendering feature: is to add a build tag to completely disable charts/terminal graphics.

However, I don't have an immediate ETA on when I'll be able to add that, but I'll make it a priority and try to get a point release out for usql ASAP.

@yurivict
Copy link
Author

yurivict commented Nov 14, 2024

libresvg is sourced from https://github.com/RazrFalcon/resvg, not from github.com/xo/resvg. I am not sure what's the difference.

If, as you are saying, FreeBSD is simply not supported, how does the amd64 package build then?
Also, why are these symbols present in libresvg.a for i386?
Something isn't right with this explanation.

@kenshaw
Copy link
Member

kenshaw commented Nov 14, 2024

I assure you, as the primary author of usql and the Go resvg package, that what I shared above is how it works. As a Go application, 'usql' is not able to natively use Rust code without a bridge. That bridge, specifically, is the github.com/xo/resvg package. Within that package there is a C binding to Rust's resvg c-crate, which via CGO (and ala the #cgo stanzas I copied/pasted above) is how Go (or rather CGO) links to Rust's c-crate.

I'm neither a Go expert, nor a FreeBSD expert, as such I have no idea how it's compiling for you. Maybe there's some kind of FreeBSD ELF compatibility that allows it to work with ELF built binaries. All I have is wild speculation on how it might be working.

If you would like to track down what Go is using to compile/link against, I would suggest cloning the github.com/xo/resvg source tree and trying to run the github.com/xo/resvg unit tests directly on FreeBSD. If you do it with go test -v -x, Go will show you the exact compilation commands that are being used, which might shed some light as to what's going on.

I spin up a FreeBSD VM and figure out how you're able to get it to compile, but I'm not sure I'll be able to do that any time soon.

@yurivict
Copy link
Author

The FreeBSD port resvg-capi builds from a different repository: https://github.com/linebender/resvg
It might be a fork.

@kenshaw
Copy link
Member

kenshaw commented Nov 14, 2024

I'm not the FreeBSD port maintainer for usql, so I don't know what's going on here. I will make a point of looking into getting it to work out of the box with FreeBSD, but there's no realistic ETA I could give you on that.

@yurivict
Copy link
Author

I am the FreeBSD port maintainer. -) That's why I am here.

I will make a point of looking into getting it to work out of the box with FreeBSD [...]

Thank you.

@JuryA
Copy link

JuryA commented Nov 19, 2024

@yurivict thanks for bringing this to my attention. There is a very large change coming to usql that will provide terminal graphic based chart rendering. At the moment, there is no pure Go rendering available for SVGs, at least not at a caliber good enough to handle the SVGs that are generated by the chart dependencies, as such I have created a wrapper around the very minimal Rust resvg library, which is: github.com/xo/resvg.

As such, the issue here is that there are no build artifacts for that platform and architecture:

$ cat resvg.go
// Package resvg is a wrapper around rust's [resvg] c-api crate.
//
// [resvg]: https://github.com/RazrFalcon/resvg
package resvg

/*
#cgo CFLAGS: -I${SRCDIR}/libresvg
#cgo darwin,amd64 LDFLAGS: -L${SRCDIR}/libresvg/darwin_amd64 -lresvg -lm
#cgo darwin,arm64 LDFLAGS: -L${SRCDIR}/libresvg/darwin_arm64 -lresvg -lm
#cgo linux,amd64 LDFLAGS: -L${SRCDIR}/libresvg/linux_amd64 -lresvg -lm
#cgo linux,arm64 LDFLAGS: -L${SRCDIR}/libresvg/linux_arm64 -lresvg -lm
#cgo linux,arm LDFLAGS: -L${SRCDIR}/libresvg/linux_arm -lresvg -lm
#cgo windows,amd64 LDFLAGS: -L${SRCDIR}/libresvg/windows_amd64 -lresvg -lm -lkernel32 -ladvapi32 -lbcrypt -lntdll -luserenv -lws2_32
...

As you can see, FreeBSD/NetBSD/etc. binaries are not available.

I had tried to build the artifacts for FreeBSD, but was not able to properly do so for FreeBSD, NetBSD, Solaris, and the other *Nix's. If you'd like to give a shot at fixing the build scripts in github.com/xo/resvg to generate the necessary binaries for FreeBSD, I'd be glad to incorporate it into the github.com/xo/resvg package.

Alternately, a pure Go SVG renderer would be equally welcome (this is said tongue-in-cheek, and meant to be a joke -- I don't really expect there to ever be a pure Go SVG renderer any time in the next decade).

I personally neither appreciate nor need this new feature—anything graphical, anyway—as I use usql exclusively on headless systems without a TTY. Is it possible to disable this seemingly attractive yet unnecessary feature for many users? As Rust continues to be integrated into various projects, I am encountering more and more issues. In this case, it relates to some graph drawing—no offense intended. :) I build usql using Nix and compile it against musl. Until now, everything has worked without any problems, but ever since the introduction of this Rust functionality, I have been facing this issue:

usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(memmap2-6cd9c40731d5d2e0.memmap2.199cb6f553fd807f-cgu.0.rcgu.o): in function `memmap2::os::MmapInner::map':
usql> memmap2.199cb6f553fd807f-cgu.0:(.text._ZN7memmap22os9MmapInner3map17h20cc35b659aa3c2dE+0x8f): undefined reference to `mmap64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(memmap2-6cd9c40731d5d2e0.memmap2.199cb6f553fd807f-cgu.0.rcgu.o): in function `memmap2::os::MmapInner::map_exec':
usql> memmap2.199cb6f553fd807f-cgu.0:(.text._ZN7memmap22os9MmapInner8map_exec17h5ac8f0ea790399beE+0x8f): undefined reference to `mmap64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(memmap2-6cd9c40731d5d2e0.memmap2.199cb6f553fd807f-cgu.0.rcgu.o): in function `memmap2::os::MmapInner::map_mut':
usql> memmap2.199cb6f553fd807f-cgu.0:(.text._ZN7memmap22os9MmapInner7map_mut17hb63bc933e35b7cdbE+0x8f): undefined reference to `mmap64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(memmap2-6cd9c40731d5d2e0.memmap2.199cb6f553fd807f-cgu.0.rcgu.o): in function `memmap2::os::MmapInner::map_copy':
usql> memmap2.199cb6f553fd807f-cgu.0:(.text._ZN7memmap22os9MmapInner8map_copy17h8eb51895937e0841E+0x8f): undefined reference to `mmap64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(memmap2-6cd9c40731d5d2e0.memmap2.199cb6f553fd807f-cgu.0.rcgu.o): in function `memmap2::os::MmapInner::map_copy_read_only':
usql> memmap2.199cb6f553fd807f-cgu.0:(.text._ZN7memmap22os9MmapInner18map_copy_read_only17h3fd68d2b44292b04E+0x8f): undefined reference to `mmap64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(memmap2-6cd9c40731d5d2e0.memmap2.199cb6f553fd807f-cgu.0.rcgu.o):memmap2.199cb6f553fd807f-cgu.0:(.text._ZN7memmap211MmapOptions8map_anon17h8dfe9a7a7b2b8c23E+0xb1): more undefined references to `mmap64' follow
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(std-6e3078511c661ac3.std.6985fe5dee7179c0-cgu.0.rcgu.o): in function `std::sys::pal::unix::init::sanitize_standard_fds':
usql> /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/mod.rs:156:(.text._ZN3std2rt19lang_start_internal17hdaf8b62dc8f7de54E+0xb8): undefined reference to `open64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/mod.rs:156:(.text._ZN3std2rt19lang_start_internal17hdaf8b62dc8f7de54E+0xf9): undefined reference to `open64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/mod.rs:126:(.text._ZN3std2rt19lang_start_internal17hdaf8b62dc8f7de54E+0x147): undefined reference to `open64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/mod.rs:126:(.text._ZN3std2rt19lang_start_internal17hdaf8b62dc8f7de54E+0x16d): undefined reference to `open64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/mod.rs:(.text._ZN3std2rt19lang_start_internal17hdaf8b62dc8f7de54E+0x196): undefined reference to `open64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(std-6e3078511c661ac3.std.6985fe5dee7179c0-cgu.0.rcgu.o): in function `std::sys::pal::unix::fs::File::file_attr':
usql> /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/fs.rs:1152:(.text._ZN3std2fs4read5inner17h168a0baa6cd808e7E+0x149): undefined reference to `fstat64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/fs.rs:1152:(.text._ZN3std2fs14read_to_string5inner17h7b460f4e3fd42739E+0x155): undefined reference to `fstat64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(std-6e3078511c661ac3.std.6985fe5dee7179c0-cgu.0.rcgu.o): in function `std::sys::pal::unix::fs::File::truncate::{{closure}}':
usql> /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/fs.rs:1226:(.text._ZN3std2fs4File7set_len17hb314c5189033501cE+0x1e): undefined reference to `ftruncate64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(std-6e3078511c661ac3.std.6985fe5dee7179c0-cgu.0.rcgu.o): in function `std::sys::pal::unix::cvt':
usql> /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/mod.rs:(.text._ZN3std2fs4File7set_len17hb314c5189033501cE+0x36): undefined reference to `ftruncate64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(std-6e3078511c661ac3.std.6985fe5dee7179c0-cgu.0.rcgu.o): in function `std::sys::pal::unix::fs::File::file_attr':
usql> /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/fs.rs:1152:(.text._ZN3std2fs4File8metadata17he8c31cc18dadf688E+0x6b): undefined reference to `fstat64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/fs.rs:1152:(.text._ZN3std2fs24buffer_capacity_required17h6eca04460d957d77E+0x6e): undefined reference to `fstat64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(std-6e3078511c661ac3.std.6985fe5dee7179c0-cgu.0.rcgu.o): in function `std::sys::pal::unix::fs::File::seek':
usql> /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/fs.rs:1288:(.text._ZN3std2fs24buffer_capacity_required17h6eca04460d957d77E+0x9a): undefined reference to `lseek64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/fs.rs:1288:(.text._ZN51_$LT$$RF$std..fs..File$u20$as$u20$std..io..Seek$GT$4seek17h4750268875836a81E+0x1c): undefined reference to `lseek64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/fs.rs:1288:(.text._ZN47_$LT$std..fs..File$u20$as$u20$std..io..Seek$GT$4seek17hbf275c96edbb3cd2E+0x19): undefined reference to `lseek64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/fs.rs:1288:(.text._ZN3std2fs81_$LT$impl$u20$std..io..Seek$u20$for$u20$alloc..sync..Arc$LT$std..fs..File$GT$$GT$4seek17hd0370d0f31b460d8E+0x1d): undefined reference to `lseek64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(std-6e3078511c661ac3.std.6985fe5dee7179c0-cgu.0.rcgu.o): in function `std::sys::pal::unix::fd::FileDesc::read_at':
usql> /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/fd.rs:143:(.text._ZN60_$LT$std..fs..File$u20$as$u20$std..os..unix..fs..FileExt$GT$7read_at17hcaf0b2bdc0a4b91aE+0x22): undefined reference to `pread64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(std-6e3078511c661ac3.std.6985fe5dee7179c0-cgu.0.rcgu.o): in function `std::sys::pal::unix::fd::FileDesc::write_at':
usql> /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/fd.rs:310:(.text._ZN60_$LT$std..fs..File$u20$as$u20$std..os..unix..fs..FileExt$GT$8write_at17h147de69cb56d79f8E+0x22): undefined reference to `pwrite64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(std-6e3078511c661ac3.std.6985fe5dee7179c0-cgu.0.rcgu.o): in function `std::sys::pal::unix::fs::stat::{{closure}}':
usql> /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/fs.rs:1694:(.text.unlikely._ZN3std3sys3pal6common14small_c_string24run_with_cstr_allocating17h276f227d0b9bc3f3E+0x9b): undefined reference to `stat64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(std-6e3078511c661ac3.std.6985fe5dee7179c0-cgu.0.rcgu.o): in function `std::sys::pal::unix::fs::lstat::{{closure}}':
usql> /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/fs.rs:1713:(.text.unlikely._ZN3std3sys3pal6common14small_c_string24run_with_cstr_allocating17h694493d870d40153E+0x9e): undefined reference to `lstat64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(std-6e3078511c661ac3.std.6985fe5dee7179c0-cgu.0.rcgu.o): in function `std::sys::pal::unix::fd::FileDesc::read_at':
usql> /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/fd.rs:143:(.text._ZN3std3sys3pal4unix2fd8FileDesc7read_at17h9dcb2738973433b6E+0x22): undefined reference to `pread64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(std-6e3078511c661ac3.std.6985fe5dee7179c0-cgu.0.rcgu.o): in function `std::sys::pal::unix::fd::FileDesc::write_at':
usql> /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/fd.rs:310:(.text._ZN3std3sys3pal4unix2fd8FileDesc8write_at17h59f4491b8f9d8d3fE+0x22): undefined reference to `pwrite64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(std-6e3078511c661ac3.std.6985fe5dee7179c0-cgu.0.rcgu.o): in function `<std::sys::pal::unix::fs::ReadDir as core::iter::traits::iterator::Iterator>::next':
usql> /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/fs.rs:718:(.text._ZN91_$LT$std..sys..pal..unix..fs..ReadDir$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4next17h2364ce4833f8653dE+0x33): undefined reference to `readdir64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/fs.rs:718:(.text._ZN91_$LT$std..sys..pal..unix..fs..ReadDir$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4next17h2364ce4833f8653dE+0x9c): undefined reference to `readdir64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/fs.rs:718:(.text._ZN91_$LT$std..sys..pal..unix..fs..ReadDir$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4next17h2364ce4833f8653dE+0xde): undefined reference to `readdir64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(std-6e3078511c661ac3.std.6985fe5dee7179c0-cgu.0.rcgu.o): in function `std::sys::pal::unix::fs::DirEntry::metadata':
usql> /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/fs.rs:884:(.text._ZN3std3sys3pal4unix2fs8DirEntry8metadata17h877208843ead56a2E+0x83): undefined reference to `fstatat64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(std-6e3078511c661ac3.std.6985fe5dee7179c0-cgu.0.rcgu.o): in function `std::sys::pal::unix::fs::File::open_c::{{closure}}':
usql> /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/fs.rs:1133:(.text._ZN3std3sys3pal4unix2fs4File6open_c17h09039bc7394e336aE+0xe7): undefined reference to `open64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(std-6e3078511c661ac3.std.6985fe5dee7179c0-cgu.0.rcgu.o): in function `std::sys::pal::unix::cvt':
usql> /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/mod.rs:(.text._ZN3std3sys3pal4unix2fs4File6open_c17h09039bc7394e336aE+0x103): undefined reference to `open64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(std-6e3078511c661ac3.std.6985fe5dee7179c0-cgu.0.rcgu.o): in function `std::sys::pal::unix::fs::stat::{{closure}}':
usql> /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/fs.rs:1694:(.text._ZN3std3sys3pal4unix2fs4stat17h8be4c252f5ad0a89E+0xd2): undefined reference to `stat64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(std-6e3078511c661ac3.std.6985fe5dee7179c0-cgu.0.rcgu.o): in function `std::sys::pal::unix::fs::lstat::{{closure}}':
usql> /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/fs.rs:1713:(.text._ZN3std3sys3pal4unix2fs5lstat17h6cd5a5397172c302E+0xd5): undefined reference to `lstat64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(std-6e3078511c661ac3.std.6985fe5dee7179c0-cgu.0.rcgu.o): in function `std::sys::pal::unix::fs::File::file_attr':
usql> /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/fs.rs:1152:(.text._ZN3std3sys3pal4unix2fs4copy17h35300b0e5111de17E+0x14b): undefined reference to `fstat64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/fs.rs:1152:(.text._ZN3std3sys3pal4unix2fs4copy17h35300b0e5111de17E+0x313): undefined reference to `fstat64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(std-6e3078511c661ac3.std.6985fe5dee7179c0-cgu.0.rcgu.o): in function `std::sys::pal::unix::fs::remove_dir_impl::openat_nofollow_dironly::{{closure}}':
usql> /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/fs.rs:2038:(.text._ZN3std3sys3pal4unix2fs15remove_dir_impl24remove_dir_all_recursive17hf8a3697524df8fa3E+0x30): undefined reference to `openat64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(std-6e3078511c661ac3.std.6985fe5dee7179c0-cgu.0.rcgu.o): in function `std::sys::pal::unix::fs::remove_dir_impl::remove_dir_all_recursive':
usql> /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/alloc/src/alloc.rs:(.text._ZN3std3sys3pal4unix2fs15remove_dir_impl24remove_dir_all_recursive17hf8a3697524df8fa3E+0x1d5): undefined reference to `openat64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(std-6e3078511c661ac3.std.6985fe5dee7179c0-cgu.0.rcgu.o): in function `std::sys::pal::unix::fs::File::file_attr':
usql> /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/fs.rs:1152:(.text._ZN88_$LT$std..io..stdio..StdinLock$u20$as$u20$std..sys..pal..unix..kernel_copy..CopyRead$GT$10properties17h337e21151706c126E+0x6a): undefined reference to `fstat64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/fs.rs:1152:(.text._ZN90_$LT$std..io..stdio..StdoutLock$u20$as$u20$std..sys..pal..unix..kernel_copy..CopyWrite$GT$10properties17h0e7270df3c60ddd0E+0x70): undefined reference to `fstat64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/fs.rs:1152:(.text._ZN90_$LT$std..io..stdio..StderrLock$u20$as$u20$std..sys..pal..unix..kernel_copy..CopyWrite$GT$10properties17hab6ec45c593b8f9eE+0x70): undefined reference to `fstat64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/fs.rs:1152:(.text._ZN3std3sys3pal4unix11kernel_copy10fd_to_meta17he4ef6eea349cda38E+0x79): undefined reference to `fstat64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(std-6e3078511c661ac3.std.6985fe5dee7179c0-cgu.0.rcgu.o): in function `std::sys::pal::unix::kernel_copy::sendfile_splice':
usql> /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/kernel_copy.rs:(.text._ZN3std3sys3pal4unix11kernel_copy15sendfile_splice17h00813f4de639ab59E+0xc1): undefined reference to `sendfile64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(std-6e3078511c661ac3.std.6985fe5dee7179c0-cgu.0.rcgu.o): in function `std::sys::pal::unix::os::glibc_version':
usql> /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/os.rs:766:(.text._ZN3std3sys3pal4unix2os13glibc_version17h3d64dd0ece6a2a69E+0x13): undefined reference to `gnu_get_libc_version'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(std-6e3078511c661ac3.std.6985fe5dee7179c0-cgu.0.rcgu.o): in function `std::sys::pal::unix::stack_overflow::imp::get_stackp':
usql> /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/stack_overflow.rs:152:(.text._ZN3std3sys3pal4unix14stack_overflow3imp12make_handler17hdb1e107161106ac1E+0x68): undefined reference to `mmap64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(std-6e3078511c661ac3.std.6985fe5dee7179c0-cgu.0.rcgu.o): in function `std::sys::pal::unix::net::on_resolver_failure':
usql> /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/net.rs:585:(.text._ZN104_$LT$std..sys_common..net..LookupHost$u20$as$u20$core..convert..TryFrom$LT$$LP$$RF$str$C$u16$RP$$GT$$GT$8try_from28_$u7b$$u7b$closure$u7d$$u7d$17h40e2988059290959E+0x97): undefined reference to `__res_init'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(std-6e3078511c661ac3.std.6985fe5dee7179c0-cgu.0.rcgu.o): in function `std::sys::pal::unix::fs::File::file_attr':
usql> /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/fs.rs:1152:(.text._ZN3std12backtrace_rs9symbolize5gimli4mmap17h2e93e48659a0b8c9E+0x17d): undefined reference to `fstat64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(std-6e3078511c661ac3.std.6985fe5dee7179c0-cgu.0.rcgu.o): in function `std::backtrace_rs::symbolize::gimli::mmap::Mmap::map':
usql> /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/../../backtrace/src/symbolize/gimli/mmap_unix.rs:19:(.text._ZN3std12backtrace_rs9symbolize5gimli4mmap17h2e93e48659a0b8c9E+0x204): undefined reference to `mmap64'
usql> /nix/store/sffmfnrksq4fgddd7z8py1zzgbld704p-x86_64-unknown-linux-musl-binutils-2.43.1/bin/x86_64-unknown-linux-musl-ld: /build/go/pkg/mod/github.com/xo/resvg@v0.6.0/libresvg/linux_amd64/libresvg.a(std-6e3078511c661ac3.std.6985fe5dee7179c0-cgu.0.rcgu.o): in function `std::sys::pal::unix::fs::stat::{{closure}}':
usql> /rustc/7cf61ebde7b22796c69757901dd346d0fe70bd97/library/std/src/sys/pal/unix/fs.rs:1694:(.text._ZN3std12backtrace_rs9symbolize5gimli3elf17debug_path_exists17hacc4e2d790601b6aE+0xf1): undefined reference to `stat64'
usql> collect2: error: ld returned 1 exit status

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants