[LLVMdev] llvm-gcc (pre-release and svn sources) fails to compile on Solaris10/SPARC

Anton Korobeynikov anton at korobeynikov.info
Tue Feb 24 00:09:14 PST 2009


> I am new to LLVM, and I'm trying to compile llvm and llvm-gcc from
> subversion on a Solaris10/SPARC machine. I have already tried building
> llvm-2.4 on this machine, but it failed.
That's correct. There was a bug fixed after 2.4 release.

> Since then I am trying to build llvm-gcc and it fails all the time. I
> tried building llvm-gcc from svn and 2.5 pre-release. I also tried
> building llvm-2.5 pre-release and that succeeds but llvm-gcc-4.2-2.5
> pre-release fails again. I have listed below my machine config and the
> errors reported by make in each case.
afair solaris always had a special gcc build procedure. I can confirm,  
however, that sometime between 2.4 and 2.5 I built cross llvm-gcc for  
sparc-elf (with newlib) and at least it was bult successfully. In any  
case, result of codegen is not fully ABI-compliant.

> ../../llvm-gcc-4.2/gcc/llvm-convert.cpp:4387: error:
> 'getIntrinsicForGCCBuiltin' is not a member of 'llvm::Intrinsic'
That's something strange. Are you sure you didn't mixed sources from  
release and some older / newer version? What is gcc version on your box?

---
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University




More information about the llvm-dev mailing list