-
Notifications
You must be signed in to change notification settings - Fork 28
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
open64/osprey/targdir/targ_info/targ_si_gen Segmentation fault #21
Comments
Config command: |
I built open64 on ubuntu 20.04. To build, need to install the following: Finally, inside ~/build directory, I do |
@shinmingliu That might be useful, but why exactly do you need g++ on riscv64? |
Also tried on Arch Linux. No luck. |
EDIT @shinmingliu I was dumb and put the wrong command. Today I tried it and it actually started building Open64!.. Until |
Could you please attach more details or log about your error output? |
@Yvan-xy I am sorry but I am currently in vacation, and I have only my Void Linux laptop with me. The build however still fails at
Quick things about my file structure: As such, the git folder looks like this:
without however counting other repos in there too |
Current system config:
MAKE: Gnu Make 4.3 if you need any other type of info just let me know! |
Also, I am running |
please run |
@Yvan-xy OK. Here's the log:
|
It seems that you didn't set the $CLANG_HOME in ENV. Pls run export CLANG_HOME="/path/to/llvm" and then rerun the configure and make command. |
I Did set clang home to what @shinmingliu said:
Same problem as before |
@Yvan-xy |
It should be LLVM path rather than /use/lib/clang. Sorry about the confusing variable name. I will refine it later. Please try again. |
I don't know where llvm lives actually... There is no /usr/lib/llvm somehow, even tho i have llvm 15 installed |
I am on Void Linux, not Ubuntu nor ubuntu based. Void uses the xbps package manager. My install command was |
Note that void is rolling release like arch |
I am not familiar with this Linux release. I think maybe you can try to use |
@Yvan-xy FOUND IT! Void installs LLVM in Unfortunately, even after setting LLVM_HOME and CLANG_HOME to the new directory, it still fails at the same Makefile:406 error |
Can you found this file |
Yes, Do I need LLVM_HOME and CLANG_HOME to be the same? |
yes, they should be the same. Thx |
I Just realized GitHub issues are realtime lol Anyways, it seems to be compiling right now. Even if this is a laptop with a Ryzen 5825U, it might take a while. I'll notify you when I am done! |
non lol it failed again:
Same error, (again 😭 ) But at least now it took much longer to get there |
please post the log of |
This will take a long while |
No, you don't have to delete the cache files. Just rerun |
Ok, so:
|
I don't have LLD installed is that the issue? |
it seems that |
Oh.. well, let's see Edit: They're both already installed |
Do you have lib64tinfo6(terminfo) on your OS? |
No. I just installed |
Whoops that failed too
|
ok so somehow no |
I have no idea why the linker can't find these functions. And I noticed that some functions of LLVM like(llvm::DWARFDie::find(llvm::dwarf::Attribute)' are also missing. Maybe the linker can't find the corresponding |
Yeah in the meantime I will open a reddit post on r/voidlinux about |
Here are all my commands:
|
Maybe the problem lies in Or at least, there is a bin directory, just inside /usr/lib/clang/15.0.7 I'll try changing that |
export CLANG_HOME=/usr/include/llvm |
doesn't do anything. Already tried that |
run |
/usr/lib |
So the structure of libraries on void linux is totally different from Ubuntu. Maybe that's why the linker failed to find the corresponding libs |
Well, what do I do now? I need to reconfigure the linker flags? |
It's too difficult. The way easier way you can try is to compile and install llvm by yourself. However, The simplest way is to build Open64 in Ubuntu docker. 😂 |
oh my god |
Maybe it is a good idea to add a Dockerfile to this Repo to avoid the complicated compilation process. |
I would personally just let the user specify library paths |
As the title implies, I can't build Open64 because of targ_si_gen's segmentation fault
My OS is Void Linux x86_64. I am building with host, target and build as x86_64-pc-linux-gnu
The text was updated successfully, but these errors were encountered: