Can't compile Dragonegg

Hi,

I'm trying to compile release 3.2 of DragonEgg (checked out from
http://llvm.org/svn/llvm-project/dragonegg/branches/release_32. I'm at
revision 170458), under Ubuntu (Ubuntu 12.04.1 LTS (GNU/Linux
2.6.39-gcg-20121018 x86_64)) and I get the following error.

tmroeder@myubuntu:~/src/dragonegg$ make
Compiling utils/TargetInfo.cpp
Linking TargetInfo
Compiling Aliasing.cpp
/root/src/dragonegg/src/Aliasing.cpp:37:23: fatal error: auto-host.h:
No such file or directory
compilation terminated.
make: *** [Aliasing.o] Error 1
tmroeder@myubuntu:~/src/dragonegg$

my compiler is

tmroeder@myubuntu:~/src/dragonegg$ gcc --version
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3

Can anyone give me any suggestions about how to get this to build?
I've tried on the trunk and on another Ubuntu system with the same
results.

Thanks,

Tom

Hi Tom,

DragonEgg depends on GCC's and LLVM's internal headers, auto-host.h is one of them. Try to add GCC and LLVM_CONFIG with your make command as described here http://dragonegg.llvm.org/ in section "Getting it".

Best,
- Dima.

Hi,

Thanks for the quick reply.

Actually, I just figured it out by reading the dragonegg instructions
again: I hadn't installed gcc-4.6-plugin-dev. Once I installed this,
the plugin built successfully (at least on that machine :slight_smile:

Thanks,

Tom

Hi,

I suggest add the id attribute for each

tag in www/index.html. Thus we can refer to the “Getting it” section in the dragonegg homepage page (the only web page) by simply the given URL:
http://dragonegg.llvm.org#GettingIt

Regards.

Hi Mingliang LIU,

I suggest add the id attribute for each <h2> tag in www/index.html. Thus we can
refer to the "Getting it" section in the dragonegg homepage page (the only web
page) by simply the given URL:
http://dragonegg.llvm.org#GettingIt

this already works:

http://dragonegg.llvm.org/#gettingrelease

But maybe could be done better or more consistently?

Ciao, Duncan.

Hi Duncan,

Glad to know it works already. I simply gave a blind suggestion without checking it.

Regards.