Closed Marietto2008 closed 3 weeks ago
misconfiguration,because when I do :
# glxinfo | grep Mesa
I get the error that you see on the title and smplayer/mpv/vlc doesn't work at all.
You cannot possibly get this error when running the installed glxinfo
program.
Unfortunately I've frozen myself trying to setup meson :
can someone explain to me how to fix that ? thanks.
You can check the output of meson configure
to see what options actually exist for the current project. Most likely you followed some directions for building one project, inside the source code for an entirely different project that doesn't have any of those options.
-> You cannot possibly get this error when running the installed glxinfo program.
Can you elaborate more this sentence ?
You said that you get the error "you see in the title" when you run glxinfo.
The title contains "meson.build:26:0: ERROR"
You are right. Sorry,I used another title. The original one,that's the error that I want to fix,is this one :
X Error of failed request: BadValue (integer parameter out of range for operation)
This is the main error. But I'm trying to fix it by following the tutorial that I've written on the question. Following the tutorial I found another error, the meson error that I put on the title and I asked here for some help,since this is the better place to fix it.
[marietto@marietto ~]==> glxinfo | grep Mesa
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 151 (GLX)
Minor opcode of failed request: 24 (X_GLXCreateNewContext)
Value in failed request: 0x0
Serial number of failed request: 50
Current serial number in output stream: 51
Again:
Meson is saying the instructions you followed are totally wrong and that the project you are trying to build doesn't contain the options the instructions you followed say to use.
Ask the author of the tutorial, or use meson configure
to see which options are supported. Builtin meson options are at the top, project options are at the bottom -- you want to know about project options.
I am using the following environment variables:
export PATH=$PATH:$HOME/code/mesastuff/install/bin
export LD_LIBRARY_PATH=$HOME/code/mesastuff/install/lib:$HOME/code/mesastuff/install/lib/dri
export LD_RUN_PATH=$LD_LIBRARY_PATH
export XDG_DATA_DIRS=$XDG_DATA_DIRS:$HOME/code/mesastuff/install/share
export LIBGL_DRIVERS_PATH=$HOME/code/mesastuff/install/lib/dri
export PATH=$PATH:$HOME/code/mesastuff/install/bin
export LD_LIBRARY_PATH=$HOME/code/mesastuff/install/lib:$HOME/code/mesastuff/install/lib/dri
export LD_RUN_PATH=$LD_LIBRARY_PATH
export XDG_DATA_DIRS=$XDG_DATA_DIRS:$HOME/code/mesastuff/install/share
export LIBGL_DRIVERS_PATH=$HOME/code/mesastuff/install/lib/dri
export CC=gcc
export CXX=g++
[marietto@marietto /usr/home/marietto/code/mesastuff/code/drm]==> meson setup build
The Meson build system
Version: 1.5.2
Source dir: /usr/home/marietto/code/mesastuff/code/drm
Build dir: /usr/home/marietto/code/mesastuff/code/drm/build
Build type: native build
Project name: libdrm
Project version: 2.4.123
C compiler for the host machine: gcc (gcc 13.3.0 "gcc (FreeBSD Ports Collection) 13.3.0")
C linker for the host machine: gcc ld.bfd 2.43.1
Host machine cpu family: x86_64
Host machine cpu: x86_64
Run-time dependency threads found: YES
Program symbols-check.py found: YES (/usr/local/bin/python3.11 /usr/home/marietto/code/mesastuff/code/drm/symbols-check.py)
Program nm found: YES (/usr/local/bin/nm)
Program python3 found: YES (/usr/local/bin/python3.11)
Found pkg-config: YES (/usr/local/bin/pkg-config) 2.3.0
Found CMake: /usr/local/bin/cmake (3.30.4)
Run-time dependency atomic_ops found: NO (tried pkgconfig and cmake)
Checking if "Intel Atomics" : links: YES
Run-time dependency pciaccess found: YES 0.18.1
Checking for function "dlsym" : YES
Checking for function "clock_gettime" : YES
Checking if "sys/sysctl.h works" compiles: YES
Check usable header "sys/select.h" : YES
Check usable header "alloca.h" : NO
Header "sys/sysmacros.h" has symbol "major" : NO
Header "sys/mkdev.h" has symbol "major" : NO
Checking for function "open_memstream" : YES
Compiler for C supports arguments -Wsign-compare: YES
Compiler for C supports arguments -Werror=undef: YES
Compiler for C supports arguments -Werror=implicit-function-declaration: YES
Compiler for C supports arguments -Wpointer-arith: YES
Compiler for C supports arguments -Wwrite-strings: YES
Compiler for C supports arguments -Wstrict-prototypes: YES
Compiler for C supports arguments -Wmissing-prototypes: YES
Compiler for C supports arguments -Wmissing-declarations: YES
Compiler for C supports arguments -Wnested-externs: YES
Compiler for C supports arguments -Wpacked: YES
Compiler for C supports arguments -Wswitch-enum: YES
Compiler for C supports arguments -Wmissing-format-attribute: YES
Compiler for C supports arguments -Wstrict-aliasing=2: YES
Compiler for C supports arguments -Winit-self: YES
Compiler for C supports arguments -Winline: YES
Compiler for C supports arguments -Wshadow: YES
Compiler for C supports arguments -Wdeclaration-after-statement: YES
Compiler for C supports arguments -Wold-style-definition: YES
Compiler for C supports arguments -Wno-unused-parameter: YES
Compiler for C supports arguments -Wno-attributes: YES
Compiler for C supports arguments -Wno-long-long: YES
Compiler for C supports arguments -Wno-missing-field-initializers: YES
Run-time dependency cunit found: NO (tried pkgconfig and cmake)
Run-time dependency cairo found: YES 1.17.4
Run-time dependency valgrind found: NO (tried pkgconfig)
Program rst2man found: YES (/usr/local/bin/rst2man)
Compiler for C supports function attribute visibility:hidden: YES
Configuring config.h using configuration
Program tests/gen4-3d.batch.sh found: YES (/usr/home/marietto/code/mesastuff/code/drm/intel/tests/gen4-3d.batch.sh)
Program tests/gm45-3d.batch.sh found: YES (/usr/home/marietto/code/mesastuff/code/drm/intel/tests/gm45-3d.batch.sh)
Program tests/gen5-3d.batch.sh found: YES (/usr/home/marietto/code/mesastuff/code/drm/intel/tests/gen5-3d.batch.sh)
Program tests/gen6-3d.batch.sh found: YES (/usr/home/marietto/code/mesastuff/code/drm/intel/tests/gen6-3d.batch.sh)
Program tests/gen7-3d.batch.sh found: YES (/usr/home/marietto/code/mesastuff/code/drm/intel/tests/gen7-3d.batch.sh)
Program tests/gen7-2d-copy.batch.sh found: YES (/usr/home/marietto/code/mesastuff/code/drm/intel/tests/gen7-2d-copy.batch.sh)
Build targets in project: 24
libdrm 2.4.123
Intel : true
Radeon : true
AMDGPU : true
Nouveau : true
vmwgfx : true
OMAP : false
Freedreno : false
Freedreon-kgsl: false
Tegra : false
Etnaviv : false
EXYNOS : false
VC4 : false
Found ninja-1.11.1 at /usr/local/bin/ninja
[marietto@marietto /usr/home/marietto/code/mesastuff/code/drm]==> meson configure --buildtype=debug --prefix=~/code/mesastuff/install/ ~/code/mesastuff/code/drm/build
[marietto@marietto /usr/home/marietto/code/mesastuff/code/drm]==> ninja -C build/ install
ninja: Entering directory `build/'
[0/1] Regenerating build files.
The Meson build system
Version: 1.5.2
Source dir: /usr/home/marietto/code/mesastuff/code/drm
Build dir: /usr/home/marietto/code/mesastuff/code/drm/build
Build type: native build
Project name: libdrm
Project version: 2.4.123
C compiler for the host machine: gcc (gcc 13.3.0 "gcc (FreeBSD Ports Collection) 13.3.0")
C linker for the host machine: gcc ld.bfd 2.43.1
Host machine cpu family: x86_64
Host machine cpu: x86_64
Dependency threads found: YES unknown (cached)
Program symbols-check.py found: YES (/usr/local/bin/python3.11 /usr/home/marietto/code/mesastuff/code/drm/symbols-check.py)
Program nm found: YES (/usr/local/bin/nm)
Program python3 found: YES (/usr/local/bin/python3.11)
Found pkg-config: YES (/usr/local/bin/pkg-config) 2.3.0
Found CMake: /usr/local/bin/cmake (3.30.4)
Run-time dependency atomic_ops found: NO (tried pkgconfig and cmake)
Checking if "Intel Atomics" : links: YES (cached)
Dependency pciaccess found: YES 0.18.1 (cached)
Checking for function "dlsym" : YES (cached)
Checking for function "clock_gettime" : YES (cached)
Checking if "sys/sysctl.h works" compiles: YES (cached)
Check usable header "sys/select.h" : YES (cached)
Check usable header "alloca.h" : NO (cached)
Header "sys/sysmacros.h" has symbol "major" : NO (cached)
Header "sys/mkdev.h" has symbol "major" : NO (cached)
Checking for function "open_memstream" : YES (cached)
Compiler for C supports arguments -Wsign-compare: YES (cached)
Compiler for C supports arguments -Werror=undef: YES (cached)
Compiler for C supports arguments -Werror=implicit-function-declaration: YES (cached)
Compiler for C supports arguments -Wpointer-arith: YES (cached)
Compiler for C supports arguments -Wwrite-strings: YES (cached)
Compiler for C supports arguments -Wstrict-prototypes: YES (cached)
Compiler for C supports arguments -Wmissing-prototypes: YES (cached)
Compiler for C supports arguments -Wmissing-declarations: YES (cached)
Compiler for C supports arguments -Wnested-externs: YES (cached)
Compiler for C supports arguments -Wpacked: YES (cached)
Compiler for C supports arguments -Wswitch-enum: YES (cached)
Compiler for C supports arguments -Wmissing-format-attribute: YES (cached)
Compiler for C supports arguments -Wstrict-aliasing=2: YES (cached)
Compiler for C supports arguments -Winit-self: YES (cached)
Compiler for C supports arguments -Winline: YES (cached)
Compiler for C supports arguments -Wshadow: YES (cached)
Compiler for C supports arguments -Wdeclaration-after-statement: YES (cached)
Compiler for C supports arguments -Wold-style-definition: YES (cached)
Compiler for C supports arguments -Wno-unused-parameter: YES (cached)
Compiler for C supports arguments -Wno-attributes: YES (cached)
Compiler for C supports arguments -Wno-long-long: YES (cached)
Compiler for C supports arguments -Wno-missing-field-initializers: YES (cached)
Run-time dependency cunit found: NO (tried pkgconfig and cmake)
Dependency cairo found: YES 1.17.4 (cached)
Run-time dependency valgrind found: NO (tried pkgconfig)
Program rst2man found: YES (/usr/local/bin/rst2man)
Compiler for C supports function attribute visibility:hidden: YES (cached)
Configuring config.h using configuration
Program tests/gen4-3d.batch.sh found: YES (/usr/home/marietto/code/mesastuff/code/drm/intel/tests/gen4-3d.batch.sh)
Program tests/gm45-3d.batch.sh found: YES (/usr/home/marietto/code/mesastuff/code/drm/intel/tests/gm45-3d.batch.sh)
Program tests/gen5-3d.batch.sh found: YES (/usr/home/marietto/code/mesastuff/code/drm/intel/tests/gen5-3d.batch.sh)
Program tests/gen6-3d.batch.sh found: YES (/usr/home/marietto/code/mesastuff/code/drm/intel/tests/gen6-3d.batch.sh)
Program tests/gen7-3d.batch.sh found: YES (/usr/home/marietto/code/mesastuff/code/drm/intel/tests/gen7-3d.batch.sh)
Program tests/gen7-2d-copy.batch.sh found: YES (/usr/home/marietto/code/mesastuff/code/drm/intel/tests/gen7-2d-copy.batch.sh)
Build targets in project: 24
libdrm 2.4.123
Intel : true
Radeon : true
AMDGPU : true
Nouveau : true
vmwgfx : true
OMAP : false
Freedreno : false
Freedreon-kgsl: false
Tegra : false
Etnaviv : false
EXYNOS : false
VC4 : false
User defined options
buildtype : debug
prefix : ~/code/mesastuff/install/
Found ninja-1.11.1 at /usr/local/bin/ninja
Cleaning... 0 files.
[10/74] Compiling C object intel/libdrm_intel.so.1.123.0.p/intel_bufmgr.c.o
In file included from ../intel/intel_bufmgr.c:34:
../include/drm/i915_drm.h:2233:1: warning: packed attribute is unnecessary for 'i915_context_engines_load_balance' [-Wpacked]
2233 | } __attribute__((packed));
| ^
../include/drm/i915_drm.h:2271:1: warning: packed attribute is unnecessary for 'i915_context_engines_bond' [-Wpacked]
2271 | } __attribute__((packed));
| ^
../include/drm/i915_drm.h:2399:1: warning: packed attribute is unnecessary for 'i915_context_engines_parallel_submit' [-Wpacked]
2399 | } __attribute__((packed));
| ^
../include/drm/i915_drm.h:2473:1: warning: packed attribute is unnecessary for 'i915_context_param_engines' [-Wpacked]
2473 | } __attribute__((packed));
| ^
[23/74] Compiling C object intel/libdrm_intel.so.1.123.0.p/intel_bufmgr_fake.c.o
In file included from ../intel/intel_bufmgr_fake.c:47:
../include/drm/i915_drm.h:2233:1: warning: packed attribute is unnecessary for 'i915_context_engines_load_balance' [-Wpacked]
2233 | } __attribute__((packed));
| ^
../include/drm/i915_drm.h:2271:1: warning: packed attribute is unnecessary for 'i915_context_engines_bond' [-Wpacked]
2271 | } __attribute__((packed));
| ^
../include/drm/i915_drm.h:2399:1: warning: packed attribute is unnecessary for 'i915_context_engines_parallel_submit' [-Wpacked]
2399 | } __attribute__((packed));
| ^
../include/drm/i915_drm.h:2473:1: warning: packed attribute is unnecessary for 'i915_context_param_engines' [-Wpacked]
2473 | } __attribute__((packed));
| ^
[48/74] Compiling C object intel/libdrm_intel.so.1.123.0.p/intel_decode.c.o
../intel/intel_decode.c: In function 'decode_3d_1d':
../intel/intel_decode.c:2018:50: warning: '%03d' directive writing between 3 and 10 bytes into a region of size 8 [-Wformat-overflow=]
2018 | sprintf(instr_prefix, "PS%03d", instr);
| ^~~~
../intel/intel_decode.c:2018:47: note: directive argument in the range [0, 1431655764]
2018 | sprintf(instr_prefix, "PS%03d", instr);
| ^~~~~~~~
../intel/intel_decode.c:2018:25: note: 'sprintf' output between 6 and 13 bytes into a destination of size 10
2018 | sprintf(instr_prefix, "PS%03d", instr);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[49/74] Compiling C object intel/libdrm_intel.so.1.123.0.p/intel_bufmgr_gem.c.o
In file included from ../intel/intel_bufmgr_gem.c:62:
../include/drm/i915_drm.h:2233:1: warning: packed attribute is unnecessary for 'i915_context_engines_load_balance' [-Wpacked]
2233 | } __attribute__((packed));
| ^
../include/drm/i915_drm.h:2271:1: warning: packed attribute is unnecessary for 'i915_context_engines_bond' [-Wpacked]
2271 | } __attribute__((packed));
| ^
../include/drm/i915_drm.h:2399:1: warning: packed attribute is unnecessary for 'i915_context_engines_parallel_submit' [-Wpacked]
2399 | } __attribute__((packed));
| ^
../include/drm/i915_drm.h:2473:1: warning: packed attribute is unnecessary for 'i915_context_param_engines' [-Wpacked]
2473 | } __attribute__((packed));
| ^
[53/74] Compiling C object libdrm.so.2.123.0.p/xf86drm.c.o
In file included from ../xf86drm.c:81:
../util_math.h:32: warning: "ALIGN" redefined
32 | #define ALIGN(value, alignment) __align_mask(value, (__typeof__(value))((alignment) - 1))
|
In file included from /usr/include/sys/param.h:163,
from ../xf86drm.c:66:
/usr/include/machine/param.h:78: note: this is the location of the previous definition
78 | #define ALIGN(p) _ALIGN(p)
|
../xf86drm.c: In function 'drmGetMinorType':
../xf86drm.c:1053:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
1053 | char path[DRM_NODE_NAME_MAX];
| ^~~~
../xf86drm.c: In function 'get_sysctl_pci_bus_info':
../xf86drm.c:3677:24: warning: unused variable 'majmin' [-Wunused-variable]
3677 | unsigned int rdev, majmin, domain, bus, dev, func;
| ^~~~~~
../xf86drm.c: In function 'drmParseUsbBusInfo':
../xf86drm.c:4216:2: warning: #warning "Missing implementation of drmParseUsbBusInfo" [-Wcpp]
4216 | #warning "Missing implementation of drmParseUsbBusInfo"
| ^~~~~~~
../xf86drm.c: In function 'drmParseUsbDeviceInfo':
../xf86drm.c:4247:2: warning: #warning "Missing implementation of drmParseUsbDeviceInfo" [-Wcpp]
4247 | #warning "Missing implementation of drmParseUsbDeviceInfo"
| ^~~~~~~
../xf86drm.c: In function 'drmParseOFBusInfo':
../xf86drm.c:4321:2: warning: #warning "Missing implementation of drmParseOFBusInfo" [-Wcpp]
4321 | #warning "Missing implementation of drmParseOFBusInfo"
| ^~~~~~~
../xf86drm.c: In function 'drmParseOFDeviceInfo':
../xf86drm.c:4381:2: warning: #warning "Missing implementation of drmParseOFDeviceInfo" [-Wcpp]
4381 | #warning "Missing implementation of drmParseOFDeviceInfo"
| ^~~~~~~
[73/74] Installing files.
Installing libdrm.so.2.123.0 to /home/marietto/code/mesastuff/install/lib
Installing intel/libdrm_intel.so.1.123.0 to /home/marietto/code/mesastuff/install/lib
Installing nouveau/libdrm_nouveau.so.2.123.0 to /home/marietto/code/mesastuff/install/lib
Installing radeon/libdrm_radeon.so.1.123.0 to /home/marietto/code/mesastuff/install/lib
Installing amdgpu/libdrm_amdgpu.so.1.123.0 to /home/marietto/code/mesastuff/install/lib
Installing man/drm.7 to /home/marietto/code/mesastuff/install/share/man/man7
Installing man/drm-kms.7 to /home/marietto/code/mesastuff/install/share/man/man7
Installing man/drm-memory.7 to /home/marietto/code/mesastuff/install/share/man/man7
Installing man/drmAvailable.3 to /home/marietto/code/mesastuff/install/share/man/man3
Installing man/drmHandleEvent.3 to /home/marietto/code/mesastuff/install/share/man/man3
Installing man/drmModeGetResources.3 to /home/marietto/code/mesastuff/install/share/man/man3
Installing /usr/home/marietto/code/mesastuff/code/drm/libsync.h to /home/marietto/code/mesastuff/install/include
Installing /usr/home/marietto/code/mesastuff/code/drm/xf86drm.h to /home/marietto/code/mesastuff/install/include
Installing /usr/home/marietto/code/mesastuff/code/drm/xf86drmMode.h to /home/marietto/code/mesastuff/install/include
Installing /usr/home/marietto/code/mesastuff/code/drm/include/drm/drm.h to /home/marietto/code/mesastuff/install/include/libdrm
Installing /usr/home/marietto/code/mesastuff/code/drm/include/drm/drm_fourcc.h to /home/marietto/code/mesastuff/install/include/libdrm
Installing /usr/home/marietto/code/mesastuff/code/drm/include/drm/drm_mode.h to /home/marietto/code/mesastuff/install/include/libdrm
Installing /usr/home/marietto/code/mesastuff/code/drm/include/drm/drm_sarea.h to /home/marietto/code/mesastuff/install/include/libdrm
Installing /usr/home/marietto/code/mesastuff/code/drm/include/drm/i915_drm.h to /home/marietto/code/mesastuff/install/include/libdrm
Installing /usr/home/marietto/code/mesastuff/code/drm/include/drm/mach64_drm.h to /home/marietto/code/mesastuff/install/include/libdrm
Installing /usr/home/marietto/code/mesastuff/code/drm/include/drm/mga_drm.h to /home/marietto/code/mesastuff/install/include/libdrm
Installing /usr/home/marietto/code/mesastuff/code/drm/include/drm/msm_drm.h to /home/marietto/code/mesastuff/install/include/libdrm
Installing /usr/home/marietto/code/mesastuff/code/drm/include/drm/nouveau_drm.h to /home/marietto/code/mesastuff/install/include/libdrm
Installing /usr/home/marietto/code/mesastuff/code/drm/include/drm/qxl_drm.h to /home/marietto/code/mesastuff/install/include/libdrm
Installing /usr/home/marietto/code/mesastuff/code/drm/include/drm/r128_drm.h to /home/marietto/code/mesastuff/install/include/libdrm
Installing /usr/home/marietto/code/mesastuff/code/drm/include/drm/radeon_drm.h to /home/marietto/code/mesastuff/install/include/libdrm
Installing /usr/home/marietto/code/mesastuff/code/drm/include/drm/amdgpu_drm.h to /home/marietto/code/mesastuff/install/include/libdrm
Installing /usr/home/marietto/code/mesastuff/code/drm/include/drm/savage_drm.h to /home/marietto/code/mesastuff/install/include/libdrm
Installing /usr/home/marietto/code/mesastuff/code/drm/include/drm/sis_drm.h to /home/marietto/code/mesastuff/install/include/libdrm
Installing /usr/home/marietto/code/mesastuff/code/drm/include/drm/tegra_drm.h to /home/marietto/code/mesastuff/install/include/libdrm
Installing /usr/home/marietto/code/mesastuff/code/drm/include/drm/vc4_drm.h to /home/marietto/code/mesastuff/install/include/libdrm
Installing /usr/home/marietto/code/mesastuff/code/drm/include/drm/via_drm.h to /home/marietto/code/mesastuff/install/include/libdrm
Installing /usr/home/marietto/code/mesastuff/code/drm/include/drm/virtgpu_drm.h to /home/marietto/code/mesastuff/install/include/libdrm
Installing /usr/home/marietto/code/mesastuff/code/drm/include/drm/vmwgfx_drm.h to /home/marietto/code/mesastuff/install/include/libdrm
Installing /usr/home/marietto/code/mesastuff/code/drm/intel/intel_bufmgr.h to /home/marietto/code/mesastuff/install/include/libdrm
Installing /usr/home/marietto/code/mesastuff/code/drm/intel/intel_aub.h to /home/marietto/code/mesastuff/install/include/libdrm
Installing /usr/home/marietto/code/mesastuff/code/drm/intel/intel_debug.h to /home/marietto/code/mesastuff/install/include/libdrm
Installing /usr/home/marietto/code/mesastuff/code/drm/nouveau/nouveau.h to /home/marietto/code/mesastuff/install/include/libdrm/nouveau
Installing /usr/home/marietto/code/mesastuff/code/drm/nouveau/nvif/class.h to /home/marietto/code/mesastuff/install/include/libdrm/nouveau/nvif
Installing /usr/home/marietto/code/mesastuff/code/drm/nouveau/nvif/cl0080.h to /home/marietto/code/mesastuff/install/include/libdrm/nouveau/nvif
Installing /usr/home/marietto/code/mesastuff/code/drm/nouveau/nvif/cl9097.h to /home/marietto/code/mesastuff/install/include/libdrm/nouveau/nvif
Installing /usr/home/marietto/code/mesastuff/code/drm/nouveau/nvif/if0002.h to /home/marietto/code/mesastuff/install/include/libdrm/nouveau/nvif
Installing /usr/home/marietto/code/mesastuff/code/drm/nouveau/nvif/if0003.h to /home/marietto/code/mesastuff/install/include/libdrm/nouveau/nvif
Installing /usr/home/marietto/code/mesastuff/code/drm/nouveau/nvif/ioctl.h to /home/marietto/code/mesastuff/install/include/libdrm/nouveau/nvif
Installing /usr/home/marietto/code/mesastuff/code/drm/nouveau/nvif/unpack.h to /home/marietto/code/mesastuff/install/include/libdrm/nouveau/nvif
Installing /usr/home/marietto/code/mesastuff/code/drm/radeon/radeon_bo.h to /home/marietto/code/mesastuff/install/include/libdrm
Installing /usr/home/marietto/code/mesastuff/code/drm/radeon/radeon_cs.h to /home/marietto/code/mesastuff/install/include/libdrm
Installing /usr/home/marietto/code/mesastuff/code/drm/radeon/radeon_surface.h to /home/marietto/code/mesastuff/install/include/libdrm
Installing /usr/home/marietto/code/mesastuff/code/drm/radeon/radeon_bo_gem.h to /home/marietto/code/mesastuff/install/include/libdrm
Installing /usr/home/marietto/code/mesastuff/code/drm/radeon/radeon_cs_gem.h to /home/marietto/code/mesastuff/install/include/libdrm
Installing /usr/home/marietto/code/mesastuff/code/drm/radeon/radeon_bo_int.h to /home/marietto/code/mesastuff/install/include/libdrm
Installing /usr/home/marietto/code/mesastuff/code/drm/radeon/radeon_cs_int.h to /home/marietto/code/mesastuff/install/include/libdrm
Installing /usr/home/marietto/code/mesastuff/code/drm/radeon/r600_pci_ids.h to /home/marietto/code/mesastuff/install/include/libdrm
Installing /usr/home/marietto/code/mesastuff/code/drm/amdgpu/amdgpu.h to /home/marietto/code/mesastuff/install/include/libdrm
Installing /usr/home/marietto/code/mesastuff/code/drm/build/meson-private/libdrm.pc to /home/marietto/code/mesastuff/install/libdata/pkgconfig
Installing /usr/home/marietto/code/mesastuff/code/drm/build/meson-private/libdrm_intel.pc to /home/marietto/code/mesastuff/install/libdata/pkgconfig
Installing /usr/home/marietto/code/mesastuff/code/drm/build/meson-private/libdrm_nouveau.pc to /home/marietto/code/mesastuff/install/libdata/pkgconfig
Installing /usr/home/marietto/code/mesastuff/code/drm/build/meson-private/libdrm_radeon.pc to /home/marietto/code/mesastuff/install/libdata/pkgconfig
Installing /usr/home/marietto/code/mesastuff/code/drm/build/meson-private/libdrm_amdgpu.pc to /home/marietto/code/mesastuff/install/libdata/pkgconfig
Installing /usr/home/marietto/code/mesastuff/code/drm/data/amdgpu.ids to /home/marietto/code/mesastuff/install/share/libdrm
Installing symlink pointing to libdrm.so.2.123.0 to /home/marietto/code/mesastuff/install/lib/libdrm.so.2
Installing symlink pointing to libdrm.so.2 to /home/marietto/code/mesastuff/install/lib/libdrm.so
Installing symlink pointing to libdrm_intel.so.1.123.0 to /home/marietto/code/mesastuff/install/lib/libdrm_intel.so.1
Installing symlink pointing to libdrm_intel.so.1 to /home/marietto/code/mesastuff/install/lib/libdrm_intel.so
Installing symlink pointing to libdrm_nouveau.so.2.123.0 to /home/marietto/code/mesastuff/install/lib/libdrm_nouveau.so.2
Installing symlink pointing to libdrm_nouveau.so.2 to /home/marietto/code/mesastuff/install/lib/libdrm_nouveau.so
Installing symlink pointing to libdrm_radeon.so.1.123.0 to /home/marietto/code/mesastuff/install/lib/libdrm_radeon.so.1
Installing symlink pointing to libdrm_radeon.so.1 to /home/marietto/code/mesastuff/install/lib/libdrm_radeon.so
Installing symlink pointing to libdrm_amdgpu.so.1.123.0 to /home/marietto/code/mesastuff/install/lib/libdrm_amdgpu.so.1
Installing symlink pointing to libdrm_amdgpu.so.1 to /home/marietto/code/mesastuff/install/lib/libdrm_amdgpu.so
Now I tried to compile mesa :
[marietto@marietto /usr/home/marietto/code/mesastuff/code/mesa]==> sudo pkg search libclc
Password:
libclc-llvm15-15.0.7 Required library functions for OpenCL C programming language
libclc-llvm16-16.0.6 Required library functions for OpenCL C programming language
libclc-llvm17-17.0.6 Required library functions for OpenCL C programming language
libclc-llvm18-18.1.8 Required library functions for OpenCL C programming language
[marietto@marietto /usr/home/marietto/code/mesastuff/code/mesa]==> sudo pkg install libclc-llvm17
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
libclc-llvm17: 17.0.6
Number of packages to be installed: 1
The process will require 77 MiB more space.
10 MiB to be downloaded.
Proceed with this action? [y/N]: y
[1/1] Fetching libclc-llvm17-17.0.6.pkg: 100% 10 MiB 2.1MB/s 00:05
Checking integrity... done (0 conflicting)
[1/1] Installing libclc-llvm17-17.0.6...
[1/1] Extracting libclc-llvm17-17.0.6: 100%
marietto@marietto /usr/home/marietto/code/mesastuff/code/mesa]==> meson setup build
The Meson build system
Version: 1.5.2
Source dir: /usr/home/marietto/code/mesastuff/code/mesa
Build dir: /usr/home/marietto/code/mesastuff/code/mesa/build
Build type: native build
Project name: mesa
Project version: 24.3.0-devel
C compiler for the host machine: gcc (gcc 13.3.0 "gcc (FreeBSD Ports Collection) 13.3.0")
C linker for the host machine: gcc ld.bfd 2.43.1
C++ compiler for the host machine: g++ (gcc 13.3.0 "g++ (FreeBSD Ports Collection) 13.3.0")
C++ linker for the host machine: g++ ld.bfd 2.43.1
Host machine cpu family: x86_64
Host machine cpu: x86_64
Checking for size of "void*" : 8
Checking if "-mtls-dialect=gnu2" runs: YES
Checking if "split TLSDESC" : links: YES
Found pkg-config: YES (/usr/local/bin/pkg-config) 2.3.0
Run-time dependency libglvnd found: YES 1.7.0
Run-time dependency vdpau found: YES 1.5
Program glslangValidator found: YES (/usr/local/bin/glslangValidator)
Run-time dependency libva found: YES 1.22.0
Header "va/va.h" has symbol "VASurfaceAttribDRMFormatModifiers" with dependency libva: YES
meson.build:782: WARNING: add_languages is missing native:, assuming languages are wanted for both host and build.
Rust compiler for the host machine: rustc -C linker=gcc (rustc 1.81.0)
Rust linker for the host machine: rustc -C linker=gcc ld.bfd 2.43.1
Program bindgen found: YES (/usr/local/bin/bindgen)
Found CMake: /usr/local/bin/cmake (3.30.4)
WARNING: CMake Toolchain: Failed to determine CMake compilers state
Run-time dependency libclc found: NO (tried pkgconfig and cmake)
meson.build:809:12: ERROR: Dependency "libclc" not found, tried pkgconfig and cmake
It appears that meson is correctly reporting that it cannot find a required dependency -- which is an entirely different error message from the previous ones you described here.
I don't know what is wrong with FreeBSD that dependencies which are installed aren't findable. I suggest you ask on the FreeBSD community forum. The mesa developers might know the answer too.
Bro,it's different because in the while I've read more documentation to try to finish the tutorial.
If you're planning to use Mesa and Nvidia in parallel, you'll need to use glvnd, just a heads up.
You may want to look at what the mesa port says it needs when you run make all-depends-list
(I think that was the name, it's been a long time since I used FreeBSD)
Hello.
I'm running FreeBSD 14.1 right now and I suspect that the Mesa libs that I have installed on the system are bugged or maybe I have some misconfiguration,because when I do :
# glxinfo | grep Mesa
I get the error :
X Error of failed request: BadValue (integer parameter out of range for operation)
Anyway,this is the context in which the error happens :
I have 3 GPUS :
This is where the problem is :
I've installed the following packages :
# pkg install xf86-video-intel nvidia-drm-kmod drm-kmod nvidia-driver
I've also tried to check if I had the same error by removing the xf86-video-intel and using the i915kms driver with Xorg :
But I've got the same error. Maybe it is a Mesa bug.
What's one consequence of this "bug" ? this one :
What to do to fix that error ?
Surfing the net,I found this tutorial,that maybe will help me :
https://eleni.mutantstargoat.com/hikiko/mesa-on-freebsd/
Unfortunately I've frozen myself trying to setup meson :
can someone explain to me how to fix that ? thanks.