-
Notifications
You must be signed in to change notification settings - Fork 191
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
Wasi_sdk does'nt work with Boost::filesystem #358
Comments
I would try removing the |
Thanks
after executing this command: |
It looks like that fie ( |
yes i did, even tookout the whole wasi-sdk-17.0 folder. it turns out boost build systems ships some built in for example executing the --with-toolset=clang tells boost to use clang compiler. |
Could it be because am using an older version 17 or there anything special that must be done to boost package before compiling for wasi.
Boost was built from source with the following bash script
this is the command i ran on the cammand line
$CXX -v -fstandalone-debug -D_WASI_EMULATED_PROCESS_CLOCKS -DBOOST_DISABLE_THREADS test.cpp -o tt.wasm -fno-exceptions -I${WASI_SDK_PATH}/share/wasi-sysroot/include/boost -L${WASI_SDK_PATH}/share/wasi-sysroot/lib -lboost_filesystem -lboost_system --sysroot=${WASI_SDK_PATH}/share/wasi-sysroot
I get this error
wasm-ld: error: unknown file type: /opt/wasi-sdk-17.0/share/wasi-sysroot/lib/libboost_filesystem.a(operations.o)
looking at the error it seems
libboost_filesystem.a
built wasn;t compatable with WASI, is there any way this can be fixed?The text was updated successfully, but these errors were encountered: