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.
| -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.
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.
@direc85 do you know why you pushed this?
There was a problem hiding this comment.
If __isa_bits doesn't work you can also compare against %{_lib}.
There was a problem hiding this comment.
This was due to not clearing the previous build folder before changing architecture, so that change can be reverted.
|
clang build failed with |
| -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.
| %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.