-
Notifications
You must be signed in to change notification settings - Fork 114
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
boost-container build failure by using emscripten #276
Comments
Basically it uses windows code because it doesn't see pthreads. |
Sorry but the library does not support emscriptem and it's not tested in that platform. It seems that Emscriptem wronly defines "_POSIX_THREADS " as -1, since POSIX defines that meaning quite well: If a symbolic constant is defined with the value -1, the option is not supported. Headers, data types, and function interfaces required only for the option need not be supplied. An application that attempts to use anything associated only with the option is considered to be requiring an extension. |
The
doesn't add the flag, so it has to be done explicitly. The other point is that the (CMake) build behaviour is misleading: If it doesn't find POSIX threads, it immediately uses Windows code, even on non-Windows platforms. This leads to unexpected error messages which do not point to the lack of POSIX threads. |
Package: boost-container:wasm32-emscripten@1.85.0
Host Environment
vcpkg-scripts version: unknown
To Reproduce
vcpkg install
Failure logs
D:\sandbox\sandbox\toolchain\vcpkg\buildtrees\boost-container\install-wasm32-emscripten-dbg-out.log
Additional context
vcpkg.json
The text was updated successfully, but these errors were encountered: