moonbitlang / x

experimental packages for moonbitlang/core
16 stars 10 forks source link

windows: failed to run test for target Native #70

Open mengzhuo opened 1 week ago

mengzhuo commented 1 week ago

Can't build with windows 11

moon 0.1.20241111 (e6d64e0 2024-11-11) ~\.moon\bin\moon.exe
moonc v0.1.20241111+dc2407357 ~\.moon\bin\moonc.exe
moonrun 0.1.20241111 (e6d64e0 2024-11-11) ~\.moon\bin\moonrun.exe
``` moon test --target native [============------------ ] 15/48 done, 12/14 running gen-test-driver: moonbitlang/x/time_internal_test gen-test-driver: moonbitlang/x/time_whitebox_test gen-test-driver: moonbitlang/x/time_blackbox_test gen-test-driver: moonbitlang/x/uuid_internal_test gen-test-driver: moonbitlang/x/uuid_blackbox_test build-package: moonbitlang/x/fs build-package: moonbitlang/x/json5_internal_test failed: moonc build-package -error-format json D:\Users\mzh\moonbit-coreutils\.mooncakes\moonbitlang\x\fs\fs.mbt -o D:\Users\mzh\moonbit-coreutils\.mooncakes\moonbitlang\x\target\native\debug\test\fs\fs.core -pkg moonbitlang/x/fs -std-path C:\Users\mzh\.moon\lib\core\target\native\release\bundle -i D:\Users\mzh\moonbit-coreutils\.mooncakes\moonbitlang\x\target\native\debug\test\fs\internal\ffi\ffi.mi:ffi -pkg-sources moonbitlang/x/fs:D:\Users\mzh\moonbit-coreutils\.mooncakes\moonbitlang\x\fs -target native -g Error: [4021] ╭─[D:\Users\mzh\moonbit-coreutils\.mooncakes\moonbitlang\x\fs\fs.mbt:35:3] │ 35 │ @ffi.write_string_to_file(path, content) │ ────────────┬──────────── │ ╰────────────── Value write_string_to_file not found in package "ffi". ────╯ Error: [4021] ╭─[D:\Users\mzh\moonbit-coreutils\.mooncakes\moonbitlang\x\fs\fs.mbt:45:3] │ 45 │ @ffi.write_bytes_to_file(path, content) │ ────────────┬─────────── │ ╰───────────── Value write_bytes_to_file not found in package "ffi". ────╯ Error: [4021] ╭─[D:\Users\mzh\moonbit-coreutils\.mooncakes\moonbitlang\x\fs\fs.mbt:56:3] │ 56 │ @ffi.path_exists(path) │ ────────┬─────── │ ╰───────── Value path_exists not found in package "ffi". ────╯ Error: [4021] ╭─[D:\Users\mzh\moonbit-coreutils\.mooncakes\moonbitlang\x\fs\fs.mbt:68:3] │ 68 │ @ffi.read_file_to_string(path) │ ────────────┬─────────── │ ╰───────────── Value read_file_to_string not found in package "ffi". ────╯ Error: [4021] ╭─[D:\Users\mzh\moonbit-coreutils\.mooncakes\moonbitlang\x\fs\fs.mbt:83:3] │ 83 │ @ffi.read_file_to_bytes(path) │ ───────────┬─────────── │ ╰───────────── Value read_file_to_bytes not found in package "ffi". ────╯ Error: [4021] ╭─[D:\Users\mzh\moonbit-coreutils\.mooncakes\moonbitlang\x\fs\fs.mbt:97:3] │ 97 │ @ffi.read_dir(path) │ ──────┬────── │ ╰──────── Value read_dir not found in package "ffi". ────╯ Error: [4021] ╭─[D:\Users\mzh\moonbit-coreutils\.mooncakes\moonbitlang\x\fs\fs.mbt:106:3] │ 106 │ @ffi.create_dir(path) │ ───────┬─────── │ ╰───────── Value create_dir not found in package "ffi". ─────╯ Error: [4021] ╭─[D:\Users\mzh\moonbit-coreutils\.mooncakes\moonbitlang\x\fs\fs.mbt:120:3] │ 120 │ @ffi.is_dir(path) │ ─────┬───── │ ╰─────── Value is_dir not found in package "ffi". ─────╯ Error: [4021] ╭─[D:\Users\mzh\moonbit-coreutils\.mooncakes\moonbitlang\x\fs\fs.mbt:134:3] │ 134 │ @ffi.is_file(path) │ ──────┬───── │ ╰─────── Value is_file not found in package "ffi". ─────╯ Error: [4021] ╭─[D:\Users\mzh\moonbit-coreutils\.mooncakes\moonbitlang\x\fs\fs.mbt:144:3] │ 144 │ @ffi.remove_dir(path) │ ───────┬─────── │ ╰───────── Value remove_dir not found in package "ffi". ─────╯ Error: [4021] ╭─[D:\Users\mzh\moonbit-coreutils\.mooncakes\moonbitlang\x\fs\fs.mbt:154:3] │ 154 │ @ffi.remove_file(path) │ ────────┬─────── │ ╰───────── Value remove_file not found in package "ffi". ─────╯ failed: moonc build-package -error-format json D:\Users\mzh\moonbit-coreutils\.mooncakes\moonbitlang\x\fs\fs.mbt D:\Users\mzh\moonbit-coreutils\.mooncakes\moonbitlang\x\target\native\debug\test\fs\__generated_driver_for_internal_test.mbt -o D:\Users\mzh\moonbit-coreutils\.mooncakes\moonbitlang\x\target\native\debug\test\fs\fs.internal_test.core -pkg moonbitlang/x/fs -is-main -std-path C:\Users\mzh\.moon\lib\core\target\native\release\bundle -i D:\Users\mzh\moonbit-coreutils\.mooncakes\moonbitlang\x\target\native\debug\test\fs\internal\ffi\ffi.mi:ffi -pkg-sources moonbitlang/x/fs:D:\Users\mzh\moonbit-coreutils\.mooncakes\moonbitlang\x\fs -target native -g -no-mi Error: [4021] ╭─[D:\Users\mzh\moonbit-coreutils\.mooncakes\moonbitlang\x\fs\fs.mbt:35:3] │ 35 │ @ffi.write_string_to_file(path, content) │ ────────────┬──────────── │ ╰────────────── Value write_string_to_file not found in package "ffi". ────╯ Error: [4021] ╭─[D:\Users\mzh\moonbit-coreutils\.mooncakes\moonbitlang\x\fs\fs.mbt:45:3] │ 45 │ @ffi.write_bytes_to_file(path, content) │ ────────────┬─────────── │ ╰───────────── Value write_bytes_to_file not found in package "ffi". ────╯ Error: [4021] ╭─[D:\Users\mzh\moonbit-coreutils\.mooncakes\moonbitlang\x\fs\fs.mbt:56:3] │ 56 │ @ffi.path_exists(path) │ ────────┬─────── │ ╰───────── Value path_exists not found in package "ffi". ────╯ Error: [4021] ╭─[D:\Users\mzh\moonbit-coreutils\.mooncakes\moonbitlang\x\fs\fs.mbt:68:3] │ 68 │ @ffi.read_file_to_string(path) │ ────────────┬─────────── │ ╰───────────── Value read_file_to_string not found in package "ffi". ────╯ Error: [4021] ╭─[D:\Users\mzh\moonbit-coreutils\.mooncakes\moonbitlang\x\fs\fs.mbt:83:3] │ 83 │ @ffi.read_file_to_bytes(path) │ ───────────┬─────────── │ ╰───────────── Value read_file_to_bytes not found in package "ffi". ────╯ Error: [4021] ╭─[D:\Users\mzh\moonbit-coreutils\.mooncakes\moonbitlang\x\fs\fs.mbt:97:3] │ 97 │ @ffi.read_dir(path) │ ──────┬────── │ ╰──────── Value read_dir not found in package "ffi". ────╯ Error: [4021] ╭─[D:\Users\mzh\moonbit-coreutils\.mooncakes\moonbitlang\x\fs\fs.mbt:106:3] │ 106 │ @ffi.create_dir(path) │ ───────┬─────── │ ╰───────── Value create_dir not found in package "ffi". ─────╯ Error: [4021] ╭─[D:\Users\mzh\moonbit-coreutils\.mooncakes\moonbitlang\x\fs\fs.mbt:120:3] │ 120 │ @ffi.is_dir(path) │ ─────┬───── │ ╰─────── Value is_dir not found in package "ffi". ─────╯ Error: [4021] ╭─[D:\Users\mzh\moonbit-coreutils\.mooncakes\moonbitlang\x\fs\fs.mbt:134:3] │ 134 │ @ffi.is_file(path) │ ──────┬───── │ ╰─────── Value is_file not found in package "ffi". ─────╯ Error: [4021] ╭─[D:\Users\mzh\moonbit-coreutils\.mooncakes\moonbitlang\x\fs\fs.mbt:144:3] │ 144 │ @ffi.remove_dir(path) │ ───────┬─────── │ ╰───────── Value remove_dir not found in package "ffi". ─────╯ Error: [4021] ╭─[D:\Users\mzh\moonbit-coreutils\.mooncakes\moonbitlang\x\fs\fs.mbt:154:3] │ 154 │ @ffi.remove_file(path) │ ────────┬─────── │ ╰───────── Value remove_file not found in package "ffi". ─────╯ error: failed to run test for target Native ```
Young-Flash commented 1 week ago

can't reproduce on local windows machine and ci, could you provide more detail?

Young-Flash commented 1 week ago

oops, seems x has not published after https://github.com/moonbitlang/x/pull/69

and, native io is not ready for external usage for now due to some native link flag issue (cc @Guest0x0 )