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
Multi-thread example: --threads 1 (compile error) #1355
Comments
Original Redmine Comment Googling "undefined reference to `TLS init function" says this is a gcc bug. What version of GCC are you using? gcc 4.7 has this bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59364 gcc 7 has this bug: While we might be able to find a workaround, this suggests trouble ahead, perhaps you could either not use threading or a different GCC? |
Original Redmine Comment Sorry the delay. Yes, I am using gcc 7. I don't need threading for the moment, just curious about it and wanted to test it. Thanks for verilator. |
Original Redmine Comment Hi. With gcc 8 the error was:
Best regards, |
Original Redmine Comment Mutex is already included on line 42 of verilated.h, so I don't understand the GCC error. Also gcc 8.2.0 works for me. Please see if from the git directory typing "test_regress/t/t_EXAMPLE.pl --vltmt" passes or fails. If it passes describe the steps that give you the error, if it fails not sure what's still strange on your platform. |
Original Redmine Comment Didn't hear back so closing this for now, if you figured it out please post back here. Thanks. |
Author Name: Danilo Ramos
Original Redmine Issue: 1355 from https://www.veripool.org
Original Assignee: Wilson Snyder (@wsnyder)
Hello.
Is there a multi-thread example? If I just enable --threads 1 I got a compile error which I cannot go through.
I have never done a multi-thread C++ project. Is there something I am missing? Maybe I forgot to include something in main.c file?
Thanks,
Danilo.
The text was updated successfully, but these errors were encountered: