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
Building a RV32I Toolchain: undefined reference to `_initialize_string_view_selftests()' #213
Comments
I'm having the same issue on Debian bookworm/sid.
My gdb version is:
|
Sorry, I failed to update with my working workaround. It's not pretty, but it works. First, we have to inject at a point in the build process:
|
at which point I could remove the offending line from picorv32/riscv-gnu-toolchain-riscv32i/riscv-gdb/Makefile.in:
I didn't follow up because I wanted a cleaner fix, but hopefully this can help someone. |
Thanks @tommythorn ! I could get it working this way |
Also getting this problem. |
Thank you |
This strictly isn't a problem with picorv32, but with the RISCV toolchain. However I'll start here as I suspect many might hit this from here.
Environment: a fully updated Ubuntu 21.10/AMD64
Commands:
Digging into this we find
The file
/tmp/picorv32/riscv-gnu-toolchain-riscv32i/build/build-gdb-newlib/gdb/init.c
is auto-generated by the GDB Makefile and the relevant file exist but is empty:I've tried various hacks, but as everything is overwritten by git, and much is autogenerated, this hasn't been successful yet. I'm throwing up this issue in case somebody has hit this and have a suggestion.
The text was updated successfully, but these errors were encountered: