[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gambas-devel
Subject:    [Gambas-devel] Porting gambas to cygwin - what is the purpose of jit_gambas_pass_dummy.cpp
From:       Nigel Gerrard <nigel.dh.gerrard () gmail ! com>
Date:       2014-04-29 15:12:03
Message-ID: CAPF0NfZco7POBcSw2anTxAVeOVCc_qfjoNii18YBc5aOff=1hQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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 -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


[Attachment #5 (text/html)]

<div dir="ltr"><div>When compiling under cygwin the gb.jit component, linking fails \
with the following:</div><div><br></div><div>  /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 <a href="http://gb.jit.la">gb.jit.la</a> -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</div> \
<div>.libs/gb_jit_la-jit_gambas_pass_dummy.o:jit_gambas_pass_dummy.cpp:(.bss+0x0): \
multiple definition of `typeinfo for \
llvm::FunctionPass&#39;</div><div>.libs/gb_jit_la-jit_gambas_pass.o:jit_gambas_pass.cpp:(.rdata$_ZTIN4llvm12FunctionPassE[__ZTIN4llvm12FunctionPassE]+0x0): \
first defined here</div> <div>collect2: error: ld returned 1 exit \
status</div><div><br></div><div>What is the purpose of jit_gambas_pass_dummy.cpp \
(complete code below):</div><div>===================================================</div><div><div>
 // I found no easy way to compile jit_gambas_pass.cpp with -no-rtti as CXXFLAGS \
while still</div><div>// have rtti enabled for jit_codegen.cpp \
...</div><div><br></div><div>extern &quot;C&quot; {</div><div>            void* \
_ZTIN4llvm12FunctionPassE;</div> \
<div>}</div></div><div>==================================================</div><div><br></div><div>regards</div><div><br></div><div>Nigel</div></div>




------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs

_______________________________________________
Gambas-devel mailing list
Gambas-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic