[LLVMdev] dragonegg build failure

Duncan Sands
2011-04-08T16:00:31Z

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