✗ GitLab.Pipeline: warning for tests/xe: Add system_allocator test

Patchwork patchwork at emeril.freedesktop.org
Wed Aug 21 02:04:47 UTC 2024


== Series Details ==

Series: tests/xe: Add system_allocator test
URL   : https://patchwork.freedesktop.org/series/137545/
State : warning

== Summary ==

Pipeline status: FAILED.

see https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/pipelines/1253896 for the overview.

build:tests-debian-meson has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/62525430):
  ../tests/intel/xe_exec_system_allocator.c:29:19: error: implicit declaration of function ‘MS_TO_NS’; did you mean ‘MS_ASYNC’? [-Werror=implicit-function-declaration]
   #define FIVE_SEC  MS_TO_NS(5000)
                     ^~~~~~~~
  ../tests/intel/xe_exec_system_allocator.c:149:20: note: in expansion of macro ‘FIVE_SEC’
    int64_t timeout = FIVE_SEC;
                      ^~~~~~~~
  ../tests/intel/xe_exec_system_allocator.c:29:19: warning: nested extern declaration of ‘MS_TO_NS’ [-Wnested-externs]
   #define FIVE_SEC  MS_TO_NS(5000)
                     ^~~~~~~~
  ../tests/intel/xe_exec_system_allocator.c:149:20: note: in expansion of macro ‘FIVE_SEC’
    int64_t timeout = FIVE_SEC;
                      ^~~~~~~~
  cc1: some warnings being treated as errors
  ninja: build stopped: subcommand failed.
  section_end:1724205555:step_script
  section_start:1724205555:cleanup_file_variables
  Cleaning up project directory and file based variables
  section_end:1724205556:cleanup_file_variables
  ERROR: Job failed: exit code 1
  

build:tests-debian-meson-arm64 has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/62525433):
  ../tests/intel/xe_exec_system_allocator.c:29:19: error: implicit declaration of function ‘MS_TO_NS’; did you mean ‘MS_ASYNC’? [-Werror=implicit-function-declaration]
   #define FIVE_SEC  MS_TO_NS(5000)
                     ^~~~~~~~
  ../tests/intel/xe_exec_system_allocator.c:149:20: note: in expansion of macro ‘FIVE_SEC’
    int64_t timeout = FIVE_SEC;
                      ^~~~~~~~
  ../tests/intel/xe_exec_system_allocator.c:29:19: warning: nested extern declaration of ‘MS_TO_NS’ [-Wnested-externs]
   #define FIVE_SEC  MS_TO_NS(5000)
                     ^~~~~~~~
  ../tests/intel/xe_exec_system_allocator.c:149:20: note: in expansion of macro ‘FIVE_SEC’
    int64_t timeout = FIVE_SEC;
                      ^~~~~~~~
  cc1: some warnings being treated as errors
  ninja: build stopped: subcommand failed.
  section_end:1724205556:step_script
  section_start:1724205556:cleanup_file_variables
  Cleaning up project directory and file based variables
  section_end:1724205557:cleanup_file_variables
  ERROR: Job failed: exit code 1
  

build:tests-debian-meson-armhf has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/62525432):
  /usr/bin/arm-linux-gnueabihf-gcc -Ilib/76b5a35@@igt-xe_xe_ioctl_c at sta -Ilib -I../lib -I../include -I../include/drm-uapi -I../include/linux-uapi -I../lib/stubs/syscalls -I. -I../ -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/include/libdrm/nouveau -I/usr/include/arm-linux-gnueabihf -I/usr/include/valgrind -I/usr/include/alsa -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O2 -g -D_GNU_SOURCE -include config.h -D_FORTIFY_SOURCE=2 -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-sign-compare -Wno-type-limits -Wno-unused-parameter -Wno-unused-result -Werror=address -Werror=array-bounds -Werror=implicit -Werror=init-self -Werror=int-conversion -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 -D_LARGEFILE64_SOURCE=1 -fPIC -pthread '-DIGT_DATADIR="/usr/local/share/igt-gpu-tools"' '-DIGT_SRCDIR="/builds/gfx-ci/igt-ci-tags/tests"' '-DIGT_LOG_DOMAIN="xe/xe_ioctl"'  -MD -MQ 'lib/76b5a35@@igt-xe_xe_ioctl_c at sta/xe_xe_ioctl.c.o' -MF 'lib/76b5a35@@igt-xe_xe_ioctl_c at sta/xe_xe_ioctl.c.o.d' -o 'lib/76b5a35@@igt-xe_xe_ioctl_c at sta/xe_xe_ioctl.c.o' -c ../lib/xe/xe_ioctl.c
  ../lib/xe/xe_ioctl.c:427:7: error: conflicting types for ‘xe_bo_map_fixed’
   void *xe_bo_map_fixed(int fd, uint32_t bo, size_t size, uint64_t addr)
         ^~~~~~~~~~~~~~~
  In file included from ../lib/xe/xe_ioctl.c:46:
  ../lib/xe/xe_ioctl.h:84:7: note: previous declaration of ‘xe_bo_map_fixed’ was here
   void *xe_bo_map_fixed(int fd, uint32_t bo, size_t size, long unsigned int addr);
         ^~~~~~~~~~~~~~~
  ../lib/xe/xe_ioctl.c: In function ‘xe_bo_map_fixed’:
  ../lib/xe/xe_ioctl.c:433:13: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
    map = mmap((void *)addr, size, PROT_WRITE, MAP_SHARED | MAP_FIXED, fd, mmo);
               ^
  cc1: some warnings being treated as errors
  ninja: build stopped: subcommand failed.
  section_end:1724205523:step_script
  section_start:1724205523:cleanup_file_variables
  Cleaning up project directory and file based variables
  section_end:1724205524:cleanup_file_variables
  ERROR: Job failed: exit code 1
  

build:tests-debian-meson-mips has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/62525434):
  /usr/bin/mips-linux-gnu-gcc -Ilib/76b5a35@@igt-xe_xe_ioctl_c at sta -Ilib -I../lib -I../include -I../include/drm-uapi -I../include/linux-uapi -I../lib/stubs/syscalls -I. -I../ -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/mips-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/include/libdrm/nouveau -I/usr/include/mips-linux-gnu -I/usr/include/valgrind -I/usr/include/alsa -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O2 -g -D_GNU_SOURCE -include config.h -D_FORTIFY_SOURCE=2 -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-sign-compare -Wno-type-limits -Wno-unused-parameter -Wno-unused-result -Werror=address -Werror=array-bounds -Werror=implicit -Werror=init-self -Werror=int-conversion -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 -D_LARGEFILE64_SOURCE=1 -fPIC -pthread '-DIGT_DATADIR="/usr/local/share/igt-gpu-tools"' '-DIGT_SRCDIR="/builds/gfx-ci/igt-ci-tags/tests"' '-DIGT_LOG_DOMAIN="xe/xe_ioctl"'  -MD -MQ 'lib/76b5a35@@igt-xe_xe_ioctl_c at sta/xe_xe_ioctl.c.o' -MF 'lib/76b5a35@@igt-xe_xe_ioctl_c at sta/xe_xe_ioctl.c.o.d' -o 'lib/76b5a35@@igt-xe_xe_ioctl_c at sta/xe_xe_ioctl.c.o' -c ../lib/xe/xe_ioctl.c
  ../lib/xe/xe_ioctl.c:427:7: error: conflicting types for ‘xe_bo_map_fixed’
   void *xe_bo_map_fixed(int fd, uint32_t bo, size_t size, uint64_t addr)
         ^~~~~~~~~~~~~~~
  In file included from ../lib/xe/xe_ioctl.c:46:
  ../lib/xe/xe_ioctl.h:84:7: note: previous declaration of ‘xe_bo_map_fixed’ was here
   void *xe_bo_map_fixed(int fd, uint32_t bo, size_t size, long unsigned int addr);
         ^~~~~~~~~~~~~~~
  ../lib/xe/xe_ioctl.c: In function ‘xe_bo_map_fixed’:
  ../lib/xe/xe_ioctl.c:433:13: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
    map = mmap((void *)addr, size, PROT_WRITE, MAP_SHARED | MAP_FIXED, fd, mmo);
               ^
  cc1: some warnings being treated as errors
  ninja: build stopped: subcommand failed.
  section_end:1724205559:step_script
  section_start:1724205559:cleanup_file_variables
  Cleaning up project directory and file based variables
  section_end:1724205560:cleanup_file_variables
  ERROR: Job failed: exit code 1
  

build:tests-fedora has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/62525425):
  ../tests/intel/xe_exec_system_allocator.c:29:19: error: implicit declaration of function ‘MS_TO_NS’ [-Werror=implicit-function-declaration]
     29 | #define FIVE_SEC  MS_TO_NS(5000)
        |                   ^~~~~~~~
  ../tests/intel/xe_exec_system_allocator.c:149:20: note: in expansion of macro ‘FIVE_SEC’
    149 |  int64_t timeout = FIVE_SEC;
        |                    ^~~~~~~~
  ../tests/intel/xe_exec_system_allocator.c:29:19: warning: nested extern declaration of ‘MS_TO_NS’ [-Wnested-externs]
     29 | #define FIVE_SEC  MS_TO_NS(5000)
        |                   ^~~~~~~~
  ../tests/intel/xe_exec_system_allocator.c:149:20: note: in expansion of macro ‘FIVE_SEC’
    149 |  int64_t timeout = FIVE_SEC;
        |                    ^~~~~~~~
  cc1: some warnings being treated as errors
  ninja: build stopped: subcommand failed.
  section_end:1724205550:step_script
  section_start:1724205550:cleanup_file_variables
  Cleaning up project directory and file based variables
  section_end:1724205551:cleanup_file_variables
  ERROR: Job failed: exit code 1
  

build:tests-fedora-clang has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/62525429):
  ../tests/intel/xe_exec_system_allocator.c:28:22: note: expanded from macro 'QUARTER_SEC'
  #define QUARTER_SEC             MS_TO_NS(250)
                                  ^
  ../tests/intel/xe_exec_system_allocator.c:947:28: error: implicit declaration of function 'MS_TO_NS' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                                         exec_queues[e], FIVE_SEC);
                                                         ^
  ../tests/intel/xe_exec_system_allocator.c:29:19: note: expanded from macro 'FIVE_SEC'
  #define FIVE_SEC                MS_TO_NS(5000)
                                  ^
  ../tests/intel/xe_exec_system_allocator.c:1170:11: warning: implicit conversion from 'double' to 'unsigned int' changes value from 0.01 to 0 [-Wliteral-conversion]
                                  sleep(.01);
                                  ~~~~~ ^~~
  1 warning and 6 errors generated.
  ninja: build stopped: subcommand failed.
  section_end:1724205568:step_script
  section_start:1724205568:cleanup_file_variables
  Cleaning up project directory and file based variables
  section_end:1724205569:cleanup_file_variables
  ERROR: Job failed: exit code 1
  

build:tests-fedora-no-libdrm-nouveau has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/62525428):
  ../tests/intel/xe_exec_system_allocator.c:29:19: error: implicit declaration of function ‘MS_TO_NS’ [-Werror=implicit-function-declaration]
     29 | #define FIVE_SEC  MS_TO_NS(5000)
        |                   ^~~~~~~~
  ../tests/intel/xe_exec_system_allocator.c:149:20: note: in expansion of macro ‘FIVE_SEC’
    149 |  int64_t timeout = FIVE_SEC;
        |                    ^~~~~~~~
  ../tests/intel/xe_exec_system_allocator.c:29:19: warning: nested extern declaration of ‘MS_TO_NS’ [-Wnested-externs]
     29 | #define FIVE_SEC  MS_TO_NS(5000)
        |                   ^~~~~~~~
  ../tests/intel/xe_exec_system_allocator.c:149:20: note: in expansion of macro ‘FIVE_SEC’
    149 |  int64_t timeout = FIVE_SEC;
        |                    ^~~~~~~~
  cc1: some warnings being treated as errors
  ninja: build stopped: subcommand failed.
  section_end:1724205542:step_script
  section_start:1724205542:cleanup_file_variables
  Cleaning up project directory and file based variables
  section_end:1724205543:cleanup_file_variables
  ERROR: Job failed: exit code 1
  

build:tests-fedora-no-libunwind has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/62525426):
  ../tests/intel/xe_exec_system_allocator.c:29:19: error: implicit declaration of function ‘MS_TO_NS’ [-Werror=implicit-function-declaration]
     29 | #define FIVE_SEC  MS_TO_NS(5000)
        |                   ^~~~~~~~
  ../tests/intel/xe_exec_system_allocator.c:149:20: note: in expansion of macro ‘FIVE_SEC’
    149 |  int64_t timeout = FIVE_SEC;
        |                    ^~~~~~~~
  ../tests/intel/xe_exec_system_allocator.c:29:19: warning: nested extern declaration of ‘MS_TO_NS’ [-Wnested-externs]
     29 | #define FIVE_SEC  MS_TO_NS(5000)
        |                   ^~~~~~~~
  ../tests/intel/xe_exec_system_allocator.c:149:20: note: in expansion of macro ‘FIVE_SEC’
    149 |  int64_t timeout = FIVE_SEC;
        |                    ^~~~~~~~
  cc1: some warnings being treated as errors
  ninja: build stopped: subcommand failed.
  section_end:1724205543:step_script
  section_start:1724205543:cleanup_file_variables
  Cleaning up project directory and file based variables
  section_end:1724205545:cleanup_file_variables
  ERROR: Job failed: exit code 1
  

build:tests-fedora-oldest-meson has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/62525427):
  ../tests/intel/xe_exec_system_allocator.c:29:19: error: implicit declaration of function ‘MS_TO_NS’ [-Werror=implicit-function-declaration]
     29 | #define FIVE_SEC  MS_TO_NS(5000)
        |                   ^~~~~~~~
  ../tests/intel/xe_exec_system_allocator.c:149:20: note: in expansion of macro ‘FIVE_SEC’
    149 |  int64_t timeout = FIVE_SEC;
        |                    ^~~~~~~~
  ../tests/intel/xe_exec_system_allocator.c:29:19: warning: nested extern declaration of ‘MS_TO_NS’ [-Wnested-externs]
     29 | #define FIVE_SEC  MS_TO_NS(5000)
        |                   ^~~~~~~~
  ../tests/intel/xe_exec_system_allocator.c:149:20: note: in expansion of macro ‘FIVE_SEC’
    149 |  int64_t timeout = FIVE_SEC;
        |                    ^~~~~~~~
  cc1: some warnings being treated as errors
  ninja: build stopped: subcommand failed.
  section_end:1724205546:step_script
  section_start:1724205546:cleanup_file_variables
  Cleaning up project directory and file based variables
  section_end:1724205547:cleanup_file_variables
  ERROR: Job failed: exit code 1

== Logs ==

For more details see: https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/pipelines/1253896


More information about the igt-dev mailing list