[LLVMdev] darwin dragon-egg build issues

Jack Howarth howarth at bromo.med.uc.edu
Sun Apr 11 04:54:23 PDT 2010


On Sun, Apr 11, 2010 at 10:29:28AM +0200, Duncan Sands wrote:
> Hi Jack,
>
>> bash-3.2$ GCC=/sw/bin/gcc-4 CC=gcc-4 CXX=g++-4 CFLAGS=-I/sw/include CXXFLAGS=-I/sw/include LLVM_CONFIG=/sw/lib/llvm/bin/llvm-config make
>> g++-4 -c  -I/sw/lib/llvm/include  -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -MD -MP -DIN_GCC -DREVISION=\"100954M\" -DTARGET_NAME=\"x86_64-apple-darwin10.3.0\" -I/Users/howarth/llvm_svn/dragonegg -I/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin10.3.0/4.5.0/plugin/include -I/Users/howarth/llvm_svn/dragonegg/x86 -I/Users/howarth/llvm_svn/dragonegg/darwin -I/sw/include -Wall -Werror -I/sw/lib/llvm/include  -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O2  -fno-exceptions -fno-rtti -fno-common -Woverloaded-virtual /Users/howarth/llvm_svn/dragonegg/llvm-convert.cpp
>> In file included from /Users/howarth/llvm_svn/dragonegg/llvm-convert.cpp:88:0:
>> /Users/howarth/llvm_svn/dragonegg/llvm-debug.h:150:3: error: ‘DIFile’ does not name a type
>> make: *** [llvm-convert.o] Error 1
>>
>> where /sw/bin/gcc-4 is the gcc 4.5.0 from my gcc45 fink package
>> with plugin support. Do you see this under linux?
>
> are you building against LLVM top-of-tree?  Currently dragonegg needs gcc
> from svn, and the same for LLVM.  It would make sense to have versions of
> dragonegg that target:
>   (1) Latest gcc release, latest LLVM release (this is not relevant until
> gcc-4.5 is released)
>   (2) Latest gcc release, LLVM from svn (this is not relevant until gcc-4.5
> is released)
>   (3) Latest LLVM release, gcc from svn
>   (4) gcc from svn, LLVM from svn
> Currently I'm only doing (4).  Once gcc-4.5 is released I may do (4) and (2).
> I don't plan to do (1) or (3) unless I get some help.
>
> Ciao,
>
> Duncan.

Duncan,
   Yes, I was trying to use dragon-egg svn with llvm release-2.7 branch (because
I was in the process of preparing llvm/llvm-gcc42 2.7 fink packages and had
those handy). I'll try again with llvm svn. FYI, I have posted the --enable-plugin
fix patch for darwin to the gcc-patches mailing list...

http://gcc.gnu.org/ml/gcc-patches/2010-04/msg00516.html

I think we need one more darwin-specific FSF gcc patch for dragon-egg
(as gcc 4.5.0 doesn't installed the required darwin-sections.def into
/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin10.3.0/4.5.0/plugin/include/config).
I am still pondering how to properly do that in the Makefiles.
  Have any prior dragon-egg gcc patches been committed and do you intend
to post the i386_static.diff to gcc-patches?
              Jack
ps I did notice the dragon-egg web page said that exception handling was
broken but I did see some recent commits on that feature. What is the
status of exception handling in current svn?




More information about the llvm-dev mailing list