Skip to content

unable to do Emscripten compilation #337

@fbordeu

Description

@fbordeu

Hello, I'm tiring to compile openlibm for a pyodide (python on eb) using Emscripten.

this is my first error:

[1/257] Building C object CMakeFiles/openlibm.dir/src/e_acosf.c.o
FAILED: [code=1] CMakeFiles/openlibm.dir/src/e_acosf.c.o
/mnt/c/Users/felip/Documents/PythonLibs/Experiments/pyodide/emsdk/upstream/emscripten/emcc -Dopenlibm_EXPORTS -I/home/fbordeu/PythonLibs/Experiments/pyodide/cmakebuild/wheel/cp313-cp313-emscripten_4_0_9_wasm32/openlibm-prefix/src/openlibm -I/home/fbordeu/PythonLibs/Experiments/pyodide/cmakebuild/wheel/cp313-cp313-emscripten_4_0_9_wasm32/openlibm-prefix/src/openlibm/include -I/home/fbordeu/PythonLibs/Experiments/pyodide/cmakebuild/wheel/cp313-cp313-emscripten_4_0_9_wasm32/openlibm-prefix/src/openlibm/i387 -I/home/fbordeu/PythonLibs/Experiments/pyodide/cmakebuild/wheel/cp313-cp313-emscripten_4_0_9_wasm32/openlibm-prefix/src/openlibm/src -I/home/fbordeu/PythonLibs/Experiments/pyodide/cmakebuild/wheel/cp313-cp313-emscripten_4_0_9_wasm32/openlibm-prefix/src/openlibm/ld80 -O2 -g0 -fPIC -fwasm-exceptions -sSUPPORT_LONGJMP -I/home/fbordeu/.cache/.pyodide-xbuildenv-0.30.9/0.29.0/xbuildenv/pyodide-root/cpython/installs/python-3.13.2/include/python3.13 -O2 -g0 -fPIC -fwasm-exceptions -sSUPPORT_LONGJMP -I/home/fbordeu/.cache/.pyodide-xbuildenv-0.30.9/0.29.0/xbuildenv/pyodide-root/cpython/installs/python-3.13.2/include/python3.13 -O2 -g0 -fPIC -fwasm-exceptions -sSUPPORT_LONGJMP -I/home/fbordeu/.cache/.pyodide-xbuildenv-0.30.9/0.29.0/xbuildenv/pyodide-root/cpython/installs/python-3.13.2/include/python3.13 -O3 -DNDEBUG -fPIC -msimd128 -ffp-contract=off -fno-fast-math -fno-rounding-math -fno-math-errno -fPIC -std=c99 -fno-builtin -Wall -Wno-implicit-function-declaration -DASSEMBLER -D__BSD_VISIBLE -O3 -fno-strict-aliasing -ffp-exception-behavior=strict -march=i686 -m32 -msse2 -mfpmath=sse -MD -MT CMakeFiles/openlibm.dir/src/e_acosf.c.o -MF CMakeFiles/openlibm.dir/src/e_acosf.c.o.d -o CMakeFiles/openlibm.dir/src/e_acosf.c.o -c /home/fbordeu/PythonLibs/Experiments/pyodide/cmakebuild/wheel/cp313-cp313-emscripten_4_0_9_wasm32/openlibm-prefix/src/openlibm/src/e_acosf.c
clang: error: unsupported option '-march=' for target 'wasm32-unknown-emscripten'

and if I remove the "-march=..." I get:

"error: unknown FP unit 'sse'"

does anyone compiled openlibm using emscripten successfully?

Felipe

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions