[LLVMdev] LLVM-gcc for Ada
Andre Tavares
andrelct at dcc.ufmg.br
Tue Jun 2 05:38:47 PDT 2009
Duncan Sands wrote:
> 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.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
Eric,
That is the same problem I had.
I created a little guide in case someone gets the same trouble as mine.
So here you are the link
http://homepages.dcc.ufmg.br/~andrelct/blog/howto/install_llvm-gcc_with_ada_support
--
Andre Tavares
Master Student in Computer Science - UFMG - Brasil
http://dcc.ufmg.br/~andrelct
More information about the llvm-dev
mailing list