Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

local build: cannot find -lwasmvm.aarch64 #267

Open
cxyzhang0 opened this issue Aug 15, 2024 · 1 comment
Open

local build: cannot find -lwasmvm.aarch64 #267

cxyzhang0 opened this issue Aug 15, 2024 · 1 comment

Comments

@cxyzhang0
Copy link

cxyzhang0 commented Aug 15, 2024

My go.mod has
github.com/CosmWasm/wasmvm v1.2.1. And
https://github.com/CosmWasm/wasmvm/releases/download/v1.2.1/libwasmvm_muslc.aarch64.a was downloaded successfully
as shown by '/lib/libwasmvm_muslc.a' saved.

But this command

  • export 'CGO_ENABLED=1' 'LDFLAGS=-linkmode external -extldflags "-static"'
  • '[' '!' -z ]
  • '[' '!' -z 'make install' ]
  • '[' '!' -z ]
  • '[' '!' -z ]
  • '[' '!' -z . ]
  • cd .
  • sh -c 'make install'
    go install -mod=readonly -tags "netgo ledger" -ldflags '-X github.com/cosmos/cosmos-sdk/version.Name=tokenfactory -X github.com/cosmos/cosmos-sdk/version.AppName=tfd -X github.com/cosmos/cosmos-sdk/version.Version=me/working-8b4267ba4eafbc559aa08bf83a096d80e42ac0e1 -X github.com/cosmos/cosmos-sdk/version.Commit=8b4267ba4eafbc559aa08bf83a096d80e42ac0e1 -X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo ledger," -X github.com/tendermint/tendermint/version.TMCoreSemVer=v0.34.27 -linkmode external -extldflags "-static"' ./cmd/myd

resulted in this error:
# github.com/myrepo/myproject/v5/cmd/myd
/usr/local/go/pkg/tool/linux_arm64/link: running gcc failed: exit status 1
/usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: cannot find -lwasmvm.aarch64: No such file or directory

Of course, make install works fine on Mac M1 machine.

@cxyzhang0
Copy link
Author

This is very similar to #256 with the difference in arm vs amd.

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

No branches or pull requests

1 participant