Try removing clang-opencl-headers-minimal-git .
Incase you have opencl-rusticl-mesa-minimal-git installed you will also have to remove that temporarily.
Git Clone URL: | https://aur.archlinux.org/lib32-llvm-minimal-git.git (read-only, click to copy) |
---|---|
Package Base: | lib32-llvm-minimal-git |
Description: | Collection of modular and reusable compiler and toolchain technologies, 32-bit trunk version |
Upstream URL: | http://llvm.org/ |
Licenses: | Apache-2.0 WITH LLVM-exception |
Conflicts: | lib32-llvm |
Provides: | lib32-llvm |
Submitter: | Lone_Wolf |
Maintainer: | Lone_Wolf |
Last Packager: | Lone_Wolf |
Votes: | 1 |
Popularity: | 0.000000 |
First Submitted: | 2019-05-14 19:33 (UTC) |
Last Updated: | 2024-09-07 18:16 (UTC) |
Try removing clang-opencl-headers-minimal-git .
Incase you have opencl-rusticl-mesa-minimal-git installed you will also have to remove that temporarily.
edit: nevermind, manually deleted those files and reinstalled both lib32 and non-lib32 without issue.
When trying to install the package lib32-clang-opencl-headers-minimal-git (compiled from commit before the problematic one mentioned in your 2024-02-20 comment) I get the following error:
error: failed to commit transaction (conflicting files)
lib32-clang-opencl-headers-minimal-git: /usr/include/clang/Basic/OpenCLExtensionTypes.def exists in filesystem (owned by clang-opencl-headers-minimal-git)
lib32-clang-opencl-headers-minimal-git: /usr/include/clang/Basic/OpenCLExtensions.def exists in filesystem (owned by clang-opencl-headers-minimal-git)
lib32-clang-opencl-headers-minimal-git: /usr/include/clang/Basic/OpenCLImageTypes.def exists in filesystem (owned by clang-opencl-headers-minimal-git)
lib32-clang-opencl-headers-minimal-git: /usr/include/clang/Basic/OpenCLOptions.h exists in filesystem (owned by clang-opencl-headers-minimal-git)
https://github.com/llvm/llvm-project/commit/91a384621e5b762d9c173ffd247cfeadd5f436a2 changed soname and broke this package.
I was trying to build 19.0.0_r490079.5e83b26584c9-1 last night and got this error. Tried again with 19.0.0_r490124.d022f32c73c5-1 this afternoon and same error, both times compiling against the corresponding version of llvm-minimal-git. Will try again tomorrow.
EDIT: Getting this now (version 19.0.0_r490208.b3e4686af37c-1):
[ 88%] Generating Confusables.inc
../../../../../../bin/clang-tidy-confusable-chars-gen: error while loading shared libraries: libLLVM.so.19.0: cannot open shared object file: No such file or directory
make[2]: *** [tools/clang/tools/extra/clang-tidy/misc/CMakeFiles/genconfusable.dir/build.make:74: tools/clang/tools/extra/clang-tidy/misc/Confusables.inc] Error 127
make[1]: *** [CMakeFiles/Makefile2:56190: tools/clang/tools/extra/clang-tidy/misc/CMakeFiles/genconfusable.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[...]
make: *** [Makefile:156: all] Error 2
make: Leaving directory '/tmp/makepkg/lib32-llvm-minimal-git/src/_build'
==> ERROR: A failure occurred in build().
Aborting...
llvm-minimal-git & llvm-libs-minimal-git are installed and libLLVM.so.19.0 exists in /usr/lib/
Although very similar, karrypto & sevy2010 have different errors.
Look carefully at the udefined symbol, they differ in the 2 errors.
I've seen similar errors before, but am not sure of the real cause for them.
Try rebuilding llvm-minimal-git to latest, then lib32-llvm-minimal-git again.
getting the same error as karrypto:
./../../../bin/clang-ast-dump: symbol lookup error: ../../../../bin/clang-ast-dump: undefined symbol: _ZN4llvm13StringMapImpl4hashENS_9StringRefE, version LLVM_19
make[2]: *** [tools/clang/lib/Tooling/CMakeFiles/obj.clangTooling.dir/build.make:81: tools/clang/lib/Tooling/ASTNodeAPI.json] Error 127
make[1]: *** [CMakeFiles/Makefile2:49159: tools/clang/lib/Tooling/CMakeFiles/obj.clangTooling.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:156: all] Error 2
Version: 19.0.0_r490156.61a96e5afadd-1
can't reproduce with 19.0.0_r490150.8de230093f58-1 .
Which version were you trying to build ?
Getting the following error while building:
[ 91%] ASTNodeAPI.json
../../../../bin/clang-ast-dump: symbol lookup error: ../../../../bin/clang-ast-dump: undefined symbol: _ZN4llvm6AMDGPU23getArchFamilyNameAMDGCNENS0_7GPUKindE, version LLVM_19
make[2]: *** [tools/clang/lib/Tooling/CMakeFiles/obj.clangTooling.dir/build.make:81: tools/clang/lib/Tooling/ASTNodeAPI.json] Error 127
make[1]: *** [CMakeFiles/Makefile2:49158: tools/clang/lib/Tooling/CMakeFiles/obj.clangTooling.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 91%] Built target obj.clangReorderFields
[ 91%] Built target obj.clangTidyPerformanceModule
make: *** [Makefile:156: all] Error 2
make: Leaving directory '/tmp/makepkg/lib32-llvm-minimal-git/src/_build'
==> ERROR: A failure occurred in build().
Aborting...
No, it has nothing to do with the chroot. I believe the error message is somewhat misleading as it only shows up when I build with LTO on. Trimmed log is here if you're curious: https://pastebin.com/XEJv2JVL
The out of space is due to chroots using systemd-nspawn which defaults to reserving 10% of available ram for /tmp. https://bbs.archlinux.org/viewtopic.php?id=277304 has more info.
I will look into building with lto disabled and check if lib32-zstd should be a makedepend.
Pinned Comments
Lone_Wolf commented on 2024-02-20 11:59 (UTC)
https://github.com/llvm/llvm-project/commit/91a384621e5b762d9c173ffd247cfeadd5f436a2 changed soname and broke this package.
Lone_Wolf commented on 2019-08-21 13:47 (UTC)
When building this you're likely to get test failures.
The ones related to tools/gold are a consequence of certain choices and should be unimportant.
Use --nocheck option to prevent makepkg from running the check() function