# Errors Creating Image after Python3 automatic update

**URL:** <https://forum.legato.io/t/errors-creating-image-after-python3-automatic-update/6601>\
**Category:** VSCode\
**Created:** [October 10, 2023, 7:18pm UTC](https://forum.legato.io/t/errors-creating-image-after-python3-automatic-update/6601 "2023-10-10T19:18:35Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![eddie435](https://avatars.discourse-cdn.com/v4/letter/e/e9bcb4/32.png) [@eddie435](https://forum.legato.io/u/eddie435)\
**Post date:** [October 11, 2023, 1:02pm UTC](https://forum.legato.io/t/errors-creating-image-after-python3-automatic-update/6601/9 "2023-10-11T13:02:37Z")

</div>

I changed the folder as suggested and ran the “make wp77xx” command. It compiled but returned 2 errors.

> (lsh:FX30S-15-1) eddie@Q87CRM:~/Workspace/leaf-data/current/fx30-catm-legato$ make wp77xx  
> Building Legato for target ‘wp77xx’  
> modules/WiFi/moduleDefs:12: Legato WiFi version is undefined…  
> KSET build/wp77xx/.config - TARGET\_WP77XX  
> KCONFIG build/wp77xx/.config  
> GEN build/wp77xx/.config.mk  
> Building Legato for target ‘wp77xx’  
> modules/WiFi/moduleDefs:12: Legato WiFi version is undefined…  
> GEN version  
> GEN build/wp77xx/framework/include/le\_config.h  
> MAKE tools  
> make[1]: Entering directory ‘/home/eddie/.leaf/fx30-catm-legato\_21.05.0’  
> Using ninja installed at: /usr/bin/ninja  
> GEN /home/eddie/.leaf/fx30-catm-legato\_21.05.0/build/tools/build.ninja  
> Tools arch: x86\_64  
> MAKE mkPatch  
> make[2]: Entering directory ‘/home/eddie/.leaf/fx30-catm-legato\_21.05.0/framework/tools/mkPatch’  
> make[2]: ‘/home/eddie/.leaf/fx30-catm-legato\_21.05.0/bin/mkPatch’ is up to date.  
> make[2]: Leaving directory ‘/home/eddie/.leaf/fx30-catm-legato\_21.05.0/framework/tools/mkPatch’  
> NINJA /home/eddie/.leaf/fx30-catm-legato\_21.05.0/build/tools/build.ninja  
> [77/87] Compiling tool source  
> FAILED: /home/eddie/.leaf/fx30-catm-legato\_21.05.0/build/tools/obj/mkTools/codeGenerator/exeMainGenerator.cpp.o  
> g++ -std=c++0x -MMD -MF /home/eddie/.leaf/fx30-catm-legato\_21.05.0/build/tools/obj/mkTools/codeGenerator/exeMainGenerator.cpp.o.d -g -Wall -Werror -Wno-unused-command-line-argument -Wno-deprecated -I/home/eddie/.leaf/fx30-catm-legato\_21.05.0/build/tools/precompiled/ -I/home/eddie/.leaf/fx30-catm-legato\_21.05.0/framework/tools/defTools -I/home/eddie/.leaf/fx30-catm-legato\_21.05.0/framework/tools/mkTools -I/home/eddie/.leaf/fx30-catm-legato\_21.05.0/framework/liblegato -c /home/eddie/.leaf/fx30-catm-legato\_21.05.0/framework/tools/mkTools/codeGenerator/exeMainGenerator.cpp -o /home/eddie/.leaf/fx30-catm-legato\_21.05.0/build/tools/obj/mkTools/codeGenerator/exeMainGenerator.cpp.o  
> /home/eddie/.leaf/fx30-catm-legato\_21.05.0/framework/tools/mkTools/codeGenerator/exeMainGenerator.cpp: In function ‘void code::GenerateCLangExeMain(const model::Exe\_t\*, const mk::BuildParams\_t&)’:  
> /home/eddie/.leaf/fx30-catm-legato\_21.05.0/framework/tools/mkTools/codeGenerator/exeMainGenerator.cpp:171:25: error: loop variable ‘fileSystemObjectPtr’ creates a copy from type ‘const std::shared\_ptrmodel::FileSystemObject\_t’ [-Werror=range-loop-construct]  
> 171 | for (const auto fileSystemObjectPtr : componentPtr-\>bundledFiles)  
> | ^ ~~~~~~~~~~~~~~~~~~  
> /home/eddie/.leaf/fx30-catm-legato\_21.05.0/framework/tools/mkTools/codeGenerator/exeMainGenerator.cpp:171:25: note: use reference type to prevent copying  
> 171 | for (const auto fileSystemObjectPtr : componentPtr-\>bundledFiles)  
> | ^ ~~~~~~~~~~~~~~~~~~  
> | &  
> At global scope:  
> cc1plus: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics  
> cc1plus: all warnings being treated as errors  
> [86/87] Compiling tool source  
> FAILED: /home/eddie/.leaf/fx30-catm-legato\_21.05.0/build/tools/obj/mkTools/configGenerator/configGenerator.cpp.o  
> g++ -std=c++0x -MMD -MF /home/eddie/.leaf/fx30-catm-legato\_21.05.0/build/tools/obj/mkTools/configGenerator/configGenerator.cpp.o.d -g -Wall -Werror -Wno-unused-command-line-argument -Wno-deprecated -I/home/eddie/.leaf/fx30-catm-legato\_21.05.0/build/tools/precompiled/ -I/home/eddie/.leaf/fx30-catm-legato\_21.05.0/framework/tools/defTools -I/home/eddie/.leaf/fx30-catm-legato\_21.05.0/framework/tools/mkTools -I/home/eddie/.leaf/fx30-catm-legato\_21.05.0/framework/liblegato -c /home/eddie/.leaf/fx30-catm-legato\_21.05.0/framework/tools/mkTools/configGenerator/configGenerator.cpp -o /home/eddie/.leaf/fx30-catm-legato\_21.05.0/build/tools/obj/mkTools/configGenerator/configGenerator.cpp.o  
> /home/eddie/.leaf/fx30-catm-legato\_21.05.0/framework/tools/mkTools/configGenerator/configGenerator.cpp: In function ‘void config::GenerateBindingsConfig(std::ofstream&, model::App\_t\*, const mk::BuildParams\_t&)’:  
> /home/eddie/.leaf/fx30-catm-legato\_21.05.0/framework/tools/mkTools/configGenerator/configGenerator.cpp:783:21: error: loop variable ‘mapItem’ creates a copy from type ‘const std::pair\<const std::\_\_cxx11::basic\_string, model::Exe\_t\*\>’ [-Werror=range-loop-construct]  
> 783 | for (const auto mapItem : appPtr-\>executables)  
> | ^ ~~~~~~  
> /home/eddie/.leaf/fx30-catm-legato\_21.05.0/framework/tools/mkTools/configGenerator/configGenerator.cpp:783:21: note: use reference type to prevent copying  
> 783 | for (const auto mapItem : appPtr-\>executables)  
> | ^ ~~~~~~  
> | &  
> At global scope:  
> cc1plus: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics  
> cc1plus: all warnings being treated as errors  
> ninja: build stopped: subcommand failed.  
> make[1]: \*\*\* [Makefile.hostTools:42: tools] Error 1  
> make[1]: Leaving directory ‘/home/eddie/.leaf/fx30-catm-legato\_21.05.0’  
> make: \*\*\* [Makefile:459: tools] Error 2  
> (lsh:FX30S-15-1) eddie@Q87CRM:~/Workspace/leaf-data/current/fx30-catm-legato$((l(lsh(lsh:FX(lsh:FX30S-1(lsh:FX30S-15-(lsh:FX30S-15-1) e(lsh:FX30S-15(lsh:FX30S-(lsh:FX30S-(lsh:FX30(ls((l(ls(ls(lsh:F(lsh:(lsh:(ls(lsh:FX30(ls(ls(l(lsh:(l((lsh:(ls(l(lsh(lsh:F(lsh((lsh(l(lsh:F(lsh:F(l((ls(ls(l((ls(lsh:FX30S-(l(lsh:(lsh:(lsh(lsh(l(l(l(ls(l(lsh:(ls(l(ls(l(ls(l(l(lsh:(((l((ls((ls(ls((ls(l(l(lsh(l(ls((((((((lsh:FX30S-15-1) eddie@Q87CRM:~/Workspace/leaf-data/current/fx30-catm-legato$

---

_[View the full topic](https://forum.legato.io/t/errors-creating-image-after-python3-automatic-update/6601)._
