Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By Mac_
#47604 Hello,
I can't compile, also only verify, any sketch if I select Generic esp8266 module,
I've tried the Bare minimum to be sure that works.
With Uno or other Arduino borads everything works, but selecting 8266 sais me:

Arduino:1.6.9 (Windows 7), Scheda:"Core Development Module, Espressif (xcc), 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS), ck, Disabled, None"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -hardware "C:\Users\m.mantovani\AppData\Local\Arduino15\packages" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -tools "C:\Users\m.mantovani\AppData\Local\Arduino15\packages" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\m.mantovani\Documents\Arduino\libraries" -fqbn=esp8266:esp8266:coredev:LwIPVariant=Espressif,CpuFrequency=80,FlashFreq=40,FlashMode=dio,UploadSpeed=115200,FlashSize=512K64,ResetMethod=ck,Debug=Disabled,DebugLevel=None____ -ide-version=10609 -build-path "C:\Users\MC5BB~1.MAN\AppData\Local\Temp\builded46e1aee1271f7f958cd9e2af8ff61c.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\MC5BB~1.MAN\AppData\Local\Temp\untitled364995918.tmp\sketch_may18a\sketch_may18a.ino"
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -hardware "C:\Users\m.mantovani\AppData\Local\Arduino15\packages" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -tools "C:\Users\m.mantovani\AppData\Local\Arduino15\packages" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\m.mantovani\Documents\Arduino\libraries" -fqbn=esp8266:esp8266:coredev:LwIPVariant=Espressif,CpuFrequency=80,FlashFreq=40,FlashMode=dio,UploadSpeed=115200,FlashSize=512K64,ResetMethod=ck,Debug=Disabled,DebugLevel=None____ -ide-version=10609 -build-path "C:\Users\MC5BB~1.MAN\AppData\Local\Temp\builded46e1aee1271f7f958cd9e2af8ff61c.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\MC5BB~1.MAN\AppData\Local\Temp\untitled364995918.tmp\sketch_may18a\sketch_may18a.ino"
"C:\Users\m.mantovani\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\m.mantovani\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0/tools/sdk/include" "-IC:\Users\m.mantovani\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0/tools/sdk/lwip/include" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DARDUINO=10609 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DESP8266 "-IC:\Users\m.mantovani\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\cores\esp8266" "-IC:\Users\m.mantovani\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\variants\generic" "C:\Users\MC5BB~1.MAN\AppData\Local\Temp\builded46e1aee1271f7f958cd9e2af8ff61c.tmp\sketch\sketch_may18a.ino.cpp" -o "nul"
"C:\Users\m.mantovani\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\m.mantovani\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0/tools/sdk/include" "-IC:\Users\m.mantovani\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0/tools/sdk/lwip/include" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DARDUINO=10609 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DESP8266 "-IC:\Users\m.mantovani\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\cores\esp8266" "-IC:\Users\m.mantovani\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\variants\generic" "C:\Users\MC5BB~1.MAN\AppData\Local\Temp\builded46e1aee1271f7f958cd9e2af8ff61c.tmp\sketch\sketch_may18a.ino.cpp" -o "nul"
"C:\Users\m.mantovani\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Users\m.mantovani\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0/tools/sdk/include" "-IC:\Users\m.mantovani\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0/tools/sdk/lwip/include" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DARDUINO=10609 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DESP8266 "-IC:\Users\m.mantovani\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\cores\esp8266" "-IC:\Users\m.mantovani\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\variants\generic" "C:\Users\MC5BB~1.MAN\AppData\Local\Temp\builded46e1aee1271f7f958cd9e2af8ff61c.tmp\sketch\sketch_may18a.ino.cpp" -o "C:\Users\MC5BB~1.MAN\AppData\Local\Temp\builded46e1aee1271f7f958cd9e2af8ff61c.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
cc1plus.exe: fatal error: opening output file C:\Users\MC5BB~1.MAN\AppData\Local\Temp\builded46e1aee1271f7f958cd9e2af8ff61c.tmp\preproc\ctags_target_for_gcc_minus_e.cpp: Permission denied

compilation terminated.

exit status 1
Errore durante la compilazione per la scheda Core Development Module.


Could it be some problem with User/Administrator permission?
I'm going crazy, i've re-installed everything 3 times, deleting all Arduino folders/libraries/AppData every time...

What's the problem?
Thankyou guys
User avatar
By jcmvbkbc
#47608
Mac_ wrote:cc1plus.exe: fatal error: opening output file C:\Users\MC5BB~1.MAN\AppData\Local\Temp\builded46e1aee1271f7f958cd9e2af8ff61c.tmp\preproc\ctags_target_for_gcc_minus_e.cpp: Permission denied

What's the problem?

The problem is stated in this error message. Either you don't have write access to C:\Users\MC5BB~1.MAN\AppData\Local\Temp\builded46e1aee1271f7f958cd9e2af8ff61c.tmp\preproc directory, or to the file C:\Users\MC5BB~1.MAN\AppData\Local\Temp\builded46e1aee1271f7f958cd9e2af8ff61c.tmp\preproc\ctags_target_for_gcc_minus_e.cpp.

Change directory permission so that you can create files there and they are writable by you, or delete the file if it exists.