[LLVMdev] LLVM-gcc for Ada

Andre Tavares andrelct at dcc.ufmg.br
Thu Jun 4 06:15:35 PDT 2009

Duncan Sands wrote:
> Hi Eric,
>> llvm-main.o: In function `__static_initialization_and_destruction_0':
>> /usr/lib/gcc/i386-redhat-linux/4.3.2/../../../../include/c++/4.3.2/iostream:77: 
>> undefi\
>> ned reference to `std::ios_base::Init::Init()'
>> /usr/lib/gcc/i386-redhat-linux/4.3.2/../../../../include/c++/4.3.2/iostream:77: 
>> undefi\
>> ned reference to `std::ios_base::Init::~Init()'
>> llvm-main.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
> there's something very wrong with your C++ compiler.  Rather than
> exporting CC and CXX like in Andre's instructions, I suggest you
> just export the PATH like in Andre's instructions before configuring/
> make.  Also, are you aware of this page:
>    http://llvm.org/docs/GCCFEBuildInstrs.html
> ?
> Ciao,
> Duncan.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

in my case, and probably his also, the instruction "CXX=" is necessary, 
because g++ is broken and only g++-4.3 is working. So even if I put the 
correct path it would never choose g++-4.3 over g++. The only choice is 
to use "CXX=" to select g++-4.3 directly.

Andre Tavares
Master Student in Computer Science - UFMG - Brasil

More information about the llvm-dev mailing list