Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 May 2017 13:06:41 +0000
From:      bugzilla-noreply@freebsd.org
To:        x11@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 219417] graphics/mesa-dri: fails to build with elfutils installed
Message-ID:  <bug-219417-7141-TYOJTvrPZ5@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-219417-7141@https.bugs.freebsd.org/bugzilla/>
References:  <bug-219417-7141@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Ting-Wei Lan <lantw44@gmail.com> has reassigned Bugzilla Automation
<bugzilla@FreeBSD.org>'s request for maintainer-feedback to x11@FreeBSD.org:
Bug 219417: graphics/mesa-dri: fails to build with elfutils installed
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219417



--- Description ---
devel/elfutils port installs some header files and shared libraries that ha=
ve
the same names as the base system, causing compilation error when building
graphics/mesa-dri port.

gmake  all-am
gmake[5]: Entering directory
'/wrkdirs/usr/ports/graphics/mesa-dri/work/mesa-17.0.4/src/amd'
/bin/sh ../../libtool  --tag=3DCC   --mode=3Dcompile cc -DPACKAGE_NAME=3D\"=
Mesa\"
-DPACKAGE_TARNAME=3D\"mesa\" -DPACKAGE_VERSION=3D\"17.0.4\"
-DPACKAGE_STRING=3D\"Mesa\ 17.0.4\"
-DPACKAGE_BUGREPORT=3D\"https://bugs.freedesktop.org/enter_bug.cgi\?product=
=3DMesa\
"
-DPACKAGE_URL=3D\"\" -DPACKAGE=3D\"mesa\" -DVERSION=3D\"17.0.4\" -DSTDC_HEA=
DERS=3D1
-DHAVE_SYS_TYPES_H=3D1 -DHAVE_SYS_STAT_H=3D1 -DHAVE_STDLIB_H=3D1 -DHAVE_STR=
ING_H=3D1
-DHAVE_MEMORY_H=3D1 -DHAVE_STRINGS_H=3D1 -DHAVE_INTTYPES_H=3D1 -DHAVE_STDIN=
T_H=3D1
-DHAVE_UNISTD_H=3D1 -DHAVE_DLFCN_H=3D1 -DLT_OBJDIR=3D\".libs/\" -DYYTEXT_PO=
INTER=3D1
-DHAVE___BUILTIN_BSWAP32=3D1 -DHAVE___BUILTIN_BSWAP64=3D1 -DHAVE___BUILTIN_=
CLZ=3D1
-DHAVE___BUILTIN_CLZLL=3D1 -DHAVE___BUILTIN_CTZ=3D1 -DHAVE___BUILTIN_EXPECT=
=3D1
-DHAVE___BUILTIN_FFS=3D1 -DHAVE___BUILTIN_FFSLL=3D1 -DHAVE___BUILTIN_POPCOU=
NT=3D1
-DHAVE___BUILTIN_POPCOUNTLL=3D1 -DHAVE___BUILTIN_UNREACHABLE=3D1
-DHAVE_FUNC_ATTRIBUTE_CONST=3D1 -DHAVE_FUNC_ATTRIBUTE_FLATTEN=3D1
-DHAVE_FUNC_ATTRIBUTE_FORMAT=3D1 -DHAVE_FUNC_ATTRIBUTE_MALLOC=3D1
-DHAVE_FUNC_ATTRIBUTE_PACKED=3D1 -DHAVE_FUNC_ATTRIBUTE_PURE=3D1
-DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL=3D1 -DHAVE_FUNC_ATTRIBUTE_UNUSED=3D1
-DHAVE_FUNC_ATTRIBUTE_VISIBILITY=3D1 -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESU=
LT=3D1
-DHAVE_FUNC_ATTRIBUTE_WEAK=3D1 -DHAVE_FUNC_ATTRIBUTE_ALIAS=3D1 -DHAVE_DLADD=
R=3D1
-DHAVE_CLOCK_GETTIME=3D1 -DHAVE_PTHREAD_PRIO_INHERIT=3D1 -DHAVE_PTHREAD=3D1=
 -I.=20=20
-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DUSE_SSE41
-DUSE_GCC_ATOMIC_BUILTINS -DNDEBUG -DTEXTURE_FLOAT_ENABLED -DUSE_X86_64_ASM
-DHAVE_XLOCALE_H -DHAVE_SYS_SYSCTL_H -DHAVE_STRTOF -DHAVE_MKOSTEMP
-DHAVE_DLOPEN -DHAVE_POSIX_MEMALIGN -DHAVE_LIBDRM -DGLX_USE_DRM
-DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DHAVE_DRI3
-DENABLE_SHADER_CACHE -DHAVE_MINCORE -DHAVE_LLVM=3D0x0400
-DMESA_LLVM_VERSION_PATCH=3D1 -I../../include -I../../src -I../../src
-I../../src/amd/common -I../../src/amd/common -I../../src/compiler
-I../../src/compiler/nir -I../../src/compiler -I../../src/mapi -I../../src/=
mesa
-I../../src/mesa/drivers/dri/common -I../../src/gallium/auxiliary
-I../../src/gallium/include -isystem /usr/local/include -fvisibility=3Dhidd=
en
-D_THREAD_SAFE -pthread -I/usr/local/llvm40/include   -D__STDC_CONSTANT_MAC=
ROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS  -O2 -pipe -march=3Dsandybridg=
e=20
-fstack-protector -isystem /usr/local/include -fno-strict-aliasing -Wall
-std=3Dc99 -Werror=3Dimplicit-function-declaration -Werror=3Dmissing-protot=
ypes
-fno-math-errno -fno-trapping-math -Qunused-arguments  -MT
common/common_libamd_common_la-ac_binary.lo -MD -MP -MF
common/.deps/common_libamd_common_la-ac_binary.Tpo -c -o
common/common_libamd_common_la-ac_binary.lo `test -f 'common/ac_binary.c' ||
echo './'`common/ac_binary.c
libtool: compile:  cc -DPACKAGE_NAME=3D\"Mesa\" -DPACKAGE_TARNAME=3D\"mesa\"
-DPACKAGE_VERSION=3D\"17.0.4\" "-DPACKAGE_STRING=3D\"Mesa 17.0.4\""
"-DPACKAGE_BUGREPORT=3D\"https://bugs.freedesktop.org/enter_bug.cgi?product=
=3DMesa\
""
-DPACKAGE_URL=3D\"\" -DPACKAGE=3D\"mesa\" -DVERSION=3D\"17.0.4\" -DSTDC_HEA=
DERS=3D1
-DHAVE_SYS_TYPES_H=3D1 -DHAVE_SYS_STAT_H=3D1 -DHAVE_STDLIB_H=3D1 -DHAVE_STR=
ING_H=3D1
-DHAVE_MEMORY_H=3D1 -DHAVE_STRINGS_H=3D1 -DHAVE_INTTY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L_H -DHAVE_STRTOF -DHAVE_MKOSTEMP
-DHAVE_DLOPEN -DHAVE_POSIX_MEMALIGN -DHAVE_LIBDRM -DGLX_USE_DRM
-DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DHAVE_DRI3
-DENABLE_SHADER_CACHE -DHAVE_MINCORE -DHAVE_LLVM=3D0x0400
-DMESA_LLVM_VERSION_PATCH=3D1 -I../../include -I../../src -I../../src
-I../../src/amd/common -I../../src/amd/common -I../../src/compiler
-I../../src/compiler/nir -I../../src/compiler -I../../src/mapi -I../../src/=
mesa
-I../../src/mesa/drivers/dri/common -I../../src/gallium/auxiliary
-I../../src/gallium/include -isystem /usr/local/include -fvisibility=3Dhidd=
en
-D_THREAD_SAFE -pthread -I/usr/local/llvm40/include -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O2 -pipe -march=3Dsandybridge
-fstack-protector -isystem /usr/local/include -fno-strict-aliasing -Wall
-std=3Dc99 -Werror=3Dimplicit-function-declaration -Werror=3Dmissing-protot=
ypes
-fno-math-errno -fno-trapping-math -Qunused-arguments -MT
common/common_libamd_common_la-ac_binary.lo -MD -MP -MF
common/.deps/common_libamd_common_la-ac_binary.Tpo -c common/ac_binary.c  -=
fPIC
-DPIC -o common/.libs/common_libamd_common_la-ac_binary.o
In file included from common/ac_binary.c:33:
In file included from /usr/local/include/gelf.h:32:
/usr/local/include/libelf.h:308:8: error: unknown type name 'Elf32_Chdr'
extern Elf32_Chdr *elf32_getchdr (Elf_Scn *__scn);
       ^
/usr/local/include/libelf.h:309:8: error: unknown type name 'Elf64_Chdr'
extern Elf64_Chdr *elf64_getchdr (Elf_Scn *__scn);
       ^
In file included from common/ac_binary.c:33:
/usr/local/include/gelf.h:93:9: error: unknown type name 'Elf64_Chdr'
typedef Elf64_Chdr GElf_Chdr;
	^
3 errors generated.
gmake[5]: *** [Makefile:858: common/common_libamd_common_la-ac_binary.lo] E=
rror
1
gmake[5]: Leaving directory
'/wrkdirs/usr/ports/graphics/mesa-dri/work/mesa-17.0.4/src/amd'
gmake[4]: *** [Makefile:700: all] Error 2
gmake[4]: Leaving directory
'/wrkdirs/usr/ports/graphics/mesa-dri/work/mesa-17.0.4/src/amd'
gmake[3]: *** [Makefile:859: all-recursive] Error 1
gmake[3]: Leaving directory
'/wrkdirs/usr/ports/graphics/mesa-dri/work/mesa-17.0.4/src'
gmake[2]: *** [Makefile:650: all] Error 2
gmake[2]: Leaving directory
'/wrkdirs/usr/ports/graphics/mesa-dri/work/mesa-17.0.4/src'
gmake[1]: *** [Makefile:647: all-recursive] Error 1
gmake[1]: Leaving directory
'/wrkdirs/usr/ports/graphics/mesa-dri/work/mesa-17.0.4'
*** Error code 1

Stop.
make: stopped in /usr/ports/graphics/mesa-dri



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-219417-7141-TYOJTvrPZ5>