<div>"I suspect that you need to build/install a newer version of libdrm<div>first. I915_PARAM_NUM_FENCES_AVAIL is defined in the i915_drm.h header."</div><div> </div><div>Yes, that's the cause, wrong requirement for minimum for libDRM. I installed a more modern version 2.4.20, and in the end, I was able to build it, I think</div><div> </div><div>I said "in the end" because it was a difficult fight even after solving this initial libDRM issue. After a long compiling period, it broke down complaining about the lack of "IntrinsicP.h". , something configure should detected and interrupted the building process, warning about.</div><div> </div><div>Fortunately, I know the library that has it, downloaded and built it (after having to built two of its dependencies) I added it to CPPFLAGS and compilation proceeded a bit more and then complained about not finding the library itself (as expected) I added it to LDFLAGS and compilation went further. In the end, I was blessed with:</div><div> </div><div>"<div>make[4]: Entering directory `/media/34GB/Arquivos-de-Programas-Linux-32bit/mesa-7.5.2/src/gallium/winsys/drm/intel'</div><div>Package libdrm was not found in the pkg-config search path.</div><div>Perhaps you should add the directory containing `libdrm.pc'</div><div>to the PKG_CONFIG_PATH environment variable</div><div>No package 'libdrm' found</div><div>Package libdrm was not found in the pkg-config search path.</div><div>Perhaps you should add the directory containing `libdrm.pc'</div><div>to the PKG_CONFIG_PATH environment variable</div><div>No package 'libdrm' found</div><div>make[5]: Entering directory `/media/34GB/Arquivos-de-Programas-Linux-32bit/mesa-7.5.2/src/gallium/winsys/drm/intel/gem'</div><div>gcc -c -I. -I../../../../../../src/gallium/include -I../../../../../../src/gallium/auxiliary -I../../../../../../src/gallium/drivers -I/src/gallium/include -I/src/gallium/auxiliary -I/src/gallium/drivers  -m32 -I/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/X11-1.3.6/include/ -I/media/34GB/Arquivos-de-Programas-Linux/xorg/Xorgproto-2018.1/include/ -I/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/Xxf86vm-1.1.0/include/ -I/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/Xext-1.1.1/include/ -I/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/Xfixes-3.0.1.2/include/ -I/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/Xdamage-1.0.3/include/ -I/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/Xt-1.0.0/include/ -I/media/34GB/Arquivos-de-Programas-Linux-32bit/Drm-2.4.20/include/ -m32 -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing  -fPIC   -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS  intel_be_batchbuffer.c -o intel_be_batchbuffer.o</div><div>Package libdrm was not found in the pkg-config search path.</div><div>Perhaps you should add the directory containing `libdrm.pc'</div><div>to the PKG_CONFIG_PATH environment variable</div><div>No package 'libdrm' found</div><div>Package libdrm was not found in the pkg-config search path.</div><div>Perhaps you should add the directory containing `libdrm.pc'</div><div>to the PKG_CONFIG_PATH environment variable</div><div>No package 'libdrm' found</div><div>gcc -c -I. -I../../../../../../src/gallium/include -I../../../../../../src/gallium/auxiliary -I../../../../../../src/gallium/drivers -I/src/gallium/include -I/src/gallium/auxiliary -I/src/gallium/drivers  -m32 -I/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/X11-1.3.6/include/ -I/media/34GB/Arquivos-de-Programas-Linux/xorg/Xorgproto-2018.1/include/ -I/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/Xxf86vm-1.1.0/include/ -I/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/Xext-1.1.1/include/ -I/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/Xfixes-3.0.1.2/include/ -I/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/Xdamage-1.0.3/include/ -I/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/Xt-1.0.0/include/ -I/media/34GB/Arquivos-de-Programas-Linux-32bit/Drm-2.4.20/include/ -m32 -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing  -fPIC   -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS  intel_be_context.c -o intel_be_context.o</div><div>Package libdrm was not found in the pkg-config search path.</div><div>Perhaps you should add the directory containing `libdrm.pc'</div><div>to the PKG_CONFIG_PATH environment variable</div><div>No package 'libdrm' found</div><div>Package libdrm was not found in the pkg-config search path.</div><div>Perhaps you should add the directory containing `libdrm.pc'</div><div>to the PKG_CONFIG_PATH environment variable</div><div>No package 'libdrm' found</div><div>In file included from intel_be_context.c:6:0:</div><div>intel_be_device.h:8:17: fatal error: drm.h: No such file or directory</div><div> #include "drm.h"</div><div>                 ^</div><div>compilation terminated.</div><div>make[5]: *** [intel_be_context.o] Error 1</div><div>make[5]: *** Waiting for unfinished jobs....</div><div>In file included from intel_be_batchbuffer.c:3:0:</div><div>intel_be_batchbuffer.h:7:17: fatal error: drm.h: No such file or directory</div><div> #include "drm.h"</div><div>                 ^</div><div>compilation terminated.</div><div>make[5]: *** [intel_be_batchbuffer.o] Error 1"</div><div> </div><div>And I was passing libdrm through: PKG_CONFIG_PATH=/media/34GB/Arquivos-de-Programas-Linux-32bit/Drm-2.4.20/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Xorgproto-2018.1/share/pkgconfig/.</div><div>I also added the path to the  include  dir of libdrm and it didn't work.</div><div> </div><div>Then I realized it was saying "#include "drm.h" and not #include "/libdrm/drm.h". I appended  "\libdrm at the end of "-I/media/34GB/Arquivos-de-Programas-Linux-32bit/Drm-2.4.20/include/" and it worked.</div><div> </div><div><div><div>Way too flawed and complicated, but that seems to be the case of majority of cases when building complex software on lInux.</div></div></div></div></div><div><br /></div><div><br /></div><div>16.08.2022, 15:21, "Brian Paul" <brianp@vmware.com>:</div><blockquote><p>On 8/14/22 19:05, alexandre schenberg wrote:<br /></p><blockquote class="210e7a848e8fcb45wmi-quote"> ⚠ External Email<br /> <br /> Hello. During the compilation of Mesa 7.5.2, I am confronted with this error message:<br /> <br /> intel_screen.c: In function ‘intel_init_bufmgr’:<br /> intel_screen.c:641:31: error: ‘I915_PARAM_NUM_FENCES_AVAIL’ undeclared (first use in this function)<br />      if (intel_get_param(spriv, I915_PARAM_NUM_FENCES_AVAIL, &num_fences)<br /> <br /> Where should have been declared this parameter?<br /> Is there a way to fix it? Many thanks.<br /> <br /> My configure command:<br /> <br /> CFLAGS=-m32 CPPFLAGS="-I/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/X11-1.3.6/include/ -I/media/34GB/Arquivos-de-Programas-Linux/xorg/Xorgproto-2018.1/include/ -I/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/Xxf86vm-1.1.0/include/ -I/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/Xext-1.1.1/include/ -I/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/Xfixes-3.0.1.2/include/ -I/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/Xdamage-1.0.3/include/" LDFLAGS="-L/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/X11-1.3.6/lib/ -L/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/Xext-1.1.1/lib/ -L/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/Xxf86vm-1.1.0/lib/ -L/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/Xdamage-1.0.3/lib/ -L/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/Xfixes-3.0.1.2/lib/" ./configure --prefix=/media/34GB/Arquivos-de-Programas-Linux-32bit/Mesa-7.5.2/ --host=i686-linux-gnu --with-expat=/media/34GB/Arquivos-de-Programas-Linux-32bit/Expat-2.0.0/ PKG_CONFIG_PATH=/media/34GB/Arquivos-de-Programas-Linux-32bit/Drm-2.4.3/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Xorgproto-2018.1/share/pkgconfig/<br /></blockquote><p><br />I suspect that you need to build/install a newer version of libdrm <br />first.  I915_PARAM_NUM_FENCES_AVAIL is defined in the i915_drm.h header.<br /><br /><a href="https://gitlab.freedesktop.org/mesa/drm">https://gitlab.freedesktop.org/mesa/drm</a><br /><br />-Brian<br /></p></blockquote>