<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<br>Hi Duncan,<br><br>Thank you very much for looking into it.<br><br>I used the command to build dragonegg<br><br>GCC=4.5.x make<br><br>and silently it was using system compiler which is yes 3.x.x<br><br>I turned the command to explicitly use latest compiler<br><br>GCC=4.5.x CC=4.5.x CXX=4.5.x make<br><br>and the problem gone away.<br><br>Regards,<br>Rehman<br><br><br>> Date: Thu, 9 Sep 2010 19:40:56 +0200<br>> From: baldrick@free.fr<br>> To: rehman_saeed@live.com<br>> CC: LLVMdev@cs.uiuc.edu<br>> Subject: Re: [LLVMdev] dragonegg plugin invoking issue<br>> <br>> Hi Rehman, if I understand right the plugin works fine if you compile it with<br>> -fvisibility=hidden, and replace LLVM_GLOBAL_VISIBILITY in llvm-backend.cpp<br>> with __attribute__ ((visibility("default"))).  Since LLVM_GLOBAL_VISIBILITY<br>> is a macro that expands to __attribute__ ((visibility("default"))) if you<br>> are not on mingw32 or cygwin, and your gcc version is at least 4, that<br>> suggests that you are compiling the plugin with gcc 3.x.  Is that right?<br>> <br>> Best wishes,<br>> <br>> Duncan.<br>> <br>> ><br>> > Hi Duncan,<br>> ><br>> > Thank you for further looking into it.<br>> ><br>> > Indeed I made changes as you described and I was able to build, run and compile<br>> > the my test program.<br>> ><br>> > Regards,<br>> > Rehman<br>> ><br>> >  > Date: Wed, 1 Sep 2010 15:15:32 +0200<br>> >  > From: baldrick@free.fr<br>> >  > To: rehman_saeed@live.com<br>> >  > Subject: Re: [LLVMdev] dragonegg plugin invoking issue<br>> >  ><br>> >  > Hi Rehman,<br>> >  ><br>> >  > > >>Hi Rehman, does it work if you remove -fvisibility=hidden from these two<br>> > lines<br>> >  > ><br>> >  > > >>in the Makefile:<br>> >  > ><br>> >  > >> > CFLAGS+=-Wall $(shell $(LLVM_CONFIG) --cflags) -fvisibility=hidden<br>> >  > ><br>> >  > >> > CXXFLAGS+=-Wall $(shell $(LLVM_CONFIG) --cxxflags) -fvisibility=hidden<br>> >  > ><br>> >  > > >>?<br>> >  > ><br>> >  > ><br>> >  > > I tried it with clean build and yes it did work when I remove the<br>> >  > > -fvisibility=hidden option<br>> >  ><br>> >  > if you restore the -fvisibility=hidden option and replace LLVM_GLOBAL_VISIBILITY<br>> >  > with __attribute__ ((visibility("default"))) everywhere in llvm-backend.cpp,<br>> >  > does it work?<br>> >  ><br>> >  > Ciao,<br>> >  ><br>> >  > Duncan.<br>> <br>                                          </body>
</html>