Git Product home page Git Product logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.