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

Support for compiling C dependencies #469

Open
nazar-pc opened this issue Sep 29, 2024 · 0 comments
Open

Support for compiling C dependencies #469

nazar-pc opened this issue Sep 29, 2024 · 0 comments

Comments

@nazar-pc
Copy link

When trying to compile a dependency that uses cc to compile some C code, I'm getting following error:

warning: [email protected]: cc: error: unrecognized argument in option ‘-mabi=ilp32’
warning: [email protected]: cc: note: valid arguments to ‘-mabi=’ are: ms sysv

error: failed to run custom build command for `blst v0.3.13`

Caused by:
  process didn't exit successfully: `/tmp/jolt-guest-target-guest-prove/release/build/blst-20e12a0d4fdcc931/build-script-build` (exit status: 1)
  --- stdout
  cargo:rustc-cfg=feature="std"
  cargo:rerun-if-env-changed=BLST_TEST_NO_STD
  Using blst source directory /home/nazar-pc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/blst-0.3.13/blst
  cargo:rerun-if-changed=/home/nazar-pc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/blst-0.3.13/blst/src
  OUT_DIR = Some(/tmp/jolt-guest-target-guest-prove/riscv32im-jolt-zkvm-elf/release/build/blst-daa94ed0e0ebce82/out)
  TARGET = Some(riscv32im-jolt-zkvm-elf)
  HOST = Some(x86_64-unknown-linux-gnu)
...
  cargo:warning=cc: error: unrecognized argument in option ‘-mabi=ilp32’
  cargo:warning=cc: note: valid arguments to ‘-mabi=’ are: ms sysv

Is this completely hopeless until riscv32im-jolt-zkvm-elf is added to C compiler?

https://github.com/risc0/risc0 supports it somehow, but I'm not familiar with implementation details.

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