Re: Undeclared parameter during mesa building
Brian Paul <[email protected]> Thu, 18 Aug 2022 09:26:22 -0600
| Newsgroups | gmane.comp.video.mesa3d.user |
|---|---|
| Message-ID | <[email protected]> |
Mesa has a lot of dependencies. I'm not surprised the build system doesn't identify all of them. Feel free to file an issue on the mesa gitlab page describing the problem. -Brian On 8/17/22 19:56, alexandre schenberg wrote: > *⚠ External Email* > > "I suspect that you need to build/install a newer version of libdrm > first. I915_PARAM_NUM_FENCES_AVAIL is defined in the i915_drm.h header." > 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 > 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. > 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: > " > make[4]: Entering directory > `/media/34GB/Arquivos-de-Programas-Linux-32bit/mesa-7.5.2/src/gallium/winsys/drm/intel' > Package libdrm was not found in the pkg-config search path. > Perhaps you should add the directory containing `libdrm.pc' > to the PKG_CONFIG_PATH environment variable > No package 'libdrm' found > Package libdrm was not found in the pkg-config search path. > Perhaps you should add the directory containing `libdrm.pc' > to the PKG_CONFIG_PATH environment variable > No package 'libdrm' found > make[5]: Entering directory > `/media/34GB/Arquivos-de-Programas-Linux-32bit/mesa-7.5.2/src/gallium/winsys/drm/intel/gem' > 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 > Package libdrm was not found in the pkg-config search path. > Perhaps you should add the directory containing `libdrm.pc' > to the PKG_CONFIG_PATH environment variable > No package 'libdrm' found > Package libdrm was not found in the pkg-config search path. > Perhaps you should add the directory containing `libdrm.pc' > to the PKG_CONFIG_PATH environment variable > No package 'libdrm' found > 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 > Package libdrm was not found in the pkg-config search path. > Perhaps you should add the directory containing `libdrm.pc' > to the PKG_CONFIG_PATH environment variable > No package 'libdrm' found > Package libdrm was not found in the pkg-config search path. > Perhaps you should add the directory containing `libdrm.pc' > to the PKG_CONFIG_PATH environment variable > No package 'libdrm' found > In file included from intel_be_context.c:6:0: > intel_be_device.h:8:17: fatal error: drm.h: No such file or directory > #include "drm.h" > ^ > compilation terminated. > make[5]: *** [intel_be_context.o] Error 1 > make[5]: *** Waiting for unfinished jobs.... > In file included from intel_be_batchbuffer.c:3:0: > intel_be_batchbuffer.h:7:17: fatal error: drm.h: No such file or directory > #include "drm.h" > ^ > compilation terminated. > make[5]: *** [intel_be_batchbuffer.o] Error 1" > 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/. > I also added the path to the include dir of libdrm and it didn't work. > 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. > Way too flawed and complicated, but that seems to be the case of > majority of cases when building complex software on lInux. > > > 16.08.2022, 15:21, "Brian Paul" <[email protected]>: > > On 8/14/22 19:05, alexandre schenberg wrote: > > ⚠ External Email > > Hello. During the compilation of Mesa 7.5.2, I am confronted > with this error message: > > intel_screen.c: In function ‘intel_init_bufmgr’: > intel_screen.c:641:31: error: ‘I915_PARAM_NUM_FENCES_AVAIL’ > undeclared (first use in this function) > if (intel_get_param(spriv, I915_PARAM_NUM_FENCES_AVAIL, > &num_fences) > > Where should have been declared this parameter? > Is there a way to fix it? Many thanks. > > My configure command: > > 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/ > > > I suspect that you need to build/install a newer version of libdrm > first. I915_PARAM_NUM_FENCES_AVAIL is defined in the i915_drm.h header. > > https://gitlab.freedesktop.org/mesa/drm > <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitlab.freedesktop.org%2Fmesa%2Fdrm&data=05%7C01%7Cbrianp%40vmware.com%7C3639aaccebf54136830a08da80bcd61b%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637963845801288159%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=6C48hjHz5lg1qT2wP2aTgx%2BzCLQY%2BG4bVNgcJso7x1w%3D&reserved=0> > > -Brian > > > ------------------------------------------------------------------------ > > *⚠ External Email:* This email originated from outside of the > organization. Do not click links or open attachments unless you > recognize the sender. >