The tool chain I used is "nightly-x86_64-unknown-linux-gnu", the link error may relate to ld.lld file or script, do you know where to find ld.lld?
~/tock/0724/tock/boards/hikey$ make
Compiling tock-registers v0.1.0 (file:///home/shawnpeng/tock/0724/tock/libraries/tock-register-interface)
Compiling tock-cells v0.1.0 (file:///home/shawnpeng/tock/0724/tock/libraries/tock-cells)
Compiling kernel v0.1.0 (file:///home/shawnpeng/tock/0724/tock/kernel)
Compiling cortexa53 v0.1.0 (file:///home/shawnpeng/tock/0724/tock/arch/cortex-a53)
Compiling capsules v0.1.0 (file:///home/shawnpeng/tock/0724/tock/capsules)
Compiling hi6220 v0.1.0 (file:///home/shawnpeng/tock/0724/tock/chips/hi6220)
Compiling hikey v0.1.0 (file:///home/shawnpeng/tock/0724/tock/boards/hikey)
error: linking with `aarch64-linux-gnu-gcc` failed: exit code: 1
|
= note: "aarch64-linux-gnu-gcc" "-flavor" "gnu" "-L" "/home/shawnpeng/.rustup/toolchains/nightly-2018-06-26-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib" "/home/shawnpeng/tock/0724/tock/boards/hikey/target/aarch64-unknown-linux-gnu/release/deps/hikey-fb876f21c2527240.hikey0.rcgu.o" "-o" "/home/shawnpeng/tock/0724/tock/boards/hikey/target/aarch64-unknown-linux-gnu/release/deps/hikey-fb876f21c2527240" "--gc-sections" "-no-pie" "-z,relro,-z,now" "-L" "/home/shawnpeng/tock/0724/tock/boards/hikey/target/aarch64-unknown-linux-gnu/release/deps" "-L" "/home/shawnpeng/tock/0724/tock/boards/hikey/target/release/deps" "-L" "/home/shawnpeng/.rustup/toolchains/nightly-2018-06-26-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib" "--start-group" "-Bstatic" "/tmp/rustc5AS0kU/libstd-1d788a3e6eae5ccc.rlib" "--end-group" "/home/shawnpeng/.rustup/toolchains/nightly-2018-06-26-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libcompiler_builtins-990fa33e9fc6c062.rlib" "-Bdynamic" "-l" "dl" "-l" "rt" "-l" "pthread" "-l" "gcc_s" "-l" "c" "-l" "m" "-l" "rt" "-l" "pthread" "-l" "util" "-l" "util" "-Tlayout.ld" "-zmax-page-size=512"
= note: aarch64-linux-gnu-gcc: error: gnu: No such file or directory
aarch64-linux-gnu-gcc: error: unrecognized command line option ‘-flavor’; did you mean ‘-flto’?
aarch64-linux-gnu-gcc: error: unrecognized command line option ‘--gc-sections’; did you mean ‘--data-sections’?
aarch64-linux-gnu-gcc: error: unrecognized command line option ‘--start-group’; did you mean ‘--stdarg-opt’?
aarch64-linux-gnu-gcc: error: unrecognized command line option ‘--end-group’; did you mean ‘--no-out’?
error: aborting due to previous error
error: Could not compile `hikey`.
To learn more, run the command again with --verbose.
../Makefile.common:170: recipe for target 'target/aarch64-unknown-linux-gnu/release/hikey' failed
make: *** [target/aarch64-unknown-linux-gnu/release/hikey] Error 101