f16
and f128
step 4: basic library support by tgross35 · Pull Request #122470 · rust-lang/rust (original) (raw)
#121926 landed so I rebased, LLVM tests pass now. I cannot seem to get the different backends working though - running ./x t --stage 2 library/core/ library/std
with codegen-backends = ["llvm", "cranelift"]
passes, but I can't get cranelift
alone to compile. These errors look more like a config issue than something caused by the changes in this PR, e.g. with codegen-backends = ["cranelift"]
I get:
error: unsupported builtin codegen backend `llvm`
error: unsupported builtin codegen backend `llvm`
error: Failed to assemble `.globl __inline_asm_compiler_builtins__df7f94933c94f82c_cgu__000_n0
.type __inline_asm_compiler_builtins__df7f94933c94f82c_cgu__000_n0,@function
.section .text.__inline_asm_compiler_builtins__df7f94933c94f82c_cgu__000_n0,"ax",@progbits
__inline_asm_compiler_builtins__df7f94933c94f82c_cgu__000_n0:
.intel_syntax noprefix
...
And with codegen-backends = ["cranelift", "llvm"]
:
Compiling core v0.0.0 (/home/tmgross/projects/rust/rustc/library/core)
Finished release [optimized] target(s) in 23.37s
Running tests/lib.rs (build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps/coretests-c2a4ac97d8e0ebe7)
running 1666 tests
fatal runtime error: failed to initiate panic, error 5
error: test failed, to rerun pass `-p core --test coretests`
Caused by:
process didn't exit successfully: `/home/tmgross/projects/rust/rustc/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps/coretests-c2a4ac97d8e0ebe7 --quiet -Z unstable-options --format json` (signal: 6, SIGABRT: process abort signal)
Build completed unsuccessfully in 0:05:24
I didn't yet try the GCC backend. Is there a more automated way to test with GCC now that it is in tree, like with the LLVM submodule? Or does it still need to be built separately