Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xlocale.h causing build issue with mesa-17 [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
verticalrock
n00b
n00b


Joined: 27 Oct 2006
Posts: 27
Location: i'm not quite sure where i am

PostPosted: Tue Dec 12, 2017 8:11 pm    Post subject: xlocale.h causing build issue with mesa-17 [SOLVED] Reply with quote

[Moderator note: changed title from vague More Mesa build issues to summarize the problem. -Hu]

So I have read through a bunch of threads here and looked at quite a few bugs and I can't quite find anything that seems to fit what I am looking at when it comes to why mesa will not build on my system. I am using profile 17.0 and have tried both gcc-7.2.0 & gcc-6.4.0. Prior to attempting to build mesa, I have followed the 17.0 profile migration steps in terms of rebuilding libtool, gcc, binutils, & glibc and finally @world. This is on a new system because when I started migrated to the new profile on my old system, my hard drive started failing so this is all being done from scratch.

I have tried building mesa with both llvm-5.0.0 & llvm-4.0.1-r1. I have tried building 3 different versions of mesa, 17.3, 17.2.6 & 17.1.10. I have tried altering my USE flags, dropping llvm and gallium. And they all crap out at the same point.

Anyway, here's the emerge --info '=media-libs/mesa-17.3.0::gentoo'
Code:

Portage 2.3.18 (python 3.6.3-final-0, default/linux/amd64/17.0, gcc-7.2.0, glibc-2.26-r3, 4.9.67-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.67-gentoo-x86_64-Intel-R-_Atom-TM-_CPU_330_@_1.60GHz-with-gentoo-2.4.1
KiB Mem:     3343516 total,   1926616 free
KiB Swap:    8190972 total,   8184776 free
Timestamp of repository gentoo: Tue, 12 Dec 2017 14:30:01 +0000
Head commit of repository gentoo: 69be6562be3011f04a460928849f14c0210e598c
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.26.1-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.6.3-r1::gentoo
dev-util/cmake:           3.10.0::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0::gentoo, 7.2.0::gentoo
sys-devel/gcc-config:     1.9.0-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts:

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.cs.utah.edu/ http://mirror.leaseweb.com/gentoo/ http://gentoo.osuosl.org/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://lug.mtu.edu/gentoo/ http://mirrors.rit.edu/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/ http://gentoo.mirrors.tds.net/gentoo http://mirror.lug.udel.edu/pub/gentoo/ http://gentoo.mirrors.pair.com/ http://mirror.iawnet.sandia.gov/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 berkdb bzip2 cli cracklib crypt css cxx dri fortran gdbm iconv ipv6 mmx modules multilib ncurses nls nptl offensive openmp pam pcre readline seccomp session sse sse2 sse3 ssl ssse3 tcpd unicode vim-syntax xattr zlib" ABI_X86="64" ALSA_CARDS="snd_hda_intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="css mmx offensive sse sse2 sse3 ssse3 vim-syntax" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en en-US en-GB" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US en_GB" LLVM_TARGETS="BPF NVPTX X86" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


emerge -pqv mesa
Code:

[ebuild  N    ] media-libs/mesa-17.3.0  USE="classic dri3 egl gallium gbm llvm nptl -bindist -d3d9 -debug -gles1 -gles2 -opencl -openmax -osmesa -pax_kernel -pic (-selinux) -unwind -vaapi -valgrind -vdpau -vulkan -wayland -xa -xvmc" ABI_X86="(64) -32 (-x32)" VIDEO_CARDS="nouveau (-freedreno) -i915 -i965 (-imx) -intel -r100 -r200 -r300 -r600 -radeon -radeonsi (-vc4) -virgl (-vivante)


And the end of the build log:
Code:

make[5]: *** [Makefile:1153: libmesautil_la-strtod.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
libtool: compile:  x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"Mesa\" -DPACKAGE_TARNAME=\"mesa\" -DPACKAGE_VERSION=\"17.3.0\" "-DPACKAGE_STRING=\"Mesa 17.3.0\"" "-DPACKAGE_BUGREPORT=\"https://bugs .freedesktop.org/enter_bug.cgi?product=Mesa\"" -DPACKAGE_URL=\"\" -DPACKAGE=\"mesa\" -DVERSION=\"17.3.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRI NG_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DYYTEXT_POINTER=1 -DHAVE___BUILTIN_BSWAP32=1 -DHAVE_ __BUILTIN_BSWAP64=1 -DHAVE___BUILTIN_CLZ=1 -DHAVE___BUILTIN_CLZLL=1 -DHAVE___BUILTIN_CTZ=1 -DHAVE___BUILTIN_EXPECT=1 -DHAVE___BUILTIN_FFS=1 -DHAVE___BUILTIN_FFSLL=1 -DHAVE___BUILTIN_POPCOUNT=1  -DHAVE___BUILTIN_POPCOUNTLL=1 -DHAVE___BUILTIN_UNREACHABLE=1 -DHAVE_FUNC_ATTRIBUTE_CONST=1 -DHAVE_FUNC_ATTRIBUTE_FLATTEN=1 -DHAVE_FUNC_ATTRIBUTE_FORMAT=1 -DHAVE_FUNC_ATTRIBUTE_MALLOC=1 -DHAVE_F UNC_ATTRIBUTE_PACKED=1 -DHAVE_FUNC_ATTRIBUTE_PURE=1 -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL=1 -DHAVE_FUNC_ATTRIBUTE_UNUSED=1 -DHAVE_FUNC_ATTRIBUTE_VISIBILITY=1 -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_R ESULT=1 -DHAVE_FUNC_ATTRIBUTE_WEAK=1 -DHAVE_FUNC_ATTRIBUTE_ALIAS=1 -DMAJOR_IN_SYSMACROS=1 -DHAVE_DLADDR=1 -DHAVE_CLOCK_GETTIME=1 -DHAVE_PTHREAD_PRIO_INHERIT=1 -DHAVE_PTHREAD=1 -I. -I/var/tmp/po rtage/media-libs/mesa-17.3.0/work/mesa-17.3.0/src/util -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D_GNU_SOURCE -DUSE_SSE41 -DUSE_GCC_ATOMIC_BUILTINS -DNDEBUG -DTEXTU RE_FLOAT_ENABLED -DUSE_X86_64_ASM -DHAVE_XLOCALE_H -DHAVE_SYS_SYSCTL_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_STRTOD_L -DHAVE_DL_ITERATE_PHDR -DHAVE_POSIX_MEMALIGN -DHAVE_LIBDRM -DGLX_USE_DRM -DG LX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_TLS -DHAVE_X11_PLATFORM -DHAVE_SURFACELESS_PLATFORM -DHAVE_DRM_PLATFORM -DHAVE_DRI3 -DENABLE_SHADER_CACHE -DHAVE_MINCORE -DHAVE_LLVM=0x050 0 -DMESA_LLVM_VERSION_PATCH=0 -I/var/tmp/portage/media-libs/mesa-17.3.0/work/mesa-17.3.0/include -I/var/tmp/portage/media-libs/mesa-17.3.0/work/mesa-17.3.0/src -I/var/tmp/portage/media-libs/mes a-17.3.0/work/mesa-17.3.0/src/mapi -I/var/tmp/portage/media-libs/mesa-17.3.0/work/mesa-17.3.0/src/mesa -I/var/tmp/portage/media-libs/mesa-17.3.0/work/mesa-17.3.0/src/gallium/include -I/var/tmp/ portage/media-libs/mesa-17.3.0/work/mesa-17.3.0/src/gallium/auxiliary -fvisibility=hidden -Werror=vla -march=core2 -O2 -pipe -Wall -Werror=implicit-function-declaration -Werror=missing-prototyp es -Wmissing-prototypes -fno-math-errno -fno-trapping-math -std=c99 -c /var/tmp/portage/media-libs/mesa-17.3.0/work/mesa-17.3.0/src/util/u_atomic.c  -fPIC -DPIC -o .libs/libmesautil_la-u_atomic .o
libtool: compile:  x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"Mesa\" -DPACKAGE_TARNAME=\"mesa\" -DPACKAGE_VERSION=\"17.3.0\" "-DPACKAGE_STRING=\"Mesa 17.3.0\"" "-DPACKAGE_BUGREPORT=\"https://bugs .freedesktop.org/enter_bug.cgi?product=Mesa\"" -DPACKAGE_URL=\"\" -DPACKAGE=\"mesa\" -DVERSION=\"17.3.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRI NG_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DYYTEXT_POINTER=1 -DHAVE___BUILTIN_BSWAP32=1 -DHAVE_ __BUILTIN_BSWAP64=1 -DHAVE___BUILTIN_CLZ=1 -DHAVE___BUILTIN_CLZLL=1 -DHAVE___BUILTIN_CTZ=1 -DHAVE___BUILTIN_EXPECT=1 -DHAVE___BUILTIN_FFS=1 -DHAVE___BUILTIN_FFSLL=1 -DHAVE___BUILTIN_POPCOUNT=1  -DHAVE___BUILTIN_POPCOUNTLL=1 -DHAVE___BUILTIN_UNREACHABLE=1 -DHAVE_FUNC_ATTRIBUTE_CONST=1 -DHAVE_FUNC_ATTRIBUTE_FLATTEN=1 -DHAVE_FUNC_ATTRIBUTE_FORMAT=1 -DHAVE_FUNC_ATTRIBUTE_MALLOC=1 -DHAVE_F UNC_ATTRIBUTE_PACKED=1 -DHAVE_FUNC_ATTRIBUTE_PURE=1 -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL=1 -DHAVE_FUNC_ATTRIBUTE_UNUSED=1 -DHAVE_FUNC_ATTRIBUTE_VISIBILITY=1 -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_R ESULT=1 -DHAVE_FUNC_ATTRIBUTE_WEAK=1 -DHAVE_FUNC_ATTRIBUTE_ALIAS=1 -DMAJOR_IN_SYSMACROS=1 -DHAVE_DLADDR=1 -DHAVE_CLOCK_GETTIME=1 -DHAVE_PTHREAD_PRIO_INHERIT=1 -DHAVE_PTHREAD=1 -I. -I/var/tmp/po rtage/media-libs/mesa-17.3.0/work/mesa-17.3.0/src/util -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D_GNU_SOURCE -DUSE_SSE41 -DUSE_GCC_ATOMIC_BUILTINS -DNDEBUG -DTEXTU RE_FLOAT_ENABLED -DUSE_X86_64_ASM -DHAVE_XLOCALE_H -DHAVE_SYS_SYSCTL_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_STRTOD_L -DHAVE_DL_ITERATE_PHDR -DHAVE_POSIX_MEMALIGN -DHAVE_LIBDRM -DGLX_USE_DRM -DG LX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_TLS -DHAVE_X11_PLATFORM -DHAVE_SURFACELESS_PLATFORM -DHAVE_DRM_PLATFORM -DHAVE_DRI3 -DENABLE_SHADER_CACHE -DHAVE_MINCORE -DHAVE_LLVM=0x050 0 -DMESA_LLVM_VERSION_PATCH=0 -I/var/tmp/portage/media-libs/mesa-17.3.0/work/mesa-17.3.0/include -I/var/tmp/portage/media-libs/mesa-17.3.0/work/mesa-17.3.0/src -I/var/tmp/portage/media-libs/mes a-17.3.0/work/mesa-17.3.0/src/mapi -I/var/tmp/portage/media-libs/mesa-17.3.0/work/mesa-17.3.0/src/mesa -I/var/tmp/portage/media-libs/mesa-17.3.0/work/mesa-17.3.0/src/gallium/include -I/var/tmp/ portage/media-libs/mesa-17.3.0/work/mesa-17.3.0/src/gallium/auxiliary -fvisibility=hidden -Werror=vla -march=core2 -O2 -pipe -Wall -Werror=implicit-function-declaration -Werror=missing-prototyp es -Wmissing-prototypes -fno-math-errno -fno-trapping-math -std=c99 -c /var/tmp/portage/media-libs/mesa-17.3.0/work/mesa-17.3.0/src/util/u_queue.c  -fPIC -DPIC -o .libs/libmesautil_la-u_queue.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"Mesa\" -DPACKAGE_TARNAME=\"mesa\" -DPACKAGE_VERSION=\"17.3.0\" "-DPACKAGE_STRING=\"Mesa 17.3.0\"" "-DPACKAGE_BUGREPORT=\"https://bugs .freedesktop.org/enter_bug.cgi?product=Mesa\"" -DPACKAGE_URL=\"\" -DPACKAGE=\"mesa\" -DVERSION=\"17.3.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRI NG_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DYYTEXT_POINTER=1 -DHAVE___BUILTIN_BSWAP32=1 -DHAVE_ __BUILTIN_BSWAP64=1 -DHAVE___BUILTIN_CLZ=1 -DHAVE___BUILTIN_CLZLL=1 -DHAVE___BUILTIN_CTZ=1 -DHAVE___BUILTIN_EXPECT=1 -DHAVE___BUILTIN_FFS=1 -DHAVE___BUILTIN_FFSLL=1 -DHAVE___BUILTIN_POPCOUNT=1  -DHAVE___BUILTIN_POPCOUNTLL=1 -DHAVE___BUILTIN_UNREACHABLE=1 -DHAVE_FUNC_ATTRIBUTE_CONST=1 -DHAVE_FUNC_ATTRIBUTE_FLATTEN=1 -DHAVE_FUNC_ATTRIBUTE_FORMAT=1 -DHAVE_FUNC_ATTRIBUTE_MALLOC=1 -DHAVE_F UNC_ATTRIBUTE_PACKED=1 -DHAVE_FUNC_ATTRIBUTE_PURE=1 -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL=1 -DHAVE_FUNC_ATTRIBUTE_UNUSED=1 -DHAVE_FUNC_ATTRIBUTE_VISIBILITY=1 -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_R ESULT=1 -DHAVE_FUNC_ATTRIBUTE_WEAK=1 -DHAVE_FUNC_ATTRIBUTE_ALIAS=1 -DMAJOR_IN_SYSMACROS=1 -DHAVE_DLADDR=1 -DHAVE_CLOCK_GETTIME=1 -DHAVE_PTHREAD_PRIO_INHERIT=1 -DHAVE_PTHREAD=1 -I. -I/var/tmp/po rtage/media-libs/mesa-17.3.0/work/mesa-17.3.0/src/util -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D_GNU_SOURCE -DUSE_SSE41 -DUSE_GCC_ATOMIC_BUILTINS -DNDEBUG -DTEXTU RE_FLOAT_ENABLED -DUSE_X86_64_ASM -DHAVE_XLOCALE_H -DHAVE_SYS_SYSCTL_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_STRTOD_L -DHAVE_DL_ITERATE_PHDR -DHAVE_POSIX_MEMALIGN -DHAVE_LIBDRM -DGLX_USE_DRM -DG LX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_TLS -DHAVE_X11_PLATFORM -DHAVE_SURFACELESS_PLATFORM -DHAVE_DRM_PLATFORM -DHAVE_DRI3 -DENABLE_SHADER_CACHE -DHAVE_MINCORE -DHAVE_LLVM=0x050 0 -DMESA_LLVM_VERSION_PATCH=0 -I/var/tmp/portage/media-libs/mesa-17.3.0/work/mesa-17.3.0/include -I/var/tmp/portage/media-libs/mesa-17.3.0/work/mesa-17.3.0/src -I/var/tmp/portage/media-libs/mes a-17.3.0/work/mesa-17.3.0/src/mapi -I/var/tmp/portage/media-libs/mesa-17.3.0/work/mesa-17.3.0/src/mesa -I/var/tmp/portage/media-libs/mesa-17.3.0/work/mesa-17.3.0/src/gallium/include -I/var/tmp/ portage/media-libs/mesa-17.3.0/work/mesa-17.3.0/src/gallium/auxiliary -fvisibility=hidden -Werror=vla -march=core2 -O2 -pipe -Wall -Werror=implicit-function-declaration -Werror=missing-prototyp es -Wmissing-prototypes -fno-math-errno -fno-trapping-math -std=c99 -c /var/tmp/portage/media-libs/mesa-17.3.0/work/mesa-17.3.0/src/util/format_srgb.c  -fPIC -DPIC -o .libs/libmesautil_la-forma t_srgb.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"Mesa\" -DPACKAGE_TARNAME=\"mesa\" -DPACKAGE_VERSION=\"17.3.0\" "-DPACKAGE_STRING=\"Mesa 17.3.0\"" "-DPACKAGE_BUGREPORT=\"https://bugs .freedesktop.org/enter_bug.cgi?product=Mesa\"" -DPACKAGE_URL=\"\" -DPACKAGE=\"mesa\" -DVERSION=\"17.3.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRI NG_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DYYTEXT_POINTER=1 -DHAVE___BUILTIN_BSWAP32=1 -DHAVE_ __BUILTIN_BSWAP64=1 -DHAVE___BUILTIN_CLZ=1 -DHAVE___BUILTIN_CLZLL=1 -DHAVE___BUILTIN_CTZ=1 -DHAVE___BUILTIN_EXPECT=1 -DHAVE___BUILTIN_FFS=1 -DHAVE___BUILTIN_FFSLL=1 -DHAVE___BUILTIN_POPCOUNT=1  -DHAVE___BUILTIN_POPCOUNTLL=1 -DHAVE___BUILTIN_UNREACHABLE=1 -DHAVE_FUNC_ATTRIBUTE_CONST=1 -DHAVE_FUNC_ATTRIBUTE_FLATTEN=1 -DHAVE_FUNC_ATTRIBUTE_FORMAT=1 -DHAVE_FUNC_ATTRIBUTE_MALLOC=1 -DHAVE_F UNC_ATTRIBUTE_PACKED=1 -DHAVE_FUNC_ATTRIBUTE_PURE=1 -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL=1 -DHAVE_FUNC_ATTRIBUTE_UNUSED=1 -DHAVE_FUNC_ATTRIBUTE_VISIBILITY=1 -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_R ESULT=1 -DHAVE_FUNC_ATTRIBUTE_WEAK=1 -DHAVE_FUNC_ATTRIBUTE_ALIAS=1 -DMAJOR_IN_SYSMACROS=1 -DHAVE_DLADDR=1 -DHAVE_CLOCK_GETTIME=1 -DHAVE_PTHREAD_PRIO_INHERIT=1 -DHAVE_PTHREAD=1 -I. -I/var/tmp/po rtage/media-libs/mesa-17.3.0/work/mesa-17.3.0/src/util -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D_GNU_SOURCE -DUSE_SSE41 -DUSE_GCC_ATOMIC_BUILTINS -DNDEBUG -DTEXTU RE_FLOAT_ENABLED -DUSE_X86_64_ASM -DHAVE_XLOCALE_H -DHAVE_SYS_SYSCTL_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_STRTOD_L -DHAVE_DL_ITERATE_PHDR -DHAVE_POSIX_MEMALIGN -DHAVE_LIBDRM -DGLX_USE_DRM -DG LX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_TLS -DHAVE_X11_PLATFORM -DHAVE_SURFACELESS_PLATFORM -DHAVE_DRM_PLATFORM -DHAVE_DRI3 -DENABLE_SHADER_CACHE -DHAVE_MINCORE -DHAVE_LLVM=0x050 0 -DMESA_LLVM_VERSION_PATCH=0 -I/var/tmp/portage/media-libs/mesa-17.3.0/work/mesa-17.3.0/include -I/var/tmp/portage/media-libs/mesa-17.3.0/work/mesa-17.3.0/src -I/var/tmp/portage/media-libs/mes a-17.3.0/work/mesa-17.3.0/src/mapi -I/var/tmp/portage/media-libs/mesa-17.3.0/work/mesa-17.3.0/src/mesa -I/var/tmp/portage/media-libs/mesa-17.3.0/work/mesa-17.3.0/src/gallium/include -I/var/tmp/ portage/media-libs/mesa-17.3.0/work/mesa-17.3.0/src/gallium/auxiliary -fvisibility=hidden -Werror=vla -march=core2 -O2 -pipe -Wall -Werror=implicit-function-declaration -Werror=missing-prototyp es -Wmissing-prototypes -fno-math-errno -fno-trapping-math -std=c99 -c /var/tmp/portage/media-libs/mesa-17.3.0/work/mesa-17.3.0/src/util/u_vector.c  -fPIC -DPIC -o .libs/libmesautil_la-u_vector .o
make[5]: Leaving directory '/var/tmp/portage/media-libs/mesa-17.3.0/work/mesa-17.3.0-abi_x86_64.amd64/src/util'
make[4]: *** [Makefile:1225: all-recursive] Error 1
make[4]: Leaving directory '/var/tmp/portage/media-libs/mesa-17.3.0/work/mesa-17.3.0-abi_x86_64.amd64/src/util'
make[3]: *** [Makefile:902: all] Error 2
make[3]: Leaving directory '/var/tmp/portage/media-libs/mesa-17.3.0/work/mesa-17.3.0-abi_x86_64.amd64/src/util'
make[2]: *** [Makefile:861: all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/mesa-17.3.0/work/mesa-17.3.0-abi_x86_64.amd64/src'
make[1]: *** [Makefile:652: all] Error 2
make[1]: Leaving directory '/var/tmp/portage/media-libs/mesa-17.3.0/work/mesa-17.3.0-abi_x86_64.amd64/src'
make: *** [Makefile:659: all-recursive] Error 1
 * ERROR: media-libs/mesa-17.3.0::gentoo failed (compile phase):
 *   emake failed


Anyone who can offer help, I would greatly appreciate it because this is just about driving me out of my head.


Last edited by verticalrock on Wed Dec 13, 2017 9:42 pm; edited 3 times in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 19590
Location: here

PostPosted: Tue Dec 12, 2017 8:50 pm    Post subject: Reply with quote

You can post full build.log with wgetpaste
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
verticalrock
n00b
n00b


Joined: 27 Oct 2006
Posts: 27
Location: i'm not quite sure where i am

PostPosted: Tue Dec 12, 2017 9:03 pm    Post subject: Reply with quote

Here is the full build.log
[url]
http://bpaste.net/show/10c3ccdd45d2
[/url]
Back to top
View user's profile Send private message
verticalrock
n00b
n00b


Joined: 27 Oct 2006
Posts: 27
Location: i'm not quite sure where i am

PostPosted: Wed Dec 13, 2017 9:39 pm    Post subject: Reply with quote

So I have finally managed to get to the bottom of this mystery issue. It turns out that the culprit was a leftover file from glibc-2.25 from (presumably) the stage3 tarball. I started looking at the build log further and noticed the following error:
Code:
In file included from /var/tmp/portage/media-libs/mesa-17.3.0/work/mesa-17.3.0/src/util/strtod.c:32:0:
/usr/include/xlocale.h:27:16: error: redefinition of ‘struct __locale_struct’

So I looked and indeed I have a file at /usr/include/xlocale.h. I tried to figure out where that file came from on the system but no luck:
Code:
# equery b /usr/include/xlocale.h
 * Searching for /usr/include/xlocale.h ...
#

So I presume it must have been left over or missed when I installed glibc-2.26. And unfortunately, mesa tries use that orphaned xlocale.h file when it attempted to build:
Code:
checking xlocale.h usability... yes
checking xlocale.h presence... yes
checking for xlocale.h... yes

Then I started poking around on the bug.freedesktop.org site and ran across this bug:

Bug 102454 - glibc 2.26 doesn't provide anymore xlocale.h
https://bugs.freedesktop.org/show_bug.cgi?id=102454

And a similar tracker on bugs.gentoo.org:

Bug 638010 (xlocale.h) - [TRACKER] Packages using xlocale.h (and thus failing to build with >=sys-libs/glibc-2.26)
https://bugs.gentoo.org/638010

So what I did to fix the issue was to move the xlocale.h file:
Code:
 mv /usr/include/xlocale.h /usr/include/xlocale.h.old

And like magic, mesa built with no hassle.

PS: I'll change the subject to reflect what the issue actually was and that it is solved.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 41404
Location: 56N 3W

PostPosted: Wed Dec 13, 2017 10:05 pm    Post subject: Reply with quote

verticalrock,

I'm testing this on arm64. Its only a Pi 3, so it will be overnight.
Thank you for doing the digging.

-- edit --

Its not got to mesa yet but it fixed dev-libs/icu-60.1, so its looking good.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum