discovery
discovery copied to clipboard
Reset & exception vectors missing when building 05_led_roulette
Hi! Neither led roulette nor cortex-m-quickstart build for me with the following, with both nightly-2018-08-17
and nightly-2018-06-28
:
$ cargo build --target thumbv7em-none-eabihf
...
/usr/lib/gcc/arm-none-eabi/6.3.1/../../../arm-none-eabi/bin/ld:
BUG(cortex-m-rt): the reset vector is missing
/usr/lib/gcc/arm-none-eabi/6.3.1/../../../arm-none-eabi/bin/ld:
BUG(cortex-m-rt): the exception vectors are missing
$ rustc -V
rustc 1.30.0-nightly (1fa944914 2018-08-17)
$ cargo -V
cargo 1.29.0-nightly (6a7672ef5 2018-08-14)
$ git rev-parse HEAD
d1a1d8a30e177036a399ef12faf3691a72e37676
$ lsb_release -d
Description: Ubuntu 18.04.1 LTS
Hmm, I know that the latest version of cortex-m-rt doesn't support old versions of GCC / LD (e.g. 4.9.x / 2.24) but I can't repro your issue in a Docker container -- the minimal example from the quickstart template works for me.
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04 LTS"
$ arm-none-eabi-gcc --version | head -n1
arm-none-eabi-gcc (15:6.3.1+svn253039-1build1) 6.3.1 20170620
$ arm-none-eabi-ld --version | head -n1
GNU ld (2.27-9ubuntu1+9) 2.27
What version of arm-none-eabi-ld
do you have installed?
Also can you post the full error message that you get when you build the minimal example. Preferably in a gist.
GCC and LD versions match yours.
$ arm-none-eabi-gcc --version | head -n1
arm-none-eabi-gcc (15:6.3.1+svn253039-1build1) 6.3.1 20170620
$ arm-none-eabi-ld --version | head -n1
GNU ld (2.27-9ubuntu1+9) 2.27