x11-apps/intel-gpu-tools-1.3 fails to compile because the index-out-of bounds warning is treated as error and in intel_infoframes.c:274 the compiler finds such an instance. Practically it can never happen, and this is indicated by an assertion, but at least gcc-4.6.4 doesn't see this and reports the warning. Since this warning is set to be treated as error, the build fails. Reproducible: Always The attached patch fixes this.
Created attachment 350992 [details, diff] Att extra check to renmove the warning The patch adds an extra test to ensure that the array is not indexed with an out-of-bounds value.
can you post a full build log please ? warnings shouldn't trigger errors ...
Sorry, but I moved away from Gentoo on that Laptop. The package has a --enable-strict-compilation option that sets the -Werror compile flag. Maybe this got enable somehow. Anyway, it is always a good idea to fix a warning :)