adafruit / uf2-samdx1

MSC bootloader (based on UF2) for SAMD21
Other
210 stars 182 forks source link

Linking issue #194

Open davepruitt opened 1 year ago

davepruitt commented 1 year ago

I am running Ubuntu on Windows Subsystem for Linux. When I try to build the zero bootloader, it successfully compiles all the files, but fails at the linking step.

Here is the error I am receiving:

/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: section .binfo LMA [0000000000001ff0,0000000000001fff] overlaps section .relocate LMA [0000000000001ef8,00000000000020c7]
collect2: error: ld returned 1 exit status
make: *** [Makefile:161: build/zero/bootloader-zero-v3.14.0-5-g779ccde-dirty.bin] Error 1

Any suggestions on how to fix this?

Note: I am actually able to successfully build this on Windows, but when I try building on Ubuntu it gives me this linking error.

dhalbert commented 1 year ago

We normally build with arm-none-eabi-gcc 10.2.1, the same toolchain we use for CircuitPython. See https://learn.adafruit.com/building-circuitpython for how to install the toolchain. Could you try with that?