.0.0/work/mesa-17.0.0/src/mesa/main -I../../src/mapi -I/var/tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0/src/mapi -I/var/tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0/src/gallium/include -I/var/tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0/src/gallium/auxiliary -I./x86-64 -I/var/tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0/src/mesa/x86-64 -I/usr/include -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fvisibility=hidden -Werror=pointer-arith -Werror=vla -march=core-avx-i -O2 -pipe -Wall -std=c99 -Werror=implicit-function-declaration -Werror=missing-prototypes -fno-math-errno -fno-trapping-math -c /var/tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0/src/mesa/main/compute.c -fPIC -DPIC -o main/.libs/compute.o libtool: compile: x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"Mesa\" -DPACKAGE_TARNAME=\"mesa\" -DPACKAGE_VERSION=\"17.0.0\" "-DPACKAGE_STRING=\"Mesa 17.0.0\"" "-DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\"" -DPACKAGE_URL=\"\" -DPACKAGE=\"mesa\" -DVERSION=\"17.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_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_FUNC_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_RESULT=1 -DHAVE_FUNC_ATTRIBUTE_WEAK=1 -DHAVE_FUNC_ATTRIBUTE_ALIAS=1 -DMAJOR_IN_SYSMACROS=1 -DHAVE_DLADDR=1 -DHAVE_CLOCK_GETTIME=1 -DHAVE_PTHREAD=1 -I. -I/var/tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0/src/mesa -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D_GNU_SOURCE -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 -DGLX_USE_TLS -DHAVE_DRI3 -DENABLE_SHADER_CACHE -DHAVE_MINCORE -DHAVE_LLVM=0x0309 -DMESA_LLVM_VERSION_PATCH=1 -I/var/tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0/include -I../../src -I/var/tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0/src -I../../src/compiler/glsl -I../../src/compiler/nir -I../../src/mesa -I/var/tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0/src/mesa -I../../src/mesa/main -I/var/tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0/src/mesa/main -I../../src/mapi -I/var/tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0/src/mapi -I/var/tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0/src/gallium/include -I/var/tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0/src/gallium/auxiliary -I./x86-64 -I/var/tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0/src/mesa/x86-64 -I/usr/include -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fvisibility=hidden -Werror=pointer-arith -Werror=vla -march=core-avx-i -O2 -pipe -Wall -std=c99 -Werror=implicit-function-declaration -Werror=missing-prototypes -fno-math-errno -fno-trapping-math -c /var/tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0/src/mesa/main/condrender.c -fPIC -DPIC -o main/.libs/condrender.o libtool: compile: x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"Mesa\" -DPACKAGE_TARNAME=\"mesa\" -DPACKAGE_VERSION=\"17.0.0\" "-DPACKAGE_STRING=\"Mesa 17.0.0\"" "-DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\"" -DPACKAGE_URL=\"\" -DPACKAGE=\"mesa\" -DVERSION=\"17.0.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_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_FUNC_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_RESULT=1 -DHAVE_FUNC_ATTRIBUTE_WEAK=1 -DHAVE_FUNC_ATTRIBUTE_ALIAS=1 -DMAJOR_IN_SYSMACROS=1 -DHAVE_DLADDR=1 -DHAVE_CLOCK_GETTIME=1 -DHAVE_PTHREAD=1 -I. -I/var/tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0/src/mesa -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D_GNU_SOURCE -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 -DGLX_USE_TLS -DHAVE_DRI3 -DENABLE_SHADER_CACHE -DHAVE_MINCORE -DHAVE_LLVM=0x0309 -DMESA_LLVM_VERSION_PATCH=1 -I/var/tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0/include -I../../src -I/var/tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0/src -I../../src/compiler/glsl -I../../src/compiler/nir -I../../src/mesa -I/var/tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0/src/mesa -I../../src/mesa/main -I/var/tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0/src/mesa/main -I../../src/mapi -I/var/tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0/src/mapi -I/var/tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0/src/gallium/include -I/var/tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0/src/gallium/auxiliary -I./x86-64 -I/var/tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0/src/mesa/x86-64 -I/usr/include -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fvisibility=hidden -Werror=pointer-arith -Werror=vla -march=core-avx-i -O2 -pipe -Wall -std=c99 -Werror=implicit-function-declaration -Werror=missing-prototypes -fno-math-errno -fno-trapping-math -c /var/tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0/src/mesa/main/context.c -fPIC -DPIC -o main/.libs/context.o make[5]: Leaving directory '/var/tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0-abi_x86_64.amd64/src/mesa' make[4]: *** [Makefile:2983: all-recursive] Error 1 make[4]: Leaving directory '/var/tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0-abi_x86_64.amd64/src/mesa' make[3]: *** [Makefile:1855: all] Error 2 make[3]: Leaving directory '/var/tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0-abi_x86_64.amd64/src/mesa' make[2]: *** [Makefile:858: all-recursive] Error 1 make[2]: Leaving directory '/var/tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0-abi_x86_64.amd64/src' make[1]: *** [Makefile:649: all] Error 2 make[1]: Leaving directory '/var/tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0-abi_x86_64.amd64/src' make: *** [Makefile:646: all-recursive] Error 1 * ERROR: media-libs/mesa-17.0.0::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=media-libs/mesa-17.0.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=media-libs/mesa-17.0.0::gentoo'`. * The complete build log is located at '/mnt/portage/logs/media-libs:mesa-17.0.0:20170220-101405.log'. * The ebuild environment file is located at '/var/tmp/portage/media-libs/mesa-17.0.0/temp/environment'. * Working directory: '/var/tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0-abi_x86_64.amd64' * S: '/var/tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0' Reproducible: Always Portage 2.3.3 (python 3.5.3-final-0, default/linux/amd64/13.0/desktop/plasma/systemd, gcc-5.4.0, glibc-2.24-r1, 4.9.11-gentoo x86_64) ================================================================= System uname: Linux-4.9.11-gentoo-x86_64-Intel-R-_Core-TM-_i7-3740QM_CPU_@_2.70GHz-with-gentoo-2.3 KiB Mem: 24626048 total, 21210004 free KiB Swap: 26488828 total, 26488828 free Timestamp of repository gentoo: Mon, 20 Feb 2017 10:00:01 +0000 Timestamp of repository poly-c: Mon, 20 Feb 2017 08:13:24 +0000 sh bash 4.4_p12 ld GNU ld (Gentoo 2.27 p1.0) 2.27 app-shells/bash: 4.4_p12::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.24.1::gentoo dev-lang/python: 2.7.13::gentoo, 3.4.6::gentoo, 3.5.3::gentoo dev-util/cmake: 3.7.2::gentoo dev-util/pkgconfig: 0.29.1::gentoo sys-apps/baselayout: 2.3::gentoo sys-apps/openrc: 0.23.2::gentoo sys-apps/sandbox: 2.10-r3::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r2::gentoo sys-devel/automake: 1.13.4-r1::gentoo, 1.15-r2::gentoo sys-devel/binutils: 2.27::gentoo sys-devel/gcc: 5.4.0-r3::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r2::gentoo sys-devel/make: 4.2.1::gentoo sys-kernel/linux-headers: 4.9::gentoo (virtual/os-headers) sys-libs/glibc: 2.24-r1::gentoo Repositories:
Attach full build log.
i have a issue with mesa build too /tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0/src/compiler/nir/nir_loop_analyze.c: In function 'find_trip_count': /tmp/portage/media-libs/mesa-17.0.0/work/mesa-17.0.0/src/compiler/nir/nir_loop_analyze.c:631:1: internal compiler error: Segmentation fault } ^
Created attachment 464770 [details] complete build log
Created attachment 464772 [details] emerge --info '=media-libs/mesa-17.0.0::gentoo'
builds ok with gcc-4.8.5 and fails with gcc-4.9.4 and gcc-5.4.0-r3
I cannot reproduce. The initial report seems different from comment #2. Is it possible that the compile is exhausting the memory in your system, and causing the out-of-memory failures?
(In reply to Matt Turner from comment #6) > I cannot reproduce. > > The initial report seems different from comment #2. > > Is it possible that the compile is exhausting the memory in your system, and > causing the out-of-memory failures? i have 7gb free memory, which is much more consumptions on mesa compile time. also i successfully build qtwebkit or qtwebengine, which required much more free memory. do you have any ideas about initial report?
(In reply to sango from comment #7) > do you have any ideas about initial report? I just realized *how* different your report is from the original. *Please* do not hijack bugs like this in the future. It's not just annoying for the original reporter to have their bug taken over, but it's confusing for the person (i.e., me) trying to determine what the problem is. I'm very surprised you didn't lead with "hey, I'm using some strange options in CFLAGS, maybe that's it?" Yes, I can reproduce your failure with gcc-4.9.4 and CFLAGS="-O2 -pipe -fomit-frame-pointer -march=i686 -msse -msse2 -msse3 -mssse3 -m8bit-idiv -mmmx" The good news is that gcc-6.3.0 successfully compiles Mesa with those CFLAGS. I'll see if I can narrow down the problem a bit more.
First guess was correct: -m8bit-idiv is the culprit. I can reproduce the failure with just CFLAGS="-O2 -pipe -march=i686 -m8bit-idiv"