ESP8266 compilation problem - no more ideas (SOLVED - COMODO PROBLEM)

Hello.
I am trying to use ESP8266 E12 in my first project.
I can compile it on laptop (win8) but on PC (win7) I have this error:

"C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.3-gcc10.3-9bcba0b/bin/xtensa-lx106-elf-gcc" -CC -E -P -DVTABLES_IN_FLASH -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 "C:\Users\admin\AppData\Local\Temp\arduino_build_243392/ld_h/local.eagle.flash.ld.h" -o "C:\Users\admin\AppData\Local\Temp\arduino_build_243392/local.eagle.flash.ld"

xtensa-lx106-elf-gcc: error: C:\Users\admin\AppData\Local\Temp\arduino_build_243392/ld_h/local.eagle.flash.ld.h: No such file or directory

xtensa-lx106-elf-gcc: fatal error: no input files
compilation terminated.
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).

It is a war ! After 2 days I have no solution. Uninstall, reinstall, partition C, partition D...and nothing.

No such file or directory ! But why ?

Help me please because I have no more ideas and I think I waste my time for this ^*&%^& Arduino soft...

Regards,
Mariusz

what version of the esp8266 arduino platform do you use?

Hi !
Arduino 1.8.16, Board manager: ESP8266 version 3.0.1, ESP (12E)

Mariusz

there is a sequence of commands for local.eagle.flash.ld.h. the previous command should copy the file to the build folder. is there any previous error message?

Hi Juraj.
There is no previous error message.
This is compilation output in txt file:
http://marcom.net.pl/error.txt
I have C:\Users\admin\AppData\Local\Temp\arduino_build_243392 folder with other files but there is no file local.eagle.flash.ld.h :frowning:

Regards,
Mariusz

P.S.
Previous command is in Python:

"C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\tools\python3\3.7.2-post1/python3" "C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.1/tools/cp.py" "C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.1/tools/sdk/ld/eagle.flash.4m2m.ld" "C:\Users\admin\AppData\Local\Temp\arduino_build_243392/ld_h/local.eagle.flash.ld.h"

Maybe it is a python problem ?
I have python 3.7.1 and it is in PATH variable.
I can't upgrade to 3.10.0 because of my windows7.

Mariusz

check if tools/sdk/ld/eagle.flash.4m2m.ld exists in your installation

Hi.
No, there is no folder named sdk...

I have only :

mklittlefs
mkspiffs
python3
xtensa-lx106-elf-gcc

inside C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\tools\

MJ

then reinstall the boards package. install a different version in Boards Manager. then you can install back the 3.01

(reinstalling the IDE doesn't touch the boards packages)

Hi.
Ok, removed, installed version 3.0.2 - still the same error.
I think it is not a problem with this package because I have the same folder tree in my laptop - only :

mklittlefs
mkspiffs
python3
xtensa-lx106-elf-gcc

and everything is ok. There is no error.

Mariusz

it is the other tools folder
C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.1/tools/sdk/ld/eagle.flash.4m2m.ld

Ok, I have this folder and this file too ... :frowning:

M.

It looks like python problem !
Afer do C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\tools>python mkdir.py -p "C:\Users\admin\AppData\Local\Temp\arduino_build_263835/ld_h"

When I remove TRY from mkdir.py

def main():
parser = argparse.ArgumentParser(description='Platform-independent mkdir')
parser.add_argument('-p', '--parents', action='store_true', required=False, help='no error if existing, make parent directories as needed')
parser.add_argument('dir', action='store', nargs='+')
ns = parser.parse_args()
for p in ns.dir:
// try:
pathlib.Path(p).mkdir(parents=ns.parents)
// except FileExistsError:
// pass
return 0

if name == 'main':
sys.exit(main())

I have no ld_h directory !
But if I do it again I have:

Directory exist error !!

WTF ?

OMG, It was a FU**** Comodo problem.
I disabled It but after using cp.py and mkdir.py I found created files in C:\VTRoot directory !
I uninstalled Comodo, removed VTRoot, reinstalled Arduino and now It works !!!!

Thank You for Your help Juraj

Regards,
Mariusz

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.