espressif / crosstool-NG

crosstool-NG with support for Xtensa
Other
121 stars 63 forks source link

final link failed: Bad value collect2: error: ld returned 1 exit status #32

Closed dvogureckiy99 closed 5 months ago

dvogureckiy99 commented 2 years ago

command: make flash

Toolchain path: /home/dmitriy/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Toolchain version: crosstool-ng-1.22.0-80-g6c4433a
Compiler version: 5.2.0
Python requirements from /home/dmitriy/esp/esp-idf/requirements.txt are satisfied.

App "masterboard" version: v1.0.5-1-g1d284c3
LD build/masterboard.elf
/home/dmitriy/esp/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
make: *** [/home/dmitriy/esp/esp-idf/make/project.mk:521: /home/dmitriy/git/master-board/firmware/build/masterboard.elf] Error 1

More Information.

what is in /home/dmitriy/esp/esp-idf/make/project.mk:521:. It is

$(CC) $(LDFLAGS) -o $@ -Wl,-Map=$(APP_MAP)

ubuntu 20.04 This is the code: https://github.com/open-dynamic-robot-initiative/master-board/blob/master/firmware/README.md

Lapshin commented 5 months ago

Closing due to issue was outdated