Closed houqp closed 3 years ago
So I have been looking at debugging this. The current master doesn't seem to have an issue with cross build. I set up a build on Github actions, that does the same cross build you had:
The additional job builds successfully. Could you try 0.2.28? @SchrodingerZhu released it over the weekend.
FYI, after 0.2.28
where we sync a change to let cmake automatically detect mcx16
, the cross building should be easier now.
oh nice, let me give 0.2.28 a try! Well timed on the release :D
Can confirm 0.2.28 fixed the build issue! Thank you all for the help. snmalloc is really awesome, I will try to push more adoption of it at work :D
Can confirm 0.2.28 fixed the build issue! Thank you all for the help.
Great to hear it is working.
snmalloc is really awesome, I will try to push more adoption of it at work :D
Thanks, it's great to hear it is working well for you.
Hi,
I am trying to cross compile to an arm binary from a x86 mac machine in github action job, but it's failing with the following error:
Here is the build command I used to reproduce the issue:
I can see that the
-mcx16
flag is set insnmalloc-rs/snmalloc-sys/build.rs
. Is this a bug in the cc crate? It looks like thebuild.flag_if_supported("-mcx16")
flag test is performed with the host target instead of the specified target.Here is the host environment provided by github action:
Full CI run error can be found at: https://github.com/roapi/roapi/pull/89/checks?check_run_id=3855785363
GitHub action task config: