<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<br><br><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///C:%5Ctemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
</w:Compatibility>
<w:DoNotOptimizeForBrowser/>
</w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" LatentStyleCount="156">
</w:LatentStyles>
</xml><![endif]--><style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:Arial;
mso-fareast-font-family:"Times New Roman";}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;
mso-header-margin:36.0pt;
mso-footer-margin:36.0pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
mso-bidi-language:#0400;}
</style>
<![endif]-->
<p class="MsoPlainText">>>Hi Rehman, does it work if you remove -fvisibility=hidden
from these two lines<o:p></o:p></p>
<p class="MsoPlainText">>>in the Makefile:<o:p></o:p></p>
<p class="MsoPlainText"><span style="">>> </span>CFLAGS+=-Wall
$(shell $(LLVM_CONFIG) --cflags) -fvisibility=hidden<o:p></o:p></p>
<p class="MsoPlainText"><span style="">>> </span>CXXFLAGS+=-Wall
$(shell $(LLVM_CONFIG) --cxxflags) -fvisibility=hidden<o:p></o:p></p>
<p class="MsoPlainText">>>?</p><p class="MsoPlainText"><br></p><p class="MsoPlainText">I tried it with clean build and yes it did work when I remove the -fvisibility=hidden option<br></p><p class="MsoPlainText"><br><o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">>> - Modified the llvm-backend.cpp in dragonegg to make
available the global<o:p></o:p></p>
<p class="MsoPlainText">>> plugin_is_GPL_compatible publically<o:p></o:p></p>
>>
<p class="MsoPlainText">>>What exactly did you change here?<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p><p class="MsoPlainText">GCC docs says that plugin_is_GPL_compatible need to be defined even if uninitialized so was trying to define this symbol by changing in llvm-backend.cpp:<br><o:p></o:p></p><p class="MsoPlainText"><o:p><br></o:p></p><p class="MsoPlainText">int plugin_is_GPL_compatible LLVM_GLOBAL_VISIBILITY;<br></p><p class="MsoPlainText"><br><o:p></o:p></p><p class="MsoPlainText"><o:p>Cheers,</o:p></p><p class="MsoPlainText"><o:p>Rehman<br></o:p></p><br> </body>
</html>