From 34d34975c365cc5e2da3f1e9e63d7d00d0166501 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Mon, 27 Aug 2018 15:19:48 +0200 Subject: [PATCH] update symptom for the 'overwrite .cargo/config' problem --- src/lib.rs | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 9246535..548fead 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -207,24 +207,15 @@ //! //! ## Overwrote the original `.cargo/config` file //! -//! Error message: +//! You won't get an error message but the output binary will be empty //! //! ``` text -//! error: linking with `arm-none-eabi-gcc` failed: exit code: 1 -//! | -//! = note: (..) -//! (..) -//! (..)/crt0.o: In function `_start': -//! (.text+0x90): undefined reference to `memset' -//! (..)/crt0.o: In function `_start': -//! (.text+0xd0): undefined reference to `atexit' -//! (..)/crt0.o: In function `_start': -//! (.text+0xd4): undefined reference to `__libc_init_array' -//! (..)/crt0.o: In function `_start': -//! (.text+0xe4): undefined reference to `exit' -//! (..)/crt0.o: In function `_start': -//! (.text+0x100): undefined reference to `__libc_fini_array' -//! collect2: error: ld returned 1 exit status +//! $ cargo build && echo OK +//! OK +//! +//! $ size target/thumbv7m-none-eabi/debug/app +//! text data bss dec hex filename +//! 0 0 0 0 0 target/thumbv7m-none-eabi/debug/app //! ``` //! //! Solution: You probably overwrote the original `.cargo/config` instead of appending the default