How to install mesa-git from AUR?

I currently have mesa installed from the official Manjaro repo. Now I would like to play around with mesa-git from AUR, but for some reason it can’t find 'DirectX-Headers':

$ pamac build mesa-git
Preparing...
Cloning mesa-git build files...
Generating mesa-git information...
Checking mesa-git dependencies...
Resolving dependencies...
Checking inter-conflicts...

To build (1):
  mesa-git           23.3.0_devel.177011.5fa9f842b09.d41d8cd-1                                AUR
To remove (5):
  mesa-vdpau         23.1.5-2                                   (Conflicts With: mesa-git)    extra
  libva-mesa-driver  23.1.5-2                                   (Conflicts With: mesa-git)    extra
  vulkan-radeon      23.1.5-2                                   (Conflicts With: mesa-git)    extra
  vulkan-intel       23.1.5-2                                   (Conflicts With: mesa-git)    extra
  mesa               23.1.5-2                                   (Conflicts With: mesa-libgl)  extra

Total removed size: 160,2 MB

Edit build files : [e] 
Apply transaction ? [e/y/N] y

==== AUTHENTICATING FOR org.manjaro.pamac.commit ====
Authentication is required to install, update, or remove packages
Authenticating as: tvk
Password: 
==== AUTHENTICATION COMPLETE ====

Building mesa-git...
==> Making package: mesa-git 23.3.0_devel.177011.5fa9f842b09.d41d8cd-1 (Do 24 Aug 2023 16:32:13 CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating mesa git repo...
remote: Enumerating objects: 48, done.
remote: Counting objects: 100% (43/43), done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 28 (delta 24), reused 15 (delta 12), pack-reused 0
Unpacking objects: 100% (28/28), 5.41 KiB | 325.00 KiB/s, done.
From https://gitlab.freedesktop.org/mesa/mesa
 + fa49575cd70...12c4c03b2e7 refs/merge-requests/24716/merge -> refs/merge-requests/24716/merge  (forced update)
  -> Found LICENSE
==> Validating source files with md5sums...
    mesa ... Skipped
    LICENSE ... Passed
==> Validating source files with sha512sums...
    mesa ... Skipped
    LICENSE ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of mesa git repo...
Cloning into 'mesa'...
done.
Updating files: 100% (9240/9240), done.
Switched to a new branch 'makepkg'
==> Starting prepare()...
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
The Meson build system
Version: 1.2.1
Source dir: /var/tmp/pamac-build-tvk/mesa-git/src/mesa
Build dir: /var/tmp/pamac-build-tvk/mesa-git/src/_build
Build type: native build
Project name: mesa
Project version: 23.3.0-devel
C compiler for the host machine: cc (gcc 13.2.1 "cc (GCC) 13.2.1 20230801")
C linker for the host machine: cc ld.bfd 2.41.0
C++ compiler for the host machine: c++ (gcc 13.2.1 "c++ (GCC) 13.2.1 20230801")
C++ linker for the host machine: c++ ld.bfd 2.41.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Checking if "-mtls-dialect=gnu2" runs: YES
Checking if "split TLSDESC" : links: YES 
Did not find pkg-config by name 'pkg-config'
Found Pkg-config: NO
Found CMake: /usr/bin/cmake (3.27.1)
Run-time dependency directx-headers found: NO (tried pkgconfig and cmake)
Run-time dependency directx-headers found: NO (tried pkgconfig and cmake)
Not looking for a fallback subproject for the dependency DirectX-Headers because:
Use of fallback dependencies is disabled.

mesa/meson.build:523:20: ERROR: Dependency 'DirectX-Headers' is required but not found.

A full log can be found at /var/tmp/pamac-build-tvk/mesa-git/src/_build/meson-logs/meson-log.txt
==> ERROR: A failure occurred in build().
    Aborting...

I can see it is installed:

$ pamac search directx-headers
...
directx-headers  1.610.0-1 [Installed]                                     extra
    DirectX headers for using D3D12

I also made sure I’m up2date:

$  sudo pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
 there is nothing to do

What am I doing wrong?

Hi @0x0,

Try removing directx-headers:

pamac remove directx-headers

Followed by installing the -git version:

pamac install directx-headers-git

I have no idea if this will work, but I’m guessing that -git versions are newer and might be why it’s having a problem.

Thanks, I’ve tried that, but it didn’t make a difference.

may you explain what you’re meaning with that ? did the install didn’t work or was the installed package no solution ? a “didn’t make a difference” is nonsense to everyone else who’s reading. also, did you install the non-free-mesa package before ?

Sorry for not being clear, I meant that I’m still getting the same error for building mesa-git after replacing directx-headers with directx-headers-git:

$ sudo pamac remove directx-headers                                ✔ 
Preparing...
Checking dependencies...

To remove (1):
  directx-headers  1.610.0-1    extra

Total removed size: 3,1 MB

Apply transaction ? [y/N] y
Removing directx-headers (1.610.0-1)...                                    [1/1]
Transaction successfully finished.
$ sudo pamac install directx-headers-git                    ✔  8s  
Warning: directx-headers-git is only available from AUR
Preparing...
Checking directx-headers-git dependencies...
Resolving dependencies...
Checking inter-conflicts...

To build (1):
  directx-headers-git  r181.34c9866-1    AUR


Edit build files : [e] 
Apply transaction ? [e/y/N] y

Cloning directx-headers-git build files...
Running as unit: run-u125.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 2.861s
CPU time consumed: 73ms
Generating directx-headers-git information...
Running as unit: run-u126.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 2.183s
CPU time consumed: 2.394s

Building directx-headers-git...
Running as unit: run-u127.service
Press ^] three times within 1s to disconnect TTY.
==> Making package: directx-headers-git r181.34c9866-1 (Do 24 Aug 2023 17:20:11 CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning DirectX-Headers git repo...
Cloning into bare repository '/var/cache/private/pamac/directx-headers-git/DirectX-Headers'...
remote: Enumerating objects: 1378, done.
remote: Counting objects: 100% (811/811), done.
remote: Compressing objects: 100% (391/391), done.
remote: Total 1378 (delta 522), reused 578 (delta 410), pack-reused 567
Receiving objects: 100% (1378/1378), 18.03 MiB | 1.93 MiB/s, done.
Resolving deltas: 100% (783/783), done.
==> Validating source files with sha256sums...
    DirectX-Headers ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of DirectX-Headers git repo...
Cloning into 'DirectX-Headers'...
done.
==> Starting pkgver()...
==> Updated version: directx-headers-git r199.3a57ee1-1
==> Starting build()...
The Meson build system
Version: 1.2.1
Source dir: /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers
Build dir: /var/cache/private/pamac/directx-headers-git/src/build
Build type: native build
Project name: DirectX-Headers
Project version: 1.610.0
C++ compiler for the host machine: c++ (gcc 13.2.1 "c++ (GCC) 13.2.1 20230801")
C++ linker for the host machine: c++ ld.bfd 2.41.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Library d3d12 found: NO
Library dxcore found: NO
Build targets in project: 2

DirectX-Headers 1.610.0

  User defined options
    auto_features: enabled
    buildtype    : plain
    libexecdir   : lib
    prefix       : /usr
    sbindir      : bin
    wrap_mode    : nodownload
    b_lto        : false
    b_pie        : true
    build-test   : false

Found ninja-1.11.1 at /usr/bin/ninja
Core properties:                                                                
  Source dir /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers
  Build dir  /var/cache/private/pamac/directx-headers-git/src/build

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       
                                                               prefixes for     
                                                               cmake to search  
  debug              false                [true, false]        Enable debug     
                                                               symbols and other
                                                               information      
  default_library    shared               [shared, static,     Default library  
                                           both]               type             
  force_fallback_for []                   []                   Force fallback   
                                                               for those        
                                                               subprojects      
  genvslite          vs2022               [vs2022]             Setup multiple   
                                                               buildtype-       
                                                               suffixed ninja-  
                                                               backend build    
                                                               directories, and 
                                                               a [builddir]_vs  
                                                               containing a     
                                                               Visual Studio    
                                                               meta-backend with
                                                               multiple         
                                                               configurations   
                                                               that calls into  
                                                               them             
  install_umask      0022                 [preserve,           Default umask to 
                                           0000-0777]          apply on         
                                                               permissions of   
                                                               installed files  
  layout             mirror               [mirror, flat]       Build directory  
                                                               layout           
  optimization       plain                [plain, 0, g, 1, 2,  Optimization     
                                           3, s]               level            
  pkg_config_path    []                   []                   List of          
                                                               additional paths 
                                                               for pkg-config to
                                                               search           
  prefer_static      false                [true, false]        Whether to try   
                                                               static linking   
                                                               before shared    
                                                               linking          
  strip              false                [true, false]        Strip targets on 
                                                               install          
  unity              off                  [on, off,            Unity build      
                                           subprojects]                         
  unity_size         4                    >=2                  Unity block size 
  vsenv              false                [true, false]        Activate Visual  
                                                               Studio           
                                                               environment      
  warning_level      1                    [0, 1, 2, 3,         Compiler warning 
                                           everything]         level to use     
  werror             false                [true, false]        Treat warnings as
                                                               errors           
  wrap_mode          nodownload           [default,            Wrap mode        
                                           nofallback,                          
                                           nodownload,                          
                                           forcefallback,                       
                                           nopromote]                           
  
  Backend options    Current Value        Possible Values      Description      
  -----------------  -------------        ---------------      -----------      
  backend_max_links  0                    >=0                  Maximum number of
                                                               linker processes 
                                                               to run or 0 for  
                                                               no limit         
  
  Base options       Current Value        Possible Values      Description      
  --------------     -------------        ---------------      -----------      
  b_asneeded         true                 [true, false]        Use -Wl,--as-    
                                                               needed when      
                                                               linking          
  b_colorout         always               [auto, always,       Use colored      
                                           never]              output           
  b_coverage         false                [true, false]        Enable coverage  
                                                               tracking.        
  b_lto              false                [true, false]        Use link time    
                                                               optimization     
  b_lto_threads      0                                         Use multiple     
                                                               threads for Link 
                                                               Time Optimization
  b_lundef           true                 [true, false]        Use -Wl,--no-    
                                                               undefined when   
                                                               linking          
  b_ndebug           false                [true, false, if-    Disable asserts  
                                           release]                             
  b_pch              true                 [true, false]        Use precompiled  
                                                               headers          
  b_pgo              off                  [off, generate, use] Use profile      
                                                               guided           
                                                               optimization     
  b_pie              true                 [true, false]        Build executables
                                                               as position      
                                                               independent      
  b_sanitize         none                 [none, address,      Code sanitizer to
                                           thread, undefined,  use              
                                           memory, leak,                        
                                           address,undefined]                   
  b_staticpic        true                 [true, false]        Build static     
                                                               libraries as     
                                                               position         
                                                               independent      
  
  Compiler options   Current Value        Possible Values      Description      
  ------------------ -------------        ---------------      -----------      
  cpp_args           [-march=x86-64,      []                   Extra arguments  
                      -mtune=generic,                          passed to the cpp
                      -O2, -pipe, -fno-                        compiler         
                      plt, -fexceptions,                                        
                      -Wp,-                                                     
                      D_FORTIFY_SOURCE=2,                                       
                      -Wformat,                                                 
                      -Werror=format-                                           
                      security, -fstack-                                        
                      clash-protection,                                         
                      -fcf-protection, -W                                       
                      p,-                                                       
                      D_GLIBCXX_ASSERTION                                       
                      S]                                                        
  cpp_debugstl       false                [true, false]        STL debug mode   
  cpp_eh             default              [none, default, a,   C++ exception    
                                           s, sc]              handling type.   
  cpp_link_args      [-Wl,-O1,--sort-     []                   Extra arguments  
                      common,--as-needed,                      passed to the cpp
                      -z,relro,-z,now,                         linker           
                      -march=x86-64,                                            
                      -mtune=generic,                                           
                      -O2, -pipe, -fno-                                         
                      plt, -fexceptions,                                        
                      -Wp,-                                                     
                      D_FORTIFY_SOURCE=2,                                       
                      -Wformat,                                                 
                      -Werror=format-                                           
                      security, -fstack-                                        
                      clash-protection,                                         
                      -fcf-protection, -W                                       
                      p,-                                                       
                      D_GLIBCXX_ASSERTION                                       
                      S]                                                        
  cpp_rtti           true                 [true, false]        Enable RTTI      
  cpp_std            c++14                [none, c++98, c++03, C++ language     
                                           c++11, c++14,       standard to use  
                                           c++17, c++1z,                        
                                           c++2a, c++20,                        
                                           gnu++03, gnu++11,                    
                                           gnu++14, gnu++17,                    
                                           gnu++1z, gnu++2a,                    
                                           gnu++20, c++23,                      
                                           gnu++23]                             
  
  pkgconfig module   Current Value        Possible Values      Description      
options                                                                         
  ------------------ -------------        ---------------      -----------      
--------                                                                        
  pkgconfig.relocata false                [true, false]        Generate         
ble                                                            pkgconfig files  
                                                               as relocatable   
  
  Directories        Current Value        Possible Values      Description      
  -------------      -------------        ---------------      -----------      
  bindir             bin                                       Executable       
                                                               directory        
  datadir            share                                     Data file        
                                                               directory        
  includedir         include                                   Header file      
                                                               directory        
  infodir            share/info                                Info page        
                                                               directory        
  libdir             lib                                       Library directory
  libexecdir         lib                                       Library          
                                                               executable       
                                                               directory        
  licensedir                                                   Licenses         
                                                               directory        
  localedir          share/locale                              Locale data      
                                                               directory        
  localstatedir      /var                                      Localstate data  
                                                               directory        
  mandir             share/man                                 Manual page      
                                                               directory        
  prefix             /usr                                      Installation     
                                                               prefix           
  sbindir            bin                                       System executable
                                                               directory        
  sharedstatedir     /var/lib                                  Architecture-    
                                                               independent data 
                                                               directory        
  sysconfdir         /etc                                      Sysconf data     
                                                               directory        
  
  Testing options    Current Value        Possible Values      Description      
  -----------------  -------------        ---------------      -----------      
  errorlogs          true                 [true, false]        Whether to print 
                                                               the logs from    
                                                               failing tests    
  stdsplit           true                 [true, false]        Split stdout and 
                                                               stderr in test   
                                                               logs             
  
  Project options    Current Value        Possible Values      Description      
  -----------------  -------------        ---------------      -----------      
  build-test         false                [true, false]        Build the test   
==> Entering fakeroot environment...
==> Starting package()...
ninja: Entering directory `/var/cache/private/pamac/directx-headers-git/src/build'
[4/4] Linking static target libd3dx12-format-properties.a
Installing subdir /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/directx/D3D12TokenizedProgramFormat.hpp to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/directx
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/directx/d3d12.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/directx
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/directx/d3d12.idl to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/directx
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/directx/d3d12compatibility.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/directx
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/directx/d3d12compatibility.idl to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/directx
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/directx/d3d12sdklayers.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/directx
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/directx/d3d12sdklayers.idl to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/directx
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/directx/d3d12shader.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/directx
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/directx/d3d12video.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/directx
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/directx/d3d12video.idl to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/directx
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/directx/d3dcommon.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/directx
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/directx/d3dcommon.idl to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/directx
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/directx/d3dx12.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/directx
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/directx/d3dx12_barriers.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/directx
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/directx/d3dx12_check_feature_support.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/directx
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/directx/d3dx12_core.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/directx
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/directx/d3dx12_default.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/directx
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/directx/d3dx12_pipeline_state_stream.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/directx
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/directx/d3dx12_property_format_table.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/directx
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/directx/d3dx12_render_pass.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/directx
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/directx/d3dx12_resource_helpers.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/directx
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/directx/d3dx12_root_signature.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/directx
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/directx/d3dx12_state_object.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/directx
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/directx/dxcore.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/directx
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/directx/dxcore_interface.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/directx
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/directx/dxgicommon.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/directx
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/directx/dxgicommon.idl to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/directx
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/directx/dxgiformat.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/directx
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/directx/dxgiformat.idl to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/directx
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/dxguids/dxguids.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/dxguids
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/wsl/winadapter.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/wsl
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/wsl/wrladapter.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/wsl
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/wsl/stubs/basetsd.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/wsl/stubs
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/wsl/stubs/oaidl.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/wsl/stubs
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/wsl/stubs/ocidl.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/wsl/stubs
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/wsl/stubs/rpc.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/wsl/stubs
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/wsl/stubs/rpcndr.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/wsl/stubs
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/wsl/stubs/unknwn.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/wsl/stubs
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/wsl/stubs/unknwnbase.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/wsl/stubs
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/wsl/stubs/winapifamily.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/wsl/stubs
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/wsl/stubs/wrl/client.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/wsl/stubs/wrl
Installing /var/cache/private/pamac/directx-headers-git/src/DirectX-Headers/include/wsl/stubs/wrl/implements.h to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/include/wsl/stubs/wrl
Installing libd3dx12-format-properties.a to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/lib
Installing libDirectX-Guids.a to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/lib
Installing /var/cache/private/pamac/directx-headers-git/src/build/meson-private/DirectX-Headers.pc to /var/cache/private/pamac/directx-headers-git/pkg/directx-headers-git/usr/lib/pkgconfig
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "directx-headers-git"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: directx-headers-git r199.3a57ee1-1 (Do 24 Aug 2023 17:20:28 CEST)
==> Cleaning up...
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 19.264s
CPU time consumed: 12.370s
Running as unit: run-u128.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 1.717s
CPU time consumed: 1.931s

Checking keyring...                                                        [1/1]
Checking integrity...                                                      [1/1]
Loading packages files...                                                  [1/1]
Checking file conflicts...                                                 [1/1]
Checking available disk space...                                           [1/1]
Installing directx-headers-git (r199.3a57ee1-1)...                         [1/1]
Transaction successfully finished.
$ sudo pamac install mesa-git                              ✔  32s  
Warning: mesa-git is only available from AUR
Preparing...
Checking mesa-git dependencies...
Resolving dependencies...
Checking inter-conflicts...

To build (1):
  mesa-git           23.3.0_devel.174362.a944a8eba93.d41d8cd-1                                AUR
To remove (5):
  mesa-vdpau         23.1.5-2                                   (Conflicts With: mesa-git)    extra
  libva-mesa-driver  23.1.5-2                                   (Conflicts With: mesa-git)    extra
  vulkan-radeon      23.1.5-2                                   (Conflicts With: mesa-git)    extra
  vulkan-intel       23.1.5-2                                   (Conflicts With: mesa-git)    extra
  mesa               23.1.5-2                                   (Conflicts With: mesa-libgl)  extra

Total removed size: 160,2 MB

Edit build files : [e] 
Apply transaction ? [e/y/N] y

Cloning mesa-git build files...
Running as unit: run-u130.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 368ms
CPU time consumed: 102ms
Generating mesa-git information...
Running as unit: run-u131.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 2.106s
CPU time consumed: 2.374s

Building mesa-git...
Running as unit: run-u132.service
Press ^] three times within 1s to disconnect TTY.
==> Making package: mesa-git 23.3.0_devel.174362.a944a8eba93.d41d8cd-1 (Do 24 Aug 2023 17:20:50 CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning mesa git repo...
Cloning into bare repository '/var/cache/private/pamac/mesa-git/mesa'...
remote: Enumerating objects: 2411971, done.
remote: Counting objects: 100% (141310/141310), done.
remote: Compressing objects: 100% (32963/32963), done.
remote: Total 2411971 (delta 131532), reused 113042 (delta 108309), pack-reused 2270661
Receiving objects: 100% (2411971/2411971), 550.88 MiB | 1.71 MiB/s, done.
Resolving deltas: 100% (2075756/2075756), done.
  -> Found LICENSE
==> Validating source files with md5sums...
    mesa ... Skipped
    LICENSE ... Passed
==> Validating source files with sha512sums...
    mesa ... Skipped
    LICENSE ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of mesa git repo...
Cloning into 'mesa'...
done.
Switched to a new branch 'makepkg'
==> Starting prepare()...
==> Starting pkgver()...
==> Updated version: mesa-git 23.3.0_devel.177011.5fa9f842b09.d41d8cd-1
==> Starting build()...
The Meson build system
Version: 1.2.1
Source dir: /var/cache/private/pamac/mesa-git/src/mesa
Build dir: /var/cache/private/pamac/mesa-git/src/_build
Build type: native build
Project name: mesa
Project version: 23.3.0-devel
C compiler for the host machine: cc (gcc 13.2.1 "cc (GCC) 13.2.1 20230801")
C linker for the host machine: cc ld.bfd 2.41.0
C++ compiler for the host machine: c++ (gcc 13.2.1 "c++ (GCC) 13.2.1 20230801")
C++ linker for the host machine: c++ ld.bfd 2.41.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Checking if "-mtls-dialect=gnu2" runs: YES
Checking if "split TLSDESC" : links: YES 
Did not find pkg-config by name 'pkg-config'
Found Pkg-config: NO
Found CMake: /usr/bin/cmake (3.27.1)
Run-time dependency directx-headers found: NO (tried pkgconfig and cmake)
Run-time dependency directx-headers found: NO (tried pkgconfig and cmake)
Not looking for a fallback subproject for the dependency DirectX-Headers because:
Use of fallback dependencies is disabled.

mesa/meson.build:523:20: ERROR: Dependency 'DirectX-Headers' is required but not found.

A full log can be found at /var/cache/private/pamac/mesa-git/src/_build/meson-logs/meson-log.txt
==> ERROR: A failure occurred in build().
    Aborting...
Finished with result: exit-code
Main processes terminated with: code=exited/status=4
Service runtime: 6min 38.206s
CPU time consumed: 3min 46.569s

I have not installed a package called non-free-mesa before and I have also not installed anything from nonfree.eu.

question:
you already installed the package base-devel and the linux-headers needed for building and compiling your kernel ?

you should do it if you wanna get the performance.

I haven’t wittingly installed anything to compile my Linux kernel because I’m using the kernels provided by Manjaro. Building kernels on my machine would take hours. Can you please elaborate why you think this is relevant?

What do you mean by “the performance”?
I’m looking for h265 hardware acceleration which is enabled in mesa-git.

Also, which package are you actually talking about? I can’t find any packages called non-free-mesa?

After some debugging I finally figured figured it all out. The PKGBUILD was missing important make dependencies, namely: ‘pkgconf’ ‘bison’ ‘byacc’ ‘flex’
After adding those to makedepends=( ... ) it finally started building the package.

Now the important question is: Why are these dependencies not present in the current PKGBUILD?
Is it a bug or is there a good reason?

Nothing is missing in the PKGBUILD. You’re missing the prerequisites for using the AUR.

See:

2 Likes