siyengar
04/24/2023, 3:29 AMsdk/bin/toit.lsp
fails, saying undefined: atomic.Bool
(with note: module requires Go 1.19
kasperl
04/24/2023, 3:32 AMsiyengar
04/24/2023, 3:33 AM1.18.1 linux/arm64
siyengar
04/24/2023, 3:44 AMno rule to make target '.../toit.pkg', needed by 'install-dependencies'. Stop.
siyengar
04/24/2023, 3:56 AMkasperl
04/24/2023, 3:56 AMkasperl
04/24/2023, 3:57 AMtoit/build
and jaguar/build
directories.kasperl
04/24/2023, 3:58 AMtoit
.kasperl
04/24/2023, 3:58 AMtoit/third_party/esp-idf
isn't empty?siyengar
04/24/2023, 4:03 AMmake all
in my clone of Jaguarkasperl
04/24/2023, 4:03 AMkasperl
04/24/2023, 4:04 AMbuild/jag
in your jaguar
directory -- and toit/build/esp32/firmware.envelope
should have the ESP32 bits.siyengar
04/24/2023, 4:27 AMFile not found: '.../toit/tools/toit.run.toit'
kasperl
04/24/2023, 4:29 AM.../toit
? (three dots)kasperl
04/24/2023, 4:29 AMJAG_TOIT_REPO_PATH
?siyengar
04/24/2023, 4:29 AM/home/hydrologic/JagToit/toit/build/toit.run.toit
kasperl
04/24/2023, 4:30 AMsiyengar
04/24/2023, 4:30 AMsiyengar
04/24/2023, 4:30 AM//home/hydrologic/JagToit/toit
kasperl
04/24/2023, 4:30 AMtoit/
? Try something like make sdk
.siyengar
04/24/2023, 4:31 AMsiyengar
04/24/2023, 4:31 AMkasperl
04/24/2023, 4:31 AMkasper@mole toit % build/host/sdk/bin/toit.run examples/hello.toit
Hello, World!
kasperl
04/24/2023, 4:32 AMtoit/tools/toit.run.toit
?siyengar
04/24/2023, 4:32 AMkasperl
04/24/2023, 4:32 AM//
?siyengar
04/24/2023, 4:32 AMsiyengar
04/24/2023, 4:33 AMsiyengar
04/24/2023, 4:33 AMtoit.run.toit
siyengar
04/24/2023, 4:33 AMkasperl
04/24/2023, 4:33 AMsiyengar
04/24/2023, 4:36 AM/
siyengar
04/24/2023, 4:37 AMbmentink
04/24/2023, 7:25 AMmake all
seems to have built build/jag
but I do not have a toit directory in my jaguar top level. Also, I got this error on the compile:bmentink
04/24/2023, 7:25 AMmake: *** No rule to make target '/home/bmentink/src/jaguar/build/sdk/bin/toit.pkg', needed by 'install-dependencies'. Stop.
siyengar
04/24/2023, 7:27 AMkasperl
04/24/2023, 7:32 AMkasperl
04/24/2023, 7:33 AM$(JAG_TOIT_REPO_PATH)/build/host/sdk
and find toit.pkg
in there, not in jaguar/build
.bmentink
04/24/2023, 7:34 AMkasperl
04/24/2023, 7:34 AMmake
starts a new shell is messing with us here.bmentink
04/24/2023, 7:35 AMbmentink
04/24/2023, 7:35 AM./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/cobra@v1.6.1/command.go:920 +0x5ac
github.com/spf13/cobra.(*Command).ExecuteC(0x4000212300)
/home/bmentink/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:1044 +0x340
github.com/spf13/cobra.(*Command).Execute(...)
/home/bmentink/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:968
github.com/spf13/cobra.(*Command).ExecuteContext(0xba4929?, {0xcc6530?, 0x40001b1b30?})
/home/bmentink/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:961 +0x4c
main.main()
/home/bmentink/src/jaguar/cmd/jag/main.go:34 +0x17c
bmentink
04/24/2023, 7:37 AMgit submodule update --init --recursive
nothing happened ..floitsch
04/24/2023, 8:34 AMexport 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.
floitsch
04/24/2023, 8:36 AMcd $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
make
siyengar
04/24/2023, 9:56 AMtoit.run.toit
, I think 404 when I run this wget
commandsiyengar
04/24/2023, 10:01 AMsiyengar
04/24/2023, 10:06 AMtoit.run.toit
siyengar
04/24/2023, 10:07 AMmake clean
returns rm: missing operand
siyengar
04/24/2023, 10:08 AMsiyengar
04/24/2023, 10:11 AMnano
floitsch
04/24/2023, 10:48 AMfloitsch
04/24/2023, 10:49 AMfloitsch
04/24/2023, 10:49 AM/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
floitsch
04/24/2023, 10:51 AM/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.toit
The rest is just build-stuff.floitsch
04/24/2023, 10:52 AMerikcorry
04/24/2023, 11:41 AMsiyengar
04/24/2023, 3:28 PMsiyengar
04/24/2023, 3:29 PMfloitsch
04/24/2023, 3:29 PM/home/flo/code/opentoit
would be TOIT_PATH
.siyengar
04/24/2023, 3:29 PMtoit
commandfloitsch
04/24/2023, 3:29 PM$TOIT_PATH/build/host/sdk/bin/toit.compile
?siyengar
04/24/2023, 3:30 PMfloitsch
04/24/2023, 3:30 PM$TOIT_PATH/build/host/sdk/bin/toit.compile --version
say?siyengar
04/24/2023, 3:32 PMfloitsch
04/24/2023, 3:32 PMfloitsch
04/24/2023, 3:33 PM$TOIT_PATH/build/host/sdk/bin/toit.compile -w $TOIT_PATH/build/host/generated/toit.run.snapshot $TOIT_PATH/tools/toit.run.toit
siyengar
04/24/2023, 3:33 PMfloitsch
04/24/2023, 3:33 PMsiyengar
04/24/2023, 3:34 PMfloitsch
04/24/2023, 3:34 PM$TOIT_PATH
if you have set the variable. No need to expand it yourself.floitsch
04/24/2023, 3:34 PMsiyengar
04/24/2023, 3:36 PMsiyengar
04/24/2023, 3:37 PMtoit.run.toit
siyengar
04/24/2023, 3:37 PMfloitsch
04/24/2023, 3:37 PMsiyengar
04/24/2023, 3:37 PMfloitsch
04/24/2023, 3:38 PM$TOIT_PATH/build/host/sdk/bin/toit.run $TOIT_PATH/tools/toit.run.toit
floitsch
04/24/2023, 3:38 PMα
$TOIT_PATH/build/host/sdk/bin/toit.run $TOIT_PATH/tools/toit.run.toit
EXCEPTION error.
OUT_OF_BOUNDS
0: SmallArray_.[] <sdk>/core/collections.toit:899:5
1: main ABSOLUTE_PATH/tools/toit.run.toit:105:28
siyengar
04/24/2023, 3:43 PMtoit.run
floitsch
04/24/2023, 3:44 PMtoit.run
is built after the boot snapshot is generated.floitsch
04/24/2023, 3:45 PMfloitsch
04/24/2023, 3:59 PMfloitsch
04/24/2023, 3:59 PMpatch --dry-run -p1 < arm64.patch
, and if that looks good: patch -p1 < arm64.patch
.floitsch
04/24/2023, 4:00 PMsiyengar
04/24/2023, 4:03 PMcd
into /mbedtls/
?floitsch
04/24/2023, 4:03 PMfloitsch
04/24/2023, 4:03 PMcd $TOIT_PATH
.floitsch
04/24/2023, 4:04 PMsiyengar
04/24/2023, 4:10 PMNot a regular file: '/home/hydrologic/JagToit/toit/tools/package.lock'
Not a regular file: '/home/hydrologic/JagToit/toit/tools/toit.run.toit'
siyengar
04/24/2023, 4:14 PMfloitsch
04/24/2023, 4:29 PMstat
.siyengar
04/24/2023, 4:29 PMmake clean
btwfloitsch
04/24/2023, 4:30 PMstat /home/hydrologic/JagToit/toit/tools/toit.run.toit
floitsch
04/24/2023, 4:31 PMsiyengar
04/24/2023, 4:33 PMFile: /home/hydrologic/JagToit/toit/tools/toit.run.toit
Size: 4287 Blocks: 16 IO Block: 4096 regular file
Device: 1ah/26d Inode: 388031 Links: 1
Access: (0664/-rw-rw-r--) Uid: ( 1000/hydrologic) Gid: ( 1000/hydrologic)
Access: 2023-04-23 21:46:23.673297708 -0500
Modify: 2023-04-23 21:46:23.673297708 -0500
Change: 2023-04-23 21:46:23.673297708 -0500
Birth: 2023-04-23 21:46:23.673297708 -0500
floitsch
04/24/2023, 7:33 PMsiyengar
04/24/2023, 9:36 PMfloitsch
04/24/2023, 9:40 PMfloitsch
04/24/2023, 9:41 PMfloitsch
04/24/2023, 9:41 PMfloitsch
04/24/2023, 9:41 PMsiyengar
04/24/2023, 10:16 PMfloitsch
04/24/2023, 10:17 PMsiyengar
04/24/2023, 10:44 PMfloitsch
04/24/2023, 10:45 PMfloitsch
04/24/2023, 10:45 PMsiyengar
04/24/2023, 10:45 PMbmentink
04/24/2023, 10:48 PMbmentink
04/24/2023, 10:48 PMfloitsch
04/24/2023, 10:49 PMJAG_TOIT_REPO_PATH
set up and built Jaguar, then it should automatically use the Toit that is in JAG_TOIT_REPO_PATH
.bmentink
04/24/2023, 10:49 PMfloitsch
04/24/2023, 10:49 PMbmentink
04/24/2023, 10:50 PMmake
floitsch
04/24/2023, 10:50 PMfloitsch
04/24/2023, 10:50 PMJAG_TOIT_REPO_PATH
to it.floitsch
04/24/2023, 10:51 PMplayground
directory, and jaguar
already in it.floitsch
04/24/2023, 10:53 PMcd playground
git clone https://github.com/toitlang/toit.git
export JAG_TOIT_REPO_PATH=$PWD/toit
cd toit
git submodule update --init --recursive
third_party/esp-idf/install.sh
make
cd ../jaguar
make
bmentink
04/24/2023, 10:53 PMfloitsch
04/24/2023, 10:54 PMfloitsch
04/24/2023, 10:54 PMbmentink
04/24/2023, 10:54 PMfloitsch
04/24/2023, 10:55 PMcd $TOIT_PATH/third_party/esp-idf/components/mbedtls/mbedtls
wget https://raw.githubusercontent.com/toitlang/toit/438ab4e65213816f9ed60a72cde0cc89e374d6d7/aarch64.diff
patch -p1 < aarch64.diff
bmentink
04/24/2023, 10:55 PMbmentink
04/24/2023, 11:04 PMfloitsch
04/24/2023, 11:05 PMtoit
directory.bmentink
04/24/2023, 11:05 PMbmentink
04/24/2023, 11:06 PMfloitsch
04/24/2023, 11:06 PMbmentink
04/24/2023, 11:09 PMfloitsch
04/24/2023, 11:09 PMapt
. Now switched to just installing it in my home dir, and that seems to have worked. Just finished install the esp-idf dependencies.
I guess the next step is running a compile (which will take horribly long as the CPU is emulated).floitsch
04/24/2023, 11:09 PMbmentink
04/24/2023, 11:12 PMbmentink
04/24/2023, 11:12 PM[441/475] Generating ../generated/toit.run.snapshot
FAILED: generated/toit.run.snapshot /home/bmentink/src/toit/build/host/generated/toit.run.snapshot
cd /home/bmentink/src/toit/build/host/src && /usr/bin/cmake -E env ASAN_OPTIONS=detect_leaks=false /home/bmentink/src/toit/build/host/sdk/bin/toit.compile --dependency-file /home/bmentink/src/toit/build/host/src/boot.dep --dependency-format ninja -w /home/bmentink/src/toit/build/host/generated/toit.run.snapshot /home/bmentink/src/toit/tools/toit.run.toit && /usr/bin/cmake -E cmake_transform_depfile Ninja gccdepfile /home/bmentink/src/toit /home/bmentink/src/toit/src /home/bmentink/src/toit/build/host /home/bmentink/src/toit/build/host/src /home/bmentink/src/toit/build/host/src/boot.dep /home/bmentink/src/toit/build/host/CMakeFiles/d/03dea3e29e5c1a8315551c5d33d65a59747c8b24fcd66724fb3956f58c69957c.d
File not found: '/home/bmentink/src/toit/tools/toit.run.toit'
ninja: build stopped: subcommand failed.
make: *** [Makefile:113: tools] Error 1
make 2:15.43 user 8.611 system 537% cpu (26.796 wasted time).
floitsch
04/24/2023, 11:13 PMfloitsch
04/24/2023, 11:13 PMbmentink
04/24/2023, 11:14 PMfloitsch
04/24/2023, 11:14 PMfloitsch
04/24/2023, 11:14 PMbmentink
04/24/2023, 11:15 PMfloitsch
04/24/2023, 11:15 PMfloitsch
04/24/2023, 11:17 PMbmentink
04/24/2023, 11:17 PMfloitsch
04/24/2023, 11:18 PMfloitsch
04/24/2023, 11:18 PMbmentink
04/24/2023, 11:19 PMfloitsch
04/24/2023, 11:19 PMtoit.compile
right now.floitsch
04/24/2023, 11:19 PMfloitsch
04/24/2023, 11:19 PMbmentink
04/24/2023, 11:20 PMfloitsch
04/24/2023, 11:20 PMfloitsch
04/24/2023, 11:20 PMfloitsch
04/24/2023, 11:20 PMfloitsch
04/24/2023, 11:20 PMbmentink
04/24/2023, 11:20 PMfloitsch
04/24/2023, 11:21 PMbmentink
04/24/2023, 11:21 PMfloitsch
04/24/2023, 11:34 PMfloitsch
04/24/2023, 11:37 PMsiyengar
04/24/2023, 11:37 PMfloitsch
04/24/2023, 11:38 PMfloitsch
04/24/2023, 11:38 PMpatch -p1 < stat.patch
floitsch
04/24/2023, 11:40 PM# Go into your Toit repository. Then:
git checkout src/compiler/filesystem_local.cc
That should revert any changes to that file.
Then apply the new patch:
patch -p1 < stat.patch
You have another debug change (with Not a regular file
but that shouldn't hurt).floitsch
04/24/2023, 11:41 PMstat
call.floitsch
04/24/2023, 11:42 PMclang
and the native build system uses gcc
. And it was clang that was hitting the warnings in mbedtls.floitsch
04/24/2023, 11:43 PMstat
thing, Toit on Linux arm64 should just work.siyengar
04/24/2023, 11:46 PMmake all
workedsiyengar
04/24/2023, 11:47 PMfloitsch
04/24/2023, 11:47 PMfloitsch
04/24/2023, 11:47 PMmake
there.floitsch
04/24/2023, 11:47 PMJAG_TOIT_REPO_PATH
is set, it should start using it.floitsch
04/24/2023, 11:47 PMfloitsch
04/24/2023, 11:55 PMfloitsch
04/24/2023, 11:55 PMstat
issue), but after that it worked.floitsch
04/24/2023, 11:56 PMsiyengar
04/25/2023, 12:06 AMfailed to open 'toit.bin' for reading (INVALID_ARGUMENT)
floitsch
04/25/2023, 12:07 AMsiyengar
04/25/2023, 12:07 AMmake
on jaguarbmentink
04/25/2023, 12:08 AMfloitsch
04/25/2023, 12:08 AMfloitsch
04/25/2023, 12:08 AMfloitsch
04/25/2023, 12:09 AMfloitsch
04/25/2023, 12:11 AMtoit.bin
in the build/esp32
folder of the toit
checkout.floitsch
04/25/2023, 12:11 AMJAG_TOIT_REPO_PATH
is set, it should automatically build that, though.bmentink
04/25/2023, 12:13 AMbmentink
04/25/2023, 12:13 AMFAILED: CMakeFiles/firmware.util
cd /home/bmentink/src/toit/build/esp32 && /home/bmentink/src/toit/toolchains/idf/components/toit/../../../../build/host/sdk/bin/toit.compile -w /home/bmentink/src/toit/build/esp32/system.snapshot --project-root /home/bmentink/src/toit/toolchains/idf/components/toit/../../../../system /home/bmentink/src/toit/toolchains/idf/components/toit/../../../../system/extensions/esp32/boot.toit && cd /home/bmentink/src/toit/build/esp32 && rm -f firmware.envelope && /home/bmentink/src/toit/toolchains/idf/components/toit/../../../../build/host/sdk/tools/firmware --envelope=firmware.envelope create --bootloader.bin=bootloader/bootloader.bin --firmware.bin=toit.bin --firmware.elf=toit.elf --partitions.bin=partition_table/partition-table.bin --partitions.csv=/home/bmentink/src/toit/toolchains/esp32/partitions.csv --otadata.bin=ota_data_initial.bin --flashing.json=flasher_args.json --system.snapshot=/home/bmentink/src/toit/build/esp32/system.snapshot && echo envelope: created && cd /home/bmentink/src/toit/build/esp32 && /home/bmentink/src/toit/toolchains/idf/components/toit/../../../../build/host/sdk/tools/firmware --envelope=firmware.envelope extract --format=binary -o toit-firmware.bin && echo envelope: firmware extracted
Failed to open 'toit.bin' for reading (INVALID_ARGUMENT).
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
make[2]: *** [Makefile:239: esp32-no-env] Error 2
make[2]: Leaving directory '/home/bmentink/src/toit'
make[1]: *** [Makefile:234: esp32] Error 2
make[1]: Leaving directory '/home/bmentink/src/toit'
make: *** [Makefile:92: /home/bmentink/src/jaguar/build/sdk.build] Error 2
make 2:19.14 user 19.612 system 449% cpu (35.323 wasted time).
floitsch
04/25/2023, 12:13 AMbmentink
04/25/2023, 12:13 AMfloitsch
04/25/2023, 12:14 AMtoit.bin
in your build/esp32
folder? (toit repository)bmentink
04/25/2023, 12:15 AMfloitsch
04/25/2023, 12:18 AMfloitsch
04/25/2023, 12:20 AMfloitsch
04/25/2023, 12:20 AMpatch -p1 < primitive.patch
floitsch
04/25/2023, 12:21 AMfloitsch
04/25/2023, 12:22 AMfloitsch
04/25/2023, 12:22 AMfloitsch
04/25/2023, 12:24 AMbmentink
04/25/2023, 12:25 AMfloitsch
04/25/2023, 12:26 AMfloitsch
04/25/2023, 12:26 AMbmentink
04/25/2023, 12:26 AMfloitsch
04/25/2023, 12:26 AMbmentink
04/25/2023, 12:26 AMfloitsch
04/25/2023, 12:26 AMgit checkout src/primitive_file_posix.cc
first.floitsch
04/25/2023, 12:27 AMbmentink
04/25/2023, 12:27 AMfloitsch
04/25/2023, 12:27 AMbmentink
04/25/2023, 12:28 AMfloitsch
04/25/2023, 12:28 AMbmentink
04/25/2023, 12:29 AMfloitsch
04/25/2023, 12:29 AMfloitsch
04/25/2023, 12:29 AMexport PATH="$PWD/build:$PATH"
bmentink
04/25/2023, 12:30 AMfloitsch
04/25/2023, 12:30 AMJAG_TOIT_REPO_PATH
.floitsch
04/25/2023, 12:30 AMfloitsch
04/25/2023, 12:31 AMstat
thing tomorrow.
And I will then try to improve our AUR scripts.bmentink
04/25/2023, 12:31 AMfloitsch
04/25/2023, 12:31 AMfloitsch
04/25/2023, 12:31 AMbmentink
04/25/2023, 12:32 AMbmentink
04/25/2023, 12:43 AMgit checkout; make
in each of the toit
and jaguar
dirs?siyengar
04/25/2023, 1:03 AMneeded by 'install-dependencies'
bmentink
04/25/2023, 1:12 AMjag scan
cool .... containers install and run normal ..bmentink
04/25/2023, 2:46 AMyaourt
for the M1 and it shows:bmentink
04/25/2023, 2:46 AMyaourt -Ss jaguar
aur/jaguar-bin 1.9.20-1 (0) (0.00)
Tool to develop Toit programs for the ESP32
bmentink
04/25/2023, 2:46 AMsiyengar
04/25/2023, 3:19 AM`Project build complete. To flash, run this command:
/home/hydrologic/.espressif/python_env/idf3.2_py3.10_env/bin/python third_party/esp-idf/components/esptool_py/esptool/esptool.py -p (PORT) -b 460800 --before default_reset --after hard_reset --chip esp32 write_flash --flash_mode dio --flash_size detect --flash_freq 40m 0x1000 build/esp32/bootloader/bootloader.bin 0x8000 build/esp32/partition_table/partition-table.bin 0xd000 build/esp32/ota_data_initial.bin 0x10000 build/esp32/toit-firmware.bin
or run 'idf.py -p (PORT) flash'
make[2]: Leaving directory '/home/hydrologic/JagToit/toit'
make[1]: Nothing to be done for 'esptool'.
make[1]: Leaving directory '/home/hydrologic/JagToit/toit'
mkdir -p /home/hydrologic/JagToit/jaguar/build
echo "2023-04-25T03:10:32Z" > /home/hydrologic/JagToit/jaguar/build/sdk.build
/bin/sh: 1: cannot create /home/hydrologic/JagToit/jaguar/build/sdk.build: Permission denied
make: *** [Makefile:94: /home/hydrologic/JagToit/jaguar/build/sdk.build] Error 2
siyengar
04/25/2023, 4:00 AMsiyengar
04/25/2023, 4:01 AMbmentink
04/25/2023, 4:12 AMmake all
.. I presume you have built the toit stuff ?siyengar
04/25/2023, 4:49 AMsiyengar
04/25/2023, 4:50 AMrm -rf
the directory?siyengar
04/25/2023, 4:50 AMbmentink
04/25/2023, 4:58 AMsiyengar
04/25/2023, 5:04 AMsiyengar
04/25/2023, 5:25 AMsiyengar
04/25/2023, 7:21 AMfloitsch
04/25/2023, 7:48 AMfloitsch
04/25/2023, 7:49 AMbmentink
04/25/2023, 7:51 AMfloitsch
04/25/2023, 8:09 AMfloitsch
04/25/2023, 8:10 AMgit checkout src/compiler/
and then applying the stat
patch again.siyengar
04/25/2023, 1:54 PMjag
after that returned nothingsiyengar
04/25/2023, 1:55 PMfloitsch
04/25/2023, 1:55 PMfloitsch
04/25/2023, 1:56 PMmake
in the jaguar
repository?siyengar
04/25/2023, 1:56 PMmake
toit and make
jaguar (am I required to make
both separately?)siyengar
04/25/2023, 1:56 PMfloitsch
04/25/2023, 1:57 PMmake
in Toit.floitsch
04/25/2023, 1:57 PMjaguar
will do it for you.floitsch
04/25/2023, 1:57 PMfloitsch
04/25/2023, 1:57 PMJAG_TOIT_REPO_PATH
set.floitsch
04/25/2023, 1:57 PMjag
file in the build
directory of jaguar
.floitsch
04/25/2023, 1:58 PMbuild/jag
.floitsch
04/25/2023, 1:58 PMmake
will not install the executable. So you need to point to it.floitsch
04/25/2023, 1:58 PMjag
is not in your PATH
variable, and must thus be located via a relative or absolute path)floitsch
04/25/2023, 1:59 PMbuild
folder is not in PATH
but I hope it's clear what I meant)siyengar
04/25/2023, 2:02 PMsiyengar
04/25/2023, 2:03 PMfloitsch
04/25/2023, 2:03 PMsiyengar
04/25/2023, 2:03 PMfloitsch
04/25/2023, 2:03 PMfloitsch
04/25/2023, 2:03 PMfloitsch
04/25/2023, 2:03 PMsiyengar
04/25/2023, 2:03 PMsiyengar
04/25/2023, 4:28 PMsiyengar
04/25/2023, 4:28 PMEnter the URL of the ARM SDK (version v2.0.0-alpha.79)
floitsch
04/25/2023, 4:28 PMJAG_TOIT_REPO_PATH
is not set.siyengar
04/25/2023, 4:29 PMfloitsch
04/25/2023, 4:30 PMjag setup
?floitsch
04/25/2023, 4:30 PMJAG_TOIT_REPO_PATH
.siyengar
04/25/2023, 4:30 PMsiyengar
04/25/2023, 4:30 PM~./bashrc
?siyengar
04/25/2023, 4:30 PMfloitsch
04/25/2023, 4:31 PMPATH
and JAG_TOIT_REPO_PATH
with the correct values into your .bashrc
floitsch
04/25/2023, 4:32 PMexport JAG_TOIT_REPO_PATH=...
and export PATH=...
into a jag.env
file and then write source jag.env
.
That's equivalent to writing the lines that are in the file.floitsch
04/25/2023, 4:32 PMsiyengar
04/25/2023, 4:33 PMinit.sh
file that I'm just gonna run when I have this openfloitsch
04/25/2023, 4:33 PMsource
and not just calling it.floitsch
04/25/2023, 4:34 PMinit.sh
it won't change your current environment variables.floitsch
04/25/2023, 4:34 PMsource init.sh
(or equivalently . init.sh
) will do that.siyengar
04/25/2023, 4:34 PMfloitsch
04/25/2023, 4:35 PMmaster
.
So a future checkout of the Toit repository should compile on ARM64 without needing to apply patches.siyengar
04/25/2023, 4:35 PMsiyengar
04/25/2023, 4:35 PMjag flash
?floitsch
04/25/2023, 4:36 PMfloitsch
04/25/2023, 4:37 PMsiyengar
04/25/2023, 4:40 PMjag
command?floitsch
04/25/2023, 4:40 PMsiyengar
04/25/2023, 4:40 PMfloitsch
04/25/2023, 4:41 PMesptool
in the Toit
build: build/host/sdk/tools/esptool read_mac
siyengar
04/25/2023, 4:46 PMsiyengar
04/25/2023, 4:47 PMfloitsch
04/25/2023, 4:48 PMfloitsch
04/25/2023, 4:48 PM