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

Unable to build on macOS #1

Closed
xJonathanLEI opened this issue Jan 11, 2022 · 1 comment · Fixed by #2
Closed

Unable to build on macOS #1

xJonathanLEI opened this issue Jan 11, 2022 · 1 comment · Fixed by #2

Comments

@xJonathanLEI
Copy link
Owner

When building on macOS in a GitHub Actions workflow with cargo build, an error occurs:

  cargo:warning=lib/starkware-crypto/src/starkware/crypto/ffi/utils.cc:1:10: fatal error: 'endian.h' file not found
  cargo:warning=#include <endian.h>
  cargo:warning=         ^~~~~~~~~~
  exit status: 0
  running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-arch" "x86_64" "-static" "-I" "lib/starkware-crypto/src" "-Wall" "-Wextra" "-std=c++17" "-Werror" "-Wall" "-Wextra" "-fno-strict-aliasing" "-fPIC" "-o" "/Users/runner/repos/starknet-rs/target/debug/build/starkware-crypto-sys-7e7a1853b703c604/out/lib/starkware-crypto/src/starkware/crypto/pedersen_hash.o" "-c" "lib/starkware-crypto/src/starkware/crypto/pedersen_hash.cc"
  cargo:warning=1 error generated.
  exit status: 1
  exit status: 0
  exit status: 0

  --- stderr
@xJonathanLEI
Copy link
Owner Author

After some local testing it seems that starkware-libs/crypto-cpp#4 is working quite well. Before that PR is merged I'm gonna fix this issue by switching the upstream to that fork.

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

Successfully merging a pull request may close this issue.

1 participant