Comments (4)
I can confirm this, I get exactly the same error...
The bugtracker seems pretty dead though
Original comment by [email protected]
on 1 Jan 2011 at 12:35
from llvm-lua.
It seems that the embed LLVM bitcode containing the main loop for standalone
applications is generated at compile time with the bin2c util (included in
llvm-lua) into liblua_main_bc.h. The magic number of LLVM IR bitcode is 'BC'
(0xC0DE) and liblua_main_bc.h does not contain a valid bitcode signature
(lua_vm_ops_bc.h has a valid signature and contains 0xC0DE).
Looking in the build dir I found liblua_main.bc and liblua_main.bc.bc. The
first one contains a shell script and the other is the correct file with LLVM
IR bitcode. liblua_main_bc.h is the dump from the shell script and that's the
reason why we get the 'Invalid bitcode signature' error.
This seems to be an error in the CMake file configuration that generates
incorrect files for LLVM bitcode.
Kind regards,
Christophe
Original comment by [email protected]
on 9 Jan 2011 at 3:00
from llvm-lua.
Thanks for debugging this. The problem is with llvm-ld which was the default
command tool used by llvm-lua's CMake files to link multiple LLVM bitcodes into
one bitcode.
You can change the LLVM_LD variable with this command:
cmake . -D LLVM_LD=llvm-link
I have changed the default value for that variable and commited the change.
Original comment by [email protected]
on 9 Jan 2011 at 3:30
- Changed state: Fixed
from llvm-lua.
sorry that command should be:
cmake -DLLVM_LD=llvm-link .
Original comment by [email protected]
on 9 Jan 2011 at 3:33
from llvm-lua.
Related Issues (19)
- can't compile with g++ HOT 3
- llvm-lua 1.3.0 fails to compile to native machine code HOT 7
- llvm-lua compilation in Ubuntu HOT 1
- make fails HOT 2
- Patch for /llvm-lua/CMakeLists.txt: Rename lua libraries to llvm-lua_nojit HOT 2
- Patch for /llvm-lua/CMakeLists.txt: Rename lua libraries to llvm-lua_nojit HOT 3
- LLVM 3.1 support HOT 9
- [PATCH] General cleanup and small changes HOT 2
- Make error : make: *** [ llvm-lua_binary ] Error 2 HOT 11
- The built llvm-lua.exe on Windows is broken.
- llvm lua 1.1.0 pre2 compile problems on Mac OS X Leopard HOT 2
- Mac OS X Framework compilation fails on Leopard HOT 11
- Use llvm::raw_fd_ostream instead of std::ofstream HOT 4
- Abort when running llvm-lua on llvm-lua/tests/coroutine.lua HOT 2
- How can I compile lua-llvm for iPhone development HOT 2
- [deleted issue]
- Performance Benchmarks HOT 2
- /usr/bin/ld: cannot find -lffi (64bit linux) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from llvm-lua.