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

Configure fails for emscripten/wasm build with 3.2.0-rc1 #2247

Open
oscarbenjamin opened this issue Mar 6, 2025 · 0 comments
Open

Configure fails for emscripten/wasm build with 3.2.0-rc1 #2247

oscarbenjamin opened this issue Mar 6, 2025 · 0 comments
Labels

Comments

@oscarbenjamin
Copy link
Contributor

Building FLINT for wasm fails with 3.2.0-rc1 although it previously worked for 3.1. The build fails to configure with:

checking if system can use FLINT's fft_small module... no
configure: WARNING: Currently no assembly available for 32-bit systems. Disabling assembly...
checking how to switch to text section... .text
configure: error: Cannot determine label suffix
emconfigure: error: './configure --disable-dependency-tracking --disable-shared --prefix=/home/runner/work/python-flint/python-flint/wasm-library-dir --with-gmp=/home/runner/work/python-flint/python-flint/wasm-library-dir --with-mpfr=/home/runner/work/python-flint/python-flint/wasm-library-dir' failed (returned 1)
checking for assembler label suffix... 

The configure script tries to determine the label suffix for assembly code but the assembly code cannot be used on wasm as it is only for x86_64 and arm64. I guess ideally configure would fall back on not using assembly here rather than erroring out.

To reproduce this first install emscripten (e.g.. sudo apt-get install emscripten) and then build GMP, MPFR and FLINT but using emconfigure and emmake instead of ./configure and make. I haven't actually tested these steps myself but you can see the commands in the CI job at https://github.com/flintlib/python-flint/pull/262/files.

This comes from flintlib/python-flint#262 (comment) which is trying to build python-flint with the latest version of FLINT to run in the browser.

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

No branches or pull requests

1 participant