<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<br>Hi,<br><br>I am using latest sources on GCC (gcc4.5_branch), LLVM and dragonegg. I am able to build all three bits though unsuccessfull in building. Already done obvious things <br><br>- checked out the sources as per defined in "Getting the development version" on dragonegg.llvm.org <br>- Modified the llvm-backend.cpp in dragonegg to make available the global plugin_is_GPL_compatible publically<br>- exports.map do include the global symbol "plugin_is_GPL_compatible" and "plugin_init" <br><br>My host system is CentOS-3.8 and I am building it for same operating system and intel machine.<br><br>Can somebody please help me why GCC is not reconizing dragonegg.so as a legal plugin - as the requirement is symbol plugin_is_GPL_compatible should be able publically? Maybe I am missing something obvious. Please find below the different version & configuration and error which I am getting. Please let me know if I need to provide any further information. Thanks.<br><br>Regards,<br>Rehman<br><br><br>GCC configuration & version<br>---------------------------<br>$path_to/gcc-4.5.x/bin/gcc -v<br>Using built-in specs.<br>COLLECT_GCC=$path_to/gcc-4.5.x/bin/gcc<br>COLLECT_LTO_WRAPPER=$path_to/gcc-4.5.x/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.5.2/lto-wrapper<br>Target: x86_64-unknown-linux-gnu<br>Configured with: ../gcc-4.5.x/configure --prefix=$path_to/gcc-4.5.x --enable-threads=posix --disable-checking --with-system-zlib --enable-__c<br>xa_atexit --disable-libunwind-exceptions --enable-libgomp --enable-languages=c,c++ --with-mpc=$path_to_home/root/usr --with-mpfr=$path_to_home/root/usr -<br>-with-gmp=$path_to_home/root/usr --enable-plugin --enable-lto --with-libelf=$path_to_home/root/usr<br>Thread model: posix<br>gcc version 4.5.2 20100819 (prerelease) (GCC)<br><br>LLVM Config version<br>-------------------<br>llvm-config --version<br>2.8svn<br><br>CommandLine<br>------------<br>gcc hello.c -S -fplugin=./dragonegg.so -fplugin-arg-dragonegg-emit-ir<br><br>Error<br>cc1: fatal error: plugin ./dragonegg.so is not licensed under a GPL-compatible license<br>./dragonegg.so: undefined symbol: plugin_is_GPL_compatible<br>compilation terminated.<br><br><br>                                     </body>
</html>