-
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
Unable to Build riscv-gnu-toolchain: libunwind Dependency Error #1623
Comments
Please capture and attach your build log - e.g.:
|
Could this be relevant? |
@TommyMurphyTM1234 I have already visited this website: |
Both of these look quite old:
My LLVM build is still in progress (it's very slow on the hardware that I have) but I don't think that it's suffering from the same problem. In the build log I see this:
so I presume that I have got past the step where yours fails? For what it's worth I'm using the following:
Maybe your build platform and/or tools are simply too out of date? Note that the CI builds take place on Ubuntu 22,04 and 24.04
|
@TommyMurphyTM1234 |
I don't understand:
The build log that you previously uploaded has this:
|
@TommyMurphyTM1234 |
@TommyMurphyTM1234 |
Screeshots are really not ideal for this sort of issue - difficult to read for some and impossible to search/process. |
Sorry, this is new log using GCC 13.2.0 |
That doesn't seem to be a full build log?
|
@TommyMurphyTM1234 |
@TommyMurphyTM1234 |
My build finally completed and did so successfully.
My build log:
As before, same host details as posted here: |
@TommyMurphyTM1234 This is my command:
|
My mistake - let me run a new build but it may take a while. |
OK, thank you so much |
OK - I was able to reproduce the issue:
|
Curiously this builds OK:
but this fails:
So, for some reason, the non-default |
That's too much in the LLVM details. Maybe Kito has more experience with this. |
Below seems to be the first anomalous difference between the working and failing builds - maybe it is significant? Working build:
Failing build:
|
The only other suggestion that I have at the moment is to see if the same sort of issue arises if LLVM/Clang is built for RISC-V using upstream sources and build scripts rather than the |
Hello,
I encountered an error while building the
riscv-gnu-toochain
using the following configuration:./configure --prefix=$RISCV --enable-llvm --enable-linux --with-arch=rv64ima_zicsr --with-abi=lp64
The error message is as follows:
CMake Error at /home/yiteng/riscv-gnu-toolchain/llvm/libunwind/src/CMakeLists.txt:102 (message): Compiler doesn't support generation of unwind tables if exception support is disabled. Building libunwind DSO with runtime dependency on C++ ABI library is not supported.
It seems to be related to the dependency on the C++ ABI library for building
libunwind
. I am unsure how to resolve this issue.Could you provide guidance on how to fix this error or suggest the correct configuration flags to avoid it?
Thank you in advance for your assistance!
The text was updated successfully, but these errors were encountered: