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

[gmp] build failure on wasm32-emscripten #32820

Closed
LeenHawk opened this issue Jul 29, 2023 · 4 comments
Closed

[gmp] build failure on wasm32-emscripten #32820

LeenHawk opened this issue Jul 29, 2023 · 4 comments
Labels
category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team. Stale

Comments

@LeenHawk
Copy link
Contributor

Operating system

Linux (Debian Sid WSL)

Compiler

Emscripten emcc 3.1.43

Steps to reproduce the behavior

`./vcpkg install gmp --triplet=wasm32-emscripten`

Failure logs

config-wasm32-emscripten-dbg-out.log
config-wasm32-emscripten-dbg-config.log
config-wasm32-emscripten-dbg-err.log

Additional context

build gmp with emscripten works well like below:

wget https://gmplib.org/download/gmp/gmp-6.2.1.tar.xz
tar -xf gmp-6.2.1.tar.xz
cd gmp-6.2.1
emconfigure ./configure --disable-assembly --enable-cxx --host=none --with-pic --with-readline=no --disable-silent-rules --verbose --disable-shared --enable-static
emmake make

So, I guess it failed because vcpkg use configure but not set well with emscripten env variable. (I have tried add --host=none and change enable-assembly=no in profile.cmake, it doesn't work.)

@LeenHawk LeenHawk added the category:port-bug The issue is with a library, which is something the port should already support label Jul 29, 2023
@LeenHawk LeenHawk changed the title [gmp] build failure [gmp] build failure on wasm32-emscripten Jul 29, 2023
@LeenHawk
Copy link
Contributor Author

LeenHawk commented Jul 29, 2023

I guess wasm32-emscripten setting is not same to emconfigure setting for configure project...

@LilyWangLL LilyWangLL added category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team. and removed category:port-bug The issue is with a library, which is something the port should already support labels Jul 31, 2023
@xiaozhuai
Copy link
Contributor

Reproduced on macOS with EMSDK 3.1.44

@dg0yt
Copy link
Contributor

dg0yt commented Aug 13, 2023

I'm not convinced that emconfigure adds a lot which we don't already have. But we have a vcpkg_configure_make which is known to not pass enough flags for some targets. And fixing that isn't accept yet, #31228.

Copy link

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 180 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.

@github-actions github-actions bot added the Stale label Mar 23, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team. Stale
Projects
None yet
Development

No branches or pull requests

4 participants