[LLVMdev] LLVM-gcc for Ada
Duncan Sands
baldrick at free.fr
Tue Jun 2 01:54:43 PDT 2009
Hi Eric,
> I'm having problems building llvm-gcc for Ada, which may or may not be
> similar to the trouble Andre was having recently. I'm trying to build
> it on Fedora 10 (32-bit), using the instructions on the web site. The
> make terminates with a gnatbind error:
>
> gcc -c -g -O2 -gnatpg -gnata -I- -I. -Iada
> -I../../llvm-gcc-4.2/gcc/ada ../../llvm-gcc-4.2/gcc/ada/gnat1drv.adb -o
> ada/gnat1drv.o
> gnatbind -C -I- -I. -Iada -I../../llvm-gcc-4.2/gcc/ada -o ada/b_gnat1.c
> -n ada/gnat1drv.ali
> error: "s-imenne.adb" must be compiled
> error: ("/usr/lib/gcc/i386-redhat-linux/4.3.2/adalib/s-imenne.ali" is
> obsolete and read-only)
> error: "s-imenne.adb" and "gnat1drv.adb" compiled with different
> exception handling mechanisms
> make[2]: *** [ada/b_gnat1.c] Error 5
> make[2]: Leaving directory `/home/eric/llvm/llvm-gcc-4.2-objects/gcc'
> make[1]: *** [all-gcc] Error 2
> make[1]: Leaving directory `/home/eric/llvm/llvm-gcc-4.2-objects'
> make: *** [all] Error 2
>
> Any ideas how I can fix that? Is this happening due to using the GCC
> and Gnat 4.3 to build it?
yes, that's exactly the problem.
> I thought I could try installing an earlier
> version of Fedora that has GCC 4.2, but it looks like they jumped from
> 4.1 to 4.3.
>
> If there's not a simple fix, is there a Linux distro on which llvm-gcc
> with Ada is known to build "out of the box"?
Why don't you install GNAT GPL 2007 (free download, easy to do) and
compile it using that?
Ciao,
Duncan.
More information about the llvm-dev
mailing list