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

Török Edwin edwintorok at gmail.com
Tue Feb 24 00:09:28 PST 2009


On 2009-02-24 03:28, Kshitij Sudan wrote:
> 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.
>
> I then tried the subversion sources (rev. # 65253 fro llvm and
> rev#65263 for llvm-gcc) and llvm at least builds correctly ( I however
> have not tried testing it!).

You can install dejagnu, and run 'make check' in the llvm objdir.
All tests except one pass for me on Solaris10/x86 (LLVMHello.so is not
copied to the correct location for some reason, so that test fails),
it would be interesting to see what happens on Sparc.

>  I can execute binaries located in
> llvm-objects/Release (I built a Release version as instructed by
> llvm-gcc README).
>
> 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.
>
> I am not sure if I should file a bug, hence I'm posting this here.
> Looking forward to possible solutions.
>
> thanks,
> -Kshitij
>
> ************************************
> Machine configuration and top-level configure switches I use
> ************************************
> [sudan at grad1: space2]$ gcc -v
> Using built-in specs. Target: sparc-sun-solaris2.10 Configured with:
> ../gcc-4.3.2/configure --prefix=/usr/local/gcc-4.3.2
> --with-gmp=/usr/local --with-mpfr=/usr/local Thread model: posix gcc
> version 4.3.2 (GCC)
>
>   

Wow, where did you get a 4.3.x compiler for Solaris? Latest I've seen
packaged are 3.4.x and 4.0.x.

> [sudan at grad1: space2]$ psrinfo -v
> Status of virtual processor 0 as of: 02/23/2009 15:48:54
>   on-line since 12/08/2008 10:47:54.
>   The sparcv9 processor operates at 750 MHz,
>         and has a sparcv9 floating point processor.
> Status of virtual processor 1 as of: 02/23/2009 15:48:54
>   on-line since 12/08/2008 10:47:56.
>   The sparcv9 processor operates at 750 MHz,
>         and has a sparcv9 floating point processor.
>
> [sudan at grad1: space2]$ uname -a
> SunOS grad1.emcb.utah.edu 5.10 Generic_118833-33 sun4u sparc
> SUNW,Sun-Blade-1000 Solaris
>
> configure switches for llvm-gcc
> -------------------------------------------------
> ../llvm-gcc-4.2/configure
> --prefix=/local/space2/llvm_toolchain/llvm-gcc4.2-2.5-install
> --enable-languages=c,c++,fortran --disable-checking
> --enable-llvm=/local/space2n/llvm-2.5-objects --disable-bootstrap
> --disable-multilib
>   

I tried building on Solaris10/x86, and I had to use something like
--with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld
--without-gnu-ld.

However it failed with an undefined reference to 'copysignl'.

Best regards,
--Edwin



More information about the llvm-dev mailing list