[Mesa-dev] [PATCH] r600: link against common ac library.

Dieter N├╝tzel Dieter at nuetzel-hh.de
Tue Feb 28 05:19:29 UTC 2017


This one fixes --enable-opencl (apart from Timothy's 'fix' commit), but
NOT nine...

Making all in targets/d3dadapter9
make[4]: Entering directory '/opt/mesa/src/gallium/targets/d3dadapter9'
   CXXLD    d3dadapter9.la
../../../../src/amd/common/.libs/libamd_common.a(common_libamd_common_la-ac_binary.o): 
In function `ac_elf_read':
/opt/mesa/src/amd/common/ac_binary.c:114: multiple definition of 
`ac_elf_read'
../../../../src/amd/common/.libs/libamd_common.a(common_libamd_common_la-ac_binary.o):/opt/mesa/src/amd/common/ac_binary.c:114: 
first defined here
../../../../src/amd/common/.libs/libamd_common.a(common_libamd_common_la-ac_binary.o): 
In function `ac_shader_binary_config_start':
/opt/mesa/src/amd/common/ac_binary.c:196: multiple definition of 
`ac_shader_binary_config_start'
../../../../src/amd/common/.libs/libamd_common.a(common_libamd_common_la-ac_binary.o):/opt/mesa/src/amd/common/ac_binary.c:196: 
first defined here
../../../../src/amd/common/.libs/libamd_common.a(common_libamd_common_la-ac_binary.o): 
In function `ac_shader_binary_read_config':
/opt/mesa/src/amd/common/ac_binary.c:216: multiple definition of 
`ac_shader_binary_read_config'
../../../../src/amd/common/.libs/libamd_common.a(common_libamd_common_la-ac_binary.o):/opt/mesa/src/amd/common/ac_binary.c:216: 
first defined here
../../../../src/amd/common/.libs/libamd_common.a(common_libamd_common_la-ac_llvm_build.o): 
In function `ac_llvm_context_init':

[-] And so on...

I'm using:
./autogen.sh --prefix=/usr/local --with-dri-drivers="" 
--with-gallium-drivers=r600,radeonsi,swrast --with-egl-platforms=drm 
--enable-nine --enable-texture-float --enable-opencl 
--with-vulkan-drivers=radeon

Thanks,
Dieter

Am 28.02.2017 06:05, schrieb Dave Airlie:
> From: Dave Airlie <airlied at redhat.com>
> 
> This should fix the build.
> 
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
>  src/gallium/drivers/r600/Automake.inc | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/gallium/drivers/r600/Automake.inc
> b/src/gallium/drivers/r600/Automake.inc
> index 914eea3..0355455 100644
> --- a/src/gallium/drivers/r600/Automake.inc
> +++ b/src/gallium/drivers/r600/Automake.inc
> @@ -4,6 +4,7 @@ TARGET_DRIVERS += r600
>  TARGET_CPPFLAGS += -DGALLIUM_R600
>  TARGET_LIB_DEPS += \
>  	$(top_builddir)/src/gallium/drivers/r600/libr600.la \
> +	$(top_builddir)/src/amd/common/libamd_common.la \
>  	$(RADEON_LIBS) \
>  	$(LIBDRM_LIBS)


More information about the mesa-dev mailing list