Acton Version
0.27.0.20260520.4.7
Reproduction code
I'm making a pretty simple change, e.g. adding a bit of YANG with a transform in it and very basic matching transform code:
❯ git diff spec/
diff --git a/spec/yang/cfs/netinfra.yang b/spec/yang/cfs/netinfra.yang
index 96b1301..dfd7160 100644
--- a/spec/yang/cfs/netinfra.yang
+++ b/spec/yang/cfs/netinfra.yang
@@ -19,6 +19,27 @@ module netinfra {
container netinfra {
description "Network infrastructure";
+
+ list toaster {
+ key name;
+ sw:transform sorespo.cfs.Toaster;
+
+ leaf name {
+ type string;
+ }
+ leaf model {
+ type string;
+ }
+ leaf capacity {
+ type uint32;
+ mandatory true;
+ }
+ leaf power {
+ type uint32;
+ default 11;
+ }
+ }
+
list router {
description "Network Infrastructure Router";
key name;
Error output
I hit this error:
sorespo on main [$] via ↯ took 2s
❯ git stash apply
On branch main
Your branch is up to date with 'origin/main'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: spec/yang/cfs/netinfra.yang
modified: src/sorespo/cfs.act
no changes added to commit (use "git add" and/or "git commit -a")
sorespo on main [$!] via ↯
❯ make gen
cd spec && acton build && out/bin/sorespo_gen
Building project in /Users/klambrec/Developer/stratoweave/sorespo/spec
Resolving dependencies (fetching if missing)...
Using cached pkg dependency stratoweave (N-V-__8AAOZ-MQCWypsL-jWSw3WovwaqVzg6WOxpocDJWtK9)
Using cached pkg dependency actmf (N-V-__8AAOPnBQBxJM64VJP106YNtQtwsZUvKn0M67XJjDU0)
Using cached pkg dependency yang (N-V-__8AAIWdJQBcMvIITfAIjXOlABYsj0ErPc9V207XBdn-)
Using cached pkg dependency http_router (N-V-__8AAF2GAABmWwlSDhH21NZceGgsjqReC_DWiZKRRbAv)
Using cached pkg dependency netconf (N-V-__8AAByqAgC6Y8lDGfI-_elZBgVWe02AOKjJgivpjTnS)
Using cached pkg dependency lmdb (N-V-__8AAD_KAAAydUe3cxl7tGRnJW61GFWuemkPi0s3NsxI)
Using cached pkg dependency yang (N-V-__8AAD4mJQD9qAKKVXj86BQ6BDd8Dcv0Iy76YSdNFwGb)
Using cached zig dependency lmdb (N-V-__8AAM_uCACF9Rjiq8EBk2vbJtl6_PZgbzELqA1Sbzk2)
Using cached pkg dependency pipe (N-V-__8AALYVAACwgCtCTNCXgLmV0uBUW0ZaAF5J2epfQeBo)
Warning: dependency fingerprint 0x1292d3dcddba7a43 at /Users/klambrec/.cache/acton/deps/yang-N-V-__8AAD4mJQD9qAKKVXj86BQ6BDd8Dcv0Iy76YSdNFwGb deduplicated to /Users/klambrec/.cache/acton/deps/yang-N-V-__8AAIWdJQBcMvIITfAIjXOlABYsj0ErPc9V207XBdn-
⠧ Final compilation 0.567 s
ERROR: internal compiler error: compilation of generated Zig code failed, returned error code1
NOTE: this is likely a bug in acton, please report this at:
NOTE: https://github.com/actonlang/acton/issues/new?template=ice.yaml
NOTE: acton 0.27.0.20260520.4.7
zig stdout:
zig stderr:
Acton Project Builder - building /Users/klambrec/Developer/stratoweave/sorespo/spec
Acton Base Builder
Building in /Users/klambrec/.local/acton/base
-- filename : json.c
full_path: /Users/klambrec/.local/acton/base/out/types/json.c
dir : /Users/klambrec/.local/acton/base/out/types
file_path: /json.c
-- filename : xml.c
full_path: /Users/klambrec/.local/acton/base/out/types/xml.c
dir : /Users/klambrec/.local/acton/base/out/types
file_path: /xml.c
-- filename : diff.c
full_path: /Users/klambrec/.local/acton/base/out/types/diff.c
dir : /Users/klambrec/.local/acton/base/out/types
file_path: /diff.c
-- filename : md5.c
full_path: /Users/klambrec/.local/acton/base/out/types/crypto/hash/md5.c
dir : /Users/klambrec/.local/acton/base/out/types/crypto/hash
file_path: /crypto/hash/md5.c
-- filename : term.c
full_path: /Users/klambrec/.local/acton/base/out/types/term.c
dir : /Users/klambrec/.local/acton/base/out/types
file_path: /term.c
-- filename : process.c
full_path: /Users/klambrec/.local/acton/base/out/types/process.c
dir : /Users/klambrec/.local/acton/base/out/types
file_path: /process.c
-- filename : math.c
full_path: /Users/klambrec/.local/acton/base/out/types/math.c
dir : /Users/klambrec/.local/acton/base/out/types
file_path: /math.c
-- filename : wyhash.c
full_path: /Users/klambrec/.local/acton/base/out/types/hash/wyhash.c
dir : /Users/klambrec/.local/acton/base/out/types/hash
file_path: /hash/wyhash.c
-- filename : random.c
full_path: /Users/klambrec/.local/acton/base/out/types/random.c
dir : /Users/klambrec/.local/acton/base/out/types
file_path: /random.c
-- filename : fs.c
full_path: /Users/klambrec/.local/acton/base/out/types/fs.c
dir : /Users/klambrec/.local/acton/base/out/types
file_path: /fs.c
-- filename : qcheck.c
full_path: /Users/klambrec/.local/acton/base/out/types/qcheck.c
dir : /Users/klambrec/.local/acton/base/out/types
file_path: /qcheck.c
-- filename : __builtin__.c
full_path: /Users/klambrec/.local/acton/base/out/types/__builtin__.c
dir : /Users/klambrec/.local/acton/base/out/types
file_path: /__builtin__.c
-- filename : time.c
full_path: /Users/klambrec/.local/acton/base/out/types/time.c
dir : /Users/klambrec/.local/acton/base/out/types
file_path: /time.c
-- filename : testing.c
full_path: /Users/klambrec/.local/acton/base/out/types/testing.c
dir : /Users/klambrec/.local/acton/base/out/types
file_path: /testing.c
-- filename : argparse.c
full_path: /Users/klambrec/.local/acton/base/out/types/argparse.c
dir : /Users/klambrec/.local/acton/base/out/types
file_path: /argparse.c
-- filename : base64.c
full_path: /Users/klambrec/.local/acton/base/out/types/base64.c
dir : /Users/klambrec/.local/acton/base/out/types
file_path: /base64.c
-- filename : net.c
full_path: /Users/klambrec/.local/acton/base/out/types/net.c
dir : /Users/klambrec/.local/acton/base/out/types
file_path: /net.c
-- filename : http.c
full_path: /Users/klambrec/.local/acton/base/out/types/http.c
dir : /Users/klambrec/.local/acton/base/out/types
file_path: /http.c
-- filename : file.c
full_path: /Users/klambrec/.local/acton/base/out/types/file.c
dir : /Users/klambrec/.local/acton/base/out/types
file_path: /file.c
-- filename : re.c
full_path: /Users/klambrec/.local/acton/base/out/types/re.c
dir : /Users/klambrec/.local/acton/base/out/types
file_path: /re.c
-- filename : buildy.c
full_path: /Users/klambrec/.local/acton/base/out/types/buildy.c
dir : /Users/klambrec/.local/acton/base/out/types
file_path: /buildy.c
-- filename : uri.c
full_path: /Users/klambrec/.local/acton/base/out/types/uri.c
dir : /Users/klambrec/.local/acton/base/out/types
file_path: /uri.c
-- filename : rts.c
full_path: /Users/klambrec/.local/acton/base/out/types/acton/rts.c
dir : /Users/klambrec/.local/acton/base/out/types/acton
file_path: /acton/rts.c
-- filename : snappy.c
full_path: /Users/klambrec/.local/acton/base/out/types/snappy.c
dir : /Users/klambrec/.local/acton/base/out/types
file_path: /snappy.c
-- filename : logging.c
full_path: /Users/klambrec/.local/acton/base/out/types/logging.c
dir : /Users/klambrec/.local/acton/base/out/types
file_path: /logging.c
Debug build
Threads enabled
Acton Project Builder - building /Users/klambrec/.cache/acton/deps/actmf-N-V-__8AAOPnBQBxJM64VJP106YNtQtwsZUvKn0M67XJjDU0
Acton Project Builder - building /Users/klambrec/.cache/acton/deps/yang-N-V-__8AAIWdJQBcMvIITfAIjXOlABYsj0ErPc9V207XBdn-
Debug build
Threads enabled
info: No generated C sources; added dummy /Users/klambrec/.cache/acton/deps/actmf-N-V-__8AAOPnBQBxJM64VJP106YNtQtwsZUvKn0M67XJjDU0/out/types/acton_empty.c
Debug build
Threads enabled
Acton Project Builder - building /Users/klambrec/.cache/acton/deps/http_router-N-V-__8AAF2GAABmWwlSDhH21NZceGgsjqReC_DWiZKRRbAv
info: No generated C sources; added dummy /Users/klambrec/.cache/acton/deps/http_router-N-V-__8AAF2GAABmWwlSDhH21NZceGgsjqReC_DWiZKRRbAv/out/types/acton_empty.c
Debug build
Threads enabled
Acton Project Builder - building /Users/klambrec/.cache/acton/deps/lmdb-N-V-__8AAD_KAAAydUe3cxl7tGRnJW61GFWuemkPi0s3NsxI
info: No generated C sources; added dummy /Users/klambrec/.cache/acton/deps/lmdb-N-V-__8AAD_KAAAydUe3cxl7tGRnJW61GFWuemkPi0s3NsxI/out/types/acton_empty.c
Debug build
Threads enabled
Acton Project Builder - building /Users/klambrec/.cache/acton/deps/netconf-N-V-__8AAByqAgC6Y8lDGfI-_elZBgVWe02AOKjJgivpjTnS
Acton Project Builder - building /Users/klambrec/.cache/acton/deps/pipe-N-V-__8AALYVAACwgCtCTNCXgLmV0uBUW0ZaAF5J2epfQeBo
info: No generated C sources; added dummy /Users/klambrec/.cache/acton/deps/pipe-N-V-__8AALYVAACwgCtCTNCXgLmV0uBUW0ZaAF5J2epfQeBo/out/types/acton_empty.c
Debug build
Threads enabled
info: No generated C sources; added dummy /Users/klambrec/.cache/acton/deps/netconf-N-V-__8AAByqAgC6Y8lDGfI-_elZBgVWe02AOKjJgivpjTnS/out/types/acton_empty.c
Debug build
Threads enabled
Acton Project Builder - building /Users/klambrec/.cache/acton/deps/stratoweave-N-V-__8AAOZ-MQCWypsL-jWSw3WovwaqVzg6WOxpocDJWtK9
Acton Project Builder - building /Users/klambrec/.cache/acton/deps/actmf-N-V-__8AAOPnBQBxJM64VJP106YNtQtwsZUvKn0M67XJjDU0
Debug build
Threads enabled
Debug build
Threads enabled
Acton Project Builder - building /Users/klambrec/.cache/acton/deps/yang-N-V-__8AAIWdJQBcMvIITfAIjXOlABYsj0ErPc9V207XBdn-
info: No generated C sources; added dummy /Users/klambrec/.cache/acton/deps/yang-N-V-__8AAIWdJQBcMvIITfAIjXOlABYsj0ErPc9V207XBdn-/out/types/acton_empty.c
Debug build
Threads enabled
Debug build
Threads enabled
Building executable from: /Users/klambrec/Developer/stratoweave/sorespo/spec/out/types/sorespo_gen.root.c -> sorespo_gen
install
+- install sorespo_gen
+- compile exe sorespo_gen Debug aarch64-macos-none
+- compile lib ActonProject Debug aarch64-macos-none
+- compile lib ActonProject Debug aarch64-macos-none 1 errors
error: failed to check cache: '/Users/klambrec/.cache/acton/deps/pipe-N-V-__8AALYVAACwgCtCTNCXgLmV0uBUW0ZaAF5J2epfQeBo/out/types/acton_empty.c' file_hash FileNotFound
error: the following command failed with 1 compilation errors:
/Users/klambrec/.local/acton/zig/zig build-lib -cflags -ffile-prefix-map=/Users/klambrec/.cache/acton/deps/= -DDEV -DACTON_THREADS -fno-sanitize=signed-integer-overflow -- /Users/klambrec/.cache/acton/deps/pipe-N-V-__8AALYVAACwgCtCTNCXgLmV0uBUW0ZaAF5J2epfQeBo/out/types/acton_empty.c -ODebug -target aarch64-macos-none -mcpu apple_m1 -I /Users/klambrec/Developer/stratoweave/sorespo/spec/../../../../../../Users/klambrec/.cache/acton/deps/pipe-N-V-__8AALYVAACwgCtCTNCXgLmV0uBUW0ZaAF5J2epfQeBo/. -I /Users/klambrec/.cache/acton/zig-local-cache/o/8a65f19f8f48d53beebea513f610bf99 -Mroot -lc++ -lc --cache-dir /Users/klambrec/.cache/acton/zig-local-cache --global-cache-dir /Users/klambrec/.cache/acton/zig-global-cache --name ActonProject -static --zig-lib-dir /Users/klambrec/.local/acton/zig/lib/ --listen=-
install
+- install sorespo_gen
+- compile exe sorespo_gen Debug aarch64-macos-none
+- compile lib ActonProject Debug aarch64-macos-none
+- compile lib ActonProject Debug aarch64-macos-none 1 errors
error: failed to check cache: '/Users/klambrec/.cache/acton/deps/yang-N-V-__8AAIWdJQBcMvIITfAIjXOlABYsj0ErPc9V207XBdn-/out/types/acton_empty.c' file_hash FileNotFound
error: the following command failed with 1 compilation errors:
/Users/klambrec/.local/acton/zig/zig build-lib -cflags -ffile-prefix-map=/Users/klambrec/.cache/acton/deps/= -DDEV -DACTON_THREADS -fno-sanitize=signed-integer-overflow -- /Users/klambrec/.cache/acton/deps/yang-N-V-__8AAIWdJQBcMvIITfAIjXOlABYsj0ErPc9V207XBdn-/out/types/acton_empty.c -ODebug -target aarch64-macos-none -mcpu apple_m1 -I /Users/klambrec/Developer/stratoweave/sorespo/spec/../../../../../../Users/klambrec/.cache/acton/deps/yang-N-V-__8AAIWdJQBcMvIITfAIjXOlABYsj0ErPc9V207XBdn-/. -I /Users/klambrec/.cache/acton/zig-local-cache/o/8a65f19f8f48d53beebea513f610bf99 -Mroot -lc++ -lc --cache-dir /Users/klambrec/.cache/acton/zig-local-cache --global-cache-dir /Users/klambrec/.cache/acton/zig-global-cache --name ActonProject -static --zig-lib-dir /Users/klambrec/.local/acton/zig/lib/ --listen=-
install
+- install sorespo_gen
+- compile exe sorespo_gen Debug aarch64-macos-none
+- compile lib ActonProject Debug aarch64-macos-none
+- compile lib ActonProject Debug aarch64-macos-none
+- compile lib ActonProject Debug aarch64-macos-none 1 errors
error: failed to check cache: '/Users/klambrec/.cache/acton/deps/lmdb-N-V-__8AAD_KAAAydUe3cxl7tGRnJW61GFWuemkPi0s3NsxI/out/types/acton_empty.c' file_hash FileNotFound
error: the following command failed with 1 compilation errors:
/Users/klambrec/.local/acton/zig/zig build-lib -cflags -ffile-prefix-map=/Users/klambrec/.cache/acton/deps/= -DDEV -DACTON_THREADS -fno-sanitize=signed-integer-overflow -- /Users/klambrec/.cache/acton/deps/lmdb-N-V-__8AAD_KAAAydUe3cxl7tGRnJW61GFWuemkPi0s3NsxI/out/types/acton_empty.c -ODebug -target aarch64-macos-none -mcpu apple_m1 -I /Users/klambrec/Developer/stratoweave/sorespo/spec/../../../../../../Users/klambrec/.cache/acton/deps/lmdb-N-V-__8AAD_KAAAydUe3cxl7tGRnJW61GFWuemkPi0s3NsxI/. -I /Users/klambrec/.cache/acton/zig-local-cache/o/a0350b56b1c74f078be0916eff3c8611 -I /Users/klambrec/.cache/acton/zig-local-cache/o/8a65f19f8f48d53beebea513f610bf99 -Mroot -lc++ -lc --cache-dir /Users/klambrec/.cache/acton/zig-local-cache --global-cache-dir /Users/klambrec/.cache/acton/zig-global-cache --name ActonProject -static --zig-lib-dir /Users/klambrec/.local/acton/zig/lib/ --listen=-
install
+- install sorespo_gen
+- compile exe sorespo_gen Debug aarch64-macos-none
+- compile lib ActonProject Debug aarch64-macos-none
+- compile lib ActonProject Debug aarch64-macos-none
+- compile lib ActonProject Debug aarch64-macos-none 1 errors
error: failed to check cache: '/Users/klambrec/.cache/acton/deps/http_router-N-V-__8AAF2GAABmWwlSDhH21NZceGgsjqReC_DWiZKRRbAv/out/types/acton_empty.c' file_hash FileNotFound
error: the following command failed with 1 compilation errors:
/Users/klambrec/.local/acton/zig/zig build-lib -cflags -ffile-prefix-map=/Users/klambrec/.cache/acton/deps/= -DDEV -DACTON_THREADS -fno-sanitize=signed-integer-overflow -- /Users/klambrec/.cache/acton/deps/http_router-N-V-__8AAF2GAABmWwlSDhH21NZceGgsjqReC_DWiZKRRbAv/out/types/acton_empty.c -ODebug -target aarch64-macos-none -mcpu apple_m1 -I /Users/klambrec/Developer/stratoweave/sorespo/spec/../../../../../../Users/klambrec/.cache/acton/deps/http_router-N-V-__8AAF2GAABmWwlSDhH21NZceGgsjqReC_DWiZKRRbAv/. -I /Users/klambrec/.cache/acton/zig-local-cache/o/8a65f19f8f48d53beebea513f610bf99 -Mroot -lc++ -lc --cache-dir /Users/klambrec/.cache/acton/zig-local-cache --global-cache-dir /Users/klambrec/.cache/acton/zig-global-cache --name ActonProject -static --zig-lib-dir /Users/klambrec/.local/acton/zig/lib/ --listen=-
install
+- install sorespo_gen
+- compile exe sorespo_gen Debug aarch64-macos-none
+- compile lib ActonProject Debug aarch64-macos-none
+- compile lib ActonProject Debug aarch64-macos-none 1 errors
error: failed to check cache: '/Users/klambrec/.cache/acton/deps/actmf-N-V-__8AAOPnBQBxJM64VJP106YNtQtwsZUvKn0M67XJjDU0/out/types/acton_empty.c' file_hash FileNotFound
error: the following command failed with 1 compilation errors:
/Users/klambrec/.local/acton/zig/zig build-lib -cflags -ffile-prefix-map=/Users/klambrec/.cache/acton/deps/= -DDEV -DACTON_THREADS -fno-sanitize=signed-integer-overflow -- /Users/klambrec/.cache/acton/deps/actmf-N-V-__8AAOPnBQBxJM64VJP106YNtQtwsZUvKn0M67XJjDU0/out/types/acton_empty.c -ODebug -target aarch64-macos-none -mcpu apple_m1 -I /Users/klambrec/Developer/stratoweave/sorespo/spec/../../../../../../Users/klambrec/.cache/acton/deps/actmf-N-V-__8AAOPnBQBxJM64VJP106YNtQtwsZUvKn0M67XJjDU0/. -I /Users/klambrec/.cache/acton/zig-local-cache/o/8ad3d060d891f80b31fbda1c3023377f -I /Users/klambrec/.cache/acton/zig-local-cache/o/8a65f19f8f48d53beebea513f610bf99 -Mroot -lc++ -lc --cache-dir /Users/klambrec/.cache/acton/zig-local-cache --global-cache-dir /Users/klambrec/.cache/acton/zig-global-cache --name ActonProject -static --zig-lib-dir /Users/klambrec/.local/acton/zig/lib/ --listen=-
Build Summary: 49/61 steps succeeded; 5 failed
install transitive failure
+- install ActonProject transitive failure
| +- compile lib ActonProject Debug aarch64-macos-none transitive failure
| +- compile lib ActonProject Debug aarch64-macos-none 1 errors
| +- compile lib ActonProject Debug aarch64-macos-none 1 errors
| +- compile lib ActonProject Debug aarch64-macos-none 1 errors
| +- compile lib ActonProject Debug aarch64-macos-none transitive failure
| | +- compile lib ActonProject Debug aarch64-macos-none 1 errors
| | +- compile lib ActonProject Debug aarch64-macos-none (+3 more reused dependencies)
| +- compile lib ActonProject Debug aarch64-macos-none (+3 more reused dependencies)
| +- compile lib ActonProject Debug aarch64-macos-none transitive failure
| | +- compile lib ActonProject Debug aarch64-macos-none (+3 more reused dependencies)
| | +- compile lib ActonProject Debug aarch64-macos-none (+6 more reused dependencies)
| | +- compile lib ActonProject Debug aarch64-macos-none (+6 more reused dependencies)
| | +- compile lib ActonProject Debug aarch64-macos-none (+3 more reused dependencies)
| | +- compile lib ActonProject Debug aarch64-macos-none (+3 more reused dependencies)
| | +- compile lib ActonProject Debug aarch64-macos-none (+6 more reused dependencies)
| | +- compile lib ActonProject Debug aarch64-macos-none (+6 more reused dependencies)
| | +- compile lib ActonProject Debug aarch64-macos-none (+3 more reused dependencies)
| +- compile lib ActonProject Debug aarch64-macos-none 1 errors
| +- compile lib ActonProject Debug aarch64-macos-none (+6 more reused dependencies)
| +- compile lib ActonProject Debug aarch64-macos-none (+3 more reused dependencies)
| +- compile lib ActonProject Debug aarch64-macos-none (+6 more reused dependencies)
| +- compile lib ActonProject Debug aarch64-macos-none (+6 more reused dependencies)
| +- compile lib ActonProject Debug aarch64-macos-none (+3 more reused dependencies)
| +- compile lib ActonProject Debug aarch64-macos-none (+24 more reused dependencies)
| +- compile lib ActonProject Debug aarch64-macos-none (+3 more reused dependencies)
+- install sorespo_gen transitive failure
+- compile exe sorespo_gen Debug aarch64-macos-none transitive failure
+- compile lib ActonProject Debug aarch64-macos-none (+27 more reused dependencies)
+- compile lib ActonProject Debug aarch64-macos-none (+6 more reused dependencies)
+- compile lib ActonProject Debug aarch64-macos-none (+3 more reused dependencies)
+- compile lib ActonProject Debug aarch64-macos-none (+6 more reused dependencies)
+- compile lib ActonProject Debug aarch64-macos-none (+6 more reused dependencies)
+- compile lib ActonProject Debug aarch64-macos-none (+3 more reused dependencies)
+- compile lib ActonProject Debug aarch64-macos-none (+24 more reused dependencies)
+- compile lib ActonProject Debug aarch64-macos-none (+3 more reused dependencies)
+- compile lib ActonProject Debug aarch64-macos-none (+27 more reused dependencies)
+- compile lib ActonProject Debug aarch64-macos-none (+6 more reused dependencies)
+- compile lib ActonProject Debug aarch64-macos-none (+3 more reused dependencies)
+- compile lib ActonProject Debug aarch64-macos-none (+6 more reused dependencies)
+- compile lib ActonProject Debug aarch64-macos-none (+6 more reused dependencies)
+- compile lib ActonProject Debug aarch64-macos-none (+3 more reused dependencies)
+- compile lib ActonProject Debug aarch64-macos-none (+24 more reused dependencies)
+- compile lib ActonProject Debug aarch64-macos-none (+3 more reused dependencies)
error: the following build command failed with exit code 1:
/Users/klambrec/.cache/acton/zig-local-cache/o/f92bc6ef6649bca050115c9cf8d3913a/build /Users/klambrec/.local/acton/zig/zig /Users/klambrec/.local/acton/zig/lib /Users/klambrec/Developer/stratoweave/sorespo/spec /Users/klambrec/.cache/acton/zig-local-cache /Users/klambrec/.cache/acton/zig-global-cache --seed 0xe38271cb -Ze17751ee11c00dab --prefix /Users/klambrec/Developer/stratoweave/sorespo/spec/out --prefix-exe-dir bin -Dtarget=aarch64-macos-none -Dcpu=apple_m1 -Doptimize=Debug -Dacton_modules=out/types/sorespo_gen.c -Dacton_root_stubs=out/types/sorespo_gen.root.c
make: *** [gen] Error 1
Simply re-running gen did work and I cannot since reproduce this:
sorespo on main [$!] via ↯
❯ make gen
cd spec && acton build && out/bin/sorespo_gen
Building project in /Users/klambrec/Developer/stratoweave/sorespo/spec
Resolving dependencies (fetching if missing)...
Using cached pkg dependency stratoweave (N-V-__8AAOZ-MQCWypsL-jWSw3WovwaqVzg6WOxpocDJWtK9)
Using cached pkg dependency actmf (N-V-__8AAOPnBQBxJM64VJP106YNtQtwsZUvKn0M67XJjDU0)
Using cached pkg dependency http_router (N-V-__8AAF2GAABmWwlSDhH21NZceGgsjqReC_DWiZKRRbAv)
Using cached pkg dependency lmdb (N-V-__8AAD_KAAAydUe3cxl7tGRnJW61GFWuemkPi0s3NsxI)
Using cached pkg dependency netconf (N-V-__8AAByqAgC6Y8lDGfI-_elZBgVWe02AOKjJgivpjTnS)
Using cached pkg dependency yang (N-V-__8AAIWdJQBcMvIITfAIjXOlABYsj0ErPc9V207XBdn-)
Using cached pkg dependency yang (N-V-__8AAD4mJQD9qAKKVXj86BQ6BDd8Dcv0Iy76YSdNFwGb)
Using cached zig dependency lmdb (N-V-__8AAM_uCACF9Rjiq8EBk2vbJtl6_PZgbzELqA1Sbzk2)
Using cached pkg dependency pipe (N-V-__8AALYVAACwgCtCTNCXgLmV0uBUW0ZaAF5J2epfQeBo)
Warning: dependency fingerprint 0x1292d3dcddba7a43 at /Users/klambrec/.cache/acton/deps/yang-N-V-__8AAD4mJQD9qAKKVXj86BQ6BDd8Dcv0Iy76YSdNFwGb deduplicated to /Users/klambrec/.cache/acton/deps/yang-N-V-__8AAIWdJQBcMvIITfAIjXOlABYsj0ErPc9V207XBdn-
yang.yang.identityref Parse done 0.040 s
actmf.tmf.yang Parse done 0.047 s
yang.yang.type Parse done 0.058 s
yang.yang.xpath Parse done 0.058 s
actmf.tmf.yang Type check done 0.062 s
yang.yang.pattern Parse done 0.115 s
actmf.tmf.yang Compilation done 0.027 s
yang.yang.identityref Type check done 0.133 s
yang.yang.identityref Compilation done 0.032 s
yang.yang.xpath Type check done 0.372 s
yang.yang.type Type check done 0.394 s
yang.yang.xpath Compilation done 0.051 s
yang.yang.type Compilation done 0.076 s
yang.yang.pattern Type check done 0.859 s
yang.yang.pattern Compilation done 0.090 s
Final compilation done 2.998 s
Loading layer yang/cfs: 4 YANG models from yang/cfs... 0.002s
Loading layer yang/inter: 2 YANG models from yang/inter... 0.000s
Loading layer yang/rfs: 1 YANG models from yang/rfs... 0.000s
Loading device type CiscoIosXr_25_3_1: 229 YANG models from yang/CiscoIosXr_25_3_1... 0.123s
Loading device type JuniperCRPD_24_4R1_9: 2 YANG models from yang/JuniperCRPD_24_4R1_9... 0.010s
Loading device type NokiaSRLinux_25_3_2: 42 YANG models from yang/NokiaSRLinux_25_3_2... 0.012s
Compiling layer 0 (1/3)... 0.326s
Compiling layer 1 (2/3)... 0.048s
Compiling layer 2 (3/3)... 0.050s
Compiling device type CiscoIosXr_25_3_1 (1/3)... 15.084s
Compiling device type JuniperCRPD_24_4R1_9 (2/3)... 19.170s
Compiling device type NokiaSRLinux_25_3_2 (3/3)... 1.510s
Removing "ordered-by user" from /configuration/protocols/bgp/group/neighbor
Removing "ordered-by user" from /configuration/protocols/mpls/interface
Generating layer 3
+ Layer 3 oper adata unchanged
+ Layer 3 adata unchanged
Generating base & TTT(?) for layer 3
+ Layer 3 base unchanged
+ Layer 3 TTT(?) unchanged
+ Layer 3 loose adata unchanged
Generating layer 2
+ Layer 2 oper adata unchanged
+ Layer 2 adata unchanged
Generating base & TTT(?) for layer 2
+ Layer 2 base unchanged
+ Layer 2 TTT(?) unchanged
+ Layer 2 loose adata unchanged
Generating layer 1
+ Layer 1 oper adata unchanged
+ Layer 1 adata unchanged
Generating base & TTT(?) for layer 1
+ Layer 1 base unchanged
+ Layer 1 TTT(?) unchanged
+ Layer 1 loose adata unchanged
Generating layer 0
+ Layer 0 oper adata changed
+ Layer 0 adata changed
Generating base & TTT(?) for layer 0
+ Layer 0 base changed
+ Layer 0 TTT(?) changed
+ Layer 0 loose adata changed
Generating device type CiscoIosXr_25_3_1
+ Device type CiscoIosXr_25_3_1 oper unchanged
+ Device type CiscoIosXr_25_3_1 adata unchanged
Generating device type JuniperCRPD_24_4R1_9
+ Device type JuniperCRPD_24_4R1_9 oper unchanged
+ Device type JuniperCRPD_24_4R1_9 adata unchanged
Generating device type NokiaSRLinux_25_3_2
+ Device type NokiaSRLinux_25_3_2 oper unchanged
+ Device type NokiaSRLinux_25_3_2 adata unchanged
Generating app sysspec.act
+ App device_types.act exists
+ App sysspec.act unchanged
But related or not, each time I stash / re-apply this change, my application is re-built from scratch?
❯ make build
acton build
Building project in /Users/klambrec/Developer/stratoweave/sorespo
Resolving dependencies (fetching if missing)...
Using cached pkg dependency rtrsecrets (N-V-__8AAF81AADikVwoACiN3JNwIX_wdYSKwtlpVPb5lQeC)
Using cached pkg dependency timeseries (N-V-__8AAAUlAADyTzmyyYRoIGfFCvD_TSpxwN6w2Ig0TOH8)
Using cached pkg dependency actxcrypt (N-V-__8AADdAAAAC3lhrF1ecyI0YSjyuMqeQUaZa6PFM_e13)
Using cached zig dependency libxcrypt (N-V-__8AAHofIwCR1astPnZTfp-UKPj0DRVS5mzK3-7GEkbG)
Using cached pkg dependency stratoweave (N-V-__8AAOZ-MQCWypsL-jWSw3WovwaqVzg6WOxpocDJWtK9)
Using cached pkg dependency actmf (N-V-__8AAOPnBQBxJM64VJP106YNtQtwsZUvKn0M67XJjDU0)
Using cached pkg dependency http_router (N-V-__8AAF2GAABmWwlSDhH21NZceGgsjqReC_DWiZKRRbAv)
Using cached pkg dependency yang (N-V-__8AAIWdJQBcMvIITfAIjXOlABYsj0ErPc9V207XBdn-)
Using cached pkg dependency lmdb (N-V-__8AAD_KAAAydUe3cxl7tGRnJW61GFWuemkPi0s3NsxI)
Using cached pkg dependency netconf (N-V-__8AAByqAgC6Y8lDGfI-_elZBgVWe02AOKjJgivpjTnS)
Using cached pkg dependency yang (N-V-__8AAD4mJQD9qAKKVXj86BQ6BDd8Dcv0Iy76YSdNFwGb)
Using cached zig dependency lmdb (N-V-__8AAM_uCACF9Rjiq8EBk2vbJtl6_PZgbzELqA1Sbzk2)
Using cached pkg dependency pipe (N-V-__8AALYVAACwgCtCTNCXgLmV0uBUW0ZaAF5J2epfQeBo)
Warning: dependency fingerprint 0x1292d3dcddba7a43 at /Users/klambrec/.cache/acton/deps/yang-N-V-__8AAD4mJQD9qAKKVXj86BQ6BDd8Dcv0Iy76YSdNFwGb deduplicated to /Users/klambrec/.cache/acton/deps/yang-N-V-__8AAIWdJQBcMvIITfAIjXOlABYsj0ErPc9V207XBdn-
yang.yang.sdata Parse done 0.365 s
yang.yang.adata Parse done 0.365 s
sorespo.devices.JuniperCRPD_24_4R1_9_oper Parse done 4.648 s
sorespo.devices.JuniperCRPD_24_4R1_9 Parse done 5.973 s
yang.yang.data Parse done 5.026 s
yang.yang.xml Parse done 7.919 s
stratoweave.stratoweave.device_meta_config Parse done 1.566 s
yang.yang.gdata Parse done 9.390 s
yang.yang.json Parse done 0.013 s
sorespo.devices.NokiaSRLinux_25_3_2_oper Parse done 6.952 s
sorespo.devices.NokiaSRLinux_25_3_2 Parse done 4.275 s
sorespo.devices.CiscoIosXr_25_3_1_oper Parse done 9.233 s
lmdb.lmdb Parse done 0.095 s
actmf.tmf.cfs Parse done 0.032 s
stratoweave.stratoweave.adapters.adapter Parse done 0.132 s
sorespo.layers.y_2_oper Parse done 1.455 s
sorespo.devices.CiscoIosXr_25_3_1 Parse done 9.211 s
stratoweave.stratoweave.device Parse done 0.098 s
sorespo.layers.y_0_loose Parse done 2.020 s
sorespo.layers.y_0 Parse done 2.259 s
netconf.ssh_client Parse done 0.054 s
sorespo.layers.y_0_oper Parse done 3.553 s
pipe.pipe Parse done 0.015 s
stratoweave.stratoweave.db Parse done 0.137 s
stratoweave.stratoweave.ietf_yang_library Parse done 0.195 s
netconf.buffer Parse done 0.099 s
netconf.transport Parse done 0.043 s
actmf.tmf.tmf640 Parse done 0.337 s
netconf.fixups.base Parse done 0.007 s
sorespo.layers.y_2 Parse done 0.266 s
netconf.fixups.base Type check done 0.015 s
netconf.fixups Parse done 0.006 s
netconf.fixups.base Compilation done 0.007 s
netconf.fixups.openconfig_list_keys Parse done 0.025 s
pipe.pipe Type check done 0.114 s
sorespo.layers.y_2_loose Parse done 0.292 s
pipe.pipe Compilation done 0.059 s
stratoweave.stratoweave.ttt Parse done 0.228 s
netconf.netconf Parse done 0.183 s
stratoweave.stratoweave.ietf_restconf_monitoring Parse done 0.120 s
netconf.fixups.openconfig_list_keys Type check done 0.143 s
netconf.ssh_client Type check done 0.350 s
netconf.fixups.openconfig_list_keys Compilation done 0.013 s
netconf.fixups Type check done 0.018 s
netconf.fixups Compilation done 0.003 s
yang.yang.restconf Parse done 0.046 s
netconf.buffer Type check done 0.330 s
sorespo.layers.y_1_loose Parse done 0.170 s
sorespo.layers.y_1 Parse done 0.164 s
sorespo.layers.y_1_oper Parse done 0.308 s
http_router.http_router Parse done 0.091 s
netconf.buffer Compilation done 0.045 s
stratoweave.stratoweave.adapters.netconf Parse done 0.097 s
netconf.transport Type check done 0.123 s
sorespo.layers.base_2 Parse done 0.042 s
netconf.ssh_client Compilation done 0.152 s
sorespo.layers.y_3_loose Parse done 0.089 s
actmf.tmf.tmf633 Parse done 0.191 s
stratoweave.stratoweave.restconf Parse done 0.069 s
stratoweave.stratoweave.exception Parse done 0.023 s
timeseries.timeseries Parse done 0.077 s
stratoweave.stratoweave.exception Type check done 0.020 s
netconf.transport Compilation done 0.084 s
stratoweave.stratoweave.exception Compilation done 0.008 s
actxcrypt.xcrypt Parse done 0.154 s
sorespo.rfs Parse done 0.069 s
stratoweave.stratoweave.tmf_api Parse done 0.027 s
rtrsecrets.rtrsecrets.junos Parse done 0.087 s
rtrsecrets.rtrsecrets.cisco Parse done 0.120 s
stratoweave.stratoweave.http_server Parse done 0.041 s
sorespo.layers.base_0 Parse done 0.049 s
http_router.http_router Type check done 0.220 s
stratoweave.stratoweave.app Parse done 0.055 s
sorespo.layers.base_1 Parse done 0.041 s
sorespo.conf Parse done 0.009 s
stratoweave.stratoweave.testing Parse done 0.037 s
sorespo.conf Type check done 0.014 s
sorespo.cfs Parse done 0.025 s
sorespo.layers.y_3 Parse done 0.065 s
sorespo.conf Compilation done 0.005 s
timeseries.timeseries Type check done 0.188 s
sorespo.tmf Parse done 0.010 s
http_router.http_router Compilation done 0.065 s
sorespo.inter Parse done 0.022 s
sorespo.layers.t_1 Parse done 0.012 s
sorespo.layers.t_3 Parse done 0.006 s
sorespo.layers.t_2 Parse done 0.015 s
sorespo.layers.t_0 Parse done 0.020 s
sorespo.device_types Parse done 0.006 s
timeseries.timeseries Compilation done 0.032 s
stratoweave.stratoweave Parse done 0.012 s
rtrsecrets.rtrsecrets.junos Type check done 0.153 s
sorespo.sysspec Parse done 0.020 s
test_sorespo Parse done 0.026 s
sorespo.test_rfs Parse done 0.012 s
sorespo.layers.base_3 Parse done 0.004 s
sorespo.test_inter Parse done 0.008 s
sorespo Parse done 0.003 s
sorespo.test_prod_data Parse done 0.018 s
actxcrypt.xcrypt Type check done 0.223 s
sorespo.layers.y_3_oper Parse done 0.034 s
rtrsecrets.rtrsecrets.junos Compilation done 0.029 s
actxcrypt.xcrypt Compilation done 0.015 s
rtrsecrets.rtrsecrets.cisco Type check done 0.068 s
rtrsecrets.rtrsecrets.cisco Compilation done 0.024 s
lmdb.lmdb Type check done 1.788 s
lmdb.lmdb Compilation done 0.707 s
netconf.netconf Type check done 1.914 s
yang.yang.gdata Type check done 3.971 s
netconf.netconf Compilation done 1.228 s
actmf.tmf.cfs Type check done 0.107 s
yang.yang.sdata Type check done 0.127 s
actmf.tmf.cfs Compilation done 0.024 s
yang.yang.sdata Compilation done 0.019 s
stratoweave.stratoweave.db Type check done 0.249 s
stratoweave.stratoweave.db Compilation done 0.057 s
yang.yang.data Type check done 0.907 s
yang.yang.gdata Compilation done 1.020 s
yang.yang.data Compilation done 0.129 s
yang.yang.adata Type check done 0.170 s
yang.yang.adata Compilation done 0.012 s
yang.yang.json Type check done 0.188 s
yang.yang.json Compilation done 0.021 s
yang.yang.xml Type check done 0.381 s
yang.yang.xml Compilation done 0.104 s
actmf.tmf.tmf633 Type check done 4.264 s
actmf.tmf.tmf633 Compilation done 0.146 s
actmf.tmf.tmf640 Type check done 21.530 s
actmf.tmf.tmf640 Compilation done 0.624 s
stratoweave.stratoweave.device_meta_config Type check done 0.786 s
stratoweave.stratoweave.device_meta_config Compilation done 0.225 s
sorespo.devices.JuniperCRPD_24_4R1_9 Type check done 23.708 s
sorespo.layers.y_2_oper Type check done 2.219 s
sorespo.devices.JuniperCRPD_24_4R1_9 Compilation done 0.955 s
sorespo.layers.y_2_oper Compilation done 0.739 s
sorespo.devices.JuniperCRPD_24_4R1_9_oper Type check done 25.182 s
stratoweave.stratoweave.ietf_yang_library Type check done 1.830 s
stratoweave.stratoweave.ietf_yang_library Compilation done 0.307 s
sorespo.devices.JuniperCRPD_24_4R1_9_oper Compilation done 1.352 s
stratoweave.stratoweave.adapters.adapter Type check done 3.269 s
stratoweave.stratoweave.adapters.adapter Compilation done 0.183 s
sorespo.layers.y_2 Type check done 2.036 s
sorespo.layers.y_2 Compilation done 0.310 s
sorespo.layers.y_2_loose Type check done 1.824 s
sorespo.layers.y_2_loose Compilation done 0.342 s
stratoweave.stratoweave.ietf_restconf_monitoring Type check done 0.475 s
stratoweave.stratoweave.ietf_restconf_monitoring Compilation done 0.099 s
sorespo.layers.y_1_oper Type check done 1.483 s
sorespo.layers.y_1_oper Compilation done 0.319 s
sorespo.layers.y_1_loose Type check done 1.101 s
sorespo.layers.y_1 Type check done 0.943 s
sorespo.layers.y_1_loose Compilation done 0.264 s
sorespo.layers.y_1 Compilation done 0.265 s
sorespo.layers.y_3_loose Type check done 0.412 s
sorespo.layers.y_3_loose Compilation done 0.076 s
yang.yang.restconf Type check done 1.163 s
sorespo.layers.y_3 Type check done 0.749 s
yang.yang.restconf Compilation done 0.148 s
sorespo.layers.y_3 Compilation done 0.066 s
sorespo.layers.y_3_oper Type check done 0.532 s
sorespo.layers.y_3_oper Compilation done 0.087 s
stratoweave.stratoweave.device Type check done 4.484 s
sorespo.device_types Type check done 0.244 s
sorespo.device_types Compilation done 0.025 s
stratoweave.stratoweave.device Compilation done 2.111 s
sorespo.layers.y_0 Type check done 34.316 s
sorespo.layers.y_0_loose Type check done 31.360 s
sorespo.devices.NokiaSRLinux_25_3_2 Type check done 35.629 s
sorespo.devices.CiscoIosXr_25_3_1 Type check done 36.243 s
sorespo.devices.NokiaSRLinux_25_3_2_oper Type check done 36.373 s
sorespo.devices.NokiaSRLinux_25_3_2 Compilation done 2.116 s
sorespo.devices.CiscoIosXr_25_3_1_oper Type check done 38.300 s
sorespo.layers.y_0_oper Type check done 38.405 s
sorespo.devices.NokiaSRLinux_25_3_2_oper Compilation done 2.246 s
sorespo.devices.CiscoIosXr_25_3_1 Compilation done 2.990 s
sorespo.layers.y_0 Compilation done 5.966 s
sorespo.layers.y_0_loose Compilation done 5.707 s
sorespo.devices.CiscoIosXr_25_3_1_oper Compilation done 3.118 s
stratoweave.stratoweave.adapters.netconf Type check done 11.234 s
sorespo.layers.y_0_oper Compilation done 5.440 s
stratoweave.stratoweave.ttt Type check done 13.082 s
stratoweave.stratoweave.adapters.netconf Compilation done 2.004 s
sorespo.layers.t_3 Type check done 0.254 s
sorespo.layers.base_3 Type check done 0.282 s
sorespo.layers.t_3 Compilation done 0.290 s
sorespo.layers.base_3 Compilation done 0.277 s
sorespo.layers.base_1 Type check done 0.737 s
stratoweave.stratoweave.tmf_api Type check done 0.821 s
stratoweave.stratoweave.app Type check done 0.921 s
sorespo.layers.base_1 Compilation done 0.188 s
sorespo.layers.base_2 Type check done 0.945 s
sorespo.layers.base_2 Compilation done 0.250 s
stratoweave.stratoweave.app Compilation done 0.324 s
stratoweave.stratoweave.tmf_api Compilation done 0.449 s
sorespo.layers.base_0 Type check done 1.502 s
stratoweave.stratoweave.restconf Type check done 1.540 s
sorespo.tmf Type check done 0.251 s
sorespo.layers.base_0 Compilation done 0.321 s
sorespo.tmf Compilation done 0.161 s
stratoweave.stratoweave.restconf Compilation done 0.480 s
stratoweave.stratoweave.testing Type check done 1.432 s
stratoweave.stratoweave.testing Compilation done 0.320 s
sorespo.inter Type check done 2.260 s
sorespo.inter Compilation done 0.174 s
sorespo.layers.t_1 Type check done 0.177 s
sorespo.test_inter Type check done 0.179 s
sorespo.test_inter Compilation done 0.119 s
sorespo.layers.t_1 Compilation done 0.124 s
stratoweave.stratoweave.http_server Type check done 1.771 s
stratoweave.stratoweave Type check done 0.268 s
stratoweave.stratoweave Compilation done 0.154 s
stratoweave.stratoweave.http_server Compilation done 0.564 s
sorespo.cfs Type check done 3.858 s
sorespo.cfs Compilation done 0.142 s
sorespo.layers.t_0 Type check done 0.231 s
sorespo.layers.t_0 Compilation done 0.088 s
stratoweave.stratoweave.ttt Compilation done 6.780 s
sorespo.rfs Type check done 11.291 s
sorespo.test_rfs Type check done 0.244 s
sorespo.rfs Compilation done 0.271 s
sorespo.layers.t_2 Type check done 0.293 s
sorespo.test_rfs Compilation done 0.107 s
sorespo.layers.t_2 Compilation done 0.107 s
sorespo.sysspec Type check done 0.584 s
sorespo.sysspec Compilation done 0.233 s
sorespo Type check done 0.309 s
sorespo Compilation done 0.091 s
test_sorespo Type check done 1.323 s
test_sorespo Compilation done 0.119 s
sorespo.test_prod_data Type check done 13.166 s
sorespo.test_prod_data Compilation done 0.128 s
Final compilation done 4.414 s
sorespo on main [$!] via ↯ took 1m31s
❯
Acton Version
0.27.0.20260520.4.7
Reproduction code
I'm making a pretty simple change, e.g. adding a bit of YANG with a transform in it and very basic matching transform code:
❯ git diff spec/ diff --git a/spec/yang/cfs/netinfra.yang b/spec/yang/cfs/netinfra.yang index 96b1301..dfd7160 100644 --- a/spec/yang/cfs/netinfra.yang +++ b/spec/yang/cfs/netinfra.yang @@ -19,6 +19,27 @@ module netinfra { container netinfra { description "Network infrastructure"; + + list toaster { + key name; + sw:transform sorespo.cfs.Toaster; + + leaf name { + type string; + } + leaf model { + type string; + } + leaf capacity { + type uint32; + mandatory true; + } + leaf power { + type uint32; + default 11; + } + } + list router { description "Network Infrastructure Router"; key name;Error output
I hit this error:
Simply re-running
gendid work and I cannot since reproduce this:But related or not, each time I stash / re-apply this change, my application is re-built from scratch?