On 04/14/2018 11:05 PM, Bruce Dubbs wrote:
On 04/14/2018 08:22 PM, Ken Moffat wrote:
On Sat, Apr 14, 2018 at 10:50:11PM +0100, Ken Moffat wrote:
On Sat, Apr 14, 2018 at 10:26:22PM +0200, Pierre Labastie wrote:
Given that one of the old issues I found suggested that the problem
only happened with static libs, and that libffi is being pulled in
by libclang.so when built my way, I suspect this is the cause of
Bruce's failure as well as Pierre's.
So, I suggest rebuilding llvm with -DLLVM_LINK_LLVM_DYLIB=ON and
confirming that rustc will then build with the config.toml that is
in the book.
If that works, as well as changing llvm the rust build needs to
mention "clang from llvm-6.0 (built with
-DLLVM_LINK_LLVM_DYLIB=ON)".
Will do that, and have results in the morning.
Didn't take that long. I rebuilt llvm, but still get a failure:
Compiling rustc_llvm v0.0.0
(file:///tmp/rustc-test/rustc-1.25.0-src/src/librustc_llvm)
Finished release [optimized] target(s) in 88.40 secs
Assembling stage1 compiler (x86_64-unknown-linux-gnu)
Building stage1 std artifacts (x86_64-unknown-linux-gnu ->
x86_64-unknown-linux-gnu)
error: process didn't exit successfully:
`/tmp/rustc-test/rustc-1.25.0-src/build/bootstrap/debug/rustc -vV` (exit
code: 101)
--- stdout
rustc 1.25.0
binary: rustc
commit-hash: unknown
commit-date: unknown
host: x86_64-unknown-linux-gnu
release: 1.25.0
--- stderr
error: couldn't load codegen backend
"/tmp/rustc-test/rustc-1.25.0-src/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/librustc_trans-llvm.so":
"/tmp/rustc-test/rustc-1.25.0-src/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/librustc_trans-llvm.so:
undefined symbol: ffi_type_float"
thread 'main' panicked at 'command did not execute successfully:
"/tmp/rustc-test/rustc-1.25.0-src/build/x86_64-unknown-linux-gnu/stage0/bin/cargo"
"build" "--target" "x86_64-unknown-linux-gnu" "-j" "12" "--release"
"--features" "panic-unwind jemalloc backtrace" "--manifest-path"
"/tmp/rustc-test/rustc-1.25.0-src/src/libstd/Cargo.toml"
"--message-format" "json"
expected success, got: exit code: 101', bootstrap/compile.rs:1060:9
note: Run with `RUST_BACKTRACE=1` for a backtrace.
failed to run:
/tmp/rustc-test/rustc-1.25.0-src/build/bootstrap/debug/bootstrap build
Build completed unsuccessfully in 0:14:36
876.1 Elapsed Time - rustc-1.25.0-src
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page