[Gambas-devel] Porting gambas to cygwin - what is the purpose of jit_gambas_pass_dummy.cpp

Emil Lenngren emil.lenngren at ...176...
Mon May 26 23:58:29 CEST 2014


Hi. It is just a dummy file to make sure it compiles and links. If it with
the newest llvm is not needed anymore, you can remove it or comment out the
code.

/Emil


2014-05-26 23:43 GMT+02:00 Nigel Gerrard <nigel.dh.gerrard at ...176...>:

> If I comment out the code:
>
> /*
> extern "C" {
> 	void* _ZTIN4llvm12FunctionPassE;
> }
> */
>
> The compile and link works without an issue.
>
> Regards
>
>
> Nigel
>
> On  2014-05-13 18:37:56  Emil Lenngren wrote:
>
> >What happens if you delete everything in that >file (or remove it from the
> >makefile)?
>
>
> > >2014-05-13 18:23 GMT+02:00 Benoît Minisini <gambas at ...570...>:
>
> > > Le 29/04/2014 17:12, Nigel Gerrard a écrit :
> > > > When compiling under cygwin the gb.jit component, linking fails with the
> > > > following:
> > > >
> > > >   /bin/sh ../libtool --silent --tag=CXX   --mode=link g++ -pipe -Wall
> > > > -fno-exceptions -Wno-unused-value -fsigned-char -g -ggdb -Os
> > > > -fno-omit-frame-pointer -std=gnu++0x -fno-exceptions  -module
> > > >   -no-undefined   -o gb.jit.la <http://gb.jit.la>; -rpath
> > > > /usr/lib/gambas3 gb_jit_la-jit_api.lo gb_jit_la-jit_codegen.lo
> > > > gb_jit_la-jit_compile.lo gb_jit_la-jit_conv.lo
> > > > gb_jit_la-jit_expressions.lo gb_jit_la-jit_read.lo
> > > > gb_jit_la-jit_runtime.lo gb_jit_la-jit_gambas_pass.lo
> > > > gb_jit_la-jit_gambas_pass_dummy.lo gb_jit_la-main.lo -lc -L/usr/lib
> > > >   -lpthread -lffi -lm  -lLLVM-3.1 -lgcc_s
> > > >
> > > >.libs/gb_jit_la-jit_gambas_pass_dummy.o:jit_gambas_pass_dummy.cpp:(.bss+0x0):
> > > > multiple definition of `typeinfo for llvm::FunctionPass'
> > > >
> > > >.libs/gb_jit_la-jit_gambas_pass.o:jit_gambas_pass.cpp:(.rdata$_ZTIN4llvm12FunctionPassE[__ZTIN4llvm12FunctionPassE]+0x0):
> > > > first defined here
> > > > collect2: error: ld returned 1 exit status
> > > >
> > > > What is the purpose of jit_gambas_pass_dummy.cpp (complete code below):
> > > > ===================================================
> > > > // I found no easy way to compile jit_gambas_pass.cpp with -no-rtti as
> > > > CXXFLAGS while still
> > > > // have rtti enabled for jit_codegen.cpp ...
> > > >
> > > > extern "C" {
> > > >          void* _ZTIN4llvm12FunctionPassE;
> > > > }
> > > > ==================================================
> > > >
> > > >regards
> > > >
> > > >Nigel
> > > >
> > >
> > > Mmm. Only Emil could answer that...
> > >
> > > --
> > > Benoît Minisini
> > >
> > >
>
>
>
> ------------------------------------------------------------------------------
> The best possible search technologies are now affordable for all companies.
> Download your FREE open source Enterprise Search Engine today!
> Our experts will assist you in its installation for $59/mo, no commitment.
> Test it for FREE on our Cloud platform anytime!
>
> http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk
> _______________________________________________
> Gambas-devel mailing list
> Gambas-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20140526/48f7b5c2/attachment.html>


More information about the Devel mailing list