[LLVMdev] dragonegg build failure

Jack Howarth howarth at bromo.med.uc.edu
Fri Apr 8 05:48:25 PDT 2011


On Fri, Apr 08, 2011 at 01:58:10PM +0200, Duncan Sands wrote:
>>     Is there anything I can do to make the build more verbose so I can debug this?
>
> make VERBOSE=1

Duncan,
   Oddly this shows...

GCC=/sw/lib/gcc4.5/bin/gcc-4 LLVM_CONFIG=/sw/bin/llvm-config make VERBOSE=1 CPPFLAGS="-DENABLE_LTO -I/sw/include"
Compiling utils/TargetInfo.cpp
g++ -c -DTARGET_TRIPLE=\"x86_64-apple-darwin10.7.0\" \
	-DENABLE_LTO -I/sw/include -I/sw/include  -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -MD -MP -DIN_GCC -DREVISION=\"exported\" -DGCC_MAJOR=4 -DGCC_MINOR=5 -I/sw/src/fink.build/dragonegg-gcc45-2.9-1/dragonegg-2.9 -I/sw/src/fink.build/dragonegg-gcc45-2.9-1/dragonegg-2.9/ADT -I/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin10.7.0/4.5.3/plugin/include -Wall -Wextra -fvisibility=hidden -I/sw/include  -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O3  -fno-exceptions -fno-rtti -fno-common -Woverloaded-virtual -Wcast-qual /sw/src/fink.build/dragonegg-gcc45-2.9-1/dragonegg-2.9/utils/TargetInfo.cpp
<command-line>: warning: "__STDC_LIMIT_MACROS" redefined
<command-line>: warning: this is the location of the previous definition
<command-line>: warning: "__STDC_CONSTANT_MACROS" redefined
<command-line>: warning: this is the location of the previous definition
Linking TargetInfo
g++ -o TargetInfo TargetInfo.o -lLLVMSupport \
	-L/sw/lib  -lpthread -lm  -L/sw/lib
Compiling cache.c
cc -c -DENABLE_LTO -I/sw/include -I/sw/include  -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -MD -MP -DIN_GCC -DREVISION=\"exported\" -DGCC_MAJOR=4 -DGCC_MINOR=5 -I/sw/src/fink.build/dragonegg-gcc45-2.9-1/dragonegg-2.9 -I/sw/src/fink.build/dragonegg-gcc45-2.9-1/dragonegg-2.9/ADT -I/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin10.7.0/4.5.3/plugin/include -DTARGET_NAME=\"x86_64-apple-darwin10.7.0\" -I/sw/src/fink.build/dragonegg-gcc45-2.9-1/dragonegg-2.9/x86 -I/sw/src/fink.build/dragonegg-gcc45-2.9-1/dragonegg-2.9/darwin -Wall -Wextra -fvisibility=hidden -I/sw/include  -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O3  -fno-common /sw/src/fink.build/dragonegg-gcc45-2.9-1/dragonegg-2.9/cache.c
<command-line>: warning: "__STDC_LIMIT_MACROS" redefined
<command-line>: warning: this is the location of the previous definition
<command-line>: warning: "__STDC_CONSTANT_MACROS" redefined
<command-line>: warning: this is the location of the previous definition
Compiling Backend.cpp
g++ -c -DENABLE_LTO -I/sw/include -I/sw/include  -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -MD -MP -DIN_GCC -DREVISION=\"exported\" -DGCC_MAJOR=4 -DGCC_MINOR=5 -I/sw/src/fink.build/dragonegg-gcc45-2.9-1/dragonegg-2.9 -I/sw/src/fink.build/dragonegg-gcc45-2.9-1/dragonegg-2.9/ADT -I/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin10.7.0/4.5.3/plugin/include -DTARGET_NAME=\"x86_64-apple-darwin10.7.0\" -I/sw/src/fink.build/dragonegg-gcc45-2.9-1/dragonegg-2.9/x86 -I/sw/src/fink.build/dragonegg-gcc45-2.9-1/dragonegg-2.9/darwin -Wall -Wextra -fvisibility=hidden -I/sw/include  -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O3  -fno-exceptions -fno-rtti -fno-common -Woverloaded-virtual -Wcast-qual /sw/src/fink.build/dragonegg-gcc45-2.9-1/dragonegg-2.9/Backend.cpp
<command-line>: warning: "__STDC_LIMIT_MACROS" redefined
<command-line>: warning: this is the location of the previous definition
<command-line>: warning: "__STDC_CONSTANT_MACROS" redefined
<command-line>: warning: this is the location of the previous definition
In file included from /sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin10.7.0/4.5.3/plugin/include/config.h:6,
                 from /sw/src/fink.build/dragonegg-gcc45-2.9-1/dragonegg-2.9/Backend.cpp:55:
/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin10.7.0/4.5.3/plugin/include/auto-host.h:39:1: warning: "DEFAULT_USE_CXA_ATEXIT" redefined
In file included from /sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin10.7.0/4.5.3/plugin/include/tm.h:13,
                 from /sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin10.7.0/4.5.3/plugin/include/Target.h:52,
                 from /sw/src/fink.build/dragonegg-gcc45-2.9-1/dragonegg-2.9/Backend.cpp:31:
/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin10.7.0/4.5.3/plugin/include/defaults.h:921:1: warning: this is the location of the previous definition
/sw/src/fink.build/dragonegg-gcc45-2.9-1/dragonegg-2.9/Backend.cpp:310:2: error: #error LLVM_TARGET_NAME macro not specified

Why isn't the compiler set in the GCC environmental being used? It first uses cc and then g++.
           Jack



More information about the llvm-dev mailing list