Trying to compile Mesa from git, but fails: In file included from si_debug.c:30:0: sid_tables.h:134:9: error: implicit declaration of function ‘S_414_BYTE_COUNT’ [-Werror=implicit-function-declaration] {1127, S_414_BYTE_COUNT(~0u)}, ^~~~~~~~~~~~~~~~ Other unknown symbols include: - S_414_DISABLE_WR_CONFIRM - S_008F14_DATA_FORMAT - S_008F14_NUM_FORMAT - S_008F20_PITCH - S_0098F8_PIPE_INTERLEAVE_SIZE - S_0098F8_NUM_SHADER_ENGINES - S_0098F8_NUM_GPUS - S_00B02C_EXCP_EN_CIK - S_00B12C_EXCP_EN_CIK - S_00B22C_EXCP_EN_CIK - S_00B854_WAVES_PER_SH_CIK - S_028350_SE_XSEL - S_028350_SE_YSEL - S_028354_SE_PAIR_XSEL - S_028354_SE_PAIR_YSEL - S_0287E4_BASE_ADDR - S_028A7C_RDREQ_POLICY_VI - S_028A90_ADDRESS_HI - S_028B6C_RDREQ_POLICY_VI My configuration options are: $ CFLAGS='-O2 -g -gdwarf-2' ./autogen.sh --prefix=/home/chris/Programs/local-mesa --libdir=/home/chris/Programs/local-mesa/lib64 --with-vdpau-libdir=/home/chris/Programs/local-mesa/lib64/vdpau --with-gallium-drivers=radeonsi,swrast --with-egl-platforms=drm,x11 --with-llvm-prefix=/home/chris/Programs/local-llvm --enable-llvm-shared-libs --with-dri-drivers= -enable-texture-float --enable-64-bit --enable-nine And my LLVM installation is fresh from Git.
This has nothing to do with LLVM. It looks like your sid_tables.h is stale -- please remove it (it's auto-generated) and try again.
To add a bit more explanation: sid_tables.h is usually updated automatically; but it was moved some time ago, and it's possible that you have an old copy in the old location.
(In reply to Nicolai Hähnle from comment #2) > To add a bit more explanation: sid_tables.h is usually updated > automatically; but it was moved some time ago, and it's possible that you > have an old copy in the old location. OK, thanks. I'll give that a try, although I run "make distclean" before each build precisely to avoid this kind of error.
(In reply to Chris Rankin from comment #3) > (In reply to Nicolai Hähnle from comment #2) > > To add a bit more explanation: sid_tables.h is usually updated > > automatically; but it was moved some time ago, and it's possible that you > > have an old copy in the old location. > > OK, thanks. I'll give that a try, although I run "make distclean" before > each build precisely to avoid this kind of error. I don't think make distclean would help here. the old header is unknown to the build system, you'd need to run distclean before pulling in the changeset. git status should show it as untracked file (git clean -f should work as well, but that removes all untracked files)
Removing the old file fixes the build. Thanks.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.