discovery icon indicating copy to clipboard operation
discovery copied to clipboard

Reset & exception vectors missing when building 05_led_roulette

Open Aroksak opened this issue 6 years ago • 2 comments

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

Aroksak avatar Aug 18 '18 16:08 Aroksak

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.

japaric avatar Aug 19 '18 10:08 japaric

Error message.

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

Aroksak avatar Aug 19 '18 14:08 Aroksak