Autore Topic: LLVM per Gambas  (Letto 300 volte)

Offline vuott

  • Moderatore globale
  • Senatore Gambero
  • *****
  • Post: 11.287
  • Ne mors quidem nos iunget
    • Mostra profilo
LLVM per Gambas
« il: 21 Settembre 2013, 12:59:54 »
Riporto questa discussione apparsa nella Mailing List ufficiale:


" Do anyone know working instructions to compile LLVM in Ubuntu/Xubuntu,
 that can be used with most recent Gambas 3 revision?

 Or optionally what is most recent working revision of LLVM?

Jussi
"


" What I previously did was:

Download 3.1 from Sourceforge and unpack to wherever you want - I used
david/llvm. Then create
a "build" folder within "llvm".
Then from this "build" folder:

../configure --prefix=/usr --enable-optimized --enable-jit --enable-shared
make -j2      (for dual core, -j4 for quad core)
sudo make install

Then recompile Gambas as usual.

However LLVM 3.2 appears in the standard Ubuntu repository (I'm using
Ubuntu 12.04) and I haven't
has any trouble with it.

David
"


" I used svn version, but otherwise that is what I tried (among many other
options), but it doesn't compile.
First problem is in configure, compilers are not found, but it is fixable.

If I set clang and clang++ as compilers, some include files are not found,
even when I give the correct path.

And if I set gcc and g++ as compilers, then it gives error that some
function isn't part of llvm (? ? ?).

> However LLVM 3.2 appears in the standard Ubuntu repository (I'm using
> Ubuntu 12.04) and I haven't
> has any trouble with it.


When I compile Gambas, it gives me this requirement:
|| Unable to find file: libLLVM-3.3svn.so
|| gb.jit is disabled

So I don't think LLVM 3.2 will do it.


Jussi
"


" Hi Jussi. What is the error message when you use g++?

/Emil
"


" SourceManager.cpp:
In function ‘void ComputeLineNumbers(clang::DiagnosticsEngine&, clang::SrcMgr::ContentCache*, llvm::BumpPtrAllocator&, const lang::SourceManager&, bool&)’:
SourceManager.cpp:1134:20: error: ‘CountTrailingZeros_32’ is not a member of ‘llvm’


This is from svn version, so maybe there is something wrong in source code.

Jussi
"
« Ultima modifica: 21 Settembre 2013, 16:17:21 da vuott »
« Chiunque, non ricorrendo lo stato di necessità, nel proprio progetto Gambas fa uso delle istruzioni Shell o Exec, è punito con la sanzione pecuniaria da euro 20,00 a euro 60,00. »