sdk/bin/toit.lspundefined: atomic.Boolnote: module requires Go 1.191.18.1 linux/arm64no rule to make target '.../toit.pkg', needed by 'install-dependencies'. Stop.toit/buildjaguar/buildtoittoit/third_party/esp-idfmake allbuild/jagjaguartoit/build/esp32/firmware.envelopeFile not found: '.../toit/tools/toit.run.toit'.../toitJAG_TOIT_REPO_PATH/home/hydrologic/JagToit/toit/build/toit.run.toitJAG_TOIT_REPO_PATH//home/hydrologic/JagToit/toittoit/make sdk/home/hydrologic/JagToit/toit/build/toit.run.toitkasper@mole toit % build/host/sdk/bin/toit.run examples/hello.toit
Hello, World!toit/tools/toit.run.toit//home/hydrologic/JagToit/toit////toit.run.toit///make allbuild/jagmake: *** No rule to make target '/home/bmentink/src/jaguar/build/sdk/bin/toit.pkg', needed by 'install-dependencies'. Stop.$(JAG_TOIT_REPO_PATH)/build/host/sdktoit.pkgjaguar/buildmake./build/jag version
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0xa2d3fc]
goroutine 1 [running]:
github.com/toitlang/jaguar/cmd/jag/commands.VersionCmd.func1(0x4000226000?, {0x12299e0?, 0x0?, 0x0?})
/home/bmentink/src/jaguar/cmd/jag/commands/version.go:30 +0x5c
github.com/spf13/cobra.(*Command).execute(0x4000226000, {0x12299e0, 0x0, 0x0})
/home/bmentink/go/pkg/mod/github.com/spf13/[email protected]/command.go:920 +0x5ac
github.com/spf13/cobra.(*Command).ExecuteC(0x4000212300)
/home/bmentink/go/pkg/mod/github.com/spf13/[email protected]/command.go:1044 +0x340
github.com/spf13/cobra.(*Command).Execute(...)
/home/bmentink/go/pkg/mod/github.com/spf13/[email protected]/command.go:968
github.com/spf13/cobra.(*Command).ExecuteContext(0xba4929?, {0xcc6530?, 0x40001b1b30?})
/home/bmentink/go/pkg/mod/github.com/spf13/[email protected]/command.go:961 +0x4c
main.main()
/home/bmentink/src/jaguar/cmd/jag/main.go:34 +0x17cgit submodule update --init --recursiveexport TOIT_PATH=YOUR_ABSOLUTE_PATH_TO_THE_TOIT_CLONE
export JAG_PATH=YOUR_ABSOLUTE_PATH_TO_THE_JAGUAR_CLONE
export JAG_TOIT_REPO_PATH=$TOIT_PATH
# Check that the paths are set up correctly:
ls $TOIT_PATH
ls $JAG_PATH
# Let's do some cleanups. They shouldn't be necessary, but can't hurt.
cd $TOIT_PATH
make clean
cd $JAG_PATH
rm -rf build
# recursively init the submodules of Toit
cd $TOIT_PATH
git submodule update --init --recursive .
# While we are here, make sure we have the esp-idf requirements installed.
third_party/esp-idf/install.sh
# Let's build Toit here.
make
# This should take some time and compile quite a few things.
# If you get a build-error, it's likely the mbedtls issue I mentioned.
# Instructions for that one are below.
# You should end up with files in:
ls build/host/sdk/bin
# If the build completed succesfully, let's build Jaguar now.
cd $JAG_PATH
make
# This will do another build in Toit (this time the ESP32 firmware), and then
# finish by building 'build/jag'.
build/jag version
# At this point you should be able to use the 'build/jag' executable as if it was
# a downloaded Jaguar binary.cd $TOIT_PATH/third_part/esp-idf/components/mbedtls/mbedtls
wget https://raw.githubusercontent.com/toitlang/toit/438ab4e65213816f9ed60a72cde0cc89e374d6d7/aarch64.diff
patch -p1 < aarch64.diff
# And now try to build Toit again:
cd $TOIT_PATH
maketoit.run.toitwgettoit.run.toitmake cleanrm: missing operandtoit.run.toitnano/usr/bin/cmake -E env ASAN_OPTIONS=detect_leaks=false /home/flo/code/opentoit/build/host/sdk/bin/toit.compile --dependency-file /home/flo/code/opentoit/build/host/src/boot.dep --dependency-format ninja -w /home/flo/code/opentoit/build/host/generated/toit.run.snapshot /home/flo/code/opentoit/tools/toit.run.toit/home/flo/code/opentoit/build/host/sdk/bin/toit.compile -w /home/flo/code/opentoit/build/host/generated/toit.run.snapshot /home/flo/code/opentoit/tools/toit.run.toitmake cleanrm: missing operand/home/flo/code/opentoitTOIT_PATHtoit$TOIT_PATH/build/host/sdk/bin/toit.compile$TOIT_PATH/build/host/sdk/bin/toit.compile --version$TOIT_PATH/build/host/sdk/bin/toit.compile -w $TOIT_PATH/build/host/generated/toit.run.snapshot $TOIT_PATH/tools/toit.run.toit