You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I tried to use the modelsim option. I had problems when fusesoc is compiling vpi modules for simulation, and simulation fails before starting. Failing occurs at linking
So I did some research and solved the issue by adding the compiler switch "-fno-stack-protector".
Now I am not sure if this problem is due to my system configuration. Probably gcc on this system has stack protection enabled, but then it tries linking a library that was compiled without stack protection, and linking fails.
Hi. Sorry for the delay. I had missed this one.
From what I have heard, gcc will start to always enable the stack protectors in upcoming releases. I'm not sure however if the problem is in the modelsim code or in our VPI code. If it's in the modelsim code, there's not much we can do and we should definitely apply your patch, but if the problem is because we write bad code we should fix it.
On the other hand, the stack protector costs some performance, so we might be better of always disabling it. Would love to get some more input on this by someone who knows more, but if no one says otherwise I will apply your patch. Thanks for reporting
I stumbled upon the same issue when I ran some simulations a few days ago, so now there is a fix for it in FuseSoC. Sorry for the delay, and thanks again for finding, reporting and patching
Hi, I tried to use the modelsim option. I had problems when fusesoc is compiling vpi modules for simulation, and simulation fails before starting. Failing occurs at linking
So I did some research and solved the issue by adding the compiler switch "-fno-stack-protector".
Now I am not sure if this problem is due to my system configuration. Probably gcc on this system has stack protection enabled, but then it tries linking a library that was compiled without stack protection, and linking fails.
Diff: http://pastebin.com/MQtdHs50
The text was updated successfully, but these errors were encountered: