Skip to content

error: use of undeclared identifier 'FE_DIVBYZERO' #37

Description

@marxin

Isolated from the tramp3d benchmark:

#include <cfenv>
int main() { FE_DIVBYZERO; }
❯ clang++ --version
clang version 21.1.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
~/Programming
❯ clang++ fp.cc
❯ wasix++ --version
wasix++ version: 0.2.4
❯ wasix++ fp.cc
fp.cc:2:14: error: use of undeclared identifier 'FE_DIVBYZERO'
    2 | int main() { FE_DIVBYZERO; }
      |              ^~~~~~~~~~~~
1 error generated.
Error: Command failed with status: exit status: 1; the command was: PATH="/home/marxin/.wasixcc/binaryen/bin:/home/marxin/.local/bin:/home/marxin/.local/share/omarchy/bin:/home/marxin/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin" "/home/marxin/.wasixcc/llvm/bin/clang++" "--sysroot" "/home/marxin/.wasixcc/sysroot/sysroot" "--target=wasm32-wasi" "-c" "-matomics" "-mbulk-memory" "-mmutable-globals" "-pthread" "-mthread-model" "posix" "-fno-trapping-math" "-D_WASI_EMULATED_MMAN" "-D_WASI_EMULATED_SIGNAL" "-D_WASI_EMULATED_PROCESS_CLOCKS" "-ftls-model=local-exec" "fp.cc" "-o" "/tmp/.tmplWaTXX/fp.cc.0.o"

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