Forum > Embedded

ESP8266 Compiling with xtensa-freertos

<< < (2/7) > >>

af0815:

--- Quote from: engkin on January 02, 2022, 12:46:24 am ---
--- Quote ---error: /components/esp8266/ld/esp8266.ld: No such file or directory
--- End quote ---

Sounds like a wrong path. Maybe confused between backslash and frontslash?

--- End quote ---
I think it is not confused by backslah/frontslash. I think its more a 'hidden' missing enviroment variable. One indication i have found in the wiki with IDF_PATH. But i think another internal information is missing.

@trev and bobihot: Sorry for misunderstanding. I am also a not native speaker and have my troubles with the translation (sometime with google too).
I have no indication that the esp8166 have risc-v. I f you mean other chips from expressif maybe. But this should only end in a wrong objectfile, but not in such a compiler message.

BTW @trev: Dial back the attitude mate -> is not understandable by me. google translate give me a nonsense message in my native language back.

af0815:
If i compile with the option -sh

--- Code: Text  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---@echo onset IDF_PATH=C:\data\esp\ESP8266_RTOS_SDKcd C:\data\lazdev\xtensa\projectsC:\data\lazdev\xtensa\fpc\bin\i386-win32\ppcrossxtensa -sh -Furtl/units/xtensa-freertos/ -Tfreertos -XPxtensa-lx106-elf- -O1 -Wpesp8266 HelloWorld2.lpr -Fl~/esp/xtensa-lx106-elf-libs/ -FlC:\data\esp\ESP8266_RTOS_SDK\components/esp8266/lib -FlC:\data\esp\ESP8266_RTOS_SDK/components/newlib/newlib/lib -Fl~/esp/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/lib/ pause i get a ppas.bat file with the following content

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---@echo offSET THEFILE=helloworld2echo Assembling %THEFILE%C:\data\lazdev\xtensa\cross\bin\xtensa-freertos\bin\xtensa-lx106-elf-as.exe -o HelloWorld2.o  HelloWorld2.s --longcallsif errorlevel 1 goto asmendrem Del HelloWorld2.sSET THEFILE=HelloWorld2echo Linking %THEFILE%C:\data\lazdev\xtensa\cross\bin\xtensa-freertos\bin\xtensa-lx106-elf-gcc.exe -C -P -x c -E -o /esp8266_out.ld -I / C:\data\esp\ESP8266_RTOS_SDK/components/esp8266/ld/esp8266.ld.... in the line, where gcc is called, i get a error.

--- Quote ---C:\data\lazdev\xtensa\projects>echo Linking HelloWorld2
Linking HelloWorld2

C:\data\lazdev\xtensa\projects>C:\data\lazdev\xtensa\cross\bin\xtensa-freertos\bin\xtensa-lx106-elf-gcc.exe -C -P -x c -E -o /esp8266_out.ld -I / C:\data\esp\ESP8266_RTOS_SDK/components/esp8266/ld/esp8266.ld
xtensa-lx106-elf-gcc.exe: error: CreateProcess: No such file or directory

C:\data\lazdev\xtensa\projects>if errorlevel 1 goto linkend1

--- End quote ---
What will he compile ?! I think i am missing here something.
Any hint ?

engkin:
Run the problematic line in a terminal, and give it the same slash to eliminate the possibility of wrong slash.

engkin:
If you share the files produced by FPC, I can give it a shot. I already have xtensa SDK.

ccrause:

--- Quote from: af0815 on January 02, 2022, 09:06:10 am ---
--- Quote from: engkin on January 02, 2022, 12:46:24 am ---
--- Quote ---error: /components/esp8266/ld/esp8266.ld: No such file or directory
--- End quote ---

Sounds like a wrong path. Maybe confused between backslash and frontslash?

--- End quote ---
I think it is not confused by backslah/frontslash. I think its more a 'hidden' missing enviroment variable. One indication i have found in the wiki with IDF_PATH. But i think another internal information is missing.
--- End quote ---

This may be a Windows specific compiler bug  The path to esp8266.ld is supposed to start with the project exe output folder, which in this case appears to be empty/unspecified.  Do you see other compiler generated files such as Kconfig or kconfig.in etc in your project folder?

As a test, please adding the following to you compiler command:
--- Code: ----FEc:\somefolder\HelloWorld
--- End code ---
Then report which files end up in this folder during the whole build process.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version