Page 1 of 1

[SOLVED]Compilation failed - release mega-20220809

Posted: 11 Aug 2022, 02:32
by mackowiakp
Release mega-20220809.
I know there have been a lot of changes to the general directives for Platformio but I have a problem that FW won't compile.
Below are the error messages:

Code: Select all

Processing custom_ESP8266_4M1M (platform: espressif8266@2.6.3; board: esp8266_4M1M_board; framework: arduino)
---------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
Error: Unknown board ID 'esp8266_4M1M_board'
========================================= [FAILED] Took 0.42 seconds =========================================

Environment          Status    Duration
-------------------  --------  ------------
custom_ESP8266_4M1M  FAILED    00:00:00.425
==================================== 1 failed, 0 succeeded in 00:00:00.425 ====================================

 *  The terminal process "platformio 'run', '--environment', 'custom_ESP8266_4M1M'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it.
Maybe someone will tell me where I am making a mistake?

Re: Compilation failed - release mega-20220809

Posted: 11 Aug 2022, 09:10
by TD-er
Did you fetch all files?
No changes?

For example, you have a folder named "boards" with all kinds of JSON files, including esp8266_4M1M_board.json ?

Re: Compilation failed - release mega-20220809

Posted: 11 Aug 2022, 09:24
by mackowiakp
Will check when be back home evening.

Re: Compilation failed - release mega-20220809

Posted: 12 Aug 2022, 02:44
by mackowiakp
OK, I downloaded the ESPEasy-mega-20220809.zip file, unpacked it to a directory and tried to compile.
Previously - I don't know why - not everything was downloaded.
Currently showing the following errors (copy/paste to G translator):

Code: Select all

error: The server does not allow a request for an unannounced object 159e31b689577dbf69cf0683bbaffbd71fa5ee10
Downloaded from "tools / sdk / lwip2 / builder / lwip2-src" submodule path, but not 159e31b689577dbf69cf0683bbaffbd71fa5ee10. Direct download of this save has failed.
Sub-module path "tools / sdk / ssl / bearssl": selected "89454af34e3e61ddfc9837f3da5a0bc8ed44c3aa"
Unable to go down to the sub-module path "tools / sdk / lwip2 / builder"
Error: VCS: Could not process command ['git', 'clone', '--recursive', '--depth', '1', '--branch', '2.6.2', 'https: // github.com/esp8266/Arduino.git ',' /home/maciek/.platformio/.cache/tmp/pkg-installing-63f__2ey ']

 * Terminal process 'platformio' run ',' --environment ',' normal_ESP8266_4M1M '' exited with exit code: 1.
As you can see some problems with downloading modules from Git.
I'm doing something wrong, just what?

Re: Compilation failed - release mega-20220809

Posted: 12 Aug 2022, 03:11
by mackowiakp
Gee ... I'm sorry, TD-er. My mistake. Again, I have the ESPEasy source files on another drive connected to Platformio via a symbolic link.
Well, I just did not give the appropriate UID/GID for the directory.
I should think first and then write.
I promise to improve for the future! :D

Re: Compilation failed - release mega-20220809

Posted: 12 Aug 2022, 09:40
by TD-er
mackowiakp wrote: 12 Aug 2022, 03:11 [...]
I promise to improve for the future! :D
Hmm even more complex failures in the future? You're making me curious ;)

Re: [SOLVED]Compilation failed - release mega-20220809

Posted: 21 Sep 2022, 10:25
by FreakErn
Important to note, if someone else finds this post, like i did.

In the Releases of ESPEasy in that Mega zip file (in my case the ESPEasy-mega-20220809.zip), the boards folder is missing.
Like in the Documentation: "If you have PIO (PlatformIO) installed and the source tree cloned to your hard drive, then you can open the main dir of the repository"

So don't use the Releases zip, even it contains a platformio.ini, it will not work to compile. Clone/Download the Tagged version like this one: https://github.com/letscontrolit/ESPEas ... a-20220809 and use the source folder for compiling.

Re: [SOLVED]Compilation failed - release mega-20220809

Posted: 21 Sep 2022, 10:56
by TD-er
OK, so I actually need to make sure the boards folder is included in the "released" zip file with the source code...

Made a Todo issue for this: https://github.com/letscontrolit/ESPEasy/issues/4274