-
Notifications
You must be signed in to change notification settings - Fork 4
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
LLVM 16.0.6 #4
base: master
Are you sure you want to change the base?
LLVM 16.0.6 #4
Conversation
Interesting observation:
EDIT: sailfishos/cmake@817763e it's already taken care of. Good :-) |
rpmlint doesn't like the output on aarch64
|
With a lot of thanks to @direc85 for providing the patches for the patches and the build machine. I'll use said build machine now to get some recentish version of Rust to work :-) |
This comment was marked as outdated.
This comment was marked as outdated.
Disregard the previous comment -- all I had to do to make other architectures build out of the box was clearing the build cache before compiling the next one: |
This is a first-thing-that-worked patch to fix compiler error: > ninja: error: '/usr/lib64/libz.so', needed by 'bin/clang-tblgen', > missing and no known rule to make it Apparently it doesn't work on i486, likely due to cross compilation.
@@ -153,7 +153,7 @@ pushd build | |||
%endif | |||
-DCLANG_INCLUDE_TESTS:BOOL=OFF \ | |||
-DLLVM_MAIN_SRC_DIR=%{_datadir}/llvm/src \ | |||
%if 0%{?__isa_bits} == 64 | |||
%ifarch aarch64 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this change? This limits the usage for only aarch64 ignoring for example x86_64, I would prefer using the old way unless there are some issues with that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@direc85 do you know why you pushed this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If __isa_bits doesn't work you can also compare against %{_lib}.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was due to not clearing the previous build folder before changing architecture, so that change can be reverted.
clang build failed with |
@@ -153,7 +153,7 @@ pushd build | |||
%endif | |||
-DCLANG_INCLUDE_TESTS:BOOL=OFF \ | |||
-DLLVM_MAIN_SRC_DIR=%{_datadir}/llvm/src \ | |||
%if 0%{?__isa_bits} == 64 | |||
%ifarch aarch64 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
%ifarch aarch64 | |
%if "%{_lib}" == "lib64" |
This should be much better ^
Same for me here. Using Ubuntu packages as reference, it looks clang-tools-15 has them, but clang-tools-16 does not. I'll prepare a PR for this next. |
I'm leaving this to compile overnight, no need to test this yet.
See #3 for the explanation of my plan.