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
Failed to compile with multithreading with linker error #2255
Comments
A google search of the error (minus verilator specifics) suggests: " If you are compiling an application under Linux and get an error message like: So this would be to verilated.h. If this works please consider submitting a pull request to fix it. If not, maybe there are other online suggestions. |
I added the include in verilated.h as suggested and than the options "--threads" works. My change in my own repository:
|
I also ran into this problem, but the solution above doesn't fix it
Still looking into other solutions |
Ignore my previous comment for now, not seeing it in some situations and I am seeing it in others. Will work to find out more. |
Any feedback on if you got Verilator multithreading working? Would like to close this issue out. Thanks |
Yeah, I got it working. I needed to use dev tools-8 on Centos/RHEL
… On May 27, 2020, at 3:55 PM, Wilson Snyder ***@***.***> wrote:
Any feedback on if you got Verilator multithreading working? Would like to close this issue out. Thanks
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Great! |
I ran into this problem when I tried to add either I found that I just forgot to add |
Related to the error of verilator#2255: /usr/bin/ld: _ZN9Verilated3t_sE: TLS reference in ... mismatches non-TLS definition in verilated.o section .bss Adding `#include <errno.h>` does not seem to provide a consistent fix - I think that the `#include <cerrno>` of verilated.cpp provides a conflicting definition of `errno` in some edge-cases. Adding the identical include in verilated.h (seems to) fix the error.
I try to compile a design similar to the pulpissimo SoC from github.com/pulp-platform/pulpissimo. It works well with verilator as long as single-threading in selected.
If I add the option "--threads 4" I get the following error message:
/usr/bin/ld: _ZN9Verilated3t_sE: TLS reference in Vdimad01_digital_top__ALL.a(Vdimad01_digital_top__ALLcls.o) mismatches non-TLS definition in verilated.o section .bss
/usr/bin/ld: Vdimad01_digital_top__ALL.a: error adding symbols: bad value
collect2: error: ld returned 1 exit status
I used the Windows-Subsystem for Linux with the Debian distribution.
The text was updated successfully, but these errors were encountered: