[llvm-bugs] [Bug 40471] New: wasm: emitting object file to /dev/null fails

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jan 25 15:15:40 PST 2019


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: unassignedclangbugs at nondot.org
          Reporter: alonzakai at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

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 (git at github.com:llvm-mirror/clang.git
0a4307de1174f61c465c94111f8376d3f5ed548e) (git at github.com: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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190125/8a95ab0c/attachment.html>


More information about the llvm-bugs mailing list