With the -S option, clang already produces human-readable LLVM assembly. So your .bc file does not actually contain bitcode, which is why llvm-dis can't read it.

lib/Bitcode/Reader/BitcodeReader.cpp Source File - LLVM

https://llvm.org/doxygen/BitcodeReader_8cpp_source.html

111 "file too small to contain bitcode header");. 112 for (unsigned C ... 149 /// Convert a string from a record into an std::string, return true on failure. 150 template ...

why I received the error "llvm-dis: Invalid bitcode signature" - Stack ...

https://stackoverflow.com/questions/29672850/why-i-received-the-error-llvm-dis-invalid-bitcode-signature

With the -S option, clang already produces human-readable LLVM assembly. So your .bc file does not actually contain bitcode, which is why ...

Failed to build with ubuntu 18.04 + llvm 11.0.0 + ispc 1.14.1 - ispc

https://www.gitmemory.com/issue/ispc/ispc/1911/731660851

Error log: -- The C compiler identification is Clang 11.0.0 -- The CXX compiler identification ... /usr/local/bin/llvm-dis: error: file too small to contain bitcode header ...

LLVM: test/Bitcode/invalid.test | Fossies

https://fossies.org/linux/llvm/test/Bitcode/invalid.test

Feb 3, 2021 ... 1 RUN: not llvm-dis -disable-output %p/Inputs/invalid-empty.bc 2>&1 ... 31 32 INVALID-EMPTY: error: file too small to contain bitcode header ...

llvm/BitcodeReader.cpp at master · llvm-mirror/llvm · GitHub

https://github.com/llvm-mirror/llvm/blob/master/lib/Bitcode/Reader/BitcodeReader.cpp

llvm/lib/Bitcode/Reader/BitcodeReader.cpp. Go to file ... static Error hasInvalidBitcodeHeader(BitstreamCursor &Stream) { ... "file too small to contain bitcode header"); ... disk. for (Function &F : *TheModule) {. if (Error Err = materialize(&F)).

Getting Started with the LLVM System — LLVM 12 documentation

https://www.llvm.org/docs/GettingStarted.html

This contains all of the tools, libraries, and header files needed to process intermediate ... Objective C, and Objective C++ code into LLVM bitcode – and from there into object files, using LLVM. ... A full build of LLVM and Clang will need around 15-20 GB of disk space. ... The symptom is an error about cyclic dependencies.

Index: cfe/trunk/include/clang/Basic/Diagnostic.h ...

https://reviews.llvm.org/D63518?download=true

bool Execute(); + llvm::Error Execute(); /// Perform any per-file post processing, deallocate ... + "file too small to contain bitcode header"); + for (unsigned C : {'B', ' C'}) + if ... error: can't skip to bit 3616 from 96 RUN: not llvm-dis -disable-output ...

armv7l Raspbian buster: fatal error: 'sys/cdefs.h' file not found · Issue ...

https://github.com/ispc/ispc/issues/1611

Dec 1, 2019 ... /home/pi/src/github.com/ispc/ispc/llvm/bin-8.0/bin/llvm-dis: error: Invalid bitcode signature ... error: file too small to contain bitcode header

FAQ — Emscripten 2.0.16 documentation

https://emscripten.org/docs/getting_started/FAQ.html

Make sure you are using the Emscripten bundled system headers. ... Make sure that you are running an optimized build (smaller builds are faster to start up). ... The first error means the linker inputs did not contain wasm32 code - that is, they ... (you will need to do llvm-dis on the bitcode stages to read them, or llvm-nm , etc.) ...

Getting Started with LLVM System

https://releases.llvm.org/3.0/docs/GettingStarted.html

Oct 17, 2011 ... This contains all of the tools, libraries, and header files needed to use the ... provides a version of GCC that compiles C and C++ code into LLVM bitcode. ... Here's the short story for getting up and running quickly with LLVM: ... The symptom is an error about cyclic dependencies. ... llvm-dis < hello.bc | less.