I have just started learning zig. When I tried to learn async/await, I got the error below:
carlhung@orangepi5:~/externalDisk/projects/zigProjects/playground$ /home/carlhung/zig-linux-aarch64-0.13.0/zig build run
run
└─ run playground
└─ install
└─ install playground
└─ zig build-exe playground Debug native 1 errors
src/main.zig:24:12: error: async has not been implemented in the self-hosted compiler yet
frame: anyframe,
^~~~~~~~
error: the following command failed with 1 compilation errors:
/home/carlhung/zig-linux-aarch64-0.13.0/zig build-exe -ODebug -Mroot=/home/carlhung/externalDisk/projects/zigProjects/playground/src/main.zig --cache-dir /home/carlhung/externalDisk/projects/zigProjects/playground/.zig-cache --global-cache-dir /home/carlhung/.cache/zig --name playground --listen=-
Build Summary: 2/7 steps succeeded; 1 failed (disable with --summary none)
run transitive failure
└─ run playground transitive failure
├─ zig build-exe playground Debug native 1 errors
└─ install transitive failure
└─ install playground transitive failure
└─ zig build-exe playground Debug native (reused)
error: the following build command failed with exit code 1:
/home/carlhung/externalDisk/projects/zigProjects/playground/.zig-cache/o/7d48377dd31240794169e97adf718a28/build /home/carlhung/zig-linux-aarch64-0.13.0/zig /home/carlhung/externalDisk/projects/zigProjects/playground /home/carlhung/externalDisk/projects/zigProjects/playground/.zig-cache /home/carlhung/.cache/zig --seed 0x1369ce92 -Z2a9ce52a4416686f run
I checked the version of zig:
$ zig version
0.13.0
my device:
$ cat /etc/os-release
PRETTY_NAME="Armbian 24.11.3 bookworm"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.armbian.com"
SUPPORT_URL="https://forum.armbian.com"
BUG_REPORT_URL="https://www.armbian.com/bugs"
ARMBIAN_PRETTY_NAME="Armbian 24.11.3 bookworm"