[LLVMdev] dragonegg plugin invoking issue

Rehman Saeed rehman_saeed at live.com
Tue Sep 14 03:15:53 PDT 2010



Hi Duncan,

Thank you very much for looking into it.

I used the command to build dragonegg

GCC=4.5.x make

and silently it was using system compiler which is yes 3.x.x

I turned the command to explicitly use latest compiler

GCC=4.5.x CC=4.5.x CXX=4.5.x make

and the problem gone away.

Regards,
Rehman


> Date: Thu, 9 Sep 2010 19:40:56 +0200
> From: baldrick at free.fr
> To: rehman_saeed at live.com
> CC: LLVMdev at cs.uiuc.edu
> Subject: Re: [LLVMdev] dragonegg plugin invoking issue
> 
> Hi Rehman, if I understand right the plugin works fine if you compile it with
> -fvisibility=hidden, and replace LLVM_GLOBAL_VISIBILITY in llvm-backend.cpp
> with __attribute__ ((visibility("default"))).  Since LLVM_GLOBAL_VISIBILITY
> is a macro that expands to __attribute__ ((visibility("default"))) if you
> are not on mingw32 or cygwin, and your gcc version is at least 4, that
> suggests that you are compiling the plugin with gcc 3.x.  Is that right?
> 
> Best wishes,
> 
> Duncan.
> 
> >
> > Hi Duncan,
> >
> > Thank you for further looking into it.
> >
> > Indeed I made changes as you described and I was able to build, run and compile
> > the my test program.
> >
> > Regards,
> > Rehman
> >
> >  > Date: Wed, 1 Sep 2010 15:15:32 +0200
> >  > From: baldrick at free.fr
> >  > To: rehman_saeed at live.com
> >  > Subject: Re: [LLVMdev] dragonegg plugin invoking issue
> >  >
> >  > Hi Rehman,
> >  >
> >  > > >>Hi Rehman, does it work if you remove -fvisibility=hidden from these two
> > lines
> >  > >
> >  > > >>in the Makefile:
> >  > >
> >  > >> > CFLAGS+=-Wall $(shell $(LLVM_CONFIG) --cflags) -fvisibility=hidden
> >  > >
> >  > >> > CXXFLAGS+=-Wall $(shell $(LLVM_CONFIG) --cxxflags) -fvisibility=hidden
> >  > >
> >  > > >>?
> >  > >
> >  > >
> >  > > I tried it with clean build and yes it did work when I remove the
> >  > > -fvisibility=hidden option
> >  >
> >  > if you restore the -fvisibility=hidden option and replace LLVM_GLOBAL_VISIBILITY
> >  > with __attribute__ ((visibility("default"))) everywhere in llvm-backend.cpp,
> >  > does it work?
> >  >
> >  > Ciao,
> >  >
> >  > Duncan.
> 
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100914/9f31c1b7/attachment.html>


More information about the llvm-dev mailing list