Linking error building project
Created by: AgustinCB
-
I agree that I have searched opened and closed issues to prevent duplicates.
Description
When I try to make the project, I get the following error:
$ make all
ld --gc-sections -z max-page-size=0x1000 -T kernel/linkers/x86_64.ld -o build/kernel build/libkernel.a
build/libkernel.a(kernel-bdf1f0800d04f31e.kernel0.rcgu.o):(.data.DW.ref.rust_eh_personality[DW.ref.rust_eh_personality]+0x0): undefined reference to `rust_eh_personality'
make: *** [mk/kernel.mk:13: build/kernel] Error 1
Environment info
- Operating system: Arch Linux
-
uname -a
:
$ uname -a
Linux agustin-laptop 4.13.9-1-ARCH #1 SMP PREEMPT Sun Oct 22 09:07:32 CEST 2017 x86_64 GNU/Linux
-
rustc -V
:
$ rustc -V
rustc 1.23.0-nightly (a35a3abcd 2017-11-10)
-
git rev-parse HEAD
: $ git rev-parse HEAD 9ffd481e
Steps to reproduce
I simply followed the steps of the book still https://doc.redox-os.org/book/getting_started/compiling_redox.html.
Behavior
-
Expected behavior: The system builds with no error
-
Actual behavior: I get the error:
ld --gc-sections -z max-page-size=0x1000 -T kernel/linkers/x86_64.ld -o build/kernel build/libkernel.a
build/libkernel.a(kernel-bdf1f0800d04f31e.kernel0.rcgu.o):(.data.DW.ref.rust_eh_personality[DW.ref.rust_eh_personality]+0x0): undefined reference to `rust_eh_personality'
make: *** [mk/kernel.mk:13: build/kernel] Error 1