https://bugs.llvm.org/show_bug.cgi?id=40471

            Bug ID: 40471
           Summary: wasm: emitting object file to /dev/null fails
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

emcc tests/hello_world.c -c -o /dev/null

(with WASM_OBJECT_FILES set by default) fails on the clang command,

===
fatal error: error in backend: section size does not fit in a uint32_t
clang-8: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 9.0.0 ([email protected]:llvm-mirror/clang.git
0a4307de1174f61c465c94111f8376d3f5ed548e) ([email protected]:llvm-mirror/llvm.git
74ebd8a99755a5e0e1c14001de05fc089f0ee28f)
Target: wasm32-unknown-unknown-wasm
===

Compiling natively with clang does not throw an error if the target is
/dev/null, and changing /dev/null to something else unbreaks the wasm target.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to