Compilation Error failes to initialize plugin

28 views
Skip to first unread message

midodim...@gmail.com

unread,
May 18, 2020, 2:58:25 AM5/18/20
to PandA project discussions and questions
Hello everyone,

I am currently new to the software and I am still going over the tutorial given on the website. I am facing a problem in compilation whenever I run the command "bambu ../spec.c", which is a command given in the tutorial. The problem is that it works the first time, but when I tried to execute the same command again, I get the following error message:
[
Error in compilation
cc1: note: disable pass tree-bswap for functions in the range of [0, 4294967295]
cc1: error: fail to initialize plugin /home/ubuntu/panda/gcc_plugins/gcc7_plugin_dumpGimpleSSA.so
error -> GCC returns an error during compilation 2
    void GccWrapper::CompileFile(const string&, std::__cxx11::string&, const string&, GccWrapper_CompilerMode)
]

I do not know how to solve it, I would appreciate it if someone can help :D.
Please not that I am using the preinstalled software on the virtual box, the one provided on the website already

Best regards
Abdelsalam

nikhil ghanathe

unread,
Jul 13, 2020, 3:04:33 AM7/13/20
to PandA project discussions and questions
Hi, I faced this similar issue.
When you use the virtual machine from the bambu website, the shared obejct (.so) files that come with bambu are already present in the VM..
When you start the VM for the first time, ubuntu starts 'unattended-upgrades' automatically, which is needed to keep your computer software up-to-date. 
I am assuming this is what happens (although I don't have any proof). The gcc is updated during this process and hence the bambu shared object files are out of date. As a result, gcc fails to link them.

The solution is to either stop the 'unattended-upgrades' as soon as you start the VM for the first time or install bambu from the source. The latter worked for me. 

Hope this helps!

Best.
Nikhil

Fabrizio Ferrandi

unread,
Jul 13, 2020, 3:14:03 AM7/13/20
to PandA project discussions and questions
Hello,

gcc plugins need to be re-compiled any time the associated compiler is updated. One way to sort out this issue is to recompile bambu starting from the source code included in the VM while the other is to block the VM updates as suggested by Nikhil.
In these days I'm working on a solution based on the AppImage infrastructure (https://appimage.org/). In this last case the binary will include a specific compiler used only by the bambu code.
Cheers,
Fabrizio

midoze...@gmail.com

unread,
Jul 26, 2020, 4:25:32 AM7/26/20
to PandA project discussions and questions
I appreciate your reply, thanks.

midoze...@gmail.com

unread,
Jul 26, 2020, 4:25:32 AM7/26/20
to PandA project discussions and questions
Thanks a lot for your reply.
Reply all
Reply to author
Forward
0 new messages