[LLVMdev] Re: LLVM Java front-end

Sebastien Lafond slafond at abo.fi
Fri Apr 28 01:24:04 PDT 2006

Hello Alessandro,

You can get the source code for the existing Java front-end by doing this:

cvs -d :pserver:anon at llvm-cvs.cs.uiuc.edu:/var/cvs/llvm login
Hit the return key when prompted for the password.
cvs -z3 -d :pserver:anon at llvm-cvs.cs.uiuc.edu:/var/cvs/llvm co llvm-java

You will need the GNU classpath libraries to compile llvm-java, and the 
GNU classpath libraries need GTK+

llvm-java needs a "flat" classpath structure so you will need to unzip 
the file GNU_classpath_dir/share/classpath/glibj.zip

Then in llvm-java directory just do
./configure --prefix=install_dir --with-classpathdir=My_GNU_classpath_dir

I was able to compile and install the llvm-java front-end without any 
erros, but i get a ugly error as soon I execute the front-end...:

class2llvm: Constants.cpp:228: llvm::ConstantSInt::ConstantSInt(const 
llvm::Type*, int64_t): Assertion `Ty->isInteger() && Ty->isSigned() && 
"Illegal type for signed integer constant!"' failed.

I didn't have the time yet to look at the problem, but I will....


ac at tml.hut.fi wrote:
> Hello,
> I have just downloaded the source from CVS.
> Does exist a LLVM Java front-end?
> If yes, where can I find documentations about it?
> If no, is anyway somebody working on it? Where can I find the source code
> related?
> Thanks,
> Alessandro

More information about the llvm-dev mailing list