Closed alexlee85 closed 7 months ago
Hi there. I think you're working on macOS with homebrew's musl-cross
package.
I think the core issue is that the compiler doesn't know where this header file is:
fatal error: 'stdio.h' file not found
You will need to include the following headers somehow:
$(brew --prefix musl-cross)/libexec/x86_64-linux-musl/include
Lemme know if this helps. If you're still having problems I'll try it out for myself.
I use revm
crate in myproject, and c-kzg
is a dependency of revm.
yes, as you said, I use musl-cross
at first, error happen, and then macos-cross-toolchains
, error still there.
finally I removed revm
from my project depencencies, no error happpen again.
so I don't think the problem is like what you've said, because after remove revm
, the whole project with other dependencies compiled successfully.
Hey @alexlee85 is this still an issue for you?
can't cross complile on apple sillicon to x86_64-unknown-linux-musl error message is: