[LLVMdev] darwin dragon-egg build issues

Duncan Sands baldrick at free.fr
Sun Apr 11 01:29:28 PDT 2010


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.



More information about the llvm-dev mailing list