Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with modelsim simulation option #61

Closed
brunosmmm opened this issue Oct 31, 2014 · 2 comments
Closed

Issue with modelsim simulation option #61

brunosmmm opened this issue Oct 31, 2014 · 2 comments

Comments

@brunosmmm
Copy link

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

@olofk
Copy link
Owner

olofk commented Nov 26, 2014

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

@olofk
Copy link
Owner

olofk commented Dec 12, 2014

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

@olofk olofk closed this as completed Dec 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants