Summary: | x11-base/xorg-server-1.13.4 - dix/main.c:171:24: error: array subscript is outside array bounds [-Werror=array-bounds] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Mickaël Bucas <mbucas> |
Component: | Current packages | Assignee: | Gentoo X packagers <x11> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | gentoo-bugs, tdalman |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log |
Description
Mickaël Bucas
2013-04-24 17:00:07 UTC
Created attachment 346486 [details]
build.log
Not version specific. Running ~ here with 4.7.2 libtool: link: x86_64-pc-linux-gnu-ar cru .libs/libdix.a .libs/atom.o .libs/colormap.o .libs/cursor.o .libs/devices.o .libs/dispatch.o .libs/dixfonts.o .libs/dixutils.o .libs/enterleave.o .libs/events.o .libs/eventconvert.o .libs/extension.o .libs/ffs.o .libs/gc.o .libs/getevents.o .libs/globals.o .libs/glyphcurs.o .libs/grabs.o .libs/initatoms.o .libs/inpututils.o .libs/pixmap.o .libs/privates.o .libs/property.o .libs/ptrveloc.o .libs/region.o .libs/registry.o .libs/resource.o .libs/selection.o .libs/swaprep.o .libs/swapreq.o .libs/tables.o .libs/touch.o .libs/window.o libtool: link: x86_64-pc-linux-gnu-ranlib .libs/libdix.a libtool: link: ( cd ".libs" && rm -f "libdix.la" && ln -s "../libdix.la" "libdix.la" ) /var/tmp/portage/x11-base/xorg-server-1.14.1/work/xorg-server-1.14.1/dix/main.c: In function 'main': /var/tmp/portage/x11-base/xorg-server-1.14.1/work/xorg-server-1.14.1/dix/main.c:140:13: warning: assignment discards 'const' qualifier from pointer target type [enabled by default] /var/tmp/portage/x11-base/xorg-server-1.14.1/work/xorg-server-1.14.1/dix/main.c:171:24: error: array subscript is outside array bounds [-Werror=array-bounds] /var/tmp/portage/x11-base/xorg-server-1.14.1/work/xorg-server-1.14.1/dix/main.c:171:24: error: array subscript is outside array bounds [-Werror=array-bounds] /var/tmp/portage/x11-base/xorg-server-1.14.1/work/xorg-server-1.14.1/dix/main.c:171:24: error: array subscript is outside array bounds [-Werror=array-bounds] /var/tmp/portage/x11-base/xorg-server-1.14.1/work/xorg-server-1.14.1/dix/main.c:171:24: error: array subscript is outside array bounds [-Werror=array-bounds] /var/tmp/portage/x11-base/xorg-server-1.14.1/work/xorg-server-1.14.1/dix/main.c:171:24: error: array subscript is outside array bounds [-Werror=array-bounds] /var/tmp/portage/x11-base/xorg-server-1.14.1/work/xorg-server-1.14.1/dix/main.c:171:24: error: array subscript is outside array bounds [-Werror=array-bounds] cc1: some warnings being treated as errors make[2]: *** [main.lo] Error 1 make[2]: Leaving directory `/var/tmp/portage/x11-base/xorg-server-1.14.1/work/xorg-server-1.14.1_build/dix' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/x11-base/xorg-server-1.14.1/work/xorg-server-1.14.1_build/dix' make: *** [all-recursive] Error 1 Does it happen too if you build with -O2 instead of -O3 in CFLAGS? The build ends with success with -O2 in CFLAGS It's -ftree-vectorize. I use -O2 with "-fprefetch-loop-arrays -ftree-vectorize" set manually. I'm seeing this as well with xorg-server 1.14.3. C{XX}FLAGS="-march=native -mtune=native -O2 -momit-leaf-frame-pointer -pipe -fvect-cost-model -fpredictive-commoning -flto=8" Works perfectly with -march=native -O2. It would be good if you report this also upstream at https://bugs.freedesktop.org/ and provide the link to the report here. The root cause is -Werror in x11-misc/util-macros which, I believe, upstream won't change. We have hit Xorg bugs that are related to Werror in the past already (e.g., Bug 435640 and Bug 463666). array-bounds warning typically points to an actual problem with the code. The -Werror issue is bug 416069. I assume this has been fixed long ago. I don't see it with 1.17.1 FWIW. Closing as OBSOLETE. |