Compiling mesa-23.3.2-2 fails

Retrieved source files from: Files · 23.3.2-2 · Packages / Extra / mesa · GitLab

Added following line to PKGBUILD:
-D video-codecs=vc1dec,h264dec,h264enc,h265dec,h265enc

then issued command:

$ makepkg

Received the following output:

==> Making package: mesa 1:23.3.2-2 (Sat 13 Jan 2024 06:12:45 PM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading mesa-23.3.2.tar.xz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   162  100   162    0     0    552      0 --:--:-- --:--:-- --:--:--   552
100 18.4M  100 18.4M    0     0   950k      0  0:00:19  0:00:19 --:--:-- 1815k
  -> Downloading mesa-23.3.2.tar.xz.sig...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   162  100   162    0     0    545      0 --:--:-- --:--:-- --:--:--   545
100   310  100   310    0     0    737      0 --:--:-- --:--:-- --:--:--   737
  -> Downloading 325fb6e26b62326c86514d263ffedd241fd36865.patch...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1314    0  1314    0     0   3471      0 --:--:-- --:--:-- --:--:--  3485
  -> Found LICENSE
==> Validating source files with sha256sums...
    mesa-23.3.2.tar.xz ... Passed
    mesa-23.3.2.tar.xz.sig ... Skipped
    325fb6e26b62326c86514d263ffedd241fd36865.patch ... FAILED
    LICENSE ... Passed
==> ERROR: One or more files did not pass the validity check!
$ 

1:23.3.3-1 is current on all branches. Try and modify Manjaro PKGBUILD located here:

snipped:
    -D valgrind=enabled
    -D video-codecs=vc1dec,h264dec,h264enc,h265dec,h265enc     
    -D vulkan-drivers=amd,intel,intel_hasvk,swrast
    -D vulkan-layers=device-select,intel-nullhw,overlay
)

Being prompted for Main project options:

Main project options:
  
  Core options       Current Value        Possible Values      Description      
  --------------     -------------        ---------------      -----------      
  auto_features      enabled              [enabled, disabled,  Override value of
                                           auto]               all 'auto'       
                                                               features         
  backend            ninja                [ninja, vs, vs2010,  Backend to use   
                                           vs2012, vs2013,                      
                                           vs2015, vs2017,                      
                                           vs2019, vs2022,                      
                                           xcode, none]                         
  buildtype          plain                [plain, debug,       Build type to use
                                           debugoptimized,                      
                                           release, minsize,                    
                                           custom]                              
  cmake_prefix_path  []                   []                   List of          
                                                               additional       
:

What do I enter to pass this?

I think it was “q” for me, as in “quit”.

Why are you checking out 23.3.2-2? 23.3.3-1 is the latest version in all branches.

You’re going to need to do a little more than that.

See

1 Like

Worked.

I had to install missing dependencies:

# pacman -S rust cmake elfutils meson python-mako python-ply rust-bindgen valgrind directx-headers

# pacman -Syu base-devel git bison byacc flex --needed

Also had to import a missing key:
$ gpg --recv-key 8D8E31AFC32428A6

Then started compiling with makepkg

Entered ‘q’ for option prompt

And after compiling and installing it worked:

$ vainfo
Trying display: wayland
Trying display: x11
vainfo: VA-API version: 1.20 (libva 2.20.1)
vainfo: Driver version: Mesa Gallium driver 23.3.3-manjaro1.1 for AMD CAICOS (DRM 2.50.0 / 6.6.10-1-MANJARO, LLVM 16.0.6)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High10             :	VAEntrypointVLD
      VAProfileNone                   :	VAEntrypointVideoProc
$ 

…when you ran what command… ?

What worked?

Yes, but not explicitly. You still are not using makepkg properly.

No, you didn’t. Eric Engestrom’s key is already in your system keyring as he’s an Arch Package Maintainer.

That means Quit, you did nothing:

❯ gpg --search-keys 8D8E31AFC32428A6
gpg: data source: https://185.125.188.27:443
(1)	Eric Engestrom <eric@engestrom.ch>
	  2048 bit RSA key 8D8E31AFC32428A6, created: 2020-03-06
Keys 1-1 of 1 for "8D8E31AFC32428A6".  Enter number(s), N)ext, or Q)uit > q
gpg: error searching keyserver: Operation cancelled
gpg: keyserver search failed: Operation cancelled

Had to use the “nuclear option” to rebuild the key database before being able to update to the latest stable update.

# rm -fr /etc/pacman.d/gnupg
# pacman-key --init
# pacman-key --populate archlinux manjaro
# pacman-key --refresh-keys
# pacman -Syyuw

Upon first compile attempt found there was a missing key:

$ makepkg
==> Making package: mesa 1:23.3.3-1 (Sun 14 Jan 2024 12:41:56 PM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading mesa-23.3.3.tar.xz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   162  100   162    0     0     28      0  0:00:05  0:00:05 --:--:--    38
100 18.4M  100 18.4M    0     0  1243k      0  0:00:15  0:00:15 --:--:-- 2060k
  -> Downloading mesa-23.3.3.tar.xz.sig...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   162  100   162    0     0    518      0 --:--:-- --:--:-- --:--:--   520
100   310  100   310    0     0    718      0 --:--:-- --:--:-- --:--:--   718
  -> Found LICENSE
==> Validating source files with sha256sums...
    mesa-23.3.3.tar.xz ... Passed
    mesa-23.3.3.tar.xz.sig ... Skipped
    LICENSE ... Passed
==> Validating source files with b2sums...
    mesa-23.3.3.tar.xz ... Passed
    mesa-23.3.3.tar.xz.sig ... Skipped
    LICENSE ... Passed
==> Verifying source file signatures with gpg...
    mesa-23.3.3.tar.xz ... FAILED (unknown public key 8D8E31AFC32428A6)
==> ERROR: One or more PGP signatures could not be verified!
$ 

So imported missing key:

$ gpg --recv-key 8D8E31AFC32428A6
gpg: key 8D8E31AFC32428A6: public key "Eric Engestrom <eric@engestrom.ch>" imported
gpg: Total number processed: 1
gpg:               imported: 1
$ 

Then restarted compiling with:

$ makepkg
==> Making package: mesa 1:23.3.3-1 (Sun 14 Jan 2024 12:44:25 PM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found mesa-23.3.3.tar.xz
  -> Found mesa-23.3.3.tar.xz.sig
  -> Found LICENSE
==> Validating source files with sha256sums...
    mesa-23.3.3.tar.xz ... Passed
    mesa-23.3.3.tar.xz.sig ... Skipped
    LICENSE ... Passed
==> Validating source files with b2sums...
    mesa-23.3.3.tar.xz ... Passed
    mesa-23.3.3.tar.xz.sig ... Skipped
    LICENSE ... Passed
==> Verifying source file signatures with gpg...
    mesa-23.3.3.tar.xz ... Passed
==> Extracting sources...
  -> Extracting mesa-23.3.3.tar.xz with bsdtar
==> Starting prepare()...
==> Starting build()...
...
==> Leaving fakeroot environment.
==> Finished making: mesa 1:23.3.3-1 (Sun 14 Jan 2024 02:30:31 PM)
$ 

Near the beginning of the second compile attempt, was prompted for options. So entered q to quit option prompt and continue with build process:

Main project options:
  
  Core options       Current Value        Possible Values      Description      
  --------------     -------------        ---------------      -----------      
  auto_features      enabled              [enabled, disabled,  Override value of
                                           auto]               all 'auto'       
                                                               features         
  backend            ninja                [ninja, vs, vs2010,  Backend to use   
                                           vs2012, vs2013,                      
                                           vs2015, vs2017,                      
                                           vs2019, vs2022,                      
                                           xcode, none]                         
  buildtype          plain                [plain, debug,       Build type to use
                                           debugoptimized,                      
                                           release, minsize,                    
                                           custom]                              
  cmake_prefix_path  []                   []                   List of          
                                                               additional       
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /usr/bin/ninja -C /home/quest/Documents/linux/mesa/20240114/mesa-master/src/build
ninja: Entering directory `/home/quest/Documents/linux/mesa/20240114/mesa-master/src/build'
[345/2903] Compiling C object src/compiler/clc/liblibmesaclc.a.p/clc.c.o

to build the following files:

vulkan-mesa-layers-1:23.3.3-1-x86_64.pkg.tar.zst
opencl-clover-mesa-1:23.3.3-1-x86_64.pkg.tar.zst
opencl-rusticl-mesa-1:23.3.3-1-x86_64.pkg.tar.zst
vulkan-intel-1:23.3.3-1-x86_64.pkg.tar.zst
vulkan-radeon-1:23.3.3-1-x86_64.pkg.tar.zst
vulkan-swrast-1:23.3.3-1-x86_64.pkg.tar.zst
vulkan-virtio-1:23.3.3-1-x86_64.pkg.tar.zst
libva-mesa-driver-1:23.3.3-1-x86_64.pkg.tar.zst
mesa-vdpau-1:23.3.3-1-x86_64.pkg.tar.zst
mesa-1:23.3.3-1-x86_64.pkg.tar.zst

Then moved those files to their own directory and installed those files from within that directory with:

# pacman -U *

The src directory was 2.2 GB
the pkg directory was some 700 MB

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.