Failure when trying to cook rust
Created by: AgustinCB
It's not a very helpful message:
[ 15%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Watchdog.cpp.o
/mnt/data/redox_playground/redox/cookbook/recipes/rust/llvm-source/lib/Support/Path.cpp: In function 'llvm::sys::fs::file_magic llvm::sys::fs::identify_magic(llvm::StringRef)':
/mnt/data/redox_playground/redox/cookbook/recipes/rust/llvm-source/lib/Support/Path.cpp:1120:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
if (Magic[1] == 0x01)
^~
/mnt/data/redox_playground/redox/cookbook/recipes/rust/llvm-source/lib/Support/Path.cpp:1123:5: note: here
case 0x90: // PA-RISC Windows
^~~~
In file included from /mnt/data/redox_playground/redox/cookbook/recipes/rust/llvm-source/lib/Support/Program.cpp:65:0:
/mnt/data/redox_playground/redox/cookbook/recipes/rust/llvm-source/lib/Support/Unix/Program.inc:147:13: warning: 'void llvm::TimeOutHandler(int)' defined but not used [-Wunused-function]
static void TimeOutHandler(int Sig) {
^~~~~~~~~~~~~~
In file included from /mnt/data/redox_playground/redox/cookbook/recipes/rust/llvm-source/lib/Support/Path.cpp:1174:0:
/mnt/data/redox_playground/redox/cookbook/recipes/rust/llvm-source/lib/Support/Unix/Path.inc: At global scope:
/mnt/data/redox_playground/redox/cookbook/recipes/rust/llvm-source/lib/Support/Unix/Path.inc:584:13: warning: 'bool llvm::sys::fs::hasProcSelfFD()' defined but not used [-Wunused-function]
static bool hasProcSelfFD() {
^~~~~~~~~~~~~
In file included from /mnt/data/redox_playground/redox/cookbook/recipes/rust/llvm-source/lib/Support/Signals.cpp:180:0:
/mnt/data/redox_playground/redox/cookbook/recipes/rust/llvm-source/lib/Support/Unix/Signals.inc:216:19: warning: 'void SignalHandler(int)' defined but not used [-Wunused-function]
static RETSIGTYPE SignalHandler(int Sig) {
^~~~~~~~~~~~~
[ 16%] Linking CXX static library ../libLLVMSupport.a
[ 16%] Built target LLVMSupport
make: *** [Makefile:152: all] Error 2
Info:
$ uname -a
Linux agustin-laptop 4.13.11-1-ARCH #1 SMP PREEMPT Thu Nov 2 10:25:56 CET 2017 x86_64 GNU/Linux
I installed the toolchain for arch as specified in the book.