Compile error on Ardunio IDE

208 views
Skip to first unread message

zafer altinkaya

unread,
Mar 25, 2018, 6:35:37 AM3/25/18
to SonoffUsers
Hi,

I am a newbie, please take this into consideration when answering.

I am trying to compile the latest fw (version 5.12.0) under windows using Ardunio IDE, following the instructions on "https://github.com/arendst/Sonoff-Tasmota/wiki/Arduino-IDE" page.

I am getting file not found error for "<bits/c++config.h>" included in "portable\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\utility".
It definitely looks like a configuration issue, but since I am new to Ardunio IDE as well, I couldn't find the problem.

Thans a lot to anyone who can find time to help me.

Regards,
Zafer 

Phil

unread,
Mar 25, 2018, 7:39:55 AM3/25/18
to SonoffUsers
Hi Zafer,

The 'File not found' error would indicate some resource file isnt where its expected to be. 

If not solved by backtracking over your install/setup and confirming everything is in place may i suggest the platformio method as an alternative solution. its a much simpler and straight forward approach imho.

zafer altinkaya

unread,
Mar 25, 2018, 8:02:13 AM3/25/18
to SonoffUsers
Hi Phil,

I moved the folder to root path and it solved the issue. Now I have below issue.

Archiving built core (caching) in: C:\Users\ZAFERA~1.ZHC\AppData\Local\Temp\arduino_cache_329136\core\core_esp8266_esp8266_generic_CpuFrequency_80,ResetMethod_nodemcu,CrystalFreq_26,FlashFreq_40,FlashMode_dout,FlashSize_1M0,led_2,LwIPVariant_Prebuilt,Debug_Disabled,DebugLevel_None____,FlashErase_none,UploadSpeed_115200_6c91dee81dde3e76724210143229d561.a
c:/arduino/arduino/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: cannot find -lmesh

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Generic ESP8266 Module.

Any idea for this one?

If not I will switch to PlatformIO as you suggested.

Best regards,
Zafer

25 Mart 2018 Pazar 14:39:55 UTC+3 tarihinde Phil yazdı:

Phil

unread,
Mar 25, 2018, 1:48:06 PM3/25/18
to SonoffUsers
sounds like a handshaking error, are you powering up your device with gpio pressed/pulled to gnd. what device is it your attempting to flash?  are there any device specific tweeks listed in the wiki?

Some esp8266 boards label RX and TX as direct connections (Rx to Rx, and Tx to Tx) rather than expecting you to 'null modem' the wires


Otherwise doublecheck the board settings


fwiw Ive only flashed a couple of devices with the arduino ide installing a separate arduino ide specifically for tasmota, But more recently i have used the platform i/o interface, which tbh im still learning about but its much less hassle to install and setup, watch the utube linked in the wiki..  

Reply all
Reply to author
Forward
0 new messages