-
Notifications
You must be signed in to change notification settings - Fork 71
error: failed to run rustc
during ./build.sh on aarch64
#242
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
Comments
I may be messing something else up in the build steps. When running the libgccjit tests, what should the expected output be? |
I might have messed up the master branch of my GCC fork. I'll check that tomorrow. The output of the tests looks like:
(not sure what the real number is, but you should not see much failures — there are a few failures currently, around 4, I believe) |
This actually seems like a bug in libgccjit: it seems like jit_langhook_pushdecl is called on the arch you're using (aarch64) and it's currently unimplemented. |
Hi @antoyo, Cool! Thanks. |
Additional debug log from libgccjit:
|
Hi @antoyo. I noticed in this PR you added support for i386 built-ins. My arch calls However, I noticed that I hope that makes sense. I have no idea how difficult that solution would be to execute, but I just wanted to check if I understood generally what was happening. |
I'm on vacation, so I cannot look at this. |
I haven't forgotten about this issue, but now is not a good time for me to check this. That'll probably take a few months before I'll take a look. |
Sorry it took so long for me to look at this. With rust-lang/gcc#52 and #504, I can now build the sysroot on Aarch64. Edit: Some more info:
Dump of assembler code for function __aarch64_cas8_relax:
0x0000aaaaaacdb9c8 <+0>: sub sp, sp, #0x20
0x0000aaaaaacdb9cc <+4>: str x0, [sp, #24]
0x0000aaaaaacdb9d0 <+8>: str x1, [sp, #16]
0x0000aaaaaacdb9d4 <+12>: str x2, [sp, #8]
0x0000aaaaaacdb9d8 <+16>: mov x16, x0
=> 0x0000aaaaaacdb9dc <+20>: ldxr x0, [x2]
0x0000aaaaaacdb9e0 <+24>: cmp x0, x16
0x0000aaaaaacdb9e4 <+28>: b.ne 0xaaaaaacdb9f0 <__aarch64_cas8_relax+40> // b.any
0x0000aaaaaacdb9e8 <+32>: stxr w17, x1, [x2]
0x0000aaaaaacdb9ec <+36>: cbnz w17, 0xaaaaaacdb9dc <__aarch64_cas8_relax+20>
0x0000aaaaaacdb9f0 <+40>: ret
|
RFC from rust: https://rust-lang.github.io/rfcs/2972-constrained-naked.html |
rustc
during ./build.sh rustc
during ./build.sh on aarch64
Also, many UI tests fail with |
Hello. I get the following error when running
./build.sh —release
.I don't have much experience with rust or gcc, so I apologize if this is a vague question.
stderr
The text was updated successfully, but these errors were encountered: