guild icon
Toit
#Failed generation of toit.pkg
Thread channel in help
AbedN
AbedN 02/18/2025 12:00 PM
Hi,
I am following along the readme of the "Template repository for creating a custom Toit envelope" (https://github.com/toitlang/template-custom-envelope); The point where I run "make" (final step before generating the firmware envelope), I would get the following error:


Hope anyone helps,
Thanks
(edited)
floitsch
floitsch 02/18/2025 12:02 PM
Hmm. Looks like there is an issue with the pkg manager.
Let me investigate a bit.
AbedN
AbedN 02/18/2025 12:03 PM
thanks for the quick response! let me know if you need to know anything further
floitsch
floitsch 02/18/2025 12:04 PM
Will do.
Trying to run the steps locally now. We changed how the package manager is built, so maybe it will be glaringly obvious once I hit the same issue.
👍1
floitsch
floitsch 02/18/2025 12:08 PM
Do you have 'go' installed?
floitsch
floitsch 02/18/2025 12:10 PM
Looking again at your screenshot, it looks like the compilation of the package manager is failing. To me this indicates that the go executable is not installed or not in your PATH.
floitsch
floitsch 02/18/2025 12:10 PM
(and I was wrong: we changed how the LSP server is built, but not the package manager).
AbedN
AbedN 02/18/2025 12:16 PM
installing go got me a step further, now i am getting this:
floitsch
floitsch 02/18/2025 12:17 PM
I'm guessing the zlib isn't installed.
floitsch
floitsch 02/18/2025 12:17 PM
Which Linux distribution?
AbedN
AbedN 02/18/2025 12:17 PM
wsl ubuntu
floitsch
floitsch 02/18/2025 12:18 PM
try sudo apt install zlib1g-dev
floitsch
floitsch 02/18/2025 12:19 PM
(or alternatives like sudo apt-get install , sudo aptitude install, ...
or using your preferred pkg-UI)
AbedN
AbedN 02/18/2025 12:20 PM
that did work, thanks!
🥳2
14 messages in total