Coder Social home page Coder Social logo

llvm-lua's People

Contributors

devurandom avatar neopallium avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

llvm-lua's Issues

Mac OS X Framework compilation fails on Leopard

What steps will reproduce the problem?
1. open a console
2. get the latest SVN sources (with the cmake fix)
3. enter the directory
4. type 'cmake .'
5. type 'make'

What is the expected output? What do you see instead?
The compilation of the Framework fails at link time, complaining about
undefined symbols (see attached file for details). 


What version of the product are you using? On what operating system?
Latest SVN sources (revision 112) on Mac OS X Leopard.

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 16 Nov 2009 at 12:18

Attachments:

Compiling on Mac OS X not working

I am not sure if may I misunderstood something, as I don't do this often, but when I try compiling cmake works, but when I try calling make is fatally errors. The error it gives is below.

[  3%] Built target bin2c
[  5%] Building CXX object build/CMakeFiles/llvm-lua_dynamic.dir/LLVMCompiler.o
/Users/coderboy14/Desktop/tests/tools/llvm-lua/llvm-lua/LLVMCompiler.cpp:25:10: fatal error: 'llvm/LLVMContext.h' file not found
#include "llvm/LLVMContext.h"
         ^~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [build/CMakeFiles/llvm-lua_dynamic.dir/LLVMCompiler.o] Error 1
make[1]: *** [build/CMakeFiles/llvm-lua_dynamic.dir/all] Error 2
make: *** [all] Error 2

I installed cmake via home-brew, and as I said, that works. This doesn't however. I am trying to Debug build type, hoping it would give more information, but alas, it didn't.

llvm-lua compilation in Ubuntu

I was trying to compile llvm-lua in Ubuntu 10.10 and got these errors:
/home/christophe/Downloads/llvm_lua-1.3.1/llvm-lua/llvm-lua.cpp: In function 
‘void print_version()’:
/home/christophe/Downloads/llvm_lua-1.3.1/llvm-lua/llvm-lua.cpp:68: error: 
‘printf’ was not declared in this scope
make[2]: *** [build/CMakeFiles/llvm-lua_binary.dir/llvm-lua.o] Error 1
make[1]: *** [build/CMakeFiles/llvm-lua_binary.dir/all] Error 2
make: *** [all] Error 2
(...)
home/christophe/Downloads/llvm_lua-1.3.1/llvm-lua/llvm-luac.cpp: In function 
‘void print_version()’:
/home/christophe/Downloads/llvm_lua-1.3.1/llvm-lua/llvm-luac.cpp:95: error: 
‘printf’ was not declared in this scope
make[2]: *** [build/CMakeFiles/llvm-luac.dir/llvm-luac.o] Error 1
make[1]: *** [build/CMakeFiles/llvm-luac.dir/all] Error 2
make: *** [all] Error 2

To fix this I added '#include <stdio.h>' at the beginning of llvm-lua.cpp and 
llvm-luac.cpp.

Is this the proper way to fix this? Should I pass a configuration to cmake to 
avoid these errors?

Kind regards,

Christophe

Original issue reported on code.google.com by [email protected] on 16 Dec 2010 at 3:54

llvm-lua 1.3.0 fails to compile to native machine code

What steps will reproduce the problem?
1. lua-compiler hello.lua

What is the expected output? What do you see instead?

$ lua-compiler hello.lua 
/usr/bin/lua-compiler: line 5: realpath: command not found
dirname: missing operand
Try `dirname --help' for more information.
/usr/bin/llvm-luac -O3 -s -bc -o hello.bc hello.lua
Two passes with the same argument (-preverify) attempted to be registered!
UNREACHABLE executed!
/usr/bin/lua-compiler: line 40: 28376 Aborted                 $CMD "$@"
llvm-luac: failed to compile Lua code into LLVM bitcode.

What version of the product are you using? On what operating system?

LLVM-lua 1.3.0, LLVM 2.8, Slackware 13.1



Original issue reported on code.google.com by [email protected] on 26 Oct 2010 at 12:21

LLVM 3.1 support

llvm-lua-1.3.1 does not compile with llvm-3.1 - it would be nice if that could 
be supported.

(Only one version of llvm can be installed at the same time on Gentoo. Mesa 8.0 
requires llvm-3.1 or newer, so that version is used.)

Original issue reported on code.google.com by [email protected] on 31 May 2012 at 6:28

The built llvm-lua.exe on Windows is broken.

What steps will reproduce the problem?
  1. Fresh clean build of llvm from source
  2. Fresh clean build of clang-3.1 from source
  3. Build llvm-lua from trunk using above dependencies
  4. Run the produced "llvm-lua.exe -O0"

What is the expected output? What do you see instead?

  Running "llvm-lua.exe -O0" produces the following:

    $ llvm-lua -O0
    Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
    > f = 1
    LLVM ERROR: Program used external function 'luaV_settable' which could not be re
    solved!
    Stack dump:
    0.      Running pass 'X86 Machine Code Emitter' on function '@vm_OP_SETGLOBAL'


What version of the product are you using? On what operating system?

  Built llvm-lua from latest trunk with CMake under Windows 7 64-bit using Mingw gcc 4.6.3 + MSYS, clang-3.1 as bitcode emitter.

Please provide any additional information below.

It seems like there is something wrong with how llvm-lua's build is setup. 
There are various problems when it tries to piece itself together during build. 
For example, if you try to build it with just lua-dynamic then the linking step 
fails with unresolved symbols to lua functions that should be private to lua's 
internal implementation.

The above error is coming from a llvm-lua.exe linked with lua-static. Again, we 
see here that it cannot resolve yet another internal lua function 
`luaV_settable`.

Furthermore, running the interpreter without the `-O0` switch would outright 
crash when it attempts to evaluate any lua statements:

    $ llvm-lua
    Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
    > print 'test'
    pseudo instructions should be removed before code emission
    UNREACHABLE executed at g:/OSS/llvm.src3.1/lib/Target/X86/X86CodeEmitter.cpp:736!

    This application has requested the Runtime to terminate it in an unusual way.
    Please contact the application's support team for more information.

I'm not sure why this is happening but there seems to be a common theme that 
surrounds all these errors. Namely, all those problems seem to point back to 
x86 machine code emitter in llvm.

I am unfamiliar the llvm framework so I can't really diagnose this problem 
further. If there's any other piece of info you need me to provide please let 
me know.

Original issue reported on code.google.com by [email protected] on 20 Sep 2013 at 8:56

llvm lua 1.1.0 pre2 compile problems on Mac OS X Leopard

What steps will reproduce the problem?
1. Install cmake-2.8.0-Darwin-universal.dmg
2. Install llvm-2.6-i386-darwin9.tar.gz
3. Open a console
4. Uncompress llvm_lua-1.1.0_pre2.tar.gz
5. Enter the llvm_lua-1.1.0_pre2 directory
6. Type "cmake ."

What is the expected output? What do you see instead?

cmake .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found Curses: /usr/lib/libcurses.dylib
CMake Error at llvm-lua/CMakeLists.txt:268 (install):
  install TARGETS given target "llvm-lua" which does not exist in this
  directory.


CMake Warning (dev) at CMakeLists.txt:292 (add_subdirectory):
  The source directory

    /Users/NiCoX/Desktop/LUA_LLVM/llvm-lua-read-only/test

  does not contain a CMakeLists.txt file.

  CMake does not support this case but it used to work accidentally and is
  being allowed for compatibility.

  Policy CMP0014 is not set: Input directories must have CMakeLists.txt.  Run
  "cmake --help-policy CMP0014" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!


What version of the product are you using? On what operating system?
llvm lua 1.1.0 pre2 on Mac OS X Leopard

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 15 Nov 2009 at 1:58

can't compile with g++

On Ubuntu 9.04, with gcc/g++ 4.3.3, 
the compilation fails with the following message :

$ make linux
cd llvm-lua && make linux
make[1]: Entering directory `/home/user/checkout/llvm-lua-0.5/llvm-lua'
make all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-rdynamic -Wl,-E -ldl "
make[2]: Entering directory `/home/user/checkout/llvm-lua-0.5/llvm-lua'
g++ -c -I../src -O3 -fomit-frame-pointer -pipe -Wall -DLUA_NODEBUG
-DUSE_BITCODE_FILE -DLUA_USE_LINUX  `llvm-config --cppflags` -o
load_vm_ops.o load_vm_ops.cpp
load_vm_ops.cpp: In function ‘llvm::ModuleProvider* load_vm_ops(bool)’:
load_vm_ops.cpp:74: error: ‘exit’ was not declared in this scope
load_vm_ops.cpp:84: error: ‘exit’ was not declared in this scope
load_vm_ops.cpp:91: error: ‘exit’ was not declared in this scope
make[2]: *** [load_vm_ops.o] Error 1


Original issue reported on code.google.com by [email protected] on 15 May 2009 at 5:28

How can I compile lua-llvm for iPhone development

I know there is a Wiki entry how to cross-compile lua-llvm for arm target. 
But I'm struggling with several parameters for CMAKE to compile it correctly. 

CROSS_CPU=arm1136j-s  <- is this correct for iPhone?
CROSS_ISYSTEM=/path/to/arm-target/system/includes <- any advice to a concret 
path on MAC 
OS X (10.5) ?
CROSS_TRIPLE=arm-linux

What version of the product are you using? On what operating system?

Using lua-llvm 1.1.0 release, on MAC OS X 10.5.8

I would appreciate any advice.

Volker


Original issue reported on code.google.com by [email protected] on 5 Jan 2010 at 12:55

/usr/bin/ld: cannot find -lffi (64bit linux)

I do have llvm and clang, and it's satisfied when running cmake - but the 
make itself fails:

vadi@vadi-laptop:~/Programs/llvm_lua-1.2.0$ cd build
vadi@vadi-laptop:~/Programs/llvm_lua-1.2.0/build$ cmake .. -
DCMAKE_BUILD_TYPE=Release
llvm jit libs: -lLLVMipo -lLLVMBitWriter -lLLVMLinker -lLLVMArchive -
lLLVMBitReader -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMMCParser -
lLLVMX86AsmPrinter -lLLVMX86CodeGen -lLLVMSelectionDAG -lLLVMAsmPrinter -
lLLVMX86Info -lLLVMJIT -lLLVMExecutionEngine -lLLVMCodeGen -lLLVMScalarOpts 
-lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -
lLLVMTarget -lLLVMMC -lLLVMCore -lLLVMSupport -lLLVMSystem -
L/usr/lib/llvm/lib
llvm all libs: -lLLVMXCoreCodeGen -lLLVMXCoreAsmPrinter -lLLVMXCoreInfo -
lLLVMSystemZCodeGen -lLLVMSystemZAsmPrinter -lLLVMSystemZInfo -
lLLVMSparcCodeGen -lLLVMSparcAsmPrinter -lLLVMSparcInfo -
lLLVMPowerPCCodeGen -lLLVMPowerPCAsmPrinter -lLLVMPowerPCInfo -
lLLVMpic16passes -lLLVMPIC16AsmPrinter -lLLVMPIC16CodeGen -lLLVMPIC16Info -
lLLVMMSP430CodeGen -lLLVMMSP430AsmPrinter -lLLVMMSP430Info -lLLVMMSIL -
lLLVMMSILInfo -lLLVMMipsAsmPrinter -lLLVMMipsCodeGen -lLLVMMipsInfo -
lLLVMMBlazeAsmPrinter -lLLVMMBlazeCodeGen -lLLVMMBlazeInfo -lLLVMLinker -
lLLVMipo -lLLVMInterpreter -lLLVMInstrumentation -lLLVMJIT -
lLLVMExecutionEngine -lLLVMCppBackend -lLLVMCppBackendInfo -
lLLVMCellSPUCodeGen -lLLVMCellSPUAsmPrinter -lLLVMCellSPUInfo -
lLLVMCBackend -lLLVMCBackendInfo -lLLVMBlackfinCodeGen -
lLLVMBlackfinAsmPrinter -lLLVMBlackfinInfo -lLLVMBitWriter -
lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86AsmPrinter -
lLLVMX86CodeGen -lLLVMX86Info -lLLVMAsmParser -lLLVMARMAsmParser -
lLLVMMCParser -lLLVMARMAsmPrinter -lLLVMARMCodeGen -lLLVMARMInfo -
lLLVMArchive -lLLVMBitReader -lLLVMAlphaCodeGen -lLLVMSelectionDAG -
lLLVMAlphaAsmPrinter -lLLVMAsmPrinter -lLLVMCodeGen -lLLVMScalarOpts -
lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget 
-lLLVMMC -lLLVMCore -lLLVMAlphaInfo -lLLVMSupport -lLLVMSystem -
L/usr/lib/llvm/lib
-- Configuring done
-- Generating done
-- Build files have been written to: /home/vadi/Programs/llvm_lua-1.2.0
vadi@vadi-laptop:~/Programs/llvm_lua-1.2.0/build$ make
[  2%] Building C object build/CMakeFiles/bin2c.dir/bin2c.o
Linking C executable bin2c
[  2%] Built target bin2c
[  4%] Generating lua_vm_ops_bc.h
Scanning dependencies of target llvm-lua_dynamic
[  6%] Building C object build/CMakeFiles/llvm-
lua_dynamic.dir/lua_interpreter.o
[  8%] Building CXX object build/CMakeFiles/llvm-
lua_dynamic.dir/LLVMCompiler.o
[ 10%] Building CXX object build/CMakeFiles/llvm-
lua_dynamic.dir/llvm_compiler.o
[ 12%] Building CXX object build/CMakeFiles/llvm-
lua_dynamic.dir/load_embedded_bc.o
[ 14%] Building CXX object build/CMakeFiles/llvm-
lua_dynamic.dir/load_vm_ops.o
[ 16%] Building C object build/CMakeFiles/llvm-lua_dynamic.dir/lua_core.o
[ 18%] Building C object build/CMakeFiles/llvm-
lua_dynamic.dir/lua_vm_ops_static.o
[ 20%] Building C object build/CMakeFiles/llvm-
lua_dynamic.dir/load_jit_proto.o
Linking CXX shared library libllvm-lua.so
[ 22%] Built target llvm-lua_dynamic
[ 25%] Building CXX object build/CMakeFiles/llvm-lua_binary.dir/llvm-lua.o
[ 27%] Building C object build/CMakeFiles/llvm-
lua_binary.dir/lua_interpreter.o
Linking CXX executable llvm-lua
/usr/bin/ld: cannot find -lffi
collect2: ld returned 1 exit status
make[2]: *** [build/llvm-lua] Error 1
make[1]: *** [build/CMakeFiles/llvm-lua_binary.dir/all] Error 2
make: *** [all] Error 2
vadi@vadi-laptop:~/Programs/llvm_lua-1.2.0/build$ 

Original issue reported on code.google.com by [email protected] on 27 May 2010 at 12:58

Errors generating LLVM bitcode with llvm-luac.exe -bc

Hi, generating LLVM bitcode leads to the following errors:

C:\Users\User\Documents\Visual Studio 2015\Projects\llvm-lua\Debug>"C:\Users\User\Documents\Visual Studio 2015\Projects\llvm-lua\Debug\llvm-luac.exe" -bc "C:\Users\User\Documents\Visual Studio 2015\Projects\llvm-lua\llvm-luac\tests\nums.lua"
Stack dump:
0.      Program arguments: C:\Users\User\Documents\Visual Studio 2015\Projects\llvm-lua\Debug\llvm-luac.exe -bc C:\Users\User\Documents\Visual Studio 2015\Projects\llvm-lua\llvm-luac\tests\nums.lua
0x00F35A96 (0xCD1BC0A1 0x0093EB60 0x0093ECCC 0x006FF000), LLVMCompiler::getModule() + 0x26 bytes(s), c:\Users\User\documents\visual studio 2015\projects\llvm-lua\llvm-luac\llvmcompiler.h, line 158 + 0x3 byte(s)
0x00F316B1 (0xFDFDFDFD 0x0093ECC0 0x0093ECCC 0x006FF000), LLVMDumper::LLVMDumper() + 0x71 bytes(s), c:\Users\User\documents\visual studio 2015\projects\llvm-lua\llvm-luac\llvmdumper.cpp, line 66 + 0xA byte(s)
0x00F367F5 (0x01E250B4 0x00CDF578 0x00CE1270 0x00000000), llvm_dumper_dump() + 0x55 bytes(s), c:\Users\User\documents\visual studio 2015\projects\llvm-lua\llvm-luac\llvm_dumper.cpp, line 35 + 0x28 byte(s)
0x00F4B41E (0x00CDF578 0x0093EECC 0x0093EDD4 0x006FF000), pmain() + 0x37E bytes(s), c:\Users\User\documents\visual studio 2015\projects\llvm-lua\llvm-luac\lua_compiler.c, line 272 + 0x19 byte(s)
0x00EF81C7 (0x00CDF578 0x00CE1CB0 0x00000000 0x0093EFB0), luaD_precall_c() + 0xD7 bytes(s), c:\Users\User\documents\visual studio 2015\projects\llvm-lua\llvm-luac\ldo.c, line 333 + 0x16 byte(s)
0x00EF80A3 (0x00CDF578 0x00CE1CB0 0x00000000 0x0093F0D8), luaD_precall() + 0xC3 bytes(s), c:\Users\User\documents\visual studio 2015\projects\llvm-lua\llvm-luac\ldo.c, line 355 + 0x16 byte(s)
0x00EF7B2D (0x00CDF578 0x00CE1CB0 0x00000000 0x0093F208), luaD_call() + 0x9D bytes(s), c:\Users\User\documents\visual studio 2015\projects\llvm-lua\llvm-luac\ldo.c, line 409 + 0x11 byte(s)
0x00EE9BD5 (0x00CDF578 0x0093F428 0x0093F330 0x0093F54C), f_Ccall() + 0xC5 bytes(s), c:\Users\User\documents\visual studio 2015\projects\llvm-lua\llvm-luac\lapi.c, line 849 + 0x15 byte(s)
0x00EF8510 (0x00CDF578 0x00EE9B10 0x0093F428 0x0093F434), luaD_rawrunprotected() + 0x60 bytes(s), c:\Users\User\documents\visual studio 2015\projects\llvm-lua\llvm-luac\ldo.c, line 120 + 0x1F byte(s)
0x00EF7DD4 (0x00CDF578 0x00EE9B10 0x0093F428 0x00000010), luaD_pcall() + 0x64 bytes(s), c:\Users\User\documents\visual studio 2015\projects\llvm-lua\llvm-luac\ldo.c, line 490 + 0x11 byte(s)
0x00EEA10B (0x00CDF578 0x00F4B0A0 0x0093F524 0x0093F934), lua_cpcall() + 0x4B bytes(s), c:\Users\User\documents\visual studio 2015\projects\llvm-lua\llvm-luac\lapi.c, line 859 + 0x21 byte(s)
0x00F4B032 (0x00000001 0x00CE9460 0xCD1BD3A9 0x018F7D00), luac_main() + 0x92 bytes(s), c:\Users\User\documents\visual studio 2015\projects\llvm-lua\llvm-luac\lua_compiler.c, line 297 + 0x12 byte(s)
0x00F17000 (0x00000003 0x00CDC350 0x00CEEDF0 0x0093F9AC), main() + 0x730 bytes(s), c:\Users\User\documents\visual studio 2015\projects\llvm-lua\llvm-luac\llvm-luac.cpp, line 174 + 0x10 byte(s)
0x018F7CEE (0xCD1BD345 0x018F7D00 0x018F7D00 0x006FF000), invoke_main() + 0x1E bytes(s), f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl, line 74 + 0x1B byte(s)
0x018F7BBA (0x0093F9BC 0x018F7D08 0x0093F9D0 0x76D862C4), __scrt_common_main_seh() + 0x15A bytes(s), f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl, line 264 + 0x5 byte(s)
0x018F7A5D (0x0093F9D0 0x76D862C4 0x006FF000 0x76D862A0), __scrt_common_main() + 0xD bytes(s), f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl, line 309
0x018F7D08 (0x006FF000 0x76D862A0 0xBA1BB745 0x0093FA18), mainCRTStartup() + 0x8 bytes(s), f:\dd\vctools\crt\vcstartup\src\startup\exe_main.cpp, line 17
0x76D862C4 (0x006FF000 0xBB478C7F 0x00000000 0x00000000), BaseThreadInitThunk() + 0x24 bytes(s)
0x77B30FD9 (0xFFFFFFFF 0x77B52EF9 0x00000000 0x00000000), RtlSubscribeWnfStateChangeNotification() + 0x439 bytes(s)
0x77B30FA4 (0x018F7D00 0x006FF000 0x00000000 0x00000000), RtlSubscribeWnfStateChangeNotification() + 0x404 bytes(s)

Is there a solution to this problem?

make fails

What steps will reproduce the problem?
1. mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release &&  make 

Here's the complete log of my actions:

mkdir build
Valerios-iMac% cd build 
Valerios-iMac% less ../README.llvm-lua 
Valerios-iMac% ls
Valerios-iMac% pwd
/Users/veleno/Downloads/llvm_lua-1.3.1/build
Valerios-iMac% cmake .. -DCMAKE_BUILD_TYPE=Release 
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
llvm jit libs: -lLLVMipo -lLLVMBitWriter -lLLVMLinker -lLLVMArchive 
-lLLVMBitReader -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen 
-lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMMCParser -lLLVMX86AsmPrinter 
-lLLVMX86Info -lLLVMJIT -lLLVMExecutionEngine -lLLVMCodeGen -lLLVMScalarOpts 
-lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget 
-lLLVMMC -lLLVMCore -lLLVMSupport -lLLVMSystem
llvm all libs: -lLLVMpic16passes -lLLVMMCDisassembler -lLLVMXCoreCodeGen 
-lLLVMXCoreAsmPrinter -lLLVMXCoreInfo -lLLVMSystemZCodeGen 
-lLLVMSystemZAsmPrinter -lLLVMSystemZInfo -lLLVMSparcCodeGen 
-lLLVMSparcAsmPrinter -lLLVMSparcInfo -lLLVMPowerPCCodeGen 
-lLLVMPowerPCAsmPrinter -lLLVMPowerPCInfo -lLLVMPIC16AsmPrinter 
-lLLVMPIC16CodeGen -lLLVMPIC16Info -lLLVMMipsAsmPrinter -lLLVMMipsCodeGen 
-lLLVMMipsInfo -lLLVMMSP430CodeGen -lLLVMMSP430AsmPrinter -lLLVMMSP430Info 
-lLLVMMBlazeAsmPrinter -lLLVMMBlazeCodeGen -lLLVMMBlazeInfo -lLLVMLinker 
-lLLVMipo -lLLVMInterpreter -lLLVMInstrumentation -lLLVMJIT 
-lLLVMExecutionEngine -lLLVMCppBackend -lLLVMCppBackendInfo 
-lLLVMCellSPUCodeGen -lLLVMCellSPUAsmPrinter -lLLVMCellSPUInfo -lLLVMCBackend 
-lLLVMCBackendInfo -lLLVMBlackfinCodeGen -lLLVMBlackfinAsmPrinter 
-lLLVMBlackfinInfo -lLLVMBitWriter -lLLVMX86Disassembler -lLLVMX86AsmParser 
-lLLVMX86CodeGen -lLLVMX86AsmPrinter -lLLVMX86Info -lLLVMAsmParser 
-lLLVMARMDisassembler -lLLVMARMAsmParser -lLLVMARMCodeGen -lLLVMARMAsmPrinter 
-lLLVMARMInfo -lLLVMArchive -lLLVMBitReader -lLLVMAlphaCodeGen 
-lLLVMSelectionDAG -lLLVMAlphaAsmPrinter -lLLVMAsmPrinter -lLLVMMCParser 
-lLLVMCodeGen -lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa 
-lLLVMAnalysis -lLLVMTarget -lLLVMMC -lLLVMCore -lLLVMAlphaInfo -lLLVMSupport 
-lLLVMSystem
-- Found Curses: /usr/lib/libcurses.dylib 
-- Configuring done
-- Generating done
-- Build files have been written to: 
/Users/veleno/Downloads/llvm_lua-1.3.1/build
Valerios-iMac% make
Scanning dependencies of target bin2c
[  2%] Building C object build/CMakeFiles/bin2c.dir/bin2c.o
Linking C executable bin2c
[  2%] Built target bin2c
[  4%] Generating lua_vm_ops.bc
[  6%] Generating lua_vm_ops_bc.h
Scanning dependencies of target llvm-lua_dynamic
[  8%] Building C object build/CMakeFiles/llvm-lua_dynamic.dir/lua_interpreter.o
[ 10%] Building CXX object build/CMakeFiles/llvm-lua_dynamic.dir/LLVMCompiler.o
[ 12%] Building CXX object build/CMakeFiles/llvm-lua_dynamic.dir/llvm_compiler.o
[ 14%] Building CXX object 
build/CMakeFiles/llvm-lua_dynamic.dir/load_embedded_bc.o
[ 16%] Building CXX object build/CMakeFiles/llvm-lua_dynamic.dir/load_vm_ops.o
[ 18%] Building C object build/CMakeFiles/llvm-lua_dynamic.dir/lua_core.o
[ 20%] Building C object 
build/CMakeFiles/llvm-lua_dynamic.dir/lua_vm_ops_static.o
[ 22%] Building C object build/CMakeFiles/llvm-lua_dynamic.dir/load_jit_proto.o
Linking CXX shared library llvm-lua.framework/Versions/1.3/llvm-lua
Command line tools
Static lib
[ 22%] Built target llvm-lua_dynamic
Scanning dependencies of target llvm-lua_binary
[ 25%] Building CXX object build/CMakeFiles/llvm-lua_binary.dir/llvm-lua.o
[ 27%] Building C object build/CMakeFiles/llvm-lua_binary.dir/lua_interpreter.o
Linking CXX executable llvm-lua
Command line tools
Error copying file "/Users/veleno/Downloads/llvm_lua-1.3.1/build/llvm-lua" to 
"/Users/veleno/Downloads/llvm_lua-1.3.1/build/llvm-lua.framework/Versions/1.3/Ma
cOS/llvm-lua".
make[2]: *** [build/llvm-lua] Error 1
make[1]: *** [build/CMakeFiles/llvm-lua_binary.dir/all] Error 2
make: *** [all] Error 2


What version of the product are you using? On what operating system?
llvm-lua 1.3.1
llvm 2.8

Mac OSX 10.6.7 


Original issue reported on code.google.com by [email protected] on 11 May 2011 at 2:47

Make error : make: *** [ llvm-lua_binary ] Error 2

What steps will reproduce the problem?
1. cmake ..
2. make
3. error

What is the expected output? What do you see instead?
LLVM compiles

What version of the product are you using? On what operating system?
LLVM_lua-1.3.1 or LLVM-GIT : Debian Wheezy O.S.

Please provide any additional information below.
I see that all binaries, using cmake-gui, point to LLVM-3.1 version while the 
-L flag states a path to /usr/lib/llvm-3.0/include/llvm/... 

I could not find how to correct this just yet


Original issue reported on code.google.com by [email protected] on 24 Jun 2013 at 2:27

lua-compiler for standalone executables do not work

helloworld.lua:
print("Hello World")

I'm trying to compile this script as a standalone application using 
lua-compiler and I get this error:

christophe@christophe-laptop:~/lua_tests$ lua-compiler helloworld.lua 
/usr/local/bin/llvm-luac -O3 -s -bc -o helloworld.bc helloworld.lua
Failed to parse embedded 'liblua_main_bc' file: Invalid bitcode signature
llvm-luac: failed to compile Lua code into LLVM bitcode.

Any idea of what might be happening?

My system info is:
christophe@christophe-laptop:~/lua_tests$ uname -a
Linux christophe-laptop 2.6.35-23-generic #41-Ubuntu SMP Wed Nov 24 10:18:49 
UTC 2010 i686 GNU/Linux

Original issue reported on code.google.com by [email protected] on 16 Dec 2010 at 4:38

Performance Benchmarks

Publish LLV Lua Performance Benchmarks. E.g. see LuaJIT performance
benchmarks: http://luajit.org/performance.html

Original issue reported on code.google.com by [email protected] on 28 Apr 2010 at 5:38

Use llvm::raw_fd_ostream instead of std::ofstream

Compilation llvm-lua with llvm-svn HEAD results in an error because
WriteBitcodeFile no longer takes std::ofstream as a parameter.

The attached patch fixes this problem - could you check whether its valid.
It should be backwards compatible with LLVM 2.6 as well because the
std:ofstream parameter was deprecated (I believe).

Original issue reported on code.google.com by [email protected] on 13 Dec 2009 at 3:45

Attachments:

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.