CosmWasm / wasmvm

Go bindings to the running cosmwasm contracts with wasmer
Apache License 2.0
169 stars 100 forks source link

[v1.2.6] build fails with statically linked binary #495

Closed ivivanov closed 6 months ago

ivivanov commented 6 months ago

Description

We are experiencing issues to create statically linked binary with version 1.2.5 and 1.2.6

Error

go build -mod=readonly -tags "netgo muslc" -ldflags '-X github.com/cosmos/cosmos-sdk/version.Name=nolus -X github.com/cosmos/cosmos-sdk/version.AppName=nolusd -X github.com/cosmos/cosmos-sdk/version.Version=0.4.3 -X github.com/cosmos/cosmos-sdk/version.Commit=ae9b3f79ec2b2a429cbd5aa596d56c7c3cf26765 -X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo muslc," -X github.com/tendermint/tendermint/version.TMCoreSemVer=v0.34.27 -w -s -linkmode=external -extldflags "-Wl,-z,muldefs -static"' -trimpath -o /__w/nolus-core/nolus-core/target/release/ ./...

/usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /go/.wasmvm/libwasmvm_muslc.a(std-df986adbef8b2eb0.std.3c2b20ec-cgu.0.rcgu.o): in function `std::sys::unix::fs::File::file_attr':
/rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fs.rs:1023:(.text._ZN3std2fs4read5inner17he426ae8d55037015E+0x132): undefined reference to `fstat64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fs.rs:1023:(.text._ZN3std2fs14read_to_string5inner17h9d7cfc53bc4f9457E+0x132): undefined reference to `fstat64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /go/.wasmvm/libwasmvm_muslc.a(std-df986adbef8b2eb0.std.3c2b20ec-cgu.0.rcgu.o): in function `std::sys::unix::fs::File::truncate::{{closure}}':
/rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fs.rs:1077:(.text._ZN3std2fs4File7set_len17hee35790e08ba35d5E+0x1e): undefined reference to `ftruncate64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /go/.wasmvm/libwasmvm_muslc.a(std-df986adbef8b2eb0.std.3c2b20ec-cgu.0.rcgu.o): in function `std::sys::unix::fs::File::truncate':
/rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/core/src/ptr/mut_ptr.rs:(.text._ZN3std2fs4File7set_len17hee35790e08ba35d5E+0x80): undefined reference to `ftruncate64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /go/.wasmvm/libwasmvm_muslc.a(std-df986adbef8b2eb0.std.3c2b20ec-cgu.0.rcgu.o): in function `std::sys::unix::fs::File::file_attr':
/rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fs.rs:1023:(.text._ZN3std2fs4File8metadata17he5855d3e416ed180E+0x46): undefined reference to `fstat64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fs.rs:1023:(.text._ZN47_$LT$std..fs..File$u20$as$u20$std..io..Read$GT$11read_to_end17h9ba68887f2873d13E+0x4e): undefined reference to `fstat64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /go/.wasmvm/libwasmvm_muslc.a(std-df986adbef8b2eb0.std.3c2b20ec-cgu.0.rcgu.o): in function `std::sys::unix::fs::File::seek':
/rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fs.rs:1130:(.text._ZN47_$LT$std..fs..File$u20$as$u20$std..io..Read$GT$11read_to_end17h9ba68887f2873d13E+0x71): undefined reference to `lseek64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /go/.wasmvm/libwasmvm_muslc.a(std-df986adbef8b2eb0.std.3c2b20ec-cgu.0.rcgu.o): in function `std::sys::unix::fs::File::file_attr':
/rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fs.rs:1023:(.text._ZN47_$LT$std..fs..File$u20$as$u20$std..io..Read$GT$14read_to_string17h4[136](https://github.com/nolus-protocol/nolus-core/actions/runs/7489560443/job/20386402114#step:5:137)56cf6b3e192cE+0x4e): undefined reference to `fstat64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /go/.wasmvm/libwasmvm_muslc.a(std-df986adbef8b2eb0.std.3c2b20ec-cgu.0.rcgu.o): in function `std::sys::unix::fs::File::seek':
/rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fs.rs:1130:(.text._ZN47_$LT$std..fs..File$u20$as$u20$std..io..Read$GT$14read_to_string17h413656cf6b3e192cE+0x71): undefined reference to `lseek64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fs.rs:1130:(.text._ZN47_$LT$std..fs..File$u20$as$u20$std..io..Seek$GT$4seek17heee170a4c6f6d631E+0x1c): undefined reference to `lseek64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /go/.wasmvm/libwasmvm_muslc.a(std-df986adbef8b2eb0.std.3c2b20ec-cgu.0.rcgu.o): in function `std::sys::unix::fs::File::file_attr':
/rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fs.rs:1023:(.text._ZN51_$LT$$RF$std..fs..File$u20$as$u20$std..io..Read$GT$11read_to_end17h078c2be8f57ea4cfE+0x54): undefined reference to `fstat64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /go/.wasmvm/libwasmvm_muslc.a(std-df986adbef8b2eb0.std.3c2b20ec-cgu.0.rcgu.o): in function `std::sys::unix::fs::File::seek':
/rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fs.rs:1130:(.text._ZN51_$LT$$RF$std..fs..File$u20$as$u20$std..io..Read$GT$11read_to_end17h078c2be8f57ea4cfE+0x77): undefined reference to `lseek64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /go/.wasmvm/libwasmvm_muslc.a(std-df986adbef8b2eb0.std.3c2b20ec-cgu.0.rcgu.o): in function `std::sys::unix::fs::File::file_attr':
/rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fs.rs:1023:(.text._ZN51_$LT$$RF$std..fs..File$u20$as$u20$std..io..Read$GT$14read_to_string17h15f592313409cdf4E+0x5b): undefined reference to `fstat64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /go/.wasmvm/libwasmvm_muslc.a(std-df986adbef8b2eb0.std.3c2b20ec-cgu.0.rcgu.o): in function `std::sys::unix::fs::File::seek':
/rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fs.rs:1130:(.text._ZN51_$LT$$RF$std..fs..File$u20$as$u20$std..io..Read$GT$14read_to_string17h15f592313409cdf4E+0x7e): undefined reference to `lseek64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fs.rs:1130:(.text._ZN51_$LT$$RF$std..fs..File$u20$as$u20$std..io..Seek$GT$4seek17hc44465f23d42b8daE+0x1c): undefined reference to `lseek64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /go/.wasmvm/libwasmvm_muslc.a(std-df986adbef8b2eb0.std.3c2b20ec-cgu.0.rcgu.o): in function `std::sys::unix::fs::DirEntry::metadata':
/rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fs.rs:781:(.text._ZN3std2fs8DirEntry8metadata17h182b7431537e1de5E+0x65): undefined reference to `fstatat64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fs.rs:781:(.text._ZN3std2fs8DirEntry9file_type17hee8f01c25ac0b9c9E+0x7c): undefined reference to `fstatat64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /go/.wasmvm/libwasmvm_muslc.a(std-df986adbef8b2eb0.std.3c2b20ec-cgu.0.rcgu.o): in function `std::sys::unix::fs::stat::{{closure}}':
/rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fs.rs:[149](https://github.com/nolus-protocol/nolus-core/actions/runs/7489560443/job/20386402114#step:5:150)6:(.text._ZN3std2fs8metadata17hcaa3d59950bd455cE+0xba): undefined reference to `stat64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /go/.wasmvm/libwasmvm_muslc.a(std-df986adbef8b2eb0.std.3c2b20ec-cgu.0.rcgu.o): in function `std::sys::unix::fd::FileDesc::read_at':
/rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fd.rs:124:(.text._ZN60_$LT$std..fs..File$u20$as$u20$std..os..unix..fs..FileExt$GT$7read_at17hf53f743c0288b876E+0x22): undefined reference to `pread64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /go/.wasmvm/libwasmvm_muslc.a(std-df986adbef8b2eb0.std.3c2b20ec-cgu.0.rcgu.o): in function `std::sys::unix::fd::FileDesc::write_at':
/rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fd.rs:190:(.text._ZN60_$LT$std..fs..File$u20$as$u20$std..os..unix..fs..FileExt$GT$8write_at17h4c28c820e70defbbE+0x22): undefined reference to `pwrite64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /go/.wasmvm/libwasmvm_muslc.a(std-df986adbef8b2eb0.std.3c2b20ec-cgu.0.rcgu.o): in function `std::sys::unix::fs::lstat::{{closure}}':
/rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fs.rs:[151](https://github.com/nolus-protocol/nolus-core/actions/runs/7489560443/job/20386402114#step:5:152)5:(.text._ZN3std4path4Path10is_symlink17h72b941c83de34404E+0xba): undefined reference to `lstat64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /go/.wasmvm/libwasmvm_muslc.a(std-df986adbef8b2eb0.std.3c2b20ec-cgu.0.rcgu.o): in function `std::sys::unix::fs::stat::{{closure}}':
/rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fs.rs:1496:(.text.unlikely._ZN3std3sys6common14small_c_string24run_with_cstr_allocating17ha19b18ee7fe8a42fE+0xaa): undefined reference to `stat64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /go/.wasmvm/libwasmvm_muslc.a(std-df986adbef8b2eb0.std.3c2b20ec-cgu.0.rcgu.o): in function `std::sys::unix::fs::lstat::{{closure}}':
/rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fs.rs:1515:(.text.unlikely._ZN3std3sys6common14small_c_string24run_with_cstr_allocating17hf635cb99ea49d21aE+0xaa): undefined reference to `lstat64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /go/.wasmvm/libwasmvm_muslc.a(std-df986adbef8b2eb0.std.3c2b20ec-cgu.0.rcgu.o): in function `std::sys::unix::fd::FileDesc::read_at':
/rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fd.rs:124:(.text._ZN3std3sys4unix2fd8FileDesc7read_at17h9c7f5f1230ef975eE+0x22): undefined reference to `pread64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /go/.wasmvm/libwasmvm_muslc.a(std-df986adbef8b2eb0.std.3c2b20ec-cgu.0.rcgu.o): in function `std::sys::unix::fd::FileDesc::write_at':
/rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fd.rs:190:(.text._ZN3std3sys4unix2fd8FileDesc8write_at17he8952bf7f24488c3E+0x22): undefined reference to `pwrite64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /go/.wasmvm/libwasmvm_muslc.a(std-df986adbef8b2eb0.std.3c2b20ec-cgu.0.rcgu.o): in function `<std::sys::unix::fs::ReadDir as core::iter::traits::iterator::Iterator>::next':
/rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fs.rs:621:(.text._ZN86_$LT$std..sys..unix..fs..ReadDir$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4next17h8e89ad5f9b029d10E+0x33): undefined reference to `readdir64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fs.rs:621:(.text._ZN86_$LT$std..sys..unix..fs..ReadDir$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4next17h8e89ad5f9b029d10E+0x6f): undefined reference to `readdir64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /go/.wasmvm/libwasmvm_muslc.a(std-df986adbef8b2eb0.std.3c2b20ec-cgu.0.rcgu.o): in function `std::sys::unix::fs::File::open_c::{{closure}}':
/rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fs.rs:1004:(.text._ZN3std3sys4unix2fs4File6open_c17he36fdb0a735c7da2E+0xe3): undefined reference to `open64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /go/.wasmvm/libwasmvm_muslc.a(std-df986adbef8b2eb0.std.3c2b20ec-cgu.0.rcgu.o): in function `std::sys::unix::cvt':
/rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/mod.rs:(.text._ZN3std3sys4unix2fs4File6open_c17he36fdb0a735c7da2E+0xfa): undefined reference to `open64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /go/.wasmvm/libwasmvm_muslc.a(std-df986adbef8b2eb0.std.3c2b20ec-cgu.0.rcgu.o): in function `std::sys::unix::fs::stat::{{closure}}':
/rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fs.rs:1496:(.text._ZN3std3sys4unix2fs4stat17h1658aaf4089d8834E+0xb3): undefined reference to `stat64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /go/.wasmvm/libwasmvm_muslc.a(std-df986adbef8b2eb0.std.3c2b20ec-cgu.0.rcgu.o): in function `std::sys::unix::fs::lstat::{{closure}}':
/rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fs.rs:1515:(.text._ZN3std3sys4unix2fs5lstat17h94248777d01d6b8fE+0xb3): undefined reference to `lstat64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /go/.wasmvm/libwasmvm_muslc.a(std-df986adbef8b2eb0.std.3c2b20ec-cgu.0.rcgu.o): in function `std::sys::unix::fs::File::file_attr':
/rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fs.rs:1023:(.text._ZN3std3sys4unix2fs4copy17h86172332e9c604e1E+0x130): undefined reference to `fstat64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fs.rs:1023:(.text._ZN3std3sys4unix2fs4copy17h86172332e9c604e1E+0x29a): undefined reference to `fstat64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /go/.wasmvm/libwasmvm_muslc.a(std-df986adbef8b2eb0.std.3c2b20ec-cgu.0.rcgu.o): in function `std::sys::unix::fs::lstat::{{closure}}':
/rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fs.rs:1515:(.text._ZN3std3sys4unix2fs15remove_dir_impl14remove_dir_all17hc0e97cff1cde1990E+0xd3): undefined reference to `lstat64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /go/.wasmvm/libwasmvm_muslc.a(std-df986adbef8b2eb0.std.3c2b20ec-cgu.0.rcgu.o): in function `std::sys::unix::fs::File::file_attr':
/rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fs.rs:1023:(.text._ZN71_$LT$std..fs..File$u20$as$u20$std..sys..unix..kernel_copy..CopyRead$GT$10properties17h93f017ad97c39d28E+0x59): undefined reference to `fstat64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fs.rs:1023:(.text._ZN75_$LT$$RF$std..fs..File$u20$as$u20$std..sys..unix..kernel_copy..CopyRead$GT$10properties17hf93641840af72552E+0x5d): undefined reference to `fstat64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fs.rs:1023:(.text._ZN83_$LT$std..io..stdio..StdinLock$u20$as$u20$std..sys..unix..kernel_copy..CopyRead$GT$10properties17h78ef1c4f624a6304E+0x46): undefined reference to `fstat64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys/unix/fs.rs:1023:(.text._ZN3std12backtrace_rs9symbolize5gimli4mmap17h6061b41185ff794bE+0x[171](https://github.com/nolus-protocol/nolus-core/actions/runs/7489560443/job/20386402114#step:5:172)): undefined reference to `fstat64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /go/.wasmvm/libwasmvm_muslc.a(getrandom-0b7f38f4fff825f8.getrandom.064f25ff-cgu.4.rcgu.o): in function `getrandom::util_libc::open_readonly':
getrandom.064f25ff-cgu.4:(.text._ZN9getrandom9util_libc13open_readonly17hfd12a87ea23d1e46E+0xc): undefined reference to `open64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /go/.wasmvm/libwasmvm_muslc.a(getrandom-0b7f38f4fff825f8.getrandom.064f25ff-cgu.6.rcgu.o): in function `getrandom::use_file::getrandom_inner':
getrandom.064f25ff-cgu.6:(.text._ZN9getrandom8use_file15getrandom_inner17hd23c80ea2ef65c81E+0xcf): undefined reference to `open64'
/usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: getrandom.064f25ff-cgu.6:(.text._ZN9getrandom8use_file15getrandom_inner17hd23c80ea2ef65c81E+0x[180](https://github.com/nolus-protocol/nolus-core/actions/runs/7489560443/job/20386402114#step:5:181)): undefined reference to `open64'
collect2: error: ld returned 1 exit status

More info

We are successfully building with version 1.2.3 and 1.5.1 We are using CI for this build: https://github.com/nolus-protocol/nolus-core/actions/runs/7489560443/job/20386402114

webmaster128 commented 6 months ago

I never came across this error. Did you also change anything in you build system? It looks like missing symbols from some system library.

I don't see anything interesting on our side: https://github.com/CosmWasm/wasmvm/compare/v1.2.3...v1.2.6

ivivanov commented 6 months ago

No changes in the our builder image. Only the wasmvm version https://github.com/nolus-protocol/nolus-core/commit/ae9b3f79ec2b2a429cbd5aa596d56c7c3cf26765

webmaster128 commented 6 months ago

Okay, but your build system is not version pinned. You use FROM golang:1.21-alpine which can have any version of Alpine and this can change during a rebuild. I'd pin to golang:1.21-alpine3.18 or golang:1.21-alpine3.19 and then see if you get a different behaviour between the two systems.

ivivanov commented 6 months ago

Thank you for your observation and suggestion. I've taken your advice and updated the Dockerfile to use a more specific Alpine version. Specifically, I've pinned it to golang:1.21-alpine3.18. After making this adjustment everything is back to normal.

webmaster128 commented 6 months ago

Great. This now allows you to do the alpine3.19 migration explicitly. You probably need to install some extra dependency in that case. But I don't know which one.