Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows: failed to run test for target Native #70

Open
mengzhuo opened this issue Nov 11, 2024 · 2 comments
Open

windows: failed to run test for target Native #70

mengzhuo opened this issue Nov 11, 2024 · 2 comments

Comments

@mengzhuo
Copy link

mengzhuo commented Nov 11, 2024

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
Copy link
Collaborator

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

@Young-Flash
Copy link
Collaborator

oops, seems x has not published after #69

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants