-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
Boards Manager upgrade ESP8266 Core 3.0.2 to 3.1.0/3.1.1 fails to compile - error missing CommonHFile.h #8856
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
Duplicate of #8811? |
It is the compiler aborting since it cannot find the file CommonHfile.h I guess it should be in included in the core files 3.10/3.11 - but it's not. All previous core version compile ok. How can I gather more data/info for investigation? |
Please show the full build log |
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Thorbjörn Geiser O\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Thorbjörn Geiser O\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Thorbjörn Geiser O\Dropbox\Otrobanda\IOT\MyArduinoSketches\libraries -fqbn=esp8266:esp8266:generic:xtal=160,vt=flash,exception=disabled,stacksmash=disabled,ssl=all,mmu=3232,non32xfer=fast,ResetMethod=nodemcu,CrystalFreq=26,FlashFreq=40,FlashMode=dout,eesz=1M64,led=2,sdk=nonosdk_191122,ip=hb2f,dbg=Disabled,lvl=None____,wipe=none,baud=921600 -ide-version=10816 -build-path C:\Users\THORBJ |
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Thorbjörn Geiser O\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Thorbjörn Geiser O\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Thorbjörn Geiser O\Dropbox\Otrobanda\IOT\MyArduinoSketches\libraries -fqbn=esp8266:esp8266:generic:xtal=160,vt=flash,exception=disabled,stacksmash=disabled,ssl=all,mmu=3232,non32xfer=fast,ResetMethod=nodemcu,CrystalFreq=26,FlashFreq=40,FlashMode=dout,eesz=1M64,led=2,sdk=nonosdk_191122,ip=hb2f,dbg=Disabled,lvl=None____,wipe=none,baud=921600 -ide-version=10816 -build-path C:\Users\THORBJ |
Thanks! Does it work if you replace "C:\Users\Thorbjörn Geiser O\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.1/tools/mkbuildoptglobals.py" with our latest version from https://raw.githubusercontent.com/esp8266/Arduino/master/tools/mkbuildoptglobals.py ? |
No difference. Arduino:1.8.16 (Windows 10), Kort:"Generic ESP8266 Module, 160 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+119 (191122), v2 Higher Bandwidth, Disabled, None, Only Sketch, 921600" C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Thorbjörn Geiser O\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Thorbjörn Geiser O\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Thorbjörn Geiser O\Dropbox\Otrobanda\IOT\MyArduinoSketches\libraries -fqbn=esp8266:esp8266:generic:xtal=160,vt=flash,exception=disabled,stacksmash=disabled,ssl=all,mmu=3232,non32xfer=fast,ResetMethod=nodemcu,CrystalFreq=26,FlashFreq=40,FlashMode=dout,eesz=1M64,led=2,sdk=nonosdk_191122,ip=hb2f,dbg=Disabled,lvl=None____,wipe=none,baud=921600 -vid-pid=10C4_EA60 -ide-version=10816 -build-path C:\Users\THORBJ C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Thorbjörn Geiser O\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Thorbjörn Geiser O\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Thorbjörn Geiser O\Dropbox\Otrobanda\IOT\MyArduinoSketches\libraries -fqbn=esp8266:esp8266:generic:xtal=160,vt=flash,exception=disabled,stacksmash=disabled,ssl=all,mmu=3232,non32xfer=fast,ResetMethod=nodemcu,CrystalFreq=26,FlashFreq=40,FlashMode=dout,eesz=1M64,led=2,sdk=nonosdk_191122,ip=hb2f,dbg=Disabled,lvl=None____,wipe=none,baud=921600 -vid-pid=10C4_EA60 -ide-version=10816 -build-path C:\Users\THORBJ Using board 'generic' from platform in folder: C:\Users\Thorbjörn Geiser O\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.1 Using core 'esp8266' from platform in folder: C:\Users\Thorbjörn Geiser O\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.1 "C:\Users\Thorbjörn Geiser O\AppData\Local\Arduino15\packages\esp8266\tools\python3\3.7.2-post1/python3" -I "C:\Users\Thorbjörn Geiser O\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.1/tools/mkbuildoptglobals.py" "C:\Program Files (x86)\Arduino" 10816 "C:\Users\THORBJ Assume aggressive 'core.a' caching enabled. Note: optional global include file 'C:\Users\Thorbj�rn Geiser O\Dropbox\Otrobanda\IOT\MyArduinoSketches\OHMIGO.mini_Webserver\OHMIGO.mini_Webserver.ino.globals.h' does not exist. Read more at https://arduino-esp8266.readthedocs.io/en/latest/faq/a06-global-build-options.html Detecting libraries used... "C:\Users\Thorbjörn Geiser O\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.1.0-gcc10.3-e5f9fec/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE -DESP8266 "@C:\Users\THORBJ Alternatives for C: [] ResolveLibrary(C) -> candidates: [] cc1plus.exe: fatal error: C:\Users\Thorbjörn Geiser O\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.1\cores\esp8266\CommonHFile.h: No such file or directory compilation terminated. exit status 1 Error compiling for board Generic ESP8266 Module. |
problem due to diacritics C:\Users\Thorbjörn Geiser O\AppData......... I had to make a new account without. Win11 |
I do not really understand - what do you mean? |
@TobbeG after a failed build, locate the file |
This is it - appreciate all the efforts in helping to solve this asap. { |
Almost, starting from the directory location of that file we need the file However, I think GCC is selectively having issues with long file names. From your previous post with the line strict through indicate embedded |
Is there an easy way renaming my W11 useraccount from "Thorbjörn..." to something without special characters ? |
There should be a way to get short names in python. I just don't know it yet and I need to set up a test machine. If you are up for a quick test. You could add these two lines to
|
I put it here - but same error. _ESP8266 platform ------------------------------name=ESP8266 Boards (3.1.1) These will be removed by the packager script when doing a JSON releaseglobals.h.source.fqfn.windows={build.source.path}{build.project_name}.globals.h runtime.tools.signing={runtime.platform.path}/tools/signing.py |
What is this about? |
@TobbeG This should resolve your build issue. Save the file to your disk. Backup and replace your current copy at |
win11pro mkbuildoptglobals.py (from #8860) Using board 'd1_mini' from platform in folder: C:\Users\Rasťo\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.1 exit status 1 Compilation error: exit status 1 always problem with diacritics. |
C:\Users*\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.1\cores\esp8266\CommonHFile.h is present, though? Script does create something at the target directory? @mhightower83 |
Present, is empty (size = 0), i dont use. |
Can you get to the |
-include "C:\Users\Rasťo\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.1\cores\esp8266\CommonHFile.h" Kurnik.ino.globals.h is empty |
Creating an empty version of I am still looking for a way to encode the file paths such that they will work in more than one locale. |
I succeeded in creating an account with a diacritic in the user ID on a US version of Windows. So the problem was much easier to reproduce and resolve. For Arduino IDE v2.0.3, an additional issue shows up related to diacritics that did not show in Arduino v1.8. The older one used a mixture of Windows short names and full paths. Arduino IDE v2.0.3 uses only full paths exposing diacritics all the time.
There are two files to replace:
in |
Arduino IDE 2.0.3 & 1.8.19 works :) |
Arduino IDE 1.8.16 and ESP8266 Core 3.1.1 - works :):) Well done, thanks !! |
Same problem here with my user folder name. Thanks ! |
Basic Infos
Platform
Settings in IDE
Problem Description
Cannot compile code with core version 3.1.0 or 3.1.1
Core 3.0.2 works fine
Detailed problem description goes here.
When compling I get error message of missing file: CommonHFile.h
Cannot even compile simples Blink.c example.
Debug Messages
ERROR MESSAGE
cc1plus.exe: fatal error: C:\Users\Thorbjörn Geiser O\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.0\cores\esp8266\CommonHFile.h: No such file or directory
compilation terminated.
exit status 1
Error compiling for board Generic ESP8266 Module.
The text was updated successfully, but these errors were encountered: