Skip to content

eagle.app.v6.common.ld file missing. #79

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
aogdb opened this issue May 4, 2018 · 3 comments
Closed

eagle.app.v6.common.ld file missing. #79

aogdb opened this issue May 4, 2018 · 3 comments

Comments

@aogdb
Copy link

aogdb commented May 4, 2018

hello,

a few days ago, the auto generated file esp8266/tools/sdk/ld/eagle.app.v6.common.ld has been removed from project esp8266/Arduino (see esp8266/Arduino#4618).

makeEspArduino.mk does not seem to regenerate it since my compilation fails:

make -f ~/makeEspArduino/makeEspArduino.mk ESP_ROOT=~/esp8266 BOARD=d1_mini flash
Linking /tmp/mkESP/test1_d1_mini/test1.bin
  Versions: Unknown, 2.4.1-82-gbd87970
/home/toto/esp8266/tools/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: cannot open linker script file ../ld/eagle.app.v6.common.ld: No such file or directory
collect2: error: ld returned 1 exit status
/home/toto/makeEspArduino/makeEspArduino.mk:252: recipe for target '/tmp/mkESP/test1_d1_mini/test1.bin' failed
make: *** [/tmp/mkESP/test1_d1_mini/test1.bin] Error 1

A solution ?

@Eszartek
Copy link

Eszartek commented May 6, 2018

I just ran into this issue as well. I'm not much of a Makefile jockey, but, if you run these lines before your make command, you'll be good to go:

ESP_ROOT=../hardware/esp8266com/esp8266
BUILD_EXTRA_FLAGS="-DNDEBUG -DVTABLES_IN_FLASH"
$ESP_ROOT/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc -CC -E -P $BUILD_EXTRA_FLAGS $ESP_ROOT/tools/sdk/ld/eagle.app.v6.common.ld.h -o $ESP_ROOT/tools/sdk/ld/eagle.app.v6.common.ld

adjust ESP_ROOT according to your config.mk, and modify the BUILD_EXTRA_FLAGS to reference placing the vtables into FLASH, IRAM or DRAM depending on your preference.

@aogdb
Copy link
Author

aogdb commented May 6, 2018

Thank you Eszartek, your command gcc works well and avoids me to install all the arduino IDE ;-)

Have a good day !

@aogdb aogdb closed this as completed May 6, 2018
@plerup
Copy link
Owner

plerup commented May 7, 2018

Ok, needs to and will be fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants