Build problems solved, package builds again.
Note that I don't have access to systems with intel videocards so can't do runtime testing of their drivers.
Incase you do use intel with this package, please let me know of issues.
Git Clone URL: | https://aur.archlinux.org/lib32-mesa-minimal-git.git (read-only, click to copy) |
---|---|
Package Base: | lib32-mesa-minimal-git |
Description: | an open-source implementation of the OpenGL specification, git version |
Upstream URL: | https://www.mesa3d.org |
Licenses: | MIT AND BSD-3-Clause AND SGI-B-2.0 |
Conflicts: | lib32-libva-mesa-driver, lib32-mesa, lib32-mesa-libgl, lib32-mesa-vdpau, lib32-mesa-vulkan, lib32-opencl-clover-mesa, lib32-opencl-rusticl-mesa, lib32-vulkan-intel, lib32-vulkan-mesa-layers, lib32-vulkan-nouveau, lib32-vulkan-radeon, lib32-vulkan-virtio |
Provides: | lib32-libva-mesa-driver, lib32-mesa, lib32-mesa-vdpau, lib32-mesa-vulkan, lib32-opengl-driver, lib32-vulkan-driver, lib32-vulkan-mesa-layers, lib32-vulkan-radeon, lib32-vulkan-virtio |
Submitter: | shoober420 |
Maintainer: | Lone_Wolf |
Last Packager: | Lone_Wolf |
Votes: | 7 |
Popularity: | 0.000003 |
First Submitted: | 2020-12-10 00:42 (UTC) |
Last Updated: | 2024-09-11 10:38 (UTC) |
Build problems solved, package builds again.
Note that I don't have access to systems with intel videocards so can't do runtime testing of their drivers.
Incase you do use intel with this package, please let me know of issues.
Mesa commit b52e25d3 breaks intel iris & anv build UNLESS OpenCL support is present.
Incase you don't need those drivers, a temporary workaround is to disable them.
lib32-mesa-git is also affected.
Build failure
Run-time dependency libclc found: NO (tried pkgconfig)
mesa/meson.build:844:12: ERROR: Dependency "libclc" not found, tried pkgconfig
Started bisecting
The 2 patches are no longer needed, comment the lines in prepare() that apply them until I have time to build & upload new version without them.
Done, thanks for the confirmation & reminder.
Hi Lone_Wolf, could you please also apply the new CGFT_ and CodeGenOpt patches from mesa-minimal-git to this package? Doing it manually works fine. Thank you for your work.
makechrootpkg uses systemd-nspawn which limits /tmp to 20% of total memory so it may still be an issue.
create a new folder, git clone https://aur.archlinux.org/lib32-mesa-minimal-git.git (to ensure you're using the same files as I do).
run multilib-build (or the equivalent for your chosen chroot setup) .
The partial error looks like it is after meson has run, but the cause may still lie in the configure part.
After it fails upload the build log & src/_build/meson-logs/meson-log.txt somewhere public.
Incase you need help with that, see https://wiki.archlinux.org/title/List_of_applications#Pastebin_services
Yes, the vdpau is enabled in mesa-minimal-git hence I am wondering why it trips here.. As for regular building and the clang error, yes, I did clean the chroot and made sure to pull the latest updates before trying to build yesterday..
Overall tried it few times across past three days, always ends up same way.. System have 64GB of ram so this should not be an issue..
It also errors out with dependency vdpau not found if I'd change the vdpau to enabled in the PKGBUILD.. Not sure if this an issue on my end, or upstream since I don't see anyone reporting similar issues..
vdpau needs to be enabled in mesa-minimal-git for vdpau in lib32-mesa-minimal-git to work. I am not entirely happy with the way my pacakges deal with vdpau now and am considering to enable it, probably 2nd half of this month due to time constraints.
No issue here with normal build or multilib-build .
I recently updated the PKGBUILD, make sure you use the latest one.
does adding -c (Clean the chroot before building) to the build command help ?
How much memory does your system have ?
Hello, I am having trouble building this package for the past few days on a new system, both llvm and mesa-minimal builds fine.. I am building everything in clean chroot. Here's an excerpt from the log file:
Compiler stderr:
Compiler for C++ supports arguments -Wno-ignored-attributes: YES Got config-tool variable libdir : /usr/lib32 Got config-tool variable libdir : /usr/lib32 Library Polly found: NO Library PollyISL found: NO Library clang-cpp found: NO Running compile: Working directory: /tmp/makepkg/lib32-mesa-minimal-git/src/_build/meson-private/tmppbzhjfxq Command line: g++ -m32 /tmp/makepkg/lib32-mesa-minimal-git/src/_build/meson-private/tmppbzhjfxq/testfile.cpp -o /tmp/makepkg/lib32-mesa-minimal-git/src/_build/meson-private/tmppbzhjfxq/output.exe -march=native -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Wl,--fatal-warnings -Wl,--rpath=/usr/lib32 -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
Code: int main(void) { return 0; }
Compiler stdout:
Compiler stderr:
Compiler for C++ supports link arguments -Wl,--rpath=/usr/lib32: YES Running compile: Working directory: /tmp/makepkg/lib32-mesa-minimal-git/src/_build/meson-private/tmpfbatpfo4 Command line: g++ -m32 /tmp/makepkg/lib32-mesa-minimal-git/src/_build/meson-private/tmpfbatpfo4/testfile.cpp -o /tmp/makepkg/lib32-mesa-minimal-git/src/_build/meson-private/tmpfbatpfo4/output.exe -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -pthread -march=native -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -std=c++17 -Wl,--rpath=/usr/lib32 -Wl,--start-group -lLLVM-16 -Wl,--end-group -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
Code:
#include <clang/Basic/Version.h> int main (void) { size_t found_pos = clang::getClangFullVersion().find(CLANG_VERSION_STRING); return found_pos == ::std::string::npos ? 1 : 0; }
Compiler stdout:
Compiler stderr: In file included from /usr/include/c++/12.2.0/x86_64-pc-linux-gnu/32/bits/os_defines.h:39, from /usr/include/c++/12.2.0/x86_64-pc-linux-gnu/32/bits/c++config.h:655, from /usr/include/c++/12.2.0/cassert:43, from /usr/include/llvm/ADT/DenseMapInfo.h:17, from /usr/include/llvm/ADT/StringRef.h:12, from /usr/include/clang/Basic/Version.h:19, from /tmp/makepkg/lib32-mesa-minimal-git/src/_build/meson-private/tmpfbatpfo4/testfile.cpp:2: /usr/include/features.h:412:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 412 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | >~~~~~~ /usr/bin/ld: /tmp/ccds0y6Y.o: in function
main': testfile.cpp:(.text+0x35): undefined reference to
clang::getClangFullVersionabi:cxx11' collect2: error: ld returned 1 exit statusCould not compile test file /tmp/makepkg/lib32-mesa-minimal-git/src/_build/meson-private/tmpfbatpfo4/testfile.cpp: 1
Checking if "dep-clang-usable" with dependencies LLVM, -lclang-cpp, threads runs: DID NOT COMPILE
mesa/src/gallium/targets/opencl/meson.build:62:2: ERROR: C++ shared or static library 'clangCodeGen' not found
It also errors out with dependency vdpau not found if I'd change the vdpau to enabled in the PKGBUILD.. Not sure if this an issue on my end, or upstream since I don't see anyone reporting similar issues..
Pinned Comments
Lone_Wolf commented on 2024-03-30 16:05 (UTC) (edited on 2024-08-31 11:11 (UTC) by Lone_Wolf)
Build order
make sure mesa-minmal-git and deps are uptodate, see https://aur.archlinux.org/packages/mesa-minimal-git#comment-916087