paloma icon indicating copy to clipboard operation
paloma copied to clipboard

bug: wasmd is stopping the release

Open Vizualni opened this issue 2 years ago • 2 comments

What is happening?

Section description Provide as much context as you can. Provide relevant software versions, screenshots, copy & paste error messages and so on. Give as much context as you can to make it easier for the developers to figure what is happening.

When trying to do cross OS compilation, this error is returned:

╰─$ GOOS=darwin go build -a -o bla.out ./cmd/palomad                                                                                                                                                                                                                                                                                                                                                                                                                                                 6ms
# github.com/CosmWasm/wasmvm/api
../../go/pkg/mod/github.com/!cosm!wasm/[email protected]/api/mocks.go:192:2: undefined: GasMeter
../../go/pkg/mod/github.com/!cosm!wasm/[email protected]/api/mocks.go:193:20: undefined: Gas
../../go/pkg/mod/github.com/!cosm!wasm/[email protected]/api/mocks.go:197:11: undefined: Gas
../../go/pkg/mod/github.com/!cosm!wasm/[email protected]/api/mocks.go:198:11: undefined: Gas
../../go/pkg/mod/github.com/!cosm!wasm/[email protected]/api/mocks.go:202:28: undefined: Gas
../../go/pkg/mod/github.com/!cosm!wasm/[email protected]/api/mocks.go:209:38: undefined: Gas
../../go/pkg/mod/github.com/!cosm!wasm/[email protected]/api/mocks.go:213:32: undefined: Gas
../../go/pkg/mod/github.com/!cosm!wasm/[email protected]/api/mocks.go:227:42: undefined: Gas
../../go/pkg/mod/github.com/!cosm!wasm/[email protected]/api/mocks.go:326:7: undefined: KVStore
../../go/pkg/mod/github.com/!cosm!wasm/[email protected]/api/mock_failure.go:15:27: undefined: GoAPI
../../go/pkg/mod/github.com/!cosm!wasm/[email protected]/api/mocks.go:326:7: too many errors

How to reproduce?

Section description Please write detailed steps of what you were doing for this bug to appear.

If you are on linux try compile it for darwin:

GOOS=darwin go build -o bla.out ./cmd/palomad

If you are on darwin (mac) compile it for linux:

GOOS=darwin go build -o bla.out ./cmd/palomad

What is the expected behaviour?

Section description If you know, please write down what is the expected behaviour. If you don't know, that's ok. We can have a discussion in comments.

It should hopefully do a cross OS build.

Vizualni avatar May 19 '22 15:05 Vizualni

This was fixed but the issue is that we can only build the for the OS=linux. I'll leave this open and come back to this in near future once we figure out if we need this for other OSes or not.

Vizualni avatar May 19 '22 15:05 Vizualni

@measure-fi has shared that we can get a wasmd binary for mac. What about windows?

taariq avatar Oct 07 '22 14:10 taariq

This might help with this Please note https://github.com/CosmWasm/wasmvm#builds-of-libwasmvm . maybe interesting: https://github.com/CosmWasm/wasmd/pull/845

verabehr avatar Oct 24 '22 15:10 verabehr

Passing on other OS demand for now. Closing until need comes again.

taariq avatar Mar 02 '23 21:03 taariq