Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926170 - x11-apps/igt-gpu-tools-1.28 - ../.../amd_dp_dsc.c: error: array subscript 6 is above array bounds of igt_output_t [6] [-Werror=array-bounds=]
Summary: x11-apps/igt-gpu-tools-1.28 - ../.../amd_dp_dsc.c: error: array subscript 6 i...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-14
  Show dependency tree
 
Reported: 2024-03-04 16:29 UTC by Toralf Förster
Modified: 2024-05-20 16:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,19.28 KB, text/plain)
2024-03-04 16:29 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,143.07 KB, text/plain)
2024-03-04 16:29 UTC, Toralf Förster
Details
environment (environment,121.68 KB, text/plain)
2024-03-04 16:29 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.14 KB, application/x-xz)
2024-03-04 16:29 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,33.84 KB, application/x-xz)
2024-03-04 16:29 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,238.72 KB, text/plain)
2024-03-04 16:29 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,59.45 KB, application/x-xz)
2024-03-04 16:29 UTC, Toralf Förster
Details
x11-apps:igt-gpu-tools-1.28:20240304-063436.log.xz (x11-apps:igt-gpu-tools-1.28:20240304-063436.log.xz,32.19 KB, application/x-xz)
2024-03-04 16:29 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-03-04 16:29:21 UTC
too long lines were shrinked:

[1293/1585] x86_64-pc-linux-gnu-gcc  -o tests/amdgpu/amd_cs_nop tests/amdgpu/amd_cs_nop.p/amd_cs_nop.c.o -Wl,--as-needed -Wl,--no-undefined -O3 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 '-Wl,-rpath,$ORIGIN/../../lib' -Wl,-rpath-link,/v
[1294/1585] x86_64-pc-linux-gnu-gcc -Itests/amdgpu/amd_dp_dsc.p -Itests/amdgpu -I../igt-gpu-tools-1.28/tests/amdgpu -I../igt-gpu-tools-1.28/include -I../igt-gpu-tools-1.28/include/drm-uapi -I../igt-gpu-tools-1.28/include/linux-uapi -Ilib -I../igt-gpu-tools-1.28/lib -I../igt-gpu-tools-1.28/lib/stubs/
FAILED: tests/amdgpu/amd_dp_dsc.p/amd_dp_dsc.c.o 
x86_64-pc-linux-gnu-gcc -Itests/amdgpu/amd_dp_dsc.p -Itests/amdgpu -I../igt-gpu-tools-1.28/tests/amdgpu -I../igt-gpu-tools-1.28/include -I../igt-gpu-tools-1.28/include/drm-uapi -I../igt-gpu-tools-1.28/include/linux-uapi -Ilib -I../igt-gpu-tools-1.28/lib -I../igt-gpu-tools-1.28/lib/stubs/syscalls -I.
In function 'test_dsc_link_settings',
    inlined from '__igt_unique____real_main519' at ../igt-gpu-tools-1.28/tests/amdgpu/amd_dp_dsc.c:547:7:
../igt-gpu-tools-1.28/tests/amdgpu/amd_dp_dsc.c:373:54: error: array subscript 6 is above array bounds of 'igt_output_t *[6]' [-Werror=array-bounds=]
  373 |                                 output = data->output[i];
      |                                          ~~~~~~~~~~~~^~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd_merged_usr-20240301-035009

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6
Python 3.11.8
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.75.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
  [1]   php8.1
  [2]   php8.3 *
go version go1.22.0 linux/amd64

  HEAD of ::gentoo
commit d49d84ba1302da2b2f2eb479713c89c4fd1612ad
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Mar 4 05:48:48 2024 +0000

    2024-03-04 05:48:48 UTC

emerge -qpvO x11-apps/igt-gpu-tools
[ebuild  N    ] x11-apps/igt-gpu-tools-1.28  USE="X chamelium man tests xv -doc -overlay -runner -unwind (-valgrind)" VIDEO_CARDS="amdgpu intel nouveau"
Comment 1 Toralf Förster gentoo-dev 2024-03-04 16:29:22 UTC
Created attachment 886698 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-03-04 16:29:23 UTC
Created attachment 886699 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-03-04 16:29:25 UTC
Created attachment 886700 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-03-04 16:29:25 UTC
Created attachment 886701 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-03-04 16:29:27 UTC
Created attachment 886702 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-03-04 16:29:29 UTC
Created attachment 886703 [details]
qlist-info.txt
Comment 7 Toralf Förster gentoo-dev 2024-03-04 16:29:31 UTC
Created attachment 886704 [details]
temp.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-03-04 16:29:32 UTC
Created attachment 886705 [details]
x11-apps:igt-gpu-tools-1.28:20240304-063436.log.xz
Comment 9 Matt Turner gentoo-dev 2024-03-04 21:34:03 UTC
https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/commit/c0cc1de7b2f4041ca68960362aa55f881d416bac looks related but this patch is already in v1.28.
Comment 10 Matt Turner gentoo-dev 2024-05-20 16:52:37 UTC
With USE=tests VIDEO_CARDS=amdgpu I see it build amd_dp_dsc.c successfully with `-Werror=array-bounds` with gcc-13.

[1221/1500] x86_64-pc-linux-gnu-gcc -Itests/amdgpu/amd_dp_dsc.p -Itests/amdgpu -I../igt-gpu-tools-1.28/tests/amdgpu -I../igt-gpu-tools-1.28/include -I../igt-gpu-tools-1.28/include/drm-uapi -I../igt-gpu-tools-1.28/include/linux-uapi -Ilib -I../igt-gpu-tools-1.28/lib -I../igt-gpu-tools-1.28/lib/stubs/syscalls -I. -I../igt-gpu-tools-1.28 -I../igt-gpu-tools-1.28/lib/stubs/libunwind -I/usr/include/cairo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libdrm -flto=auto -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -D_GNU_SOURCE -include config.h -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wimplicit-fallthrough=0 -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wuninitialized -Wunused -Wno-clobbered -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-pointer-arith -Wno-address-of-packed-member -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -Wno-unused-result -Werror=address -Werror=array-bounds -Werror=implicit -Werror=init-self -Werror=int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=nonnull -Werror=pointer-to-int-cast -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=write-strings -fno-builtin-malloc -fno-builtin-calloc -O2 -march=tigerlake -mno-avx512f -fcf-protection=full -pipe -fno-omit-frame-pointer -Werror=implicit-function-declaration -Werror=implicit-int -pthread -MD -MQ tests/amdgpu/amd_dp_dsc.p/amd_dp_dsc.c.o -MF tests/amdgpu/amd_dp_dsc.p/amd_dp_dsc.c.o.d -o tests/amdgpu/amd_dp_dsc.p/amd_dp_dsc.c.o -c ../igt-gpu-tools-1.28/tests/amdgpu/amd_dp_dsc.c