-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Multilib: missing C++ headers for rv64gc/lp64d #1038
Comments
I found a workaround:
So we need a string-match of the |
I've improve the multi-lib selection last year, but that isn't merge yet, and I might send again once stage 1 is open. |
Thanks for pointing to that! |
This is still extant with the latest sources (branch: master, commit: c63d1b6). There seem to be two possibly related issues
When the toolchain is configured (as it is by default) for
But when compiling code using the toolchain it does not understand that when Secondly, the toolchain default headers are installed into, say, However, I'm little the wiser as to what is (are) the appropriate change(s) here to address this. There seem to be wider issues with the handling of the canonicalized arch string that affect other things and which is in a state of flux at the moment? |
As mentioned below, another workaround is to not explicitly specify the toolchain default arch at all:
|
This issue no longer occurs using a build of the toolchain at the latest commit: |
When building this repository with
--enable-multilib --enable-linux
, we get a Linux multilib toolchain.Let's now create a simple C++ program
foo.cpp
:Let's now compile that for all valid combinations (rv32gc/ilp32, rv32gc/ilp32d, rv64gc/lp64, rv64/lp64d):
We can see, that the combination rv64gc/lp64d is missing the header file
bits/c++config.h
.Let's look it up:
Looks like the header is there, but not installed into
lib64/lp64d
.Let's see if that's the case for glibc headers:
Further info:
[...] --prefix=/opt/riscv-rvi [...] --enable-multilib --with-abi=lp64d --with-arch=rv64imafdc
Any thoughts on how to fix this issue? Do we need to fix this in GCC's multilib build scripts?
The text was updated successfully, but these errors were encountered: