Skip to content
This repository has been archived by the owner on Jul 1, 2023. It is now read-only.

Windows dart run wasm:setup fail #84

Closed
Joahyan opened this issue Aug 2, 2022 · 1 comment
Closed

Windows dart run wasm:setup fail #84

Joahyan opened this issue Aug 2, 2022 · 1 comment

Comments

@Joahyan
Copy link

Joahyan commented Aug 2, 2022

Result

D:\developSoftware\flutter\workspace\surnote\plugin\demo\master\flutter-quill\example> dart run wasm:setup 
Dart SDK directory: D:\developSoftware\flutter\fvm\versions\3.0.4\bin\cache\dart-sdk\
Dart SDK include directory: D:\developSoftware\flutter\fvm\versions\3.0.4\bin\cache\dart-sdk\include\
Source directory: C:\Users\joahyan\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\wasm-0.1.0+1\bin\
Output directory: D:\developSoftware\flutter\workspace\surnote\plugin\demo\master\flutter-quill\example\.dart_tool\wasm\
Target: x86_64-pc-windows-msvc
OS: windows
Output library: D:\developSoftware\flutter\workspace\surnote\plugin\demo\master\flutter-quill\example\.dart_tool\wasm\wasmer.dll

cargo build --target x86_64-pc-windows-msvc --target-dir D:\developSoftware\flutter\workspace\surnote\plugin\demo\master\flutter-quill\example\.dart_tool\wasm\ --manifest-path C:\Users\joahyan\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\wasm-0.1.0+1\bin\Cargo.toml --release

    Finished release [optimized] target(s) in 0.87s

clang -DDART_SHARED_LIB -DNDEBUG -fno-exceptions -O3 -target x86_64-pc-windows-msvc -I D:\developSoftware\flutter\fvm\versions\3.0.4\bin\cache\dart-sdk\include\ -I D:\developSoftware\flutter\workspace\surnote\plugin\demo\master\flutter-quill\example\.dart_tool\wasm\include\ -c D:\developSoftware\flutter\fvm\versions\3.0.4\bin\cache\dart-sdk\include\dart_api_dl.c -o D:\developSoftware\flutter\workspace\surnote\plugin\demo\master\flutter-quill\example\.dart_tool\wasm\dart_api_dl.o

FAILED with exit code 2 `clang -DDART_SHARED_LIB -DNDEBUG -fno-exceptions -O3 -target x86_64-pc-windows-msvc -I D:\developSoftware\flutter\fvm\versions\3.0.4\bin\cache\dart-sdk\include\ -I D:\developSoftware\flutter\workspace\surnote\plugin\demo\master\flutter-quill\example\.dart_tool\wasm\include\ -c D:\developSoftware\flutter\fvm\versions\3.0.4\bin\cache\dart-sdk\include\dart_api_dl.c -o D:\developSoftware\flutter\workspace\surnote\plugin\demo\master\flutter-quill\example\.dart_tool\wasm\dart_api_dl.o`
PS D:\developSoftware\flutter\workspace\surnote\plugin\demo\master\flutter-quill\example>
@liamappelbe
Copy link
Contributor

What happens if you try running that failing command manually? (hopefully it will give us a more useful error message)

clang -DDART_SHARED_LIB -DNDEBUG -fno-exceptions -O3 -target x86_64-pc-windows-msvc -I D:\developSoftware\flutter\fvm\versions\3.0.4\bin\cache\dart-sdk\include\ -I D:\developSoftware\flutter\workspace\surnote\plugin\demo\master\flutter-quill\example\.dart_tool\wasm\include\ -c D:\developSoftware\flutter\fvm\versions\3.0.4\bin\cache\dart-sdk\include\dart_api_dl.c -o D:\developSoftware\flutter\workspace\surnote\plugin\demo\master\flutter-quill\example\.dart_tool\wasm\dart_api_dl.o

@Joahyan Joahyan closed this as completed Aug 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants