Open antoyo opened 1 month ago
how do I run these tests locally ? ( in order to try and fix them )
running ./y.sh test --test-failing-ui-pattern-tests
I get
Testing stage0 compiletest suite=ui mode=ui (aarch64-unknown-linux-gnu)
Build completed unsuccessfully in 0:00:00
./x.py test --run always --stage 0 tests/ui --rustc-args -Zcodegen-backend=<path>/rustc_codegen_gcc/target/debug/librustc_codegen_gcc.so --sysroot <path>/rustc_codegen_gcc/build/build_sysroot/sysroot`
I did build libgccjit.so
and the gcc-path is pointing to the folder with that file
Are you on Asahi Linux?
would love to but not yet. fedora vm on M2
Hum, I can try on a M1 with Asahi Linux to see if it still works, but the support for it is currently WIP.
Are you able to compile a simple project with rustc_codegen_gcc?
I guess it does ?
➜ ./y.sh cargo build --manifest-path tests/hello-world/Cargo.toml
[BUILD] build system
Finished `release` profile [optimized] target(s) in 0.02s
warning: no edition set: defaulting to the 2015 edition while the latest is 2021
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.00s
nope,
✗ tests/hello-world/target/debug/hello_world
[1] 1944449 segmentation fault (core dumped) tests/hello-world/target/debug/hello_world
Did you build the sysroot --release-sysroot
?
There's a bug because the naked
attributed is not supported on AArch64 in GCC and compiling the sysroot in release mode workarounds the issue.
See more info here.
The following UI tests now fail since the last sync: