Has anyone had any luck building a rust compiler from their repository using the default "x.py" method? (I don't want to build LLVM from source, so I'll use their binary if necessary.)
Running "./x" (on a NetBSD/amd64 system) chewed away for a while and
ended with what seemed to be a working "stage0" compiler.
I then tried "./x build", and it chewed away for some more time, then
ended with:
Creating a sysroot for stage1 compiler (use `rustup toolchain link 'name'
build/host/stage1`)
Building stage1 library artifacts {alloc, core, panic_abort, panic_unwind,
proc_macro, std, sysroot, test, unwind} (x86_64-unknown-netbsd)
error: failed to run `rustc` to learn about target-specific information
Caused by:
process didn't exit successfully:
`/work/woods/m-rust/build/bootstrap/debug/rustc
/work/woods/m-rust/build/bootstrap/debug/rustc - --crate-name ___
--print=file-names -Csymbol-mangling-version=legacy
'--check-cfg=cfg(feature,values(any()))' -Zunstable-options
'--check-cfg=cfg(bootstrap)' -Zmacro-backtrace -Csplit-debuginfo=off
-Cprefer-dynamic -Zinline-mir -Zinline-mir-preserve-debug
-Zmir_strip_debuginfo=locals-in-tiny-functions -Clink-args=-Wl,-z,origin
'-Clink-args=-Wl,-rpath,$ORIGIN/../lib' -Cembed-bitcode=yes
-Cforce-frame-pointers=yes
'-Zcrate-attr=doc(html_root_url="https://doc.rust-lang.org/nightly/")' --target
x86_64-unknown-netbsd --crate-type bin --crate-type rlib --crate-type dylib
--crate-type cdylib --crate-type staticlib --crate-type proc-macro
--print=sysroot --print=split-debuginfo --print=crate-name --print=cfg` (exit
status: 254)
--- stderr
rustc exited with signal: 11 (SIGSEGV) (core dumped)
Hmmm.... that seems unexpected! Especially for a procedure that would
seem to just be printing some environment information.
GDB doesn't seem to find any symbols in the bootstrap rustc (despite it
being "not stripped") so the core file isn't of much use so far....
BTW, does anyone know if there's any progress/movement on an alternative
backend to LLVM for rust?
--
Greg A. Woods <[email protected]>
Kelowna, BC +1 250 762-7675 RoboHack <[email protected]>
Planix, Inc. <[email protected]> Avoncote Farms <[email protected]>
pgpXoEEHhaabH.pgp
Description: OpenPGP Digital Signature
