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

problems compiling #12

Open
joequant opened this issue Feb 8, 2024 · 0 comments
Open

problems compiling #12

joequant opened this issue Feb 8, 2024 · 0 comments

Comments

@joequant
Copy link

joequant commented Feb 8, 2024

list of things that I tried

Running on Ubuntu 22.10

  1. Run injective-price-oracle docker image
    Generated keys using latest injectived

trying to init relay but getting error -

injective-price-oracle |
time="2024-02-06T16:52:29Z" level=fatal msg="failed to init
Cosmos keyring" error="could not find an entry for the key
'oracle-user' in keybase: Bytes left over in
UnmarshalBinaryLengthPrefixed, should read 10 more bytes but have
186"

  1. Compile binary from source
  • cannot compile because of missing libwasmvm_musl.a
    copy over the libwasmvm_musl.a from Dockerfile
# github.com/CosmWasm/wasmvm/internal/api
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/libwasmvm_muslc.a(num_cpus-1c9defd37b809459.num_cpus.7dcba15d214e99a8-cgu.00.rcgu.o): in function `num_cpus::linux::init_cgroups':
num_cpus.7dcba15d214e99a8-cgu.00:(.text._ZN8num_cpus5linux12init_cgroups17h0f03e9fe176cff02E+0x1168): undefined reference to `ceil'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/libwasmvm_muslc.a(cranelift_codegen-5569a6a9805983e7.cranelift_codegen.a594a1881b33da17-cgu.13.rcgu.o): in function `cranelift_codegen::ir::immediates::Ieee32::ceil':
cranelift_codegen.a594a1881b33da17-cgu.13:(.text._ZN17cranelift_codegen2ir10immediates6Ieee324ceil17hcee661c5d0270a92E+0x7): undefined reference to `ceilf'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/libwasmvm_muslc.a(cranelift_codegen-5569a6a9805983e7.cranelift_codegen.a594a1881b33da17-cgu.13.rcgu.o): in function `cranelift_codegen::ir::immediates::Ieee32::floor':

  1. Compile docker image from source
    Use docker compose from github
    Docker image runs but
 ✔ Container injective-price-oracle  Created                                                                                                                                         0.0s 
Attaching to injective-price-oracle
injective-price-oracle  | time="2024-02-08T15:03:41Z" level=warning msg="metrics init failed, will retry in 1 min" error="unsupported agent type"
injective-price-oracle  | time="2024-02-08T15:03:41Z" level=info msg="using Injective Sender inj1ylclkvwwng3g0e8d5036w9xn9czv0xlf5qw0ns"
injective-price-oracle  | time="2024-02-08T15:03:41Z" level=info msg="successfully load server TLS cert"
injective-price-oracle  | time="2024-02-08T15:03:41Z" level=fatal msg="failed to connect to daemon, is injectived running?" endpoint="tcp://sentry0.injective.network:9900" error="failed to get initial account num and seq: rpc error: code = NotFound desc = rpc error: code = NotFound desc = account inj1ylclkvwwng3g0e8d5036w9xn9czv0xlf5qw0ns not found: key not found"
injective-price-oracle exited with code 1

  1. Copy injectived into the docker image

Tried to that but alpine and the injectived don't seem to work with each other


Questions:

  1. What is the preferred platform for builds
  2. What is the Dockerfile for the image in README
  3. Any other gotchas?
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