The new dragonegg 2.9 sources fail to build against either FSF gcc 4.5.2 or
4.5.3svn
(with the i386_static.diff patch applied) on x86_64-apple-darwin10. In both
cases, the
build fails as...
GCC=/sw/lib/gcc4.5/bin/gcc-4 LLVM_CONFIG=/sw/bin/llvm-config make
CPPFLAGS="-DENABLE_LTO -I/sw/include"
Compiling 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
Compiling 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
<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.5.0/4.5.2/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.5.0/4.5.2/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.5.0/4.5.2/plugin/include/tm.h:13,
from
/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin10.5.0/4.5.2/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.5.0/4.5.2/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
In file included from
/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin10.5.0/4.5.2/plugin/include/tm.h:4,
from
/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin10.5.0/4.5.2/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.5.0/4.5.2/plugin/include/options.h:414:
error: expected unqualified-id before ')' token
/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin10.5.0/4.5.2/plugin/include/options.h:582:
error: expected unqualified-id before ')' token
In file included from
/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin10.5.0/4.5.2/plugin/include/tm.h:7,
from
/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin10.5.0/4.5.2/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.5.0/4.5.2/plugin/include/config/i386/i386.h:445:
error: 'tree' does not name a type
/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin10.5.0/4.5.2/plugin/include/config/i386/i386.h:2252:
error: 'rtx' does not name a type
/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin10.5.0/4.5.2/plugin/include/config/i386/i386.h:2253:
error: 'rtx' does not name a type
/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin10.5.0/4.5.2/plugin/include/config/i386/i386.h:2352:
error: expected unqualified-id before ')' token
/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin10.5.0/4.5.2/plugin/include/config/i386/i386.h:2358:
error: expected unqualified-id before ')' token
In file included from
/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin10.5.0/4.5.2/plugin/include/tm.h:8,
from
/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin10.5.0/4.5.2/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.5.0/4.5.2/plugin/include/config/darwin.h:123:
error: expected unqualified-id before ')' token
In file included from
/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin10.5.0/4.5.2/plugin/include/tm.h:8,
from
/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin10.5.0/4.5.2/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.5.0/4.5.2/plugin/include/config/darwin.h:756:
error: expected unqualified-id before ')' token
In file included from
/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin10.5.0/4.5.2/plugin/include/tm.h:17,
from
/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin10.5.0/4.5.2/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.5.0/4.5.2/plugin/include/insn-flags.h:2011:
error: 'rtx' does not name a type
/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin10.5.0/4.5.2/plugin/include/insn-flags.h:2012:
error: 'rtx' does not name a type
....
/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin10.5.0/4.5.2/plugin/include/toplev.h:155:
error: conflicts with new declaration with 'C' linkage
/sw/src/fink.build/dragonegg-gcc45-2.9-1/dragonegg-2.9/Backend.cpp: In function
'void llvm_start_unit(void*, void*)':
/sw/src/fink.build/dragonegg-gcc45-2.9-1/dragonegg-2.9/Backend.cpp:1574: error:
'debug_hooks' was not declared in this scope
/sw/src/fink.build/dragonegg-gcc45-2.9-1/dragonegg-2.9/Backend.cpp:1574: error:
'do_nothing_debug_hooks' was not declared in this scope
/sw/src/fink.build/dragonegg-gcc45-2.9-1/dragonegg-2.9/Backend.cpp: In function
'void emit_functions(cgraph_node_set_def*)':
/sw/src/fink.build/dragonegg-gcc45-2.9-1/dragonegg-2.9/Backend.cpp:1932:
warning: suggest a space before ';' or explicit braces around empty body
in 'for' statement
make: *** [Backend.o] Error 1
Hi Jack,> The new dragonegg 2.9 sources fail to build against either FSF gcc 4.5.2 or 4.5.3svn > (with the i386_static.diff patch applied) on x86_64-apple-darwin10. In both cases, the > build fails as...what does the command ./TargetInfo -p return (the TargetInfo program is created during the dragonegg build). Some of your errors are consistent with this program failing to run. Ciao, Duncan.
On Fri, Apr 08, 2011 at 08:28:27AM +0200, Duncan Sands wrote:> Hi Jack, > > > The new dragonegg 2.9 sources fail to build against either FSF gcc 4.5.2 or 4.5.3svn > > (with the i386_static.diff patch applied) on x86_64-apple-darwin10. In both cases, the > > build fails as... > > what does the command > ./TargetInfo -p > return (the TargetInfo program is created during the dragonegg build). > Some of your errors are consistent with this program failing to run. >Duncan, Yes, the result from "./TargetInfo -p" is incorrect under darwin10... x86 In FSF config.guess, we had to add... *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in i386) eval $set_cc_for_build if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then UNAME_PROCESSOR="x86_64" fi fi ;; unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; to make sure that the architecture was set to the default code generation of the system compiler and not the default code architecture of the running kernel. Jack> Ciao, Duncan. > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
hi, On Fri, Apr 8, 2011 at 8:38 AM, Jack Howarth <howarth at bromo.med.uc.edu> wrote:> The new dragonegg 2.9 sources fail to build against either FSF gcc 4.5.2 or 4.5.3svn > (with the i386_static.diff patch applied) on x86_64-apple-darwin10. In both cases, the > build fails as...Dragonegg revision 129116 also fail on x86_64 linux, with gcc-4.5 revision 172158, i got: /home/ether/sources/llvm/include/llvm/Target/TargetLowering.h:1567: warning: unused parameter ‘VT2’ /home/ether/sources/llvm/include/llvm/Target/TargetLowering.h:1574: warning: unused parameter ‘VT1’ /home/ether/sources/llvm/include/llvm/Target/TargetLowering.h:1574: warning: unused parameter ‘VT2’ /home/ether/sources/llvm/include/llvm/Target/TargetLowering.h:1582: warning: unused parameter ‘Imm’ In file included from /home/ether/local/gcc-4.5/lib/gcc/x86_64-unknown-linux-gnu/4.5.3/plugin/include/rtl.h:28, from /home/ether/sources/dragonegg/Convert.cpp:57: /home/ether/local/gcc-4.5/lib/gcc/x86_64-unknown-linux-gnu/4.5.3/plugin/include/real.h:29: error: expected ‘,’ or ‘...’ before ‘(’ token make: *** [Convert.o] Error 1 best regards ether ps: i am trying to build dragonegg on gcc16 of gcc farm.
Hi ether,> In file included from > /home/ether/local/gcc-4.5/lib/gcc/x86_64-unknown-linux-gnu/4.5.3/plugin/include/rtl.h:28, > from /home/ether/sources/dragonegg/Convert.cpp:57: > /home/ether/local/gcc-4.5/lib/gcc/x86_64-unknown-linux-gnu/4.5.3/plugin/include/real.h:29: > error: expected ‘,’ or ‘...’ before ‘(’ token > make: *** [Convert.o] Error 1and what is in /home/ether/local/gcc-4.5/lib/gcc/x86_64-unknown-linux-gnu/4.5.3/plugin/include/real.h at line 29?> ps: i am trying to build dragonegg on gcc16 of gcc farm.One of the dragonegg buildbots runs on that machine, and works fine. That said, it is running in a simulated 32 bit environment.
Hi ether, how did you build it exactly? I logged into gcc16 and tried to
reproduce. But I get
/home/ether/local/gcc-4.5/lib/gcc/x86_64-unknown-linux-gnu/4.5.3/plugin/include/real.h:28:17:
error: mpc.h: No such file or directory
In file included from
/home/ether/local/gcc-4.5/lib/gcc/x86_64-unknown-linux-gnu/4.5.3/plugin/include/rtl.h:28,
from /home/baldrick/dragonegg-2.9/Convert.cpp:58:
/home/ether/local/gcc-4.5/lib/gcc/x86_64-unknown-linux-gnu/4.5.3/plugin/include/real.h:29:
error: expected ‘,’ or ‘...’ before ‘(’ token
Notice the line about the missing mpc.h. If I pass the path to mpc.h like this:
CPPFLAGS="-I/home/ether/local/include/"
GCC=/home/ether/local/gcc-4.5/bin/gcc
LLVM_CONFIG=/home/ether/build/llvm/bin/llvm-config make
then the errors go away. That said, it still doesn't compile because you
seem
to have LLVM from svn installed not llvm-2.9, and dragonegg-2.9 needs to be
built against llvm-2.9.
Ciao, Duncan.
> On Fri, Apr 8, 2011 at 8:38 AM, Jack Howarth<howarth at
bromo.med.uc.edu> wrote:
>> The new dragonegg 2.9 sources fail to build against either FSF gcc
4.5.2 or 4.5.3svn
>> (with the i386_static.diff patch applied) on x86_64-apple-darwin10. In
both cases, the
>> build fails as...
>
> Dragonegg revision 129116 also fail on x86_64 linux, with gcc-4.5
> revision 172158, i got:
>
> /home/ether/sources/llvm/include/llvm/Target/TargetLowering.h:1567:
> warning: unused parameter ‘VT2’
> /home/ether/sources/llvm/include/llvm/Target/TargetLowering.h:1574:
> warning: unused parameter ‘VT1’
> /home/ether/sources/llvm/include/llvm/Target/TargetLowering.h:1574:
> warning: unused parameter ‘VT2’
> /home/ether/sources/llvm/include/llvm/Target/TargetLowering.h:1582:
> warning: unused parameter ‘Imm’
> In file included from
>
/home/ether/local/gcc-4.5/lib/gcc/x86_64-unknown-linux-gnu/4.5.3/plugin/include/rtl.h:28,
> from /home/ether/sources/dragonegg/Convert.cpp:57:
>
/home/ether/local/gcc-4.5/lib/gcc/x86_64-unknown-linux-gnu/4.5.3/plugin/include/real.h:29:
> error: expected ‘,’ or ‘...’ before ‘(’ token
> make: *** [Convert.o] Error 1
>
>
> best regards
> ether
>
> ps: i am trying to build dragonegg on gcc16 of gcc farm.
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev