Skip to contentSkip to conversation

Compile fails with radeonsi / LLVM (git)

Bug 100563 [email protected] 1 participant 6 messages Apr 4, 2017 – Apr 5, 2017

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=100563

Bug ID: 100563
Summary: Compile fails with radeonsi / LLVM (git)
Product: Mesa
Version: git
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=100563

--- Comment #1 from Nicolai Hähnle <[email protected]> ---
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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100563

--- Comment #2 from Nicolai Hähnle <[email protected]> ---
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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100563

--- Comment #3 from Chris Rankin <[email protected]> --- (In reply to Nicolai Hähnle from comment #2)

Quoted 3 lines

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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100563

--- Comment #4 from Jan Vesely <[email protected]> --- (In reply to Chris Rankin from comment #3)

Quoted 7 lines

(In reply to Nicolai Hähnle from comment #2)

Quoted 3 lines

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)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100563

Chris Rankin <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |NOTABUG
             Status|NEW                         |RESOLVED

--- Comment #5 from Chris Rankin <[email protected]> --- Removing the old file fixes the build. Thanks.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel