-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Compilation error with Ardino/master, lack of newlibc maybe? #2263
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
Comments
Probably platformio issue? If you try compiling in Arduino IDE, it will On Mon, Jul 11, 2016, 15:10 Pauline Middelink [email protected]
|
Seems that way, since it is not using platform.txt, it did not pick up the newly added path to tools/sdk/libc/... That and the one liner in the linker script. Adding the paths to the build_flags and a simple manual edit of esp8266.flash.common.ld made it function. [env:espressif_esp12_board]
platform = espressif
framework = arduino
board = esp12
board_flash_mode = dio
upload_resetmethod = nodemcu
build_flags = -I$PLATFORMFW_DIR/tools/sdk/libc/xtensa-lx106-elf/include -L$PLATFORMFW_DIR/tools/sdk/libc/xtensa-lx106-elf/lib -lc
upload_port = /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0 |
@middelink -- can you be more specific regarding the edit you had to make to EDIT: Perhaps this That said, I finally found official instructions, essentially:
{
"description":"Arduino Wiring-based Framework (ESP8266 Core)",
"name":"framework-arduinoespressif8266",
"system":"all",
"url":"https://github.com/esp8266/Arduino",
"version":"1.20300.1"
} Then, I modified the build flags used above (apparently build_flags = -I$PIOHOME_DIR/packages/framework-arduinoespressif8266/tools/sdk/libc/xtensa-lx106-elf/include -L$PIOHOME_DIR/packages/framework-arduinoespressif8266/tools/sdk/libc/xtensa-lx106-elf/lib -lc That got rid of the EDIT2: Think I found the edits to |
Greetings, My current (working) platformio.ini has the following build_flags: So if you run it like this, it will run out of .text space, as it will now include Arduino's libc implementation. So we need to move that to the .irom0.text segment. $ diff -u $PIOHOME_DIR//platforms/espressif8266/ldscripts/esp8266.flash.common.ld.old $PIOHOME_DIR//platforms/espressif8266/ldscripts/esp8266.flash.common.ld
--- $PIOHOME_DIR/platforms/espressif8266/ldscripts/esp8266.flash.common.ld.old 2016-09-14 21:49:11.253437461 +0200
+++ $PIOHOME_DIR/platforms/espressif8266/ldscripts/esp8266.flash.common.ld 2016-09-14 21:43:57.568704836 +0200
@@ -168,6 +168,7 @@
EXCLUDE_FILE (umm_malloc.o) .text*)
*.pioenvs/*/src/*.o(EXCLUDE_FILE (umm_malloc.o) .literal*, \
EXCLUDE_FILE (umm_malloc.o) .text*)
+ *libc.a:(.literal .text .literal.* .text.*)
*libm.a:(.literal .text .literal.* .text.*)
*libgcc.a:_umoddi3.o(.literal .text)
*libgcc.a:_udivdi3.o(.literal .text) Done. EDIT2: Personally I did not copied the repo directly into the platformio stuff, I simply linked it to my existing repo. |
Got it -- the platformio team just added a more "official" way to install the dev branch that works great, very user friendly. EDIT: More specifically, I was able to remove all the additional build flags, didn't need to edit |
Yup, just followed their steps and it seems to work. Less happy with the fact that the staging framework is installed OVER the normal one, so my "production" builds now also use the staging framework, even though they have EDIT2: Guess I have to take it back, after uninstalling both frameworks and reinstalling them, it seems to work for both type of projects. |
Basic Infos
Hardware
Hardware: ESP-12E
Core Version: 2.3.0
Description
Compilation failure after removal of various function due to use of newlibc. Sadly, newlibc is not included so when fetching HEAD, compilation fails miserable under platformio. And likely other projects too
Problem description
I would like to be able to compile projects with esp8266/Arduino :)
Settings in IDE
platformio actually.
Module: NodeMCU ESP12E
Flash Size: 4MiB
CPU Frequency: 80Mhz
Flash Mode: qio
Flash Frequency: 40Mhz
Upload Using: SERIAL
Reset Method: nodemcu
Sketch
Anything which includes some serious use of ESP8266Webserver, mDNS, PubSubClient and/or NTP and likely many other libraries.
Debug Messages
None, as it does not run
Messages
The text was updated successfully, but these errors were encountered: