https://bugs.freedesktop.org/show_bug.cgi?id=65310
Priority: medium Bug ID: 65310 Assignee: dri-devel@lists.freedesktop.org Summary: [regression] failure in building nvc0_vbo.lo: /tmp/cclDjdRp.s:1270: Error: missing or invalid displacement expression `-8589934576 Severity: critical Classification: Unclassified OS: Linux (All) Reporter: David.Ronis@McGill.CA Hardware: x86 (IA32) Status: NEW Version: git Component: Drivers/Gallium/r300 Product: Mesa
I'm trying to build today's git/master on a slackware box. i get the following:
/bin/sh ../../../../libtool --tag=CC --mode=compile /usr/bin/gcc -DPACKAGE_NAME="Mesa" -DPACKAGE_TARNAME="mesa" -DPACKAGE_VERSION="9.2.0" -DPACKAGE_STRING="Mesa\ 9.2.0" -DPACKAGE_BUGREPORT="https://bugs.freedesktop.org/enter_bug.cgi%5C?product=Mesa%5C" -DPACKAGE_URL="" -DPACKAGE="mesa" -DVERSION="9.2.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_PTHREAD=1 -DHAVE_LIBEXPAT=1 -I. -I../../../../src/gallium/drivers -I../../../../include -I../../../../include -I../../../../src/gallium/include -I../../../../src/gallium/auxiliary -D_GNU_SOURCE -DHAVE_PTHREAD -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -DHAVE_DLOPEN -DHAVE_POSIX_MEMALIGN -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DUSE_EXTERNAL_DXTN_LIB=1 -DHAVE_ALIAS -I/usr/include/libdrm -march=native -msse2 -mfpmath=sse -O3 -ffast-math -funroll-loops -fomit-frame-pointer -floop-interchange -floop-strip-mine -floop-block -Wall -std=c99 -Werror=implicit-function-declaration -Werror=missing-prototypes -fno-strict-aliasing -fno-builtin-memcmp -MT nvc0_vbo.lo -MD -MP -MF .deps/nvc0_vbo.Tpo -c -o nvc0_vbo.lo nvc0_vbo.c libtool: compile: /usr/bin/gcc -DPACKAGE_NAME="Mesa" -DPACKAGE_TARNAME="mesa" -DPACKAGE_VERSION="9.2.0" "-DPACKAGE_STRING="Mesa 9.2.0"" "-DPACKAGE_BUGREPORT="https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa%5C"" -DPACKAGE_URL="" -DPACKAGE="mesa" -DVERSION="9.2.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_PTHREAD=1 -DHAVE_LIBEXPAT=1 -I. -I../../../../src/gallium/drivers -I../../../../include -I../../../../include -I../../../../src/gallium/include -I../../../../src/gallium/auxiliary -D_GNU_SOURCE -DHAVE_PTHREAD -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -DHAVE_DLOPEN -DHAVE_POSIX_MEMALIGN -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DUSE_EXTERNAL_DXTN_LIB=1 -DHAVE_ALIAS -I/usr/include/libdrm -march=native -msse2 -mfpmath=sse -O3 -ffast-math -funroll-loops -fomit-frame-pointer -floop-interchange -floop-strip-mine -floop-block -Wall -std=c99 -Werror=implicit-function-declaration -Werror=missing-prototypes -fno-strict-aliasing -fno-builtin-memcmp -MT nvc0_vbo.lo -MD -MP -MF .deps/nvc0_vbo.Tpo -c nvc0_vbo.c -fPIC -DPIC -o .libs/nvc0_vbo.o /tmp/cc6sw2Xe.s: Assembler messages: /tmp/cc6sw2Xe.s:1270: Error: missing or invalid displacement expression `-8589934576' /tmp/cc6sw2Xe.s:1277: Error: missing or invalid displacement expression `-8589934560' /tmp/cc6sw2Xe.s:1284: Error: missing or invalid displacement expression `-8589934544' /tmp/cc6sw2Xe.s:2073: Error: missing or invalid displacement expression `-8589934576' /tmp/cc6sw2Xe.s:2079: Error: missing or invalid displacement expression `-8589934560' /tmp/cc6sw2Xe.s:2085: Error: missing or invalid displacement expression `-8589934544' /tmp/cc6sw2Xe.s:2091: Error: missing or invalid displacement expression `-8589934528' /tmp/cc6sw2Xe.s:2097: Error: missing or invalid displacement expression `-8589934512' /tmp/cc6sw2Xe.s:2103: Error: missing or invalid displacement expression `-8589934496' /tmp/cc6sw2Xe.s:2109: Error: missing or invalid displacement expression `-8589934480' make: *** [nvc0_vbo.lo] Error 1
I've configured with:
$ ./configure --prefix=/usr --with-state-trackers=dri --disable-egl --with-gallium-drivers=nouveau --disable-gallium-llvm
Finally, I just upgraded gcc to 4.8.1 (from 4.7.2), so this could be a compiler regression.
https://bugs.freedesktop.org/show_bug.cgi?id=65310
--- Comment #1 from David Ronis David.Ronis@McGill.CA --- I just rebuilt with less aggressive optimization flags.
Instead of -march=native -msse2 -mfpmath=sse -O3 -ffast-math -funroll-loops -fomit-frame-pointer -floop-interchange -floop-strip-mine -floop-block
I tried -O2 -fomit-frame-pointer
It now compiles, so I guess that this is a compiler regression.
https://bugs.freedesktop.org/show_bug.cgi?id=65310
--- Comment #2 from David Ronis David.Ronis@McGill.CA --- This problem is still here.
https://bugs.freedesktop.org/show_bug.cgi?id=65310
Emil Velikov emil.l.velikov@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|dri-devel@lists.freedesktop |nouveau@lists.freedesktop.o |.org |rg Component|Drivers/Gallium/r300 |Drivers/DRI/nouveau
--- Comment #3 from Emil Velikov emil.l.velikov@gmail.com --- Correcting component - nouveau (nvc0) related
dri-devel@lists.freedesktop.org