Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/libdrm.spec'], chrootPath='/var/lib/mock/dist-an8.8-build-291102-65028/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/libdrm.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/libdrm-2.4.114-1.0.1.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/libdrm.spec'], chrootPath='/var/lib/mock/dist-an8.8-build-291102-65028/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/libdrm.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.1gljLk + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf libdrm-2.4.114 + /usr/bin/xz -dc /builddir/build/SOURCES/libdrm-2.4.114.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd libdrm-2.4.114 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/libdrm-make-dri-perms-okay.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/libdrm-2.4.0-no-bc.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/libdrm-2.4.114-sw.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.nNDc3s + umask 022 + cd /builddir/build/BUILD + cd libdrm-2.4.114 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + /usr/bin/meson --buildtype=plain --prefix=/usr --libdir=/usr/lib64 --libexecdir=/usr/libexec --bindir=/usr/bin --sbindir=/usr/sbin --includedir=/usr/include --datadir=/usr/share --mandir=/usr/share/man --infodir=/usr/share/info --localedir=/usr/share/locale --sysconfdir=/etc --localstatedir=/var --sharedstatedir=/var/lib --wrap-mode=nodownload --auto-features=enabled . aarch64-redhat-linux-gnu -Dintel=disabled -Dradeon=enabled -Damdgpu=enabled -Dnouveau=enabled -Dvmwgfx=enabled -Domap=disabled -Dexynos=enabled -Dfreedreno=enabled -Dtegra=enabled -Dvc4=enabled -Detnaviv=enabled -Dcairo-tests=disabled -Dman-pages=enabled -Dvalgrind=enabled -Dfreedreno-kgsl=false -Dinstall-test-programs=true -Dudev=true The Meson build system Version: 0.58.2 Source dir: /builddir/build/BUILD/libdrm-2.4.114 Build dir: /builddir/build/BUILD/libdrm-2.4.114/aarch64-redhat-linux-gnu Build type: native build Project name: libdrm Project version: 2.4.114 C compiler for the host machine: cc (gcc 8.5.0 "cc (GCC) 8.5.0 20210514 (Anolis 8.5.0-10.0.3)") C linker for the host machine: cc ld.bfd 2.30-119 Host machine cpu family: aarch64 Host machine cpu: aarch64 Run-time dependency threads found: YES Program symbols-check.py found: YES (/usr/libexec/platform-python /builddir/build/BUILD/libdrm-2.4.114/symbols-check.py) Program nm found: YES (/usr/bin/nm) Program python3 found: YES (/usr/libexec/platform-python) Found pkg-config: /usr/bin/pkg-config (1.4.2) Run-time dependency atomic_ops found: YES 7.6.2 Checking if "Intel Atomics" links: YES Dependency pciaccess skipped: feature intel disabled Checking for function "dlsym" : NO Library dl found: YES Checking for function "clock_gettime" : YES Library m found: YES Check usable header "sys/select.h" : YES Check usable header "alloca.h" : YES Header has symbol "major" : YES Header has symbol "minor" : YES Header has symbol "makedev" : YES Header has symbol "major" : NO Checking for function "open_memstream" : YES Compiler for C supports arguments -Wsign-compare: YES Compiler for C supports arguments -Werror=undef: YES Compiler for C supports arguments -Werror=implicit-function-declaration: YES Compiler for C supports arguments -Wpointer-arith: YES Compiler for C supports arguments -Wwrite-strings: YES Compiler for C supports arguments -Wstrict-prototypes: YES Compiler for C supports arguments -Wmissing-prototypes: YES Compiler for C supports arguments -Wmissing-declarations: YES Compiler for C supports arguments -Wnested-externs: YES Compiler for C supports arguments -Wpacked: YES Compiler for C supports arguments -Wswitch-enum: YES Compiler for C supports arguments -Wmissing-format-attribute: YES Compiler for C supports arguments -Wstrict-aliasing=2: YES Compiler for C supports arguments -Winit-self: YES Compiler for C supports arguments -Winline: YES Compiler for C supports arguments -Wshadow: YES Compiler for C supports arguments -Wdeclaration-after-statement: YES Compiler for C supports arguments -Wold-style-definition: YES Compiler for C supports arguments -Wno-unused-parameter: YES Compiler for C supports arguments -Wno-attributes: YES Compiler for C supports arguments -Wno-long-long: YES Compiler for C supports arguments -Wno-missing-field-initializers: YES Did not find CMake 'cmake' Found CMake: NO Run-time dependency cunit found: NO (tried pkgconfig and cmake) Dependency cairo skipped: feature cairo-tests disabled Run-time dependency valgrind found: YES 3.19.0 Program rst2man found: YES (/usr/bin/rst2man) Compiler for C supports function attribute visibility:hidden: YES Configuring config.h using configuration Build targets in project: 41 libdrm 2.4.114 Intel : False Radeon : True AMDGPU : True Nouveau : True vmwgfx : True OMAP : False Freedreno : True Freedreon-kgsl: False Tegra : True Etnaviv : True EXYNOS : True VC4 : True Option buildtype is: plain [default: debugoptimized] Found ninja-1.8.2 at /usr/bin/ninja + /usr/bin/meson compile -C aarch64-redhat-linux-gnu -j 80 --verbose ninja: Entering directory `aarch64-redhat-linux-gnu' [1/130] /usr/libexec/platform-python ../gen_table_fourcc.py ../include/drm/drm_fourcc.h generated_static_table_fourcc.h [2/130] cc -Inouveau/libdrm_nouveau.so.2.0.0.p -Inouveau -I../nouveau -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -pthread -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ nouveau/libdrm_nouveau.so.2.0.0.p/pushbuf.c.o -MF nouveau/libdrm_nouveau.so.2.0.0.p/pushbuf.c.o.d -o nouveau/libdrm_nouveau.so.2.0.0.p/pushbuf.c.o -c ../nouveau/pushbuf.c FAILED: nouveau/libdrm_nouveau.so.2.0.0.p/pushbuf.c.o cc -Inouveau/libdrm_nouveau.so.2.0.0.p -Inouveau -I../nouveau -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -pthread -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ nouveau/libdrm_nouveau.so.2.0.0.p/pushbuf.c.o -MF nouveau/libdrm_nouveau.so.2.0.0.p/pushbuf.c.o.d -o nouveau/libdrm_nouveau.so.2.0.0.p/pushbuf.c.o -c ../nouveau/pushbuf.c In file included from ../nouveau/pushbuf.c:34: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ In file included from ../nouveau/private.h:7, from ../nouveau/pushbuf.c:40: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../nouveau/pushbuf.c: In function ‘pushbuf_submit’: ../nouveau/pushbuf.c:352:9: error: implicit declaration of function ‘drmCommandWriteRead’ [-Werror=implicit-function-declaration] ret = drmCommandWriteRead(drm->fd, DRM_NOUVEAU_GEM_PUSHBUF, ^~~~~~~~~~~~~~~~~~~ ../nouveau/pushbuf.c:352:9: warning: nested extern declaration of ‘drmCommandWriteRead’ [-Wnested-externs] cc1: some warnings being treated as errors [3/130] cc -Inouveau/libdrm_nouveau.so.2.0.0.p -Inouveau -I../nouveau -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -pthread -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ nouveau/libdrm_nouveau.so.2.0.0.p/bufctx.c.o -MF nouveau/libdrm_nouveau.so.2.0.0.p/bufctx.c.o.d -o nouveau/libdrm_nouveau.so.2.0.0.p/bufctx.c.o -c ../nouveau/bufctx.c FAILED: nouveau/libdrm_nouveau.so.2.0.0.p/bufctx.c.o cc -Inouveau/libdrm_nouveau.so.2.0.0.p -Inouveau -I../nouveau -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -pthread -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ nouveau/libdrm_nouveau.so.2.0.0.p/bufctx.c.o -MF nouveau/libdrm_nouveau.so.2.0.0.p/bufctx.c.o.d -o nouveau/libdrm_nouveau.so.2.0.0.p/bufctx.c.o -c ../nouveau/bufctx.c In file included from ../nouveau/private.h:7, from ../nouveau/bufctx.c:35: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ [4/130] cc -Inouveau/libdrm_nouveau.so.2.0.0.p -Inouveau -I../nouveau -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -pthread -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ nouveau/libdrm_nouveau.so.2.0.0.p/abi16.c.o -MF nouveau/libdrm_nouveau.so.2.0.0.p/abi16.c.o.d -o nouveau/libdrm_nouveau.so.2.0.0.p/abi16.c.o -c ../nouveau/abi16.c FAILED: nouveau/libdrm_nouveau.so.2.0.0.p/abi16.c.o cc -Inouveau/libdrm_nouveau.so.2.0.0.p -Inouveau -I../nouveau -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -pthread -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ nouveau/libdrm_nouveau.so.2.0.0.p/abi16.c.o -MF nouveau/libdrm_nouveau.so.2.0.0.p/abi16.c.o.d -o nouveau/libdrm_nouveau.so.2.0.0.p/abi16.c.o -c ../nouveau/abi16.c In file included from ../nouveau/private.h:7, from ../nouveau/abi16.c:30: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../nouveau/abi16.c: In function ‘abi16_chan_nv04’: ../nouveau/abi16.c:45:8: error: implicit declaration of function ‘drmCommandWriteRead’ [-Werror=implicit-function-declaration] ret = drmCommandWriteRead(drm->fd, DRM_NOUVEAU_CHANNEL_ALLOC, ^~~~~~~~~~~~~~~~~~~ ../nouveau/abi16.c:45:8: warning: nested extern declaration of ‘drmCommandWriteRead’ [-Wnested-externs] ../nouveau/abi16.c: In function ‘abi16_engobj’: ../nouveau/abi16.c:137:8: error: implicit declaration of function ‘drmCommandWrite’ [-Werror=implicit-function-declaration] ret = drmCommandWrite(drm->fd, DRM_NOUVEAU_GROBJ_ALLOC, ^~~~~~~~~~~~~~~ ../nouveau/abi16.c:137:8: warning: nested extern declaration of ‘drmCommandWrite’ [-Wnested-externs] cc1: some warnings being treated as errors [5/130] cc -Iradeon/libdrm_radeon.so.1.0.1.p -Iradeon -I../radeon -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ radeon/libdrm_radeon.so.1.0.1.p/radeon_cs_gem.c.o -MF radeon/libdrm_radeon.so.1.0.1.p/radeon_cs_gem.c.o.d -o radeon/libdrm_radeon.so.1.0.1.p/radeon_cs_gem.c.o -c ../radeon/radeon_cs_gem.c FAILED: radeon/libdrm_radeon.so.1.0.1.p/radeon_cs_gem.c.o cc -Iradeon/libdrm_radeon.so.1.0.1.p -Iradeon -I../radeon -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ radeon/libdrm_radeon.so.1.0.1.p/radeon_cs_gem.c.o -MF radeon/libdrm_radeon.so.1.0.1.p/radeon_cs_gem.c.o.d -o radeon/libdrm_radeon.so.1.0.1.p/radeon_cs_gem.c.o -c ../radeon/radeon_cs_gem.c In file included from ../radeon/radeon_cs_gem.c:45: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../radeon/radeon_cs_gem.c: In function ‘cs_gem_emit’: ../radeon/radeon_cs_gem.c:445:9: error: implicit declaration of function ‘drmCommandWriteRead’ [-Werror=implicit-function-declaration] r = drmCommandWriteRead(cs->csm->fd, DRM_RADEON_CS, ^~~~~~~~~~~~~~~~~~~ ../radeon/radeon_cs_gem.c:445:9: warning: nested extern declaration of ‘drmCommandWriteRead’ [-Wnested-externs] cc1: some warnings being treated as errors [6/130] cc -Iamdgpu/libdrm_amdgpu.so.1.0.0.p -Iamdgpu -I../amdgpu -I. -I.. -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers '-DAMDGPU_ASIC_ID_TABLE="/usr/share/libdrm/amdgpu.ids"' -MD -MQ amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_asic_id.c.o -MF amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_asic_id.c.o.d -o amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_asic_id.c.o -c ../amdgpu/amdgpu_asic_id.c FAILED: amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_asic_id.c.o cc -Iamdgpu/libdrm_amdgpu.so.1.0.0.p -Iamdgpu -I../amdgpu -I. -I.. -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers '-DAMDGPU_ASIC_ID_TABLE="/usr/share/libdrm/amdgpu.ids"' -MD -MQ amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_asic_id.c.o -MF amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_asic_id.c.o.d -o amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_asic_id.c.o -c ../amdgpu/amdgpu_asic_id.c In file included from ../amdgpu/amdgpu_asic_id.c:33: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../amdgpu/amdgpu_asic_id.c: In function ‘amdgpu_parse_asic_ids’: ../amdgpu/amdgpu_asic_id.c:135:3: error: implicit declaration of function ‘drmMsg’ [-Werror=implicit-function-declaration] drmMsg("%s version: %s\n", AMDGPU_ASIC_ID_TABLE, line); ^~~~~~ ../amdgpu/amdgpu_asic_id.c:135:3: warning: nested extern declaration of ‘drmMsg’ [-Wnested-externs] cc1: some warnings being treated as errors [7/130] cc -Iamdgpu/libdrm_amdgpu.so.1.0.0.p -Iamdgpu -I../amdgpu -I. -I.. -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers '-DAMDGPU_ASIC_ID_TABLE="/usr/share/libdrm/amdgpu.ids"' -MD -MQ amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_gpu_info.c.o -MF amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_gpu_info.c.o.d -o amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_gpu_info.c.o -c ../amdgpu/amdgpu_gpu_info.c FAILED: amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_gpu_info.c.o cc -Iamdgpu/libdrm_amdgpu.so.1.0.0.p -Iamdgpu -I../amdgpu -I. -I.. -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers '-DAMDGPU_ASIC_ID_TABLE="/usr/share/libdrm/amdgpu.ids"' -MD -MQ amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_gpu_info.c.o -MF amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_gpu_info.c.o.d -o amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_gpu_info.c.o -c ../amdgpu/amdgpu_gpu_info.c In file included from ../amdgpu/amdgpu_gpu_info.c:31: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../amdgpu/amdgpu_gpu_info.c: In function ‘amdgpu_query_info’: ../amdgpu/amdgpu_gpu_info.c:43:9: error: implicit declaration of function ‘drmCommandWrite’ [-Werror=implicit-function-declaration] return drmCommandWrite(dev->fd, DRM_AMDGPU_INFO, &request, ^~~~~~~~~~~~~~~ ../amdgpu/amdgpu_gpu_info.c:43:9: warning: nested extern declaration of ‘drmCommandWrite’ [-Wnested-externs] cc1: some warnings being treated as errors [8/130] cc -Iamdgpu/libdrm_amdgpu.so.1.0.0.p -Iamdgpu -I../amdgpu -I. -I.. -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers '-DAMDGPU_ASIC_ID_TABLE="/usr/share/libdrm/amdgpu.ids"' -MD -MQ amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_vm.c.o -MF amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_vm.c.o.d -o amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_vm.c.o -c ../amdgpu/amdgpu_vm.c FAILED: amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_vm.c.o cc -Iamdgpu/libdrm_amdgpu.so.1.0.0.p -Iamdgpu -I../amdgpu -I. -I.. -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers '-DAMDGPU_ASIC_ID_TABLE="/usr/share/libdrm/amdgpu.ids"' -MD -MQ amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_vm.c.o -MF amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_vm.c.o.d -o amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_vm.c.o -c ../amdgpu/amdgpu_vm.c In file included from ../amdgpu/amdgpu_vm.c:26: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../amdgpu/amdgpu_vm.c: In function ‘amdgpu_vm_reserve_vmid’: ../amdgpu/amdgpu_vm.c:36:9: error: implicit declaration of function ‘drmCommandWriteRead’ [-Werror=implicit-function-declaration] return drmCommandWriteRead(dev->fd, DRM_AMDGPU_VM, ^~~~~~~~~~~~~~~~~~~ ../amdgpu/amdgpu_vm.c:36:9: warning: nested extern declaration of ‘drmCommandWriteRead’ [-Wnested-externs] cc1: some warnings being treated as errors [9/130] cc -Iexynos/libdrm_exynos.so.1.0.0.p -Iexynos -I../exynos -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ exynos/libdrm_exynos.so.1.0.0.p/exynos_fimg2d.c.o -MF exynos/libdrm_exynos.so.1.0.0.p/exynos_fimg2d.c.o.d -o exynos/libdrm_exynos.so.1.0.0.p/exynos_fimg2d.c.o -c ../exynos/exynos_fimg2d.c FAILED: exynos/libdrm_exynos.so.1.0.0.p/exynos_fimg2d.c.o cc -Iexynos/libdrm_exynos.so.1.0.0.p -Iexynos -I../exynos -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ exynos/libdrm_exynos.so.1.0.0.p/exynos_fimg2d.c.o -MF exynos/libdrm_exynos.so.1.0.0.p/exynos_fimg2d.c.o.d -o exynos/libdrm_exynos.so.1.0.0.p/exynos_fimg2d.c.o -c ../exynos/exynos_fimg2d.c In file included from ../exynos/exynos_fimg2d.c:35: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ [10/130] cc -Itests/util/libutil.a.p -Itests/util -I../tests/util -I. -I.. -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -MD -MQ tests/util/libutil.a.p/kms.c.o -MF tests/util/libutil.a.p/kms.c.o.d -o tests/util/libutil.a.p/kms.c.o -c ../tests/util/kms.c FAILED: tests/util/libutil.a.p/kms.c.o cc -Itests/util/libutil.a.p -Itests/util -I../tests/util -I. -I.. -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -MD -MQ tests/util/libutil.a.p/kms.c.o -MF tests/util/libutil.a.p/kms.c.o.d -o tests/util/libutil.a.p/kms.c.o -c ../tests/util/kms.c In file included from ../tests/util/kms.c:46: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../tests/util/kms.c: In function ‘util_open’: ../tests/util/kms.c:135:8: warning: implicit declaration of function ‘drmOpen’; did you mean ‘freopen’? [-Wimplicit-function-declaration] fd = drmOpen(module, device); ^~~~~~~ freopen [11/130] cc -Itests/proptest/proptest.p -Itests/proptest -I../tests/proptest -I. -I.. -Itests -I../tests -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ tests/proptest/proptest.p/proptest.c.o -MF tests/proptest/proptest.p/proptest.c.o.d -o tests/proptest/proptest.p/proptest.c.o -c ../tests/proptest/proptest.c FAILED: tests/proptest/proptest.p/proptest.c.o cc -Itests/proptest/proptest.p -Itests/proptest -I../tests/proptest -I. -I.. -Itests -I../tests -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ tests/proptest/proptest.p/proptest.c.o -MF tests/proptest/proptest.p/proptest.c.o.d -o tests/proptest/proptest.p/proptest.c.o -c ../tests/proptest/proptest.c In file included from ../tests/proptest/proptest.c:36: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../tests/proptest/proptest.c: In function ‘main’: ../tests/proptest/proptest.c:323:2: error: implicit declaration of function ‘drmClose’; did you mean ‘pclose’? [-Werror=implicit-function-declaration] drmClose(fd); ^~~~~~~~ pclose ../tests/proptest/proptest.c:323:2: warning: nested extern declaration of ‘drmClose’ [-Wnested-externs] cc1: some warnings being treated as errors [12/130] cc -Itests/radeon/radeon_ttm.p -Itests/radeon -I../tests/radeon -I. -I.. -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ tests/radeon/radeon_ttm.p/radeon_ttm.c.o -MF tests/radeon/radeon_ttm.p/radeon_ttm.c.o.d -o tests/radeon/radeon_ttm.p/radeon_ttm.c.o -c ../tests/radeon/radeon_ttm.c FAILED: tests/radeon/radeon_ttm.p/radeon_ttm.c.o cc -Itests/radeon/radeon_ttm.p -Itests/radeon -I../tests/radeon -I. -I.. -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ tests/radeon/radeon_ttm.p/radeon_ttm.c.o -MF tests/radeon/radeon_ttm.p/radeon_ttm.c.o.d -o tests/radeon/radeon_ttm.p/radeon_ttm.c.o -c ../tests/radeon/radeon_ttm.c In file included from ../tests/radeon/radeon_ttm.c:30: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../tests/radeon/radeon_ttm.c: In function ‘radeon_open_fd’: ../tests/radeon/radeon_ttm.c:60:12: error: implicit declaration of function ‘drmOpen’; did you mean ‘freopen’? [-Werror=implicit-function-declaration] return drmOpen("radeon", NULL); ^~~~~~~ freopen ../tests/radeon/radeon_ttm.c:60:12: warning: nested extern declaration of ‘drmOpen’ [-Wnested-externs] cc1: some warnings being treated as errors [13/130] cc -Itests/exynos/exynos_fimg2d_perf.p -Itests/exynos -I../tests/exynos -I. -I.. -I../include/drm -Iexynos -I../exynos -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -pthread -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ tests/exynos/exynos_fimg2d_perf.p/exynos_fimg2d_perf.c.o -MF tests/exynos/exynos_fimg2d_perf.p/exynos_fimg2d_perf.c.o.d -o tests/exynos/exynos_fimg2d_perf.p/exynos_fimg2d_perf.c.o -c ../tests/exynos/exynos_fimg2d_perf.c FAILED: tests/exynos/exynos_fimg2d_perf.p/exynos_fimg2d_perf.c.o cc -Itests/exynos/exynos_fimg2d_perf.p -Itests/exynos -I../tests/exynos -I. -I.. -I../include/drm -Iexynos -I../exynos -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -pthread -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ tests/exynos/exynos_fimg2d_perf.p/exynos_fimg2d_perf.c.o -MF tests/exynos/exynos_fimg2d_perf.p/exynos_fimg2d_perf.c.o.d -o tests/exynos/exynos_fimg2d_perf.p/exynos_fimg2d_perf.c.o -c ../tests/exynos/exynos_fimg2d_perf.c In file included from ../tests/exynos/exynos_fimg2d_perf.c:30: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ In file included from ../exynos/exynos_drmif.h:30, from ../tests/exynos/exynos_fimg2d_perf.c:33: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ In file included from ../tests/exynos/exynos_fimg2d_perf.c:33: ../exynos/exynos_drmif.h:71:2: error: unknown type name ‘drmEventContext’ drmEventContext base; ^~~~~~~~~~~~~~~ ../tests/exynos/exynos_fimg2d_perf.c: In function ‘main’: ../tests/exynos/exynos_fimg2d_perf.c:277:7: error: implicit declaration of function ‘drmOpen’; did you mean ‘freopen’? [-Werror=implicit-function-declaration] fd = drmOpen("exynos", NULL); ^~~~~~~ freopen ../tests/exynos/exynos_fimg2d_perf.c:277:7: warning: nested extern declaration of ‘drmOpen’ [-Wnested-externs] ../tests/exynos/exynos_fimg2d_perf.c:323:2: error: implicit declaration of function ‘drmClose’; did you mean ‘pclose’? [-Werror=implicit-function-declaration] drmClose(fd); ^~~~~~~~ pclose ../tests/exynos/exynos_fimg2d_perf.c:323:2: warning: nested extern declaration of ‘drmClose’ [-Wnested-externs] cc1: some warnings being treated as errors [14/130] cc -Iexynos/libdrm_exynos.so.1.0.0.p -Iexynos -I../exynos -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ exynos/libdrm_exynos.so.1.0.0.p/exynos_drm.c.o -MF exynos/libdrm_exynos.so.1.0.0.p/exynos_drm.c.o.d -o exynos/libdrm_exynos.so.1.0.0.p/exynos_drm.c.o -c ../exynos/exynos_drm.c FAILED: exynos/libdrm_exynos.so.1.0.0.p/exynos_drm.c.o cc -Iexynos/libdrm_exynos.so.1.0.0.p -Iexynos -I../exynos -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ exynos/libdrm_exynos.so.1.0.0.p/exynos_drm.c.o -MF exynos/libdrm_exynos.so.1.0.0.p/exynos_drm.c.o.d -o exynos/libdrm_exynos.so.1.0.0.p/exynos_drm.c.o -c ../exynos/exynos_drm.c In file included from ../exynos/exynos_drm.c:36: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ In file included from ../exynos/exynos_drmif.h:30, from ../exynos/exynos_drm.c:40: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ In file included from ../exynos/exynos_drm.c:40: ../exynos/exynos_drmif.h:71:2: error: unknown type name ‘drmEventContext’ drmEventContext base; ^~~~~~~~~~~~~~~ ../exynos/exynos_drm.c: In function ‘exynos_bo_destroy’: ../exynos/exynos_drm.c:179:3: error: implicit declaration of function ‘drmCloseBufferHandle’ [-Werror=implicit-function-declaration] drmCloseBufferHandle(bo->dev->fd, bo->handle); ^~~~~~~~~~~~~~~~~~~~ ../exynos/exynos_drm.c:179:3: warning: nested extern declaration of ‘drmCloseBufferHandle’ [-Wnested-externs] ../exynos/exynos_drm.c: In function ‘exynos_prime_handle_to_fd’: ../exynos/exynos_drm.c:317:9: error: implicit declaration of function ‘drmPrimeHandleToFD’ [-Werror=implicit-function-declaration] return drmPrimeHandleToFD(dev->fd, handle, 0, fd); ^~~~~~~~~~~~~~~~~~ ../exynos/exynos_drm.c:317:9: warning: nested extern declaration of ‘drmPrimeHandleToFD’ [-Wnested-externs] ../exynos/exynos_drm.c: In function ‘exynos_prime_fd_to_handle’: ../exynos/exynos_drm.c:332:9: error: implicit declaration of function ‘drmPrimeFDToHandle’ [-Werror=implicit-function-declaration] return drmPrimeFDToHandle(dev->fd, fd, handle); ^~~~~~~~~~~~~~~~~~ ../exynos/exynos_drm.c:332:9: warning: nested extern declaration of ‘drmPrimeFDToHandle’ [-Wnested-externs] ../exynos/exynos_drm.c: In function ‘exynos_handle_event’: ../exynos/exynos_drm.c:400:2: error: unknown type name ‘drmEventContextPtr’; did you mean ‘drm_context_t’? drmEventContextPtr evctx = &ctx->base; ^~~~~~~~~~~~~~~~~~ drm_context_t ../exynos/exynos_drm.c:400:29: warning: initialization of ‘int’ from ‘int *’ makes integer from pointer without a cast [-Wint-conversion] drmEventContextPtr evctx = &ctx->base; ^ ../exynos/exynos_drm.c:415:13: error: invalid type argument of ‘->’ (have ‘int’) if (evctx->version < 1 || ^~ ../exynos/exynos_drm.c:416:13: error: invalid type argument of ‘->’ (have ‘int’) evctx->vblank_handler == NULL) ^~ ../exynos/exynos_drm.c:419:9: error: invalid type argument of ‘->’ (have ‘int’) evctx->vblank_handler(dev->fd, ^~ ../exynos/exynos_drm.c:426:13: error: invalid type argument of ‘->’ (have ‘int’) if (evctx->version < 2 || ^~ ../exynos/exynos_drm.c:427:13: error: invalid type argument of ‘->’ (have ‘int’) evctx->page_flip_handler == NULL) ^~ ../exynos/exynos_drm.c:430:9: error: invalid type argument of ‘->’ (have ‘int’) evctx->page_flip_handler(dev->fd, ^~ ../exynos/exynos_drm.c:437:37: warning: passing argument 3 of ‘exynos_handle_vendor’ makes pointer from integer without a cast [-Wint-conversion] exynos_handle_vendor(dev->fd, e, evctx); ^~~~~ ../exynos/exynos_drm.c:374:57: note: expected ‘void *’ but argument is of type ‘int’ exynos_handle_vendor(int fd, struct drm_event *e, void *ctx) ~~~~~~^~~ cc1: some warnings being treated as errors [15/130] cc -Itests/modetest/modetest.p -Itests/modetest -I../tests/modetest -I. -I.. -Itests -I../tests -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -pthread -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -Wno-pointer-arith -MD -MQ tests/modetest/modetest.p/buffers.c.o -MF tests/modetest/modetest.p/buffers.c.o.d -o tests/modetest/modetest.p/buffers.c.o -c ../tests/modetest/buffers.c FAILED: tests/modetest/modetest.p/buffers.c.o cc -Itests/modetest/modetest.p -Itests/modetest -I../tests/modetest -I. -I.. -Itests -I../tests -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -pthread -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -Wno-pointer-arith -MD -MQ tests/modetest/modetest.p/buffers.c.o -MF tests/modetest/modetest.p/buffers.c.o.d -o tests/modetest/modetest.p/buffers.c.o -c ../tests/modetest/buffers.c In file included from ../tests/modetest/buffers.c:39: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ [16/130] cc -Iradeon/libdrm_radeon.so.1.0.1.p -Iradeon -I../radeon -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ radeon/libdrm_radeon.so.1.0.1.p/radeon_bo_gem.c.o -MF radeon/libdrm_radeon.so.1.0.1.p/radeon_bo_gem.c.o.d -o radeon/libdrm_radeon.so.1.0.1.p/radeon_bo_gem.c.o -c ../radeon/radeon_bo_gem.c FAILED: radeon/libdrm_radeon.so.1.0.1.p/radeon_bo_gem.c.o cc -Iradeon/libdrm_radeon.so.1.0.1.p -Iradeon -I../radeon -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ radeon/libdrm_radeon.so.1.0.1.p/radeon_bo_gem.c.o -MF radeon/libdrm_radeon.so.1.0.1.p/radeon_bo_gem.c.o.d -o radeon/libdrm_radeon.so.1.0.1.p/radeon_bo_gem.c.o -c ../radeon/radeon_bo_gem.c In file included from ../radeon/radeon_bo_gem.c:38: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../radeon/radeon_bo_gem.c: In function ‘bo_open’: ../radeon/radeon_bo_gem.c:105:13: error: implicit declaration of function ‘drmCommandWriteRead’ [-Werror=implicit-function-declaration] r = drmCommandWriteRead(bom->fd, DRM_RADEON_GEM_CREATE, ^~~~~~~~~~~~~~~~~~~ ../radeon/radeon_bo_gem.c:105:13: warning: nested extern declaration of ‘drmCommandWriteRead’ [-Wnested-externs] ../radeon/radeon_bo_gem.c: In function ‘bo_unref’: ../radeon/radeon_bo_gem.c:137:5: error: implicit declaration of function ‘drmCloseBufferHandle’ [-Werror=implicit-function-declaration] drmCloseBufferHandle(boi->bom->fd, boi->handle); ^~~~~~~~~~~~~~~~~~~~ ../radeon/radeon_bo_gem.c:137:5: warning: nested extern declaration of ‘drmCloseBufferHandle’ [-Wnested-externs] ../radeon/radeon_bo_gem.c: In function ‘bo_wait’: ../radeon/radeon_bo_gem.c:206:15: error: implicit declaration of function ‘drmCommandWrite’ [-Werror=implicit-function-declaration] ret = drmCommandWrite(boi->bom->fd, DRM_RADEON_GEM_WAIT_IDLE, ^~~~~~~~~~~~~~~ ../radeon/radeon_bo_gem.c:206:15: warning: nested extern declaration of ‘drmCommandWrite’ [-Wnested-externs] ../radeon/radeon_bo_gem.c: In function ‘radeon_gem_prime_share_bo’: ../radeon/radeon_bo_gem.c:361:11: error: implicit declaration of function ‘drmPrimeHandleToFD’ [-Werror=implicit-function-declaration] ret = drmPrimeHandleToFD(bo_gem->base.bom->fd, bo->handle, DRM_CLOEXEC, handle); ^~~~~~~~~~~~~~~~~~ ../radeon/radeon_bo_gem.c:361:11: warning: nested extern declaration of ‘drmPrimeHandleToFD’ [-Wnested-externs] ../radeon/radeon_bo_gem.c: In function ‘radeon_gem_bo_open_prime’: ../radeon/radeon_bo_gem.c:387:9: error: implicit declaration of function ‘drmPrimeFDToHandle’ [-Werror=implicit-function-declaration] r = drmPrimeFDToHandle(bom->fd, fd_handle, &handle); ^~~~~~~~~~~~~~~~~~ ../radeon/radeon_bo_gem.c:387:9: warning: nested extern declaration of ‘drmPrimeFDToHandle’ [-Wnested-externs] cc1: some warnings being treated as errors [17/130] cc -Iamdgpu/libdrm_amdgpu.so.1.0.0.p -Iamdgpu -I../amdgpu -I. -I.. -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers '-DAMDGPU_ASIC_ID_TABLE="/usr/share/libdrm/amdgpu.ids"' -MD -MQ amdgpu/libdrm_amdgpu.so.1.0.0.p/handle_table.c.o -MF amdgpu/libdrm_amdgpu.so.1.0.0.p/handle_table.c.o.d -o amdgpu/libdrm_amdgpu.so.1.0.0.p/handle_table.c.o -c ../amdgpu/handle_table.c [18/130] cc -Itegra/libdrm_tegra.so.0.0.0.p -Itegra -I../tegra -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ tegra/libdrm_tegra.so.0.0.0.p/tegra.c.o -MF tegra/libdrm_tegra.so.0.0.0.p/tegra.c.o.d -o tegra/libdrm_tegra.so.0.0.0.p/tegra.c.o -c ../tegra/tegra.c FAILED: tegra/libdrm_tegra.so.0.0.0.p/tegra.c.o cc -Itegra/libdrm_tegra.so.0.0.0.p -Itegra -I../tegra -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ tegra/libdrm_tegra.so.0.0.0.p/tegra.c.o -MF tegra/libdrm_tegra.so.0.0.0.p/tegra.c.o.d -o tegra/libdrm_tegra.so.0.0.0.p/tegra.c.o -c ../tegra/tegra.c In file included from ../tegra/tegra.c:32: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../tegra/tegra.c: In function ‘drm_tegra_bo_free’: ../tegra/tegra.c:45:5: error: implicit declaration of function ‘drmCloseBufferHandle’ [-Werror=implicit-function-declaration] drmCloseBufferHandle(drm->fd, bo->handle); ^~~~~~~~~~~~~~~~~~~~ ../tegra/tegra.c:45:5: warning: nested extern declaration of ‘drmCloseBufferHandle’ [-Wnested-externs] ../tegra/tegra.c: In function ‘drm_tegra_new’: ../tegra/tegra.c:74:15: error: implicit declaration of function ‘drmGetVersion’ [-Werror=implicit-function-declaration] version = drmGetVersion(fd); ^~~~~~~~~~~~~ ../tegra/tegra.c:74:15: warning: nested extern declaration of ‘drmGetVersion’ [-Wnested-externs] ../tegra/tegra.c:74:13: warning: assignment to ‘drmVersionPtr’ {aka ‘struct _drmVersion *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] version = drmGetVersion(fd); ^ ../tegra/tegra.c:81:5: error: implicit declaration of function ‘drmFreeVersion’ [-Werror=implicit-function-declaration] drmFreeVersion(version); ^~~~~~~~~~~~~~ ../tegra/tegra.c:81:5: warning: nested extern declaration of ‘drmFreeVersion’ [-Wnested-externs] ../tegra/tegra.c: In function ‘drm_tegra_bo_new’: ../tegra/tegra.c:139:11: error: implicit declaration of function ‘drmCommandWriteRead’ [-Werror=implicit-function-declaration] err = drmCommandWriteRead(drm->fd, DRM_TEGRA_GEM_CREATE, &args, ^~~~~~~~~~~~~~~~~~~ ../tegra/tegra.c:139:11: warning: nested extern declaration of ‘drmCommandWriteRead’ [-Wnested-externs] ../tegra/tegra.c: In function ‘drm_tegra_bo_export’: ../tegra/tegra.c:301:11: error: implicit declaration of function ‘drmPrimeHandleToFD’ [-Werror=implicit-function-declaration] err = drmPrimeHandleToFD(bo->drm->fd, bo->handle, flags, &fd); ^~~~~~~~~~~~~~~~~~ ../tegra/tegra.c:301:11: warning: nested extern declaration of ‘drmPrimeHandleToFD’ [-Wnested-externs] ../tegra/tegra.c: In function ‘drm_tegra_bo_import’: ../tegra/tegra.c:343:11: error: implicit declaration of function ‘drmPrimeFDToHandle’ [-Werror=implicit-function-declaration] err = drmPrimeFDToHandle(drm->fd, fd, &bo->handle); ^~~~~~~~~~~~~~~~~~ ../tegra/tegra.c:343:11: warning: nested extern declaration of ‘drmPrimeFDToHandle’ [-Wnested-externs] cc1: some warnings being treated as errors [19/130] cc -Ifreedreno/libdrm_freedreno.so.1.0.0.p -Ifreedreno -I../freedreno -I. -I.. -I../include/drm -I/usr/include/valgrind -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_ringbuffer.c.o -MF freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_ringbuffer.c.o.d -o freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_ringbuffer.c.o -c ../freedreno/freedreno_ringbuffer.c FAILED: freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_ringbuffer.c.o cc -Ifreedreno/libdrm_freedreno.so.1.0.0.p -Ifreedreno -I../freedreno -I. -I.. -I../include/drm -I/usr/include/valgrind -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_ringbuffer.c.o -MF freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_ringbuffer.c.o.d -o freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_ringbuffer.c.o -c ../freedreno/freedreno_ringbuffer.c In file included from ../freedreno/freedreno_drmif.h:32, from ../freedreno/freedreno_ringbuffer.c:31: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ In file included from ../freedreno/freedreno_priv.h:44, from ../freedreno/freedreno_ringbuffer.c:32: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ [20/130] cc -Ifreedreno/libdrm_freedreno.so.1.0.0.p -Ifreedreno -I../freedreno -I. -I.. -I../include/drm -I/usr/include/valgrind -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_pipe.c.o -MF freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_pipe.c.o.d -o freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_pipe.c.o -c ../freedreno/freedreno_pipe.c FAILED: freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_pipe.c.o cc -Ifreedreno/libdrm_freedreno.so.1.0.0.p -Ifreedreno -I../freedreno -I. -I.. -I../include/drm -I/usr/include/valgrind -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_pipe.c.o -MF freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_pipe.c.o.d -o freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_pipe.c.o -c ../freedreno/freedreno_pipe.c In file included from ../freedreno/freedreno_drmif.h:32, from ../freedreno/freedreno_pipe.c:29: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ In file included from ../freedreno/freedreno_priv.h:44, from ../freedreno/freedreno_pipe.c:30: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ In file included from ../freedreno/freedreno_pipe.c:30: ../freedreno/freedreno_pipe.c: In function ‘fd_pipe_new2’: ../freedreno/freedreno_priv.h:193:8: error: implicit declaration of function ‘drmMsg’ [-Werror=implicit-function-declaration] do { drmMsg("[E] " fmt " (%s:%d)\n", \ ^~~~~~ ../freedreno/freedreno_pipe.c:43:3: note: in expansion of macro ‘ERROR_MSG’ ERROR_MSG("invalid pipe id: %d", id); ^~~~~~~~~ ../freedreno/freedreno_priv.h:193:8: warning: nested extern declaration of ‘drmMsg’ [-Wnested-externs] do { drmMsg("[E] " fmt " (%s:%d)\n", \ ^~~~~~ ../freedreno/freedreno_pipe.c:43:3: note: in expansion of macro ‘ERROR_MSG’ ERROR_MSG("invalid pipe id: %d", id); ^~~~~~~~~ cc1: some warnings being treated as errors [21/130] cc -Itests/util/libutil.a.p -Itests/util -I../tests/util -I. -I.. -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -MD -MQ tests/util/libutil.a.p/format.c.o -MF tests/util/libutil.a.p/format.c.o.d -o tests/util/libutil.a.p/format.c.o -c ../tests/util/format.c [22/130] cc -Itests/tegra/libdrm-test.a.p -Itests/tegra -I../tests/tegra -I. -I.. -I../include/drm -Itegra -I../tegra -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -MD -MQ tests/tegra/libdrm-test.a.p/drm-test.c.o -MF tests/tegra/libdrm-test.a.p/drm-test.c.o.d -o tests/tegra/libdrm-test.a.p/drm-test.c.o -c ../tests/tegra/drm-test.c FAILED: tests/tegra/libdrm-test.a.p/drm-test.c.o cc -Itests/tegra/libdrm-test.a.p -Itests/tegra -I../tests/tegra -I. -I.. -I../include/drm -Itegra -I../tegra -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -MD -MQ tests/tegra/libdrm-test.a.p/drm-test.c.o -MF tests/tegra/libdrm-test.a.p/drm-test.c.o.d -o tests/tegra/libdrm-test.a.p/drm-test.c.o -c ../tests/tegra/drm-test.c In file included from ../tests/tegra/drm-test.c:38: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../tests/tegra/drm-test.c: In function ‘drm_open’: ../tests/tegra/drm-test.c:235:11: warning: implicit declaration of function ‘drmSetMaster’; did you mean ‘drmGetEntry’? [-Wimplicit-function-declaration] err = drmSetMaster(fd); ^~~~~~~~~~~~ drmGetEntry ../tests/tegra/drm-test.c: In function ‘drm_close’: ../tests/tegra/drm-test.c:246:5: warning: implicit declaration of function ‘drmDropMaster’ [-Wimplicit-function-declaration] drmDropMaster(fd); ^~~~~~~~~~~~~ [23/130] cc -Itests/modeprint/modeprint.p -Itests/modeprint -I../tests/modeprint -I. -I.. -Itests -I../tests -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -pthread -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ tests/modeprint/modeprint.p/modeprint.c.o -MF tests/modeprint/modeprint.p/modeprint.c.o.d -o tests/modeprint/modeprint.p/modeprint.c.o -c ../tests/modeprint/modeprint.c FAILED: tests/modeprint/modeprint.p/modeprint.c.o cc -Itests/modeprint/modeprint.p -Itests/modeprint -I../tests/modeprint -I. -I.. -Itests -I../tests -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -pthread -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ tests/modeprint/modeprint.p/modeprint.c.o -MF tests/modeprint/modeprint.p/modeprint.c.o.d -o tests/modeprint/modeprint.p/modeprint.c.o -c ../tests/modeprint/modeprint.c In file included from ../tests/modeprint/modeprint.c:41: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../tests/modeprint/modeprint.c: In function ‘main’: ../tests/modeprint/modeprint.c:397:7: error: implicit declaration of function ‘drmOpen’; did you mean ‘freopen’? [-Werror=implicit-function-declaration] fd = drmOpen(module_name, NULL); ^~~~~~~ freopen ../tests/modeprint/modeprint.c:397:7: warning: nested extern declaration of ‘drmOpen’ [-Wnested-externs] ../tests/modeprint/modeprint.c:407:3: error: implicit declaration of function ‘drmClose’; did you mean ‘close’? [-Werror=implicit-function-declaration] drmClose(fd); ^~~~~~~~ close ../tests/modeprint/modeprint.c:407:3: warning: nested extern declaration of ‘drmClose’ [-Wnested-externs] cc1: some warnings being treated as errors [24/130] cc -Ietnaviv/libdrm_etnaviv.so.1.0.0.p -Ietnaviv -I../etnaviv -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_bo_cache.c.o -MF etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_bo_cache.c.o.d -o etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_bo_cache.c.o -c ../etnaviv/etnaviv_bo_cache.c FAILED: etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_bo_cache.c.o cc -Ietnaviv/libdrm_etnaviv.so.1.0.0.p -Ietnaviv -I../etnaviv -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_bo_cache.c.o -MF etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_bo_cache.c.o.d -o etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_bo_cache.c.o -c ../etnaviv/etnaviv_bo_cache.c In file included from ../etnaviv/etnaviv_priv.h:42, from ../etnaviv/etnaviv_bo_cache.c:27: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ In file included from ../etnaviv/etnaviv_drmif.h:30, from ../etnaviv/etnaviv_priv.h:47, from ../etnaviv/etnaviv_bo_cache.c:27: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ [25/130] cc -Iradeon/libdrm_radeon.so.1.0.1.p -Iradeon -I../radeon -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ radeon/libdrm_radeon.so.1.0.1.p/radeon_cs.c.o -MF radeon/libdrm_radeon.so.1.0.1.p/radeon_cs.c.o.d -o radeon/libdrm_radeon.so.1.0.1.p/radeon_cs.c.o -c ../radeon/radeon_cs.c [26/130] cc -Ifreedreno/libdrm_freedreno.so.1.0.0.p -Ifreedreno -I../freedreno -I. -I.. -I../include/drm -I/usr/include/valgrind -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_bo_cache.c.o -MF freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_bo_cache.c.o.d -o freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_bo_cache.c.o -c ../freedreno/freedreno_bo_cache.c FAILED: freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_bo_cache.c.o cc -Ifreedreno/libdrm_freedreno.so.1.0.0.p -Ifreedreno -I../freedreno -I. -I.. -I../include/drm -I/usr/include/valgrind -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_bo_cache.c.o -MF freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_bo_cache.c.o.d -o freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_bo_cache.c.o -c ../freedreno/freedreno_bo_cache.c In file included from ../freedreno/freedreno_drmif.h:32, from ../freedreno/freedreno_bo_cache.c:29: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ In file included from ../freedreno/freedreno_priv.h:44, from ../freedreno/freedreno_bo_cache.c:30: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ [27/130] cc -Itests/exynos/exynos_fimg2d_event.p -Itests/exynos -I../tests/exynos -I. -I.. -I../include/drm -Iexynos -I../exynos -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -pthread -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ tests/exynos/exynos_fimg2d_event.p/exynos_fimg2d_event.c.o -MF tests/exynos/exynos_fimg2d_event.p/exynos_fimg2d_event.c.o.d -o tests/exynos/exynos_fimg2d_event.p/exynos_fimg2d_event.c.o -c ../tests/exynos/exynos_fimg2d_event.c FAILED: tests/exynos/exynos_fimg2d_event.p/exynos_fimg2d_event.c.o cc -Itests/exynos/exynos_fimg2d_event.p -Itests/exynos -I../tests/exynos -I. -I.. -I../include/drm -Iexynos -I../exynos -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -pthread -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ tests/exynos/exynos_fimg2d_event.p/exynos_fimg2d_event.c.o -MF tests/exynos/exynos_fimg2d_event.p/exynos_fimg2d_event.c.o.d -o tests/exynos/exynos_fimg2d_event.p/exynos_fimg2d_event.c.o -c ../tests/exynos/exynos_fimg2d_event.c In file included from ../tests/exynos/exynos_fimg2d_event.c:34: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ In file included from ../exynos/exynos_drmif.h:30, from ../tests/exynos/exynos_fimg2d_event.c:37: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ In file included from ../tests/exynos/exynos_fimg2d_event.c:37: ../exynos/exynos_drmif.h:71:2: error: unknown type name ‘drmEventContext’ drmEventContext base; ^~~~~~~~~~~~~~~ ../tests/exynos/exynos_fimg2d_event.c: In function ‘setup_g2d_event_handler’: ../tests/exynos/exynos_fimg2d_event.c:71:23: error: request for member ‘version’ in something not a structure or union evhandler->evctx.base.version = 2; ^ ../tests/exynos/exynos_fimg2d_event.c: In function ‘main’: ../tests/exynos/exynos_fimg2d_event.c:268:7: error: implicit declaration of function ‘drmOpen’; did you mean ‘freopen’? [-Werror=implicit-function-declaration] fd = drmOpen("exynos", NULL); ^~~~~~~ freopen ../tests/exynos/exynos_fimg2d_event.c:268:7: warning: nested extern declaration of ‘drmOpen’ [-Wnested-externs] ../tests/exynos/exynos_fimg2d_event.c:329:2: error: implicit declaration of function ‘drmClose’; did you mean ‘pclose’? [-Werror=implicit-function-declaration] drmClose(fd); ^~~~~~~~ pclose ../tests/exynos/exynos_fimg2d_event.c:329:2: warning: nested extern declaration of ‘drmClose’ [-Wnested-externs] cc1: some warnings being treated as errors [28/130] cc -Ifreedreno/libdrm_freedreno.so.1.0.0.p -Ifreedreno -I../freedreno -I. -I.. -I../include/drm -I/usr/include/valgrind -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ freedreno/libdrm_freedreno.so.1.0.0.p/msm_msm_device.c.o -MF freedreno/libdrm_freedreno.so.1.0.0.p/msm_msm_device.c.o.d -o freedreno/libdrm_freedreno.so.1.0.0.p/msm_msm_device.c.o -c ../freedreno/msm/msm_device.c FAILED: freedreno/libdrm_freedreno.so.1.0.0.p/msm_msm_device.c.o cc -Ifreedreno/libdrm_freedreno.so.1.0.0.p -Ifreedreno -I../freedreno -I. -I.. -I../include/drm -I/usr/include/valgrind -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ freedreno/libdrm_freedreno.so.1.0.0.p/msm_msm_device.c.o -MF freedreno/libdrm_freedreno.so.1.0.0.p/msm_msm_device.c.o.d -o freedreno/libdrm_freedreno.so.1.0.0.p/msm_msm_device.c.o -c ../freedreno/msm/msm_device.c In file included from ../freedreno/freedreno_priv.h:44, from ../freedreno/msm/msm_priv.h:32, from ../freedreno/msm/msm_device.c:33: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ In file included from ../freedreno/freedreno_drmif.h:32, from ../freedreno/freedreno_priv.h:50, from ../freedreno/msm/msm_priv.h:32, from ../freedreno/msm/msm_device.c:33: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ [29/130] cc -Ietnaviv/libdrm_etnaviv.so.1.0.0.p -Ietnaviv -I../etnaviv -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_pipe.c.o -MF etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_pipe.c.o.d -o etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_pipe.c.o -c ../etnaviv/etnaviv_pipe.c FAILED: etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_pipe.c.o cc -Ietnaviv/libdrm_etnaviv.so.1.0.0.p -Ietnaviv -I../etnaviv -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_pipe.c.o -MF etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_pipe.c.o.d -o etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_pipe.c.o -c ../etnaviv/etnaviv_pipe.c In file included from ../etnaviv/etnaviv_priv.h:42, from ../etnaviv/etnaviv_pipe.c:27: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ In file included from ../etnaviv/etnaviv_drmif.h:30, from ../etnaviv/etnaviv_priv.h:47, from ../etnaviv/etnaviv_pipe.c:27: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../etnaviv/etnaviv_pipe.c: In function ‘etna_pipe_wait_ns’: ../etnaviv/etnaviv_pipe.c:49:8: error: implicit declaration of function ‘drmCommandWrite’ [-Werror=implicit-function-declaration] ret = drmCommandWrite(dev->fd, DRM_ETNAVIV_WAIT_FENCE, &req, sizeof(req)); ^~~~~~~~~~~~~~~ ../etnaviv/etnaviv_pipe.c:49:8: warning: nested extern declaration of ‘drmCommandWrite’ [-Wnested-externs] In file included from ../etnaviv/etnaviv_pipe.c:27: ../etnaviv/etnaviv_priv.h:194:8: error: implicit declaration of function ‘drmMsg’ [-Werror=implicit-function-declaration] do { drmMsg("[E] " fmt " (%s:%d)\n", \ ^~~~~~ ../etnaviv/etnaviv_pipe.c:51:3: note: in expansion of macro ‘ERROR_MSG’ ERROR_MSG("wait-fence failed! %d (%s)", ret, strerror(errno)); ^~~~~~~~~ ../etnaviv/etnaviv_priv.h:194:8: warning: nested extern declaration of ‘drmMsg’ [-Wnested-externs] do { drmMsg("[E] " fmt " (%s:%d)\n", \ ^~~~~~ ../etnaviv/etnaviv_pipe.c:51:3: note: in expansion of macro ‘ERROR_MSG’ ERROR_MSG("wait-fence failed! %d (%s)", ret, strerror(errno)); ^~~~~~~~~ cc1: some warnings being treated as errors [30/130] cc -Ietnaviv/libdrm_etnaviv.so.1.0.0.p -Ietnaviv -I../etnaviv -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_device.c.o -MF etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_device.c.o.d -o etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_device.c.o -c ../etnaviv/etnaviv_device.c FAILED: etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_device.c.o cc -Ietnaviv/libdrm_etnaviv.so.1.0.0.p -Ietnaviv -I../etnaviv -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_device.c.o -MF etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_device.c.o.d -o etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_device.c.o -c ../etnaviv/etnaviv_device.c In file included from ../etnaviv/etnaviv_device.c:36: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ In file included from ../etnaviv/etnaviv_priv.h:42, from ../etnaviv/etnaviv_device.c:39: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ In file included from ../etnaviv/etnaviv_drmif.h:30, from ../etnaviv/etnaviv_priv.h:47, from ../etnaviv/etnaviv_device.c:39: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../etnaviv/etnaviv_device.c: In function ‘etna_device_new’: ../etnaviv/etnaviv_device.c:53:22: error: implicit declaration of function ‘drmHashCreate’ [-Werror=implicit-function-declaration] dev->handle_table = drmHashCreate(); ^~~~~~~~~~~~~ ../etnaviv/etnaviv_device.c:53:22: warning: nested extern declaration of ‘drmHashCreate’ [-Wnested-externs] ../etnaviv/etnaviv_device.c:53:20: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] dev->handle_table = drmHashCreate(); ^ ../etnaviv/etnaviv_device.c:54:18: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] dev->name_table = drmHashCreate(); ^ ../etnaviv/etnaviv_device.c: In function ‘etna_device_del_impl’: ../etnaviv/etnaviv_device.c:85:2: error: implicit declaration of function ‘drmHashDestroy’ [-Werror=implicit-function-declaration] drmHashDestroy(dev->handle_table); ^~~~~~~~~~~~~~ ../etnaviv/etnaviv_device.c:85:2: warning: nested extern declaration of ‘drmHashDestroy’ [-Wnested-externs] cc1: some warnings being treated as errors [31/130] cc -Iradeon/libdrm_radeon.so.1.0.1.p -Iradeon -I../radeon -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ radeon/libdrm_radeon.so.1.0.1.p/radeon_bo.c.o -MF radeon/libdrm_radeon.so.1.0.1.p/radeon_bo.c.o.d -o radeon/libdrm_radeon.so.1.0.1.p/radeon_bo.c.o -c ../radeon/radeon_bo.c [32/130] cc -Itests/modetest/modetest.p -Itests/modetest -I../tests/modetest -I. -I.. -Itests -I../tests -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -pthread -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -Wno-pointer-arith -MD -MQ tests/modetest/modetest.p/cursor.c.o -MF tests/modetest/modetest.p/cursor.c.o.d -o tests/modetest/modetest.p/cursor.c.o -c ../tests/modetest/cursor.c FAILED: tests/modetest/modetest.p/cursor.c.o cc -Itests/modetest/modetest.p -Itests/modetest -I../tests/modetest -I. -I.. -Itests -I../tests -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -pthread -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -Wno-pointer-arith -MD -MQ tests/modetest/modetest.p/cursor.c.o -MF tests/modetest/modetest.p/cursor.c.o.d -o tests/modetest/modetest.p/cursor.c.o -c ../tests/modetest/cursor.c In file included from ../tests/modetest/cursor.c:36: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ [33/130] cc -Itegra/libdrm_tegra.so.0.0.0.p -Itegra -I../tegra -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ tegra/libdrm_tegra.so.0.0.0.p/syncpt.c.o -MF tegra/libdrm_tegra.so.0.0.0.p/syncpt.c.o.d -o tegra/libdrm_tegra.so.0.0.0.p/syncpt.c.o -c ../tegra/syncpt.c [34/130] cc -Ietnaviv/libdrm_etnaviv.so.1.0.0.p -Ietnaviv -I../etnaviv -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_gpu.c.o -MF etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_gpu.c.o.d -o etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_gpu.c.o -c ../etnaviv/etnaviv_gpu.c FAILED: etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_gpu.c.o cc -Ietnaviv/libdrm_etnaviv.so.1.0.0.p -Ietnaviv -I../etnaviv -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_gpu.c.o -MF etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_gpu.c.o.d -o etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_gpu.c.o -c ../etnaviv/etnaviv_gpu.c In file included from ../etnaviv/etnaviv_priv.h:42, from ../etnaviv/etnaviv_gpu.c:27: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ In file included from ../etnaviv/etnaviv_drmif.h:30, from ../etnaviv/etnaviv_priv.h:47, from ../etnaviv/etnaviv_gpu.c:27: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../etnaviv/etnaviv_gpu.c: In function ‘get_param’: ../etnaviv/etnaviv_gpu.c:38:8: error: implicit declaration of function ‘drmCommandWriteRead’ [-Werror=implicit-function-declaration] ret = drmCommandWriteRead(dev->fd, DRM_ETNAVIV_GET_PARAM, &req, sizeof(req)); ^~~~~~~~~~~~~~~~~~~ ../etnaviv/etnaviv_gpu.c:38:8: warning: nested extern declaration of ‘drmCommandWriteRead’ [-Wnested-externs] In file included from ../etnaviv/etnaviv_gpu.c:27: ../etnaviv/etnaviv_priv.h:194:8: error: implicit declaration of function ‘drmMsg’ [-Werror=implicit-function-declaration] do { drmMsg("[E] " fmt " (%s:%d)\n", \ ^~~~~~ ../etnaviv/etnaviv_gpu.c:40:3: note: in expansion of macro ‘ERROR_MSG’ ERROR_MSG("get-param (%x) failed! %d (%s)", param, ret, strerror(errno)); ^~~~~~~~~ ../etnaviv/etnaviv_priv.h:194:8: warning: nested extern declaration of ‘drmMsg’ [-Wnested-externs] do { drmMsg("[E] " fmt " (%s:%d)\n", \ ^~~~~~ ../etnaviv/etnaviv_gpu.c:40:3: note: in expansion of macro ‘ERROR_MSG’ ERROR_MSG("get-param (%x) failed! %d (%s)", param, ret, strerror(errno)); ^~~~~~~~~ cc1: some warnings being treated as errors [35/130] cc -Ietnaviv/libdrm_etnaviv.so.1.0.0.p -Ietnaviv -I../etnaviv -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_perfmon.c.o -MF etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_perfmon.c.o.d -o etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_perfmon.c.o -c ../etnaviv/etnaviv_perfmon.c FAILED: etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_perfmon.c.o cc -Ietnaviv/libdrm_etnaviv.so.1.0.0.p -Ietnaviv -I../etnaviv -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_perfmon.c.o -MF etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_perfmon.c.o.d -o etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_perfmon.c.o -c ../etnaviv/etnaviv_perfmon.c In file included from ../etnaviv/etnaviv_priv.h:42, from ../etnaviv/etnaviv_perfmon.c:28: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ In file included from ../etnaviv/etnaviv_drmif.h:30, from ../etnaviv/etnaviv_priv.h:47, from ../etnaviv/etnaviv_perfmon.c:28: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../etnaviv/etnaviv_perfmon.c: In function ‘etna_perfmon_query_signals’: ../etnaviv/etnaviv_perfmon.c:42:9: error: implicit declaration of function ‘drmCommandWriteRead’ [-Werror=implicit-function-declaration] ret = drmCommandWriteRead(dev->fd, DRM_ETNAVIV_PM_QUERY_SIG, &req, sizeof(req)); ^~~~~~~~~~~~~~~~~~~ ../etnaviv/etnaviv_perfmon.c:42:9: warning: nested extern declaration of ‘drmCommandWriteRead’ [-Wnested-externs] In file included from ../etnaviv/etnaviv_perfmon.c:28: ../etnaviv/etnaviv_priv.h:185:8: error: implicit declaration of function ‘drmMsg’ [-Werror=implicit-function-declaration] do { drmMsg("[I] "fmt " (%s:%d)\n", \ ^~~~~~ ../etnaviv/etnaviv_perfmon.c:50:3: note: in expansion of macro ‘INFO_MSG’ INFO_MSG("perfmon signal:"); ^~~~~~~~ ../etnaviv/etnaviv_priv.h:185:8: warning: nested extern declaration of ‘drmMsg’ [-Wnested-externs] do { drmMsg("[I] "fmt " (%s:%d)\n", \ ^~~~~~ ../etnaviv/etnaviv_perfmon.c:50:3: note: in expansion of macro ‘INFO_MSG’ INFO_MSG("perfmon signal:"); ^~~~~~~~ cc1: some warnings being treated as errors [36/130] cc -Itests/vbltest/vbltest.p -Itests/vbltest -I../tests/vbltest -I. -I.. -Itests -I../tests -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ tests/vbltest/vbltest.p/vbltest.c.o -MF tests/vbltest/vbltest.p/vbltest.c.o.d -o tests/vbltest/vbltest.p/vbltest.c.o -c ../tests/vbltest/vbltest.c FAILED: tests/vbltest/vbltest.p/vbltest.c.o cc -Itests/vbltest/vbltest.p -Itests/vbltest -I../tests/vbltest -I. -I.. -Itests -I../tests -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ tests/vbltest/vbltest.p/vbltest.c.o -MF tests/vbltest/vbltest.p/vbltest.c.o.d -o tests/vbltest/vbltest.p/vbltest.c.o -c ../tests/vbltest/vbltest.c In file included from ../tests/vbltest/vbltest.c:40: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../tests/vbltest/vbltest.c: In function ‘vblank_handler’: ../tests/vbltest/vbltest.c:71:2: error: implicit declaration of function ‘drmWaitVBlank’ [-Werror=implicit-function-declaration] drmWaitVBlank(fd, &vbl); ^~~~~~~~~~~~~ ../tests/vbltest/vbltest.c:71:2: warning: nested extern declaration of ‘drmWaitVBlank’ [-Wnested-externs] ../tests/vbltest/vbltest.c: In function ‘main’: ../tests/vbltest/vbltest.c:101:2: error: unknown type name ‘drmEventContext’; did you mean ‘drm_version_t’? drmEventContext evctx; ^~~~~~~~~~~~~~~ drm_version_t ../tests/vbltest/vbltest.c:156:7: error: request for member ‘version’ in something not a structure or union evctx.version = DRM_EVENT_CONTEXT_VERSION; ^ ../tests/vbltest/vbltest.c:156:18: error: ‘DRM_EVENT_CONTEXT_VERSION’ undeclared (first use in this function); did you mean ‘DRM_IOCTL_SET_VERSION’? evctx.version = DRM_EVENT_CONTEXT_VERSION; ^~~~~~~~~~~~~~~~~~~~~~~~~ DRM_IOCTL_SET_VERSION ../tests/vbltest/vbltest.c:156:18: note: each undeclared identifier is reported only once for each function it appears in ../tests/vbltest/vbltest.c:157:7: error: request for member ‘vblank_handler’ in something not a structure or union evctx.vblank_handler = vblank_handler; ^ ../tests/vbltest/vbltest.c:158:7: error: request for member ‘page_flip_handler’ in something not a structure or union evctx.page_flip_handler = NULL; ^ ../tests/vbltest/vbltest.c:178:9: error: implicit declaration of function ‘drmHandleEvent’ [-Werror=implicit-function-declaration] ret = drmHandleEvent(fd, &evctx); ^~~~~~~~~~~~~~ ../tests/vbltest/vbltest.c:178:9: warning: nested extern declaration of ‘drmHandleEvent’ [-Wnested-externs] cc1: some warnings being treated as errors [37/130] cc -Ietnaviv/libdrm_etnaviv.so.1.0.0.p -Ietnaviv -I../etnaviv -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_cmd_stream.c.o -MF etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_cmd_stream.c.o.d -o etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_cmd_stream.c.o -c ../etnaviv/etnaviv_cmd_stream.c FAILED: etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_cmd_stream.c.o cc -Ietnaviv/libdrm_etnaviv.so.1.0.0.p -Ietnaviv -I../etnaviv -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_cmd_stream.c.o -MF etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_cmd_stream.c.o.d -o etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_cmd_stream.c.o -c ../etnaviv/etnaviv_cmd_stream.c In file included from ../etnaviv/etnaviv_drmif.h:30, from ../etnaviv/etnaviv_cmd_stream.c:29: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ In file included from ../etnaviv/etnaviv_priv.h:42, from ../etnaviv/etnaviv_cmd_stream.c:30: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ In file included from ../etnaviv/etnaviv_cmd_stream.c:30: ../etnaviv/etnaviv_cmd_stream.c: In function ‘etna_cmd_stream_new’: ../etnaviv/etnaviv_priv.h:194:8: error: implicit declaration of function ‘drmMsg’ [-Werror=implicit-function-declaration] do { drmMsg("[E] " fmt " (%s:%d)\n", \ ^~~~~~ ../etnaviv/etnaviv_cmd_stream.c:66:3: note: in expansion of macro ‘ERROR_MSG’ ERROR_MSG("invalid size of 0"); ^~~~~~~~~ ../etnaviv/etnaviv_priv.h:194:8: warning: nested extern declaration of ‘drmMsg’ [-Wnested-externs] do { drmMsg("[E] " fmt " (%s:%d)\n", \ ^~~~~~ ../etnaviv/etnaviv_cmd_stream.c:66:3: note: in expansion of macro ‘ERROR_MSG’ ERROR_MSG("invalid size of 0"); ^~~~~~~~~ ../etnaviv/etnaviv_cmd_stream.c: In function ‘flush’: ../etnaviv/etnaviv_cmd_stream.c:205:8: error: implicit declaration of function ‘drmCommandWriteRead’ [-Werror=implicit-function-declaration] ret = drmCommandWriteRead(gpu->dev->fd, DRM_ETNAVIV_GEM_SUBMIT, ^~~~~~~~~~~~~~~~~~~ ../etnaviv/etnaviv_cmd_stream.c:205:8: warning: nested extern declaration of ‘drmCommandWriteRead’ [-Wnested-externs] cc1: some warnings being treated as errors [38/130] cc -Iamdgpu/libdrm_amdgpu.so.1.0.0.p -Iamdgpu -I../amdgpu -I. -I.. -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers '-DAMDGPU_ASIC_ID_TABLE="/usr/share/libdrm/amdgpu.ids"' -MD -MQ amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_device.c.o -MF amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_device.c.o.d -o amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_device.c.o -c ../amdgpu/amdgpu_device.c FAILED: amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_device.c.o cc -Iamdgpu/libdrm_amdgpu.so.1.0.0.p -Iamdgpu -I../amdgpu -I. -I.. -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers '-DAMDGPU_ASIC_ID_TABLE="/usr/share/libdrm/amdgpu.ids"' -MD -MQ amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_device.c.o -MF amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_device.c.o.d -o amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_device.c.o -c ../amdgpu/amdgpu_device.c In file included from ../amdgpu/amdgpu_device.c:39: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../amdgpu/amdgpu_device.c: In function ‘fd_compare’: ../amdgpu/amdgpu_device.c:51:16: error: implicit declaration of function ‘drmGetPrimaryDeviceNameFromFd’ [-Werror=implicit-function-declaration] char *name1 = drmGetPrimaryDeviceNameFromFd(fd1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../amdgpu/amdgpu_device.c:51:16: warning: nested extern declaration of ‘drmGetPrimaryDeviceNameFromFd’ [-Wnested-externs] ../amdgpu/amdgpu_device.c:51:16: warning: initialization of ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] ../amdgpu/amdgpu_device.c:52:16: warning: initialization of ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] char *name2 = drmGetPrimaryDeviceNameFromFd(fd2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../amdgpu/amdgpu_device.c: In function ‘amdgpu_get_auth’: ../amdgpu/amdgpu_device.c:85:6: error: implicit declaration of function ‘drmGetNodeTypeFromFd’ [-Werror=implicit-function-declaration] if (drmGetNodeTypeFromFd(fd) == DRM_NODE_RENDER) ^~~~~~~~~~~~~~~~~~~~ ../amdgpu/amdgpu_device.c:85:6: warning: nested extern declaration of ‘drmGetNodeTypeFromFd’ [-Wnested-externs] ../amdgpu/amdgpu_device.c:85:34: error: ‘DRM_NODE_RENDER’ undeclared (first use in this function); did you mean ‘DRM_LOCK_READY’? if (drmGetNodeTypeFromFd(fd) == DRM_NODE_RENDER) ^~~~~~~~~~~~~~~ DRM_LOCK_READY ../amdgpu/amdgpu_device.c:85:34: note: each undeclared identifier is reported only once for each function it appears in ../amdgpu/amdgpu_device.c: In function ‘amdgpu_device_initialize’: ../amdgpu/amdgpu_device.c:201:12: error: implicit declaration of function ‘drmGetVersion’ [-Werror=implicit-function-declaration] version = drmGetVersion(fd); ^~~~~~~~~~~~~ ../amdgpu/amdgpu_device.c:201:12: warning: nested extern declaration of ‘drmGetVersion’ [-Wnested-externs] ../amdgpu/amdgpu_device.c:201:10: warning: assignment to ‘drmVersionPtr’ {aka ‘struct _drmVersion *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] version = drmGetVersion(fd); ^ ../amdgpu/amdgpu_device.c:209:3: error: implicit declaration of function ‘drmFreeVersion’ [-Werror=implicit-function-declaration] drmFreeVersion(version); ^~~~~~~~~~~~~~ ../amdgpu/amdgpu_device.c:209:3: warning: nested extern declaration of ‘drmFreeVersion’ [-Wnested-externs] cc1: some warnings being treated as errors [39/130] cc -Iradeon/libdrm_radeon.so.1.0.1.p -Iradeon -I../radeon -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ radeon/libdrm_radeon.so.1.0.1.p/radeon_surface.c.o -MF radeon/libdrm_radeon.so.1.0.1.p/radeon_surface.c.o.d -o radeon/libdrm_radeon.so.1.0.1.p/radeon_surface.c.o -c ../radeon/radeon_surface.c FAILED: radeon/libdrm_radeon.so.1.0.1.p/radeon_surface.c.o cc -Iradeon/libdrm_radeon.so.1.0.1.p -Iradeon -I../radeon -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ radeon/libdrm_radeon.so.1.0.1.p/radeon_surface.c.o -MF radeon/libdrm_radeon.so.1.0.1.p/radeon_surface.c.o.d -o radeon/libdrm_radeon.so.1.0.1.p/radeon_surface.c.o -c ../radeon/radeon_surface.c In file included from ../radeon/radeon_surface.c:38: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../radeon/radeon_surface.c: In function ‘radeon_get_value’: ../radeon/radeon_surface.c:132:9: error: implicit declaration of function ‘drmCommandWriteRead’ [-Werror=implicit-function-declaration] r = drmCommandWriteRead(fd, DRM_RADEON_INFO, &info, ^~~~~~~~~~~~~~~~~~~ ../radeon/radeon_surface.c:132:9: warning: nested extern declaration of ‘drmCommandWriteRead’ [-Wnested-externs] ../radeon/radeon_surface.c: In function ‘r6_init_hw_info’: ../radeon/radeon_surface.c:213:15: error: implicit declaration of function ‘drmGetVersion’ [-Werror=implicit-function-declaration] version = drmGetVersion(surf_man->fd); ^~~~~~~~~~~~~ ../radeon/radeon_surface.c:213:15: warning: nested extern declaration of ‘drmGetVersion’ [-Wnested-externs] ../radeon/radeon_surface.c:213:13: warning: assignment to ‘drmVersionPtr’ {aka ‘struct _drmVersion *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] version = drmGetVersion(surf_man->fd); ^ ../radeon/radeon_surface.c:217:5: error: implicit declaration of function ‘drmFreeVersion’ [-Werror=implicit-function-declaration] drmFreeVersion(version); ^~~~~~~~~~~~~~ ../radeon/radeon_surface.c:217:5: warning: nested extern declaration of ‘drmFreeVersion’ [-Wnested-externs] ../radeon/radeon_surface.c: In function ‘eg_init_hw_info’: ../radeon/radeon_surface.c:498:13: warning: assignment to ‘drmVersionPtr’ {aka ‘struct _drmVersion *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] version = drmGetVersion(surf_man->fd); ^ ../radeon/radeon_surface.c: In function ‘si_init_hw_info’: ../radeon/radeon_surface.c:1212:13: warning: assignment to ‘drmVersionPtr’ {aka ‘struct _drmVersion *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] version = drmGetVersion(surf_man->fd); ^ ../radeon/radeon_surface.c: In function ‘cik_init_hw_info’: ../radeon/radeon_surface.c:2041:13: warning: assignment to ‘drmVersionPtr’ {aka ‘struct _drmVersion *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] version = drmGetVersion(surf_man->fd); ^ cc1: some warnings being treated as errors [40/130] cc -Ifreedreno/libdrm_freedreno.so.1.0.0.p -Ifreedreno -I../freedreno -I. -I.. -I../include/drm -I/usr/include/valgrind -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ freedreno/libdrm_freedreno.so.1.0.0.p/msm_msm_bo.c.o -MF freedreno/libdrm_freedreno.so.1.0.0.p/msm_msm_bo.c.o.d -o freedreno/libdrm_freedreno.so.1.0.0.p/msm_msm_bo.c.o -c ../freedreno/msm/msm_bo.c FAILED: freedreno/libdrm_freedreno.so.1.0.0.p/msm_msm_bo.c.o cc -Ifreedreno/libdrm_freedreno.so.1.0.0.p -Ifreedreno -I../freedreno -I. -I.. -I../include/drm -I/usr/include/valgrind -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ freedreno/libdrm_freedreno.so.1.0.0.p/msm_msm_bo.c.o -MF freedreno/libdrm_freedreno.so.1.0.0.p/msm_msm_bo.c.o.d -o freedreno/libdrm_freedreno.so.1.0.0.p/msm_msm_bo.c.o -c ../freedreno/msm/msm_bo.c In file included from ../freedreno/freedreno_priv.h:44, from ../freedreno/msm/msm_priv.h:32, from ../freedreno/msm/msm_bo.c:29: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ In file included from ../freedreno/freedreno_drmif.h:32, from ../freedreno/freedreno_priv.h:50, from ../freedreno/msm/msm_priv.h:32, from ../freedreno/msm/msm_bo.c:29: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../freedreno/msm/msm_bo.c: In function ‘bo_allocate’: ../freedreno/msm/msm_bo.c:44:9: error: implicit declaration of function ‘drmCommandWriteRead’ [-Werror=implicit-function-declaration] ret = drmCommandWriteRead(bo->dev->fd, DRM_MSM_GEM_INFO, ^~~~~~~~~~~~~~~~~~~ ../freedreno/msm/msm_bo.c:44:9: warning: nested extern declaration of ‘drmCommandWriteRead’ [-Wnested-externs] In file included from ../freedreno/msm/msm_priv.h:32, from ../freedreno/msm/msm_bo.c:29: ../freedreno/freedreno_priv.h:193:8: error: implicit declaration of function ‘drmMsg’ [-Werror=implicit-function-declaration] do { drmMsg("[E] " fmt " (%s:%d)\n", \ ^~~~~~ ../freedreno/msm/msm_bo.c:47:4: note: in expansion of macro ‘ERROR_MSG’ ERROR_MSG("alloc failed: %s", strerror(errno)); ^~~~~~~~~ ../freedreno/freedreno_priv.h:193:8: warning: nested extern declaration of ‘drmMsg’ [-Wnested-externs] do { drmMsg("[E] " fmt " (%s:%d)\n", \ ^~~~~~ ../freedreno/msm/msm_bo.c:47:4: note: in expansion of macro ‘ERROR_MSG’ ERROR_MSG("alloc failed: %s", strerror(errno)); ^~~~~~~~~ ../freedreno/msm/msm_bo.c: In function ‘msm_bo_cpu_prep’: ../freedreno/msm/msm_bo.c:76:9: error: implicit declaration of function ‘drmCommandWrite’ [-Werror=implicit-function-declaration] return drmCommandWrite(bo->dev->fd, DRM_MSM_GEM_CPU_PREP, &req, sizeof(req)); ^~~~~~~~~~~~~~~ ../freedreno/msm/msm_bo.c:76:9: warning: nested extern declaration of ‘drmCommandWrite’ [-Wnested-externs] cc1: some warnings being treated as errors [41/130] cc -Itests/exynos/exynos_fimg2d_test.p -Itests/exynos -I../tests/exynos -I. -I.. -I../include/drm -Iexynos -I../exynos -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -pthread -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ tests/exynos/exynos_fimg2d_test.p/exynos_fimg2d_test.c.o -MF tests/exynos/exynos_fimg2d_test.p/exynos_fimg2d_test.c.o.d -o tests/exynos/exynos_fimg2d_test.p/exynos_fimg2d_test.c.o -c ../tests/exynos/exynos_fimg2d_test.c FAILED: tests/exynos/exynos_fimg2d_test.p/exynos_fimg2d_test.c.o cc -Itests/exynos/exynos_fimg2d_test.p -Itests/exynos -I../tests/exynos -I. -I.. -I../include/drm -Iexynos -I../exynos -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -pthread -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ tests/exynos/exynos_fimg2d_test.p/exynos_fimg2d_test.c.o -MF tests/exynos/exynos_fimg2d_test.p/exynos_fimg2d_test.c.o.d -o tests/exynos/exynos_fimg2d_test.p/exynos_fimg2d_test.c.o -c ../tests/exynos/exynos_fimg2d_test.c In file included from ../tests/exynos/exynos_fimg2d_test.c:36: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ In file included from ../exynos/exynos_drmif.h:30, from ../tests/exynos/exynos_fimg2d_test.c:41: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ In file included from ../tests/exynos/exynos_fimg2d_test.c:41: ../exynos/exynos_drmif.h:71:2: error: unknown type name ‘drmEventContext’ drmEventContext base; ^~~~~~~~~~~~~~~ ../tests/exynos/exynos_fimg2d_test.c: In function ‘drm_set_crtc’: ../tests/exynos/exynos_fimg2d_test.c:129:3: error: implicit declaration of function ‘drmMsg’; did you mean ‘drmIsKMS’? [-Werror=implicit-function-declaration] drmMsg("failed to set mode: %s\n", strerror(errno)); ^~~~~~ drmIsKMS ../tests/exynos/exynos_fimg2d_test.c:129:3: warning: nested extern declaration of ‘drmMsg’ [-Wnested-externs] ../tests/exynos/exynos_fimg2d_test.c: In function ‘main’: ../tests/exynos/exynos_fimg2d_test.c:761:7: error: implicit declaration of function ‘drmOpen’; did you mean ‘freopen’? [-Werror=implicit-function-declaration] fd = drmOpen(DRM_MODULE_NAME, NULL); ^~~~~~~ freopen ../tests/exynos/exynos_fimg2d_test.c:761:7: warning: nested extern declaration of ‘drmOpen’ [-Wnested-externs] ../tests/exynos/exynos_fimg2d_test.c:900:2: error: implicit declaration of function ‘drmClose’; did you mean ‘close’? [-Werror=implicit-function-declaration] drmClose(fd); ^~~~~~~~ close ../tests/exynos/exynos_fimg2d_test.c:900:2: warning: nested extern declaration of ‘drmClose’ [-Wnested-externs] cc1: some warnings being treated as errors [42/130] cc -Ifreedreno/libdrm_freedreno.so.1.0.0.p -Ifreedreno -I../freedreno -I. -I.. -I../include/drm -I/usr/include/valgrind -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_device.c.o -MF freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_device.c.o.d -o freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_device.c.o -c ../freedreno/freedreno_device.c FAILED: freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_device.c.o cc -Ifreedreno/libdrm_freedreno.so.1.0.0.p -Ifreedreno -I../freedreno -I. -I.. -I../include/drm -I/usr/include/valgrind -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_device.c.o -MF freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_device.c.o.d -o freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_device.c.o -c ../freedreno/freedreno_device.c In file included from ../freedreno/freedreno_drmif.h:32, from ../freedreno/freedreno_device.c:33: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ In file included from ../freedreno/freedreno_priv.h:44, from ../freedreno/freedreno_device.c:34: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../freedreno/freedreno_device.c: In function ‘fd_device_new’: ../freedreno/freedreno_device.c:47:12: error: implicit declaration of function ‘drmGetVersion’ [-Werror=implicit-function-declaration] version = drmGetVersion(fd); ^~~~~~~~~~~~~ ../freedreno/freedreno_device.c:47:12: warning: nested extern declaration of ‘drmGetVersion’ [-Wnested-externs] ../freedreno/freedreno_device.c:47:10: warning: assignment to ‘drmVersionPtr’ {aka ‘struct _drmVersion *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] version = drmGetVersion(fd); ^ In file included from ../freedreno/freedreno_device.c:34: ../freedreno/freedreno_priv.h:193:8: error: implicit declaration of function ‘drmMsg’ [-Werror=implicit-function-declaration] do { drmMsg("[E] " fmt " (%s:%d)\n", \ ^~~~~~ ../freedreno/freedreno_device.c:49:3: note: in expansion of macro ‘ERROR_MSG’ ERROR_MSG("cannot get version: %s", strerror(errno)); ^~~~~~~~~ ../freedreno/freedreno_priv.h:193:8: warning: nested extern declaration of ‘drmMsg’ [-Wnested-externs] do { drmMsg("[E] " fmt " (%s:%d)\n", \ ^~~~~~ ../freedreno/freedreno_device.c:49:3: note: in expansion of macro ‘ERROR_MSG’ ERROR_MSG("cannot get version: %s", strerror(errno)); ^~~~~~~~~ ../freedreno/freedreno_device.c:75:2: error: implicit declaration of function ‘drmFreeVersion’ [-Werror=implicit-function-declaration] drmFreeVersion(version); ^~~~~~~~~~~~~~ ../freedreno/freedreno_device.c:75:2: warning: nested extern declaration of ‘drmFreeVersion’ [-Wnested-externs] ../freedreno/freedreno_device.c:82:22: error: implicit declaration of function ‘drmHashCreate’ [-Werror=implicit-function-declaration] dev->handle_table = drmHashCreate(); ^~~~~~~~~~~~~ ../freedreno/freedreno_device.c:82:22: warning: nested extern declaration of ‘drmHashCreate’ [-Wnested-externs] ../freedreno/freedreno_device.c:82:20: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] dev->handle_table = drmHashCreate(); ^ ../freedreno/freedreno_device.c:83:18: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] dev->name_table = drmHashCreate(); ^ ../freedreno/freedreno_device.c: In function ‘fd_device_del_impl’: ../freedreno/freedreno_device.c:114:2: error: implicit declaration of function ‘drmHashDestroy’ [-Werror=implicit-function-declaration] drmHashDestroy(dev->handle_table); ^~~~~~~~~~~~~~ ../freedreno/freedreno_device.c:114:2: warning: nested extern declaration of ‘drmHashDestroy’ [-Wnested-externs] cc1: some warnings being treated as errors [43/130] cc -Ifreedreno/libdrm_freedreno.so.1.0.0.p -Ifreedreno -I../freedreno -I. -I.. -I../include/drm -I/usr/include/valgrind -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ freedreno/libdrm_freedreno.so.1.0.0.p/msm_msm_pipe.c.o -MF freedreno/libdrm_freedreno.so.1.0.0.p/msm_msm_pipe.c.o.d -o freedreno/libdrm_freedreno.so.1.0.0.p/msm_msm_pipe.c.o -c ../freedreno/msm/msm_pipe.c FAILED: freedreno/libdrm_freedreno.so.1.0.0.p/msm_msm_pipe.c.o cc -Ifreedreno/libdrm_freedreno.so.1.0.0.p -Ifreedreno -I../freedreno -I. -I.. -I../include/drm -I/usr/include/valgrind -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ freedreno/libdrm_freedreno.so.1.0.0.p/msm_msm_pipe.c.o -MF freedreno/libdrm_freedreno.so.1.0.0.p/msm_msm_pipe.c.o.d -o freedreno/libdrm_freedreno.so.1.0.0.p/msm_msm_pipe.c.o -c ../freedreno/msm/msm_pipe.c In file included from ../freedreno/freedreno_priv.h:44, from ../freedreno/msm/msm_priv.h:32, from ../freedreno/msm/msm_pipe.c:29: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ In file included from ../freedreno/freedreno_drmif.h:32, from ../freedreno/freedreno_priv.h:50, from ../freedreno/msm/msm_priv.h:32, from ../freedreno/msm/msm_pipe.c:29: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../freedreno/msm/msm_pipe.c: In function ‘query_param’: ../freedreno/msm/msm_pipe.c:41:8: error: implicit declaration of function ‘drmCommandWriteRead’ [-Werror=implicit-function-declaration] ret = drmCommandWriteRead(pipe->dev->fd, DRM_MSM_GET_PARAM, ^~~~~~~~~~~~~~~~~~~ ../freedreno/msm/msm_pipe.c:41:8: warning: nested extern declaration of ‘drmCommandWriteRead’ [-Wnested-externs] In file included from ../freedreno/msm/msm_priv.h:32, from ../freedreno/msm/msm_pipe.c:29: ../freedreno/msm/msm_pipe.c: In function ‘msm_pipe_get_param’: ../freedreno/freedreno_priv.h:193:8: error: implicit declaration of function ‘drmMsg’ [-Werror=implicit-function-declaration] do { drmMsg("[E] " fmt " (%s:%d)\n", \ ^~~~~~ ../freedreno/msm/msm_pipe.c:73:3: note: in expansion of macro ‘ERROR_MSG’ ERROR_MSG("invalid param id: %d", param); ^~~~~~~~~ ../freedreno/freedreno_priv.h:193:8: warning: nested extern declaration of ‘drmMsg’ [-Wnested-externs] do { drmMsg("[E] " fmt " (%s:%d)\n", \ ^~~~~~ ../freedreno/msm/msm_pipe.c:73:3: note: in expansion of macro ‘ERROR_MSG’ ERROR_MSG("invalid param id: %d", param); ^~~~~~~~~ ../freedreno/msm/msm_pipe.c: In function ‘msm_pipe_wait’: ../freedreno/msm/msm_pipe.c:90:8: error: implicit declaration of function ‘drmCommandWrite’ [-Werror=implicit-function-declaration] ret = drmCommandWrite(dev->fd, DRM_MSM_WAIT_FENCE, &req, sizeof(req)); ^~~~~~~~~~~~~~~ ../freedreno/msm/msm_pipe.c:90:8: warning: nested extern declaration of ‘drmCommandWrite’ [-Wnested-externs] cc1: some warnings being treated as errors [44/130] cc -Inouveau/libdrm_nouveau.so.2.0.0.p -Inouveau -I../nouveau -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -pthread -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ nouveau/libdrm_nouveau.so.2.0.0.p/nouveau.c.o -MF nouveau/libdrm_nouveau.so.2.0.0.p/nouveau.c.o.d -o nouveau/libdrm_nouveau.so.2.0.0.p/nouveau.c.o -c ../nouveau/nouveau.c FAILED: nouveau/libdrm_nouveau.so.2.0.0.p/nouveau.c.o cc -Inouveau/libdrm_nouveau.so.2.0.0.p -Inouveau -I../nouveau -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -pthread -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ nouveau/libdrm_nouveau.so.2.0.0.p/nouveau.c.o -MF nouveau/libdrm_nouveau.so.2.0.0.p/nouveau.c.o.d -o nouveau/libdrm_nouveau.so.2.0.0.p/nouveau.c.o -c ../nouveau/nouveau.c In file included from ../nouveau/nouveau.c:35: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ In file included from ../nouveau/private.h:7, from ../nouveau/nouveau.c:42: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../nouveau/nouveau.c: In function ‘nouveau_object_ioctl’: ../nouveau/nouveau.c:104:9: error: implicit declaration of function ‘drmCommandWriteRead’ [-Werror=implicit-function-declaration] return drmCommandWriteRead(drm->fd, DRM_NOUVEAU_NVIF, args, argc); ^~~~~~~~~~~~~~~~~~~ ../nouveau/nouveau.c:104:9: warning: nested extern declaration of ‘drmCommandWriteRead’ [-Wnested-externs] ../nouveau/nouveau.c: In function ‘nouveau_drm_new’: ../nouveau/nouveau.c:352:14: error: implicit declaration of function ‘drmGetVersion’ [-Werror=implicit-function-declaration] if (!(ver = drmGetVersion(fd))) { ^~~~~~~~~~~~~ ../nouveau/nouveau.c:352:14: warning: nested extern declaration of ‘drmGetVersion’ [-Wnested-externs] ../nouveau/nouveau.c:352:12: warning: assignment to ‘drmVersionPtr’ {aka ‘struct _drmVersion *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] if (!(ver = drmGetVersion(fd))) { ^ ../nouveau/nouveau.c:362:2: error: implicit declaration of function ‘drmFreeVersion’ [-Werror=implicit-function-declaration] drmFreeVersion(ver); ^~~~~~~~~~~~~~ ../nouveau/nouveau.c:362:2: warning: nested extern declaration of ‘drmFreeVersion’ [-Wnested-externs] ../nouveau/nouveau.c: In function ‘nouveau_device_open’: ../nouveau/nouveau.c:502:26: error: implicit declaration of function ‘drmOpen’; did you mean ‘freopen’? [-Werror=implicit-function-declaration] int ret = -ENODEV, fd = drmOpen("nouveau", busid); ^~~~~~~ freopen ../nouveau/nouveau.c:502:26: warning: nested extern declaration of ‘drmOpen’ [-Wnested-externs] ../nouveau/nouveau.c:506:4: error: implicit declaration of function ‘drmClose’; did you mean ‘pclose’? [-Werror=implicit-function-declaration] drmClose(fd); ^~~~~~~~ pclose ../nouveau/nouveau.c:506:4: warning: nested extern declaration of ‘drmClose’ [-Wnested-externs] ../nouveau/nouveau.c: In function ‘nouveau_setparam’: ../nouveau/nouveau.c:546:9: error: implicit declaration of function ‘drmCommandWrite’ [-Werror=implicit-function-declaration] return drmCommandWrite(drm->fd, DRM_NOUVEAU_SETPARAM, &r, sizeof(r)); ^~~~~~~~~~~~~~~ ../nouveau/nouveau.c:546:9: warning: nested extern declaration of ‘drmCommandWrite’ [-Wnested-externs] ../nouveau/nouveau.c: In function ‘nouveau_bo_del’: ../nouveau/nouveau.c:623:4: error: implicit declaration of function ‘drmCloseBufferHandle’ [-Werror=implicit-function-declaration] drmCloseBufferHandle(drm->fd, bo->handle); ^~~~~~~~~~~~~~~~~~~~ ../nouveau/nouveau.c:623:4: warning: nested extern declaration of ‘drmCloseBufferHandle’ [-Wnested-externs] ../nouveau/nouveau.c: In function ‘nouveau_bo_prime_handle_ref’: ../nouveau/nouveau.c:814:8: error: implicit declaration of function ‘drmPrimeFDToHandle’ [-Werror=implicit-function-declaration] ret = drmPrimeFDToHandle(drm->fd, prime_fd, &handle); ^~~~~~~~~~~~~~~~~~ ../nouveau/nouveau.c:814:8: warning: nested extern declaration of ‘drmPrimeFDToHandle’ [-Wnested-externs] ../nouveau/nouveau.c: In function ‘nouveau_bo_set_prime’: ../nouveau/nouveau.c:829:8: error: implicit declaration of function ‘drmPrimeHandleToFD’ [-Werror=implicit-function-declaration] ret = drmPrimeHandleToFD(drm->fd, nvbo->base.handle, DRM_CLOEXEC, prime_fd); ^~~~~~~~~~~~~~~~~~ ../nouveau/nouveau.c:829:8: warning: nested extern declaration of ‘drmPrimeHandleToFD’ [-Wnested-externs] cc1: some warnings being treated as errors [45/130] cc -Iamdgpu/libdrm_amdgpu.so.1.0.0.p -Iamdgpu -I../amdgpu -I. -I.. -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers '-DAMDGPU_ASIC_ID_TABLE="/usr/share/libdrm/amdgpu.ids"' -MD -MQ amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_bo.c.o -MF amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_bo.c.o.d -o amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_bo.c.o -c ../amdgpu/amdgpu_bo.c FAILED: amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_bo.c.o cc -Iamdgpu/libdrm_amdgpu.so.1.0.0.p -Iamdgpu -I../amdgpu -I. -I.. -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers '-DAMDGPU_ASIC_ID_TABLE="/usr/share/libdrm/amdgpu.ids"' -MD -MQ amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_bo.c.o -MF amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_bo.c.o.d -o amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_bo.c.o -c ../amdgpu/amdgpu_bo.c In file included from ../amdgpu/amdgpu_bo.c:37: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../amdgpu/amdgpu_bo.c: In function ‘amdgpu_bo_alloc’: ../amdgpu/amdgpu_bo.c:86:6: error: implicit declaration of function ‘drmCommandWriteRead’ [-Werror=implicit-function-declaration] r = drmCommandWriteRead(dev->fd, DRM_AMDGPU_GEM_CREATE, ^~~~~~~~~~~~~~~~~~~ ../amdgpu/amdgpu_bo.c:86:6: warning: nested extern declaration of ‘drmCommandWriteRead’ [-Wnested-externs] ../amdgpu/amdgpu_bo.c:96:3: error: implicit declaration of function ‘drmCloseBufferHandle’ [-Werror=implicit-function-declaration] drmCloseBufferHandle(dev->fd, args.out.handle); ^~~~~~~~~~~~~~~~~~~~ ../amdgpu/amdgpu_bo.c:96:3: warning: nested extern declaration of ‘drmCloseBufferHandle’ [-Wnested-externs] ../amdgpu/amdgpu_bo.c: In function ‘amdgpu_bo_export_flink’: ../amdgpu/amdgpu_bo.c:191:7: error: implicit declaration of function ‘drmPrimeHandleToFD’ [-Werror=implicit-function-declaration] r = drmPrimeHandleToFD(bo->dev->fd, bo->handle, DRM_CLOEXEC, ^~~~~~~~~~~~~~~~~~ ../amdgpu/amdgpu_bo.c:191:7: warning: nested extern declaration of ‘drmPrimeHandleToFD’ [-Wnested-externs] ../amdgpu/amdgpu_bo.c:194:8: error: implicit declaration of function ‘drmPrimeFDToHandle’ [-Werror=implicit-function-declaration] r = drmPrimeFDToHandle(bo->dev->flink_fd, dma_fd, &handle); ^~~~~~~~~~~~~~~~~~ ../amdgpu/amdgpu_bo.c:194:8: warning: nested extern declaration of ‘drmPrimeFDToHandle’ [-Wnested-externs] cc1: some warnings being treated as errors [46/130] cc -Itests/radeon/radeon_ttm.p -Itests/radeon -I../tests/radeon -I. -I.. -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ tests/radeon/radeon_ttm.p/rbo.c.o -MF tests/radeon/radeon_ttm.p/rbo.c.o.d -o tests/radeon/radeon_ttm.p/rbo.c.o -c ../tests/radeon/rbo.c FAILED: tests/radeon/radeon_ttm.p/rbo.c.o cc -Itests/radeon/radeon_ttm.p -Itests/radeon -I../tests/radeon -I. -I.. -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ tests/radeon/radeon_ttm.p/rbo.c.o -MF tests/radeon/radeon_ttm.p/rbo.c.o.d -o tests/radeon/radeon_ttm.p/rbo.c.o -c ../tests/radeon/rbo.c In file included from ../tests/radeon/rbo.c:32: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../tests/radeon/rbo.c: In function ‘rbo’: ../tests/radeon/rbo.c:72:13: error: implicit declaration of function ‘drmCommandWriteRead’ [-Werror=implicit-function-declaration] r = drmCommandWriteRead(fd, DRM_RADEON_GEM_CREATE, ^~~~~~~~~~~~~~~~~~~ ../tests/radeon/rbo.c:72:13: warning: nested extern declaration of ‘drmCommandWriteRead’ [-Wnested-externs] cc1: some warnings being treated as errors [47/130] cc -Ifreedreno/libdrm_freedreno.so.1.0.0.p -Ifreedreno -I../freedreno -I. -I.. -I../include/drm -I/usr/include/valgrind -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_bo.c.o -MF freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_bo.c.o.d -o freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_bo.c.o -c ../freedreno/freedreno_bo.c FAILED: freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_bo.c.o cc -Ifreedreno/libdrm_freedreno.so.1.0.0.p -Ifreedreno -I../freedreno -I. -I.. -I../include/drm -I/usr/include/valgrind -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_bo.c.o -MF freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_bo.c.o.d -o freedreno/libdrm_freedreno.so.1.0.0.p/freedreno_bo.c.o -c ../freedreno/freedreno_bo.c In file included from ../freedreno/freedreno_drmif.h:32, from ../freedreno/freedreno_bo.c:29: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ In file included from ../freedreno/freedreno_priv.h:44, from ../freedreno/freedreno_bo.c:30: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../freedreno/freedreno_bo.c: In function ‘set_name’: ../freedreno/freedreno_bo.c:40:2: error: implicit declaration of function ‘drmHashInsert’ [-Werror=implicit-function-declaration] drmHashInsert(bo->dev->name_table, name, bo); ^~~~~~~~~~~~~ ../freedreno/freedreno_bo.c:40:2: warning: nested extern declaration of ‘drmHashInsert’ [-Wnested-externs] ../freedreno/freedreno_bo.c: In function ‘lookup_bo’: ../freedreno/freedreno_bo.c:47:7: error: implicit declaration of function ‘drmHashLookup’ [-Werror=implicit-function-declaration] if (!drmHashLookup(tbl, key, (void **)&bo)) { ^~~~~~~~~~~~~ ../freedreno/freedreno_bo.c:47:7: warning: nested extern declaration of ‘drmHashLookup’ [-Wnested-externs] ../freedreno/freedreno_bo.c:47:40: warning: dereferencing type-punned pointer might break strict-aliasing rules [-Wstrict-aliasing] if (!drmHashLookup(tbl, key, (void **)&bo)) { ^~~ ../freedreno/freedreno_bo.c: In function ‘bo_from_handle’: ../freedreno/freedreno_bo.c:65:3: error: implicit declaration of function ‘drmCloseBufferHandle’ [-Werror=implicit-function-declaration] drmCloseBufferHandle(dev->fd, handle); ^~~~~~~~~~~~~~~~~~~~ ../freedreno/freedreno_bo.c:65:3: warning: nested extern declaration of ‘drmCloseBufferHandle’ [-Wnested-externs] ../freedreno/freedreno_bo.c: In function ‘fd_bo_from_dmabuf’: ../freedreno/freedreno_bo.c:155:8: error: implicit declaration of function ‘drmPrimeFDToHandle’ [-Werror=implicit-function-declaration] ret = drmPrimeFDToHandle(dev->fd, fd, &handle); ^~~~~~~~~~~~~~~~~~ ../freedreno/freedreno_bo.c:155:8: warning: nested extern declaration of ‘drmPrimeFDToHandle’ [-Wnested-externs] In file included from ../freedreno/freedreno_bo.c:30: ../freedreno/freedreno_bo.c: In function ‘fd_bo_from_name’: ../freedreno/freedreno_priv.h:193:8: error: implicit declaration of function ‘drmMsg’ [-Werror=implicit-function-declaration] do { drmMsg("[E] " fmt " (%s:%d)\n", \ ^~~~~~ ../freedreno/freedreno_bo.c:194:3: note: in expansion of macro ‘ERROR_MSG’ ERROR_MSG("gem-open failed: %s", strerror(errno)); ^~~~~~~~~ ../freedreno/freedreno_priv.h:193:8: warning: nested extern declaration of ‘drmMsg’ [-Wnested-externs] do { drmMsg("[E] " fmt " (%s:%d)\n", \ ^~~~~~ ../freedreno/freedreno_bo.c:194:3: note: in expansion of macro ‘ERROR_MSG’ ERROR_MSG("gem-open failed: %s", strerror(errno)); ^~~~~~~~~ ../freedreno/freedreno_bo.c: In function ‘bo_del’: ../freedreno/freedreno_bo.c:263:3: error: implicit declaration of function ‘drmHashDelete’ [-Werror=implicit-function-declaration] drmHashDelete(bo->dev->handle_table, bo->handle); ^~~~~~~~~~~~~ ../freedreno/freedreno_bo.c:263:3: warning: nested extern declaration of ‘drmHashDelete’ [-Wnested-externs] ../freedreno/freedreno_bo.c: In function ‘fd_bo_dmabuf’: ../freedreno/freedreno_bo.c:305:8: error: implicit declaration of function ‘drmPrimeHandleToFD’ [-Werror=implicit-function-declaration] ret = drmPrimeHandleToFD(bo->dev->fd, bo->handle, DRM_CLOEXEC, ^~~~~~~~~~~~~~~~~~ ../freedreno/freedreno_bo.c:305:8: warning: nested extern declaration of ‘drmPrimeHandleToFD’ [-Wnested-externs] cc1: some warnings being treated as errors [48/130] cc -Itests/tegra/tegra-openclose.p -Itests/tegra -I../tests/tegra -I. -I.. -I../include/drm -Itegra -I../tegra -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ tests/tegra/tegra-openclose.p/openclose.c.o -MF tests/tegra/tegra-openclose.p/openclose.c.o.d -o tests/tegra/tegra-openclose.p/openclose.c.o -c ../tests/tegra/openclose.c FAILED: tests/tegra/tegra-openclose.p/openclose.c.o cc -Itests/tegra/tegra-openclose.p -Itests/tegra -I../tests/tegra -I. -I.. -I../include/drm -Itegra -I../tegra -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ tests/tegra/tegra-openclose.p/openclose.c.o -MF tests/tegra/tegra-openclose.p/openclose.c.o.d -o tests/tegra/tegra-openclose.p/openclose.c.o -c ../tests/tegra/openclose.c In file included from ../tests/tegra/openclose.c:27: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../tests/tegra/openclose.c: In function ‘main’: ../tests/tegra/openclose.c:48:15: error: implicit declaration of function ‘drmGetVersion’ [-Werror=implicit-function-declaration] version = drmGetVersion(fd); ^~~~~~~~~~~~~ ../tests/tegra/openclose.c:48:15: warning: nested extern declaration of ‘drmGetVersion’ [-Wnested-externs] ../tests/tegra/openclose.c:48:13: warning: assignment to ‘drmVersionPtr’ {aka ‘struct _drmVersion *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] version = drmGetVersion(fd); ^ ../tests/tegra/openclose.c:56:9: error: implicit declaration of function ‘drmFreeVersion’ [-Werror=implicit-function-declaration] drmFreeVersion(version); ^~~~~~~~~~~~~~ ../tests/tegra/openclose.c:56:9: warning: nested extern declaration of ‘drmFreeVersion’ [-Wnested-externs] cc1: some warnings being treated as errors [49/130] cc -Ietnaviv/libdrm_etnaviv.so.1.0.0.p -Ietnaviv -I../etnaviv -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_bo.c.o -MF etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_bo.c.o.d -o etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_bo.c.o -c ../etnaviv/etnaviv_bo.c FAILED: etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_bo.c.o cc -Ietnaviv/libdrm_etnaviv.so.1.0.0.p -Ietnaviv -I../etnaviv -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_bo.c.o -MF etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_bo.c.o.d -o etnaviv/libdrm_etnaviv.so.1.0.0.p/etnaviv_bo.c.o -c ../etnaviv/etnaviv_bo.c In file included from ../etnaviv/etnaviv_priv.h:42, from ../etnaviv/etnaviv_bo.c:27: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ In file included from ../etnaviv/etnaviv_drmif.h:30, from ../etnaviv/etnaviv_priv.h:47, from ../etnaviv/etnaviv_bo.c:27: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../etnaviv/etnaviv_bo.c: In function ‘set_name’: ../etnaviv/etnaviv_bo.c:38:2: error: implicit declaration of function ‘drmHashInsert’ [-Werror=implicit-function-declaration] drmHashInsert(bo->dev->name_table, name, bo); ^~~~~~~~~~~~~ ../etnaviv/etnaviv_bo.c:38:2: warning: nested extern declaration of ‘drmHashInsert’ [-Wnested-externs] ../etnaviv/etnaviv_bo.c: In function ‘bo_del’: ../etnaviv/etnaviv_bo.c:48:3: error: implicit declaration of function ‘drmHashDelete’ [-Werror=implicit-function-declaration] drmHashDelete(bo->dev->name_table, bo->name); ^~~~~~~~~~~~~ ../etnaviv/etnaviv_bo.c:48:3: warning: nested extern declaration of ‘drmHashDelete’ [-Wnested-externs] ../etnaviv/etnaviv_bo.c:52:3: error: implicit declaration of function ‘drmCloseBufferHandle’ [-Werror=implicit-function-declaration] drmCloseBufferHandle(bo->dev->fd, bo->handle); ^~~~~~~~~~~~~~~~~~~~ ../etnaviv/etnaviv_bo.c:52:3: warning: nested extern declaration of ‘drmCloseBufferHandle’ [-Wnested-externs] ../etnaviv/etnaviv_bo.c: In function ‘lookup_bo’: ../etnaviv/etnaviv_bo.c:63:7: error: implicit declaration of function ‘drmHashLookup’ [-Werror=implicit-function-declaration] if (!drmHashLookup(tbl, handle, (void **)&bo)) { ^~~~~~~~~~~~~ ../etnaviv/etnaviv_bo.c:63:7: warning: nested extern declaration of ‘drmHashLookup’ [-Wnested-externs] ../etnaviv/etnaviv_bo.c:63:43: warning: dereferencing type-punned pointer might break strict-aliasing rules [-Wstrict-aliasing] if (!drmHashLookup(tbl, handle, (void **)&bo)) { ^~~ ../etnaviv/etnaviv_bo.c: In function ‘etna_bo_new’: ../etnaviv/etnaviv_bo.c:112:8: error: implicit declaration of function ‘drmCommandWriteRead’ [-Werror=implicit-function-declaration] ret = drmCommandWriteRead(dev->fd, DRM_ETNAVIV_GEM_NEW, ^~~~~~~~~~~~~~~~~~~ ../etnaviv/etnaviv_bo.c:112:8: warning: nested extern declaration of ‘drmCommandWriteRead’ [-Wnested-externs] In file included from ../etnaviv/etnaviv_bo.c:27: ../etnaviv/etnaviv_bo.c: In function ‘etna_bo_from_name’: ../etnaviv/etnaviv_priv.h:194:8: error: implicit declaration of function ‘drmMsg’ [-Werror=implicit-function-declaration] do { drmMsg("[E] " fmt " (%s:%d)\n", \ ^~~~~~ ../etnaviv/etnaviv_bo.c:169:3: note: in expansion of macro ‘ERROR_MSG’ ERROR_MSG("gem-open failed: %s", strerror(errno)); ^~~~~~~~~ ../etnaviv/etnaviv_priv.h:194:8: warning: nested extern declaration of ‘drmMsg’ [-Wnested-externs] do { drmMsg("[E] " fmt " (%s:%d)\n", \ ^~~~~~ ../etnaviv/etnaviv_bo.c:169:3: note: in expansion of macro ‘ERROR_MSG’ ERROR_MSG("gem-open failed: %s", strerror(errno)); ^~~~~~~~~ ../etnaviv/etnaviv_bo.c: In function ‘etna_bo_from_dmabuf’: ../etnaviv/etnaviv_bo.c:203:8: error: implicit declaration of function ‘drmPrimeFDToHandle’ [-Werror=implicit-function-declaration] ret = drmPrimeFDToHandle(dev->fd, fd, &handle); ^~~~~~~~~~~~~~~~~~ ../etnaviv/etnaviv_bo.c:203:8: warning: nested extern declaration of ‘drmPrimeFDToHandle’ [-Wnested-externs] ../etnaviv/etnaviv_bo.c: In function ‘etna_bo_dmabuf’: ../etnaviv/etnaviv_bo.c:284:8: error: implicit declaration of function ‘drmPrimeHandleToFD’ [-Werror=implicit-function-declaration] ret = drmPrimeHandleToFD(bo->dev->fd, bo->handle, DRM_CLOEXEC, ^~~~~~~~~~~~~~~~~~ ../etnaviv/etnaviv_bo.c:284:8: warning: nested extern declaration of ‘drmPrimeHandleToFD’ [-Wnested-externs] ../etnaviv/etnaviv_bo.c: In function ‘etna_bo_cpu_prep’: ../etnaviv/etnaviv_bo.c:328:9: error: implicit declaration of function ‘drmCommandWrite’ [-Werror=implicit-function-declaration] return drmCommandWrite(bo->dev->fd, DRM_ETNAVIV_GEM_CPU_PREP, ^~~~~~~~~~~~~~~ ../etnaviv/etnaviv_bo.c:328:9: warning: nested extern declaration of ‘drmCommandWrite’ [-Wnested-externs] cc1: some warnings being treated as errors [50/130] cc -Ifreedreno/libdrm_freedreno.so.1.0.0.p -Ifreedreno -I../freedreno -I. -I.. -I../include/drm -I/usr/include/valgrind -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ freedreno/libdrm_freedreno.so.1.0.0.p/msm_msm_ringbuffer.c.o -MF freedreno/libdrm_freedreno.so.1.0.0.p/msm_msm_ringbuffer.c.o.d -o freedreno/libdrm_freedreno.so.1.0.0.p/msm_msm_ringbuffer.c.o -c ../freedreno/msm/msm_ringbuffer.c FAILED: freedreno/libdrm_freedreno.so.1.0.0.p/msm_msm_ringbuffer.c.o cc -Ifreedreno/libdrm_freedreno.so.1.0.0.p -Ifreedreno -I../freedreno -I. -I.. -I../include/drm -I/usr/include/valgrind -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ freedreno/libdrm_freedreno.so.1.0.0.p/msm_msm_ringbuffer.c.o -MF freedreno/libdrm_freedreno.so.1.0.0.p/msm_msm_ringbuffer.c.o.d -o freedreno/libdrm_freedreno.so.1.0.0.p/msm_msm_ringbuffer.c.o -c ../freedreno/msm/msm_ringbuffer.c In file included from ../freedreno/freedreno_drmif.h:32, from ../freedreno/freedreno_ringbuffer.h:32, from ../freedreno/msm/msm_ringbuffer.c:33: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ In file included from ../freedreno/freedreno_priv.h:44, from ../freedreno/msm/msm_priv.h:32, from ../freedreno/msm/msm_ringbuffer.c:34: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../freedreno/msm/msm_ringbuffer.c: In function ‘bo2idx’: ../freedreno/msm/msm_ringbuffer.c:231:25: error: implicit declaration of function ‘drmHashCreate’ [-Werror=implicit-function-declaration] msm_ring->bo_table = drmHashCreate(); ^~~~~~~~~~~~~ ../freedreno/msm/msm_ringbuffer.c:231:25: warning: nested extern declaration of ‘drmHashCreate’ [-Wnested-externs] ../freedreno/msm/msm_ringbuffer.c:231:23: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] msm_ring->bo_table = drmHashCreate(); ^ ../freedreno/msm/msm_ringbuffer.c:233:8: error: implicit declaration of function ‘drmHashLookup’ [-Werror=implicit-function-declaration] if (!drmHashLookup(msm_ring->bo_table, bo->handle, &val)) { ^~~~~~~~~~~~~ ../freedreno/msm/msm_ringbuffer.c:233:8: warning: nested extern declaration of ‘drmHashLookup’ [-Wnested-externs] ../freedreno/msm/msm_ringbuffer.c:239:4: error: implicit declaration of function ‘drmHashInsert’ [-Werror=implicit-function-declaration] drmHashInsert(msm_ring->bo_table, bo->handle, val); ^~~~~~~~~~~~~ ../freedreno/msm/msm_ringbuffer.c:239:4: warning: nested extern declaration of ‘drmHashInsert’ [-Wnested-externs] ../freedreno/msm/msm_ringbuffer.c: In function ‘get_cmd’: ../freedreno/msm/msm_ringbuffer.c:267:23: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] msm_ring->cmd_table = drmHashCreate(); ^ ../freedreno/msm/msm_ringbuffer.c: In function ‘flush_reset’: ../freedreno/msm/msm_ringbuffer.c:359:3: error: implicit declaration of function ‘drmHashDestroy’ [-Werror=implicit-function-declaration] drmHashDestroy(msm_ring->bo_table); ^~~~~~~~~~~~~~ ../freedreno/msm/msm_ringbuffer.c:359:3: warning: nested extern declaration of ‘drmHashDestroy’ [-Wnested-externs] In file included from ../freedreno/msm/msm_priv.h:32, from ../freedreno/msm/msm_ringbuffer.c:34: ../freedreno/msm/msm_ringbuffer.c: In function ‘dump_submit’: ../freedreno/freedreno_priv.h:193:8: error: implicit declaration of function ‘drmMsg’ [-Werror=implicit-function-declaration] do { drmMsg("[E] " fmt " (%s:%d)\n", \ ^~~~~~ ../freedreno/msm/msm_ringbuffer.c:401:3: note: in expansion of macro ‘ERROR_MSG’ ERROR_MSG(" bos[%d]: handle=%u, flags=%x", i, bo->handle, bo->flags); ^~~~~~~~~ ../freedreno/freedreno_priv.h:193:8: warning: nested extern declaration of ‘drmMsg’ [-Wnested-externs] do { drmMsg("[E] " fmt " (%s:%d)\n", \ ^~~~~~ ../freedreno/msm/msm_ringbuffer.c:401:3: note: in expansion of macro ‘ERROR_MSG’ ERROR_MSG(" bos[%d]: handle=%u, flags=%x", i, bo->handle, bo->flags); ^~~~~~~~~ ../freedreno/msm/msm_ringbuffer.c: In function ‘msm_ringbuffer_flush’: ../freedreno/msm/msm_ringbuffer.c:516:8: error: implicit declaration of function ‘drmCommandWriteRead’ [-Werror=implicit-function-declaration] ret = drmCommandWriteRead(ring->pipe->dev->fd, DRM_MSM_GEM_SUBMIT, ^~~~~~~~~~~~~~~~~~~ ../freedreno/msm/msm_ringbuffer.c:516:8: warning: nested extern declaration of ‘drmCommandWriteRead’ [-Wnested-externs] cc1: some warnings being treated as errors [51/130] cc -Itests/tegra/tegra-gr2d-fill.p -Itests/tegra -I../tests/tegra -I. -I.. -I../include/drm -Itegra -I../tegra -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ tests/tegra/tegra-gr2d-fill.p/gr2d-fill.c.o -MF tests/tegra/tegra-gr2d-fill.p/gr2d-fill.c.o.d -o tests/tegra/tegra-gr2d-fill.p/gr2d-fill.c.o -c ../tests/tegra/gr2d-fill.c FAILED: tests/tegra/tegra-gr2d-fill.p/gr2d-fill.c.o cc -Itests/tegra/tegra-gr2d-fill.p -Itests/tegra -I../tests/tegra -I. -I.. -I../include/drm -Itegra -I../tegra -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ tests/tegra/tegra-gr2d-fill.p/gr2d-fill.c.o -MF tests/tegra/tegra-gr2d-fill.p/gr2d-fill.c.o.d -o tests/tegra/tegra-gr2d-fill.p/gr2d-fill.c.o -c ../tests/tegra/gr2d-fill.c In file included from ../tests/tegra/gr2d-fill.c:38: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ [52/130] cc -Itests/amdgpu/amdgpu_stress.p -Itests/amdgpu -I../tests/amdgpu -I. -I.. -I../include/drm -Iamdgpu -I../amdgpu -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -pthread -MD -MQ tests/amdgpu/amdgpu_stress.p/amdgpu_stress.c.o -MF tests/amdgpu/amdgpu_stress.p/amdgpu_stress.c.o.d -o tests/amdgpu/amdgpu_stress.p/amdgpu_stress.c.o -c ../tests/amdgpu/amdgpu_stress.c FAILED: tests/amdgpu/amdgpu_stress.p/amdgpu_stress.c.o cc -Itests/amdgpu/amdgpu_stress.p -Itests/amdgpu -I../tests/amdgpu -I. -I.. -I../include/drm -Iamdgpu -I../amdgpu -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -pthread -MD -MQ tests/amdgpu/amdgpu_stress.p/amdgpu_stress.c.o -MF tests/amdgpu/amdgpu_stress.p/amdgpu_stress.c.o.d -o tests/amdgpu/amdgpu_stress.p/amdgpu_stress.c.o -c ../tests/amdgpu/amdgpu_stress.c In file included from ../tests/amdgpu/amdgpu_stress.c:36: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../tests/amdgpu/amdgpu_stress.c: In function ‘amdgpu_open_device’: ../tests/amdgpu/amdgpu_stress.c:81:2: error: unknown type name ‘drmDevicePtr’; did you mean ‘drmRegionPtr’? drmDevicePtr devices[MAX_CARDS_SUPPORTED]; ^~~~~~~~~~~~ drmRegionPtr ../tests/amdgpu/amdgpu_stress.c:85:14: warning: implicit declaration of function ‘drmGetDevices2’ [-Wimplicit-function-declaration] drm_count = drmGetDevices2(0, devices, MAX_CARDS_SUPPORTED); ^~~~~~~~~~~~~~ ../tests/amdgpu/amdgpu_stress.c:97:17: error: invalid type argument of ‘->’ (have ‘int’) if (devices[i]->bustype != DRM_BUS_PCI) ^~ ../tests/amdgpu/amdgpu_stress.c:97:30: error: ‘DRM_BUS_PCI’ undeclared (first use in this function); did you mean ‘DRM_DMA_WAIT’? if (devices[i]->bustype != DRM_BUS_PCI) ^~~~~~~~~~~ DRM_DMA_WAIT ../tests/amdgpu/amdgpu_stress.c:97:30: note: each undeclared identifier is reported only once for each function it appears in ../tests/amdgpu/amdgpu_stress.c:101:17: error: invalid type argument of ‘->’ (have ‘int’) if (devices[i]->deviceinfo.pci->vendor_id != 0x1002) ^~ ../tests/amdgpu/amdgpu_stress.c:104:19: error: invalid type argument of ‘->’ (have ‘int’) if (!(devices[i]->available_nodes & 1 << DRM_NODE_RENDER)) ^~ ../tests/amdgpu/amdgpu_stress.c:104:44: error: ‘DRM_NODE_RENDER’ undeclared (first use in this function); did you mean ‘DRM_LOCK_READY’? if (!(devices[i]->available_nodes & 1 << DRM_NODE_RENDER)) ^~~~~~~~~~~~~~~ DRM_LOCK_READY ../tests/amdgpu/amdgpu_stress.c:107:23: error: invalid type argument of ‘->’ (have ‘int’) fd = open(devices[i]->nodes[DRM_NODE_RENDER], O_RDWR | O_CLOEXEC); ^~ ../tests/amdgpu/amdgpu_stress.c:112:13: warning: implicit declaration of function ‘drmGetVersion’ [-Wimplicit-function-declaration] version = drmGetVersion(fd); ^~~~~~~~~~~~~ ../tests/amdgpu/amdgpu_stress.c:112:11: warning: assignment to ‘drmVersionPtr’ {aka ‘struct _drmVersion *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] version = drmGetVersion(fd); ^ ../tests/amdgpu/amdgpu_stress.c:117:15: error: invalid type argument of ‘->’ (have ‘int’) devices[i]->nodes[DRM_NODE_RENDER], ^~ ../tests/amdgpu/amdgpu_stress.c:125:4: warning: implicit declaration of function ‘drmFreeVersion’ [-Wimplicit-function-declaration] drmFreeVersion(version); ^~~~~~~~~~~~~~ ../tests/amdgpu/amdgpu_stress.c:131:3: warning: implicit declaration of function ‘drmFreeDevices’ [-Wimplicit-function-declaration] drmFreeDevices(devices, drm_count); ^~~~~~~~~~~~~~ [53/130] cc -Itegra/libdrm_tegra.so.0.0.0.p -Itegra -I../tegra -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ tegra/libdrm_tegra.so.0.0.0.p/channel.c.o -MF tegra/libdrm_tegra.so.0.0.0.p/channel.c.o.d -o tegra/libdrm_tegra.so.0.0.0.p/channel.c.o -c ../tegra/channel.c [54/130] cc -Itests/tegra/libdrm-test-tegra.a.p -Itests/tegra -I../tests/tegra -I. -I.. -I../include/drm -Itegra -I../tegra -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -MD -MQ tests/tegra/libdrm-test-tegra.a.p/drm-test-tegra.c.o -MF tests/tegra/libdrm-test-tegra.a.p/drm-test-tegra.c.o.d -o tests/tegra/libdrm-test-tegra.a.p/drm-test-tegra.c.o -c ../tests/tegra/drm-test-tegra.c [55/130] cc -Itests/etnaviv/etnaviv_cmd_stream_test.p -Itests/etnaviv -I../tests/etnaviv -I. -I.. -I../include/drm -Ietnaviv -I../etnaviv -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -MD -MQ tests/etnaviv/etnaviv_cmd_stream_test.p/etnaviv_cmd_stream_test.c.o -MF tests/etnaviv/etnaviv_cmd_stream_test.p/etnaviv_cmd_stream_test.c.o.d -o tests/etnaviv/etnaviv_cmd_stream_test.p/etnaviv_cmd_stream_test.c.o -c ../tests/etnaviv/etnaviv_cmd_stream_test.c FAILED: tests/etnaviv/etnaviv_cmd_stream_test.p/etnaviv_cmd_stream_test.c.o cc -Itests/etnaviv/etnaviv_cmd_stream_test.p -Itests/etnaviv -I../tests/etnaviv -I. -I.. -I../include/drm -Ietnaviv -I../etnaviv -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -MD -MQ tests/etnaviv/etnaviv_cmd_stream_test.p/etnaviv_cmd_stream_test.c.o -MF tests/etnaviv/etnaviv_cmd_stream_test.p/etnaviv_cmd_stream_test.c.o.d -o tests/etnaviv/etnaviv_cmd_stream_test.p/etnaviv_cmd_stream_test.c.o -c ../tests/etnaviv/etnaviv_cmd_stream_test.c In file included from ../etnaviv/etnaviv_drmif.h:30, from ../tests/etnaviv/etnaviv_cmd_stream_test.c:32: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ [56/130] cc -Iamdgpu/libdrm_amdgpu.so.1.0.0.p -Iamdgpu -I../amdgpu -I. -I.. -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers '-DAMDGPU_ASIC_ID_TABLE="/usr/share/libdrm/amdgpu.ids"' -MD -MQ amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_cs.c.o -MF amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_cs.c.o.d -o amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_cs.c.o -c ../amdgpu/amdgpu_cs.c FAILED: amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_cs.c.o cc -Iamdgpu/libdrm_amdgpu.so.1.0.0.p -Iamdgpu -I../amdgpu -I. -I.. -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers '-DAMDGPU_ASIC_ID_TABLE="/usr/share/libdrm/amdgpu.ids"' -MD -MQ amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_cs.c.o -MF amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_cs.c.o.d -o amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_cs.c.o -c ../amdgpu/amdgpu_cs.c In file included from ../amdgpu/amdgpu_cs.c:35: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../amdgpu/amdgpu_cs.c: In function ‘amdgpu_cs_ctx_create2’: ../amdgpu/amdgpu_cs.c:78:6: error: implicit declaration of function ‘drmCommandWriteRead’ [-Werror=implicit-function-declaration] r = drmCommandWriteRead(dev->fd, DRM_AMDGPU_CTX, &args, sizeof(args)); ^~~~~~~~~~~~~~~~~~~ ../amdgpu/amdgpu_cs.c:78:6: warning: nested extern declaration of ‘drmCommandWriteRead’ [-Wnested-externs] ../amdgpu/amdgpu_cs.c: In function ‘amdgpu_cs_ctx_override_priority’: ../amdgpu/amdgpu_cs.c:163:6: error: implicit declaration of function ‘drmCommandWrite’ [-Werror=implicit-function-declaration] r = drmCommandWrite(master_fd, DRM_AMDGPU_SCHED, &args, sizeof(args)); ^~~~~~~~~~~~~~~ ../amdgpu/amdgpu_cs.c:163:6: warning: nested extern declaration of ‘drmCommandWrite’ [-Wnested-externs] ../amdgpu/amdgpu_cs.c: In function ‘amdgpu_cs_create_syncobj2’: ../amdgpu/amdgpu_cs.c:667:9: error: implicit declaration of function ‘drmSyncobjCreate’ [-Werror=implicit-function-declaration] return drmSyncobjCreate(dev->fd, flags, handle); ^~~~~~~~~~~~~~~~ ../amdgpu/amdgpu_cs.c:667:9: warning: nested extern declaration of ‘drmSyncobjCreate’ [-Wnested-externs] ../amdgpu/amdgpu_cs.c: In function ‘amdgpu_cs_destroy_syncobj’: ../amdgpu/amdgpu_cs.c:685:9: error: implicit declaration of function ‘drmSyncobjDestroy’ [-Werror=implicit-function-declaration] return drmSyncobjDestroy(dev->fd, handle); ^~~~~~~~~~~~~~~~~ ../amdgpu/amdgpu_cs.c:685:9: warning: nested extern declaration of ‘drmSyncobjDestroy’ [-Wnested-externs] ../amdgpu/amdgpu_cs.c: In function ‘amdgpu_cs_syncobj_reset’: ../amdgpu/amdgpu_cs.c:695:9: error: implicit declaration of function ‘drmSyncobjReset’ [-Werror=implicit-function-declaration] return drmSyncobjReset(dev->fd, syncobjs, syncobj_count); ^~~~~~~~~~~~~~~ ../amdgpu/amdgpu_cs.c:695:9: warning: nested extern declaration of ‘drmSyncobjReset’ [-Wnested-externs] ../amdgpu/amdgpu_cs.c: In function ‘amdgpu_cs_syncobj_signal’: ../amdgpu/amdgpu_cs.c:705:9: error: implicit declaration of function ‘drmSyncobjSignal’ [-Werror=implicit-function-declaration] return drmSyncobjSignal(dev->fd, syncobjs, syncobj_count); ^~~~~~~~~~~~~~~~ ../amdgpu/amdgpu_cs.c:705:9: warning: nested extern declaration of ‘drmSyncobjSignal’ [-Wnested-externs] ../amdgpu/amdgpu_cs.c: In function ‘amdgpu_cs_syncobj_timeline_signal’: ../amdgpu/amdgpu_cs.c:716:9: error: implicit declaration of function ‘drmSyncobjTimelineSignal’; did you mean ‘amdgpu_cs_syncobj_timeline_signal’? [-Werror=implicit-function-declaration] return drmSyncobjTimelineSignal(dev->fd, syncobjs, ^~~~~~~~~~~~~~~~~~~~~~~~ amdgpu_cs_syncobj_timeline_signal ../amdgpu/amdgpu_cs.c:716:9: warning: nested extern declaration of ‘drmSyncobjTimelineSignal’ [-Wnested-externs] ../amdgpu/amdgpu_cs.c: In function ‘amdgpu_cs_syncobj_wait’: ../amdgpu/amdgpu_cs.c:728:9: error: implicit declaration of function ‘drmSyncobjWait’ [-Werror=implicit-function-declaration] return drmSyncobjWait(dev->fd, handles, num_handles, timeout_nsec, ^~~~~~~~~~~~~~ ../amdgpu/amdgpu_cs.c:728:9: warning: nested extern declaration of ‘drmSyncobjWait’ [-Wnested-externs] ../amdgpu/amdgpu_cs.c: In function ‘amdgpu_cs_syncobj_timeline_wait’: ../amdgpu/amdgpu_cs.c:741:9: error: implicit declaration of function ‘drmSyncobjTimelineWait’; did you mean ‘amdgpu_cs_syncobj_timeline_wait’? [-Werror=implicit-function-declaration] return drmSyncobjTimelineWait(dev->fd, handles, points, num_handles, ^~~~~~~~~~~~~~~~~~~~~~ amdgpu_cs_syncobj_timeline_wait ../amdgpu/amdgpu_cs.c:741:9: warning: nested extern declaration of ‘drmSyncobjTimelineWait’ [-Wnested-externs] ../amdgpu/amdgpu_cs.c: In function ‘amdgpu_cs_syncobj_query’: ../amdgpu/amdgpu_cs.c:752:9: error: implicit declaration of function ‘drmSyncobjQuery’ [-Werror=implicit-function-declaration] return drmSyncobjQuery(dev->fd, handles, points, num_handles); ^~~~~~~~~~~~~~~ ../amdgpu/amdgpu_cs.c:752:9: warning: nested extern declaration of ‘drmSyncobjQuery’ [-Wnested-externs] ../amdgpu/amdgpu_cs.c: In function ‘amdgpu_cs_syncobj_query2’: ../amdgpu/amdgpu_cs.c:762:9: error: implicit declaration of function ‘drmSyncobjQuery2’ [-Werror=implicit-function-declaration] return drmSyncobjQuery2(dev->fd, handles, points, num_handles, flags); ^~~~~~~~~~~~~~~~ ../amdgpu/amdgpu_cs.c:762:9: warning: nested extern declaration of ‘drmSyncobjQuery2’ [-Wnested-externs] ../amdgpu/amdgpu_cs.c: In function ‘amdgpu_cs_export_syncobj’: ../amdgpu/amdgpu_cs.c:772:9: error: implicit declaration of function ‘drmSyncobjHandleToFD’ [-Werror=implicit-function-declaration] return drmSyncobjHandleToFD(dev->fd, handle, shared_fd); ^~~~~~~~~~~~~~~~~~~~ ../amdgpu/amdgpu_cs.c:772:9: warning: nested extern declaration of ‘drmSyncobjHandleToFD’ [-Wnested-externs] ../amdgpu/amdgpu_cs.c: In function ‘amdgpu_cs_import_syncobj’: ../amdgpu/amdgpu_cs.c:782:9: error: implicit declaration of function ‘drmSyncobjFDToHandle’ [-Werror=implicit-function-declaration] return drmSyncobjFDToHandle(dev->fd, shared_fd, handle); ^~~~~~~~~~~~~~~~~~~~ ../amdgpu/amdgpu_cs.c:782:9: warning: nested extern declaration of ‘drmSyncobjFDToHandle’ [-Wnested-externs] ../amdgpu/amdgpu_cs.c: In function ‘amdgpu_cs_syncobj_export_sync_file’: ../amdgpu/amdgpu_cs.c:792:9: error: implicit declaration of function ‘drmSyncobjExportSyncFile’; did you mean ‘amdgpu_cs_syncobj_export_sync_file’? [-Werror=implicit-function-declaration] return drmSyncobjExportSyncFile(dev->fd, syncobj, sync_file_fd); ^~~~~~~~~~~~~~~~~~~~~~~~ amdgpu_cs_syncobj_export_sync_file ../amdgpu/amdgpu_cs.c:792:9: warning: nested extern declaration of ‘drmSyncobjExportSyncFile’ [-Wnested-externs] ../amdgpu/amdgpu_cs.c: In function ‘amdgpu_cs_syncobj_import_sync_file’: ../amdgpu/amdgpu_cs.c:802:9: error: implicit declaration of function ‘drmSyncobjImportSyncFile’; did you mean ‘amdgpu_cs_syncobj_import_sync_file’? [-Werror=implicit-function-declaration] return drmSyncobjImportSyncFile(dev->fd, syncobj, sync_file_fd); ^~~~~~~~~~~~~~~~~~~~~~~~ amdgpu_cs_syncobj_import_sync_file ../amdgpu/amdgpu_cs.c:802:9: warning: nested extern declaration of ‘drmSyncobjImportSyncFile’ [-Wnested-externs] ../amdgpu/amdgpu_cs.c: In function ‘amdgpu_cs_syncobj_export_sync_file2’: ../amdgpu/amdgpu_cs.c:824:8: error: implicit declaration of function ‘drmSyncobjTransfer’; did you mean ‘amdgpu_cs_syncobj_transfer’? [-Werror=implicit-function-declaration] ret = drmSyncobjTransfer(dev->fd, binary_handle, 0, ^~~~~~~~~~~~~~~~~~ amdgpu_cs_syncobj_transfer ../amdgpu/amdgpu_cs.c:824:8: warning: nested extern declaration of ‘drmSyncobjTransfer’ [-Wnested-externs] cc1: some warnings being treated as errors [57/130] cc -Itegra/libdrm_tegra.so.0.0.0.p -Itegra -I../tegra -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ tegra/libdrm_tegra.so.0.0.0.p/job.c.o -MF tegra/libdrm_tegra.so.0.0.0.p/job.c.o.d -o tegra/libdrm_tegra.so.0.0.0.p/job.c.o -c ../tegra/job.c [58/130] cc -Itests/tegra/libdrm-test-tegra.a.p -Itests/tegra -I../tests/tegra -I. -I.. -I../include/drm -Itegra -I../tegra -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -MD -MQ tests/tegra/libdrm-test-tegra.a.p/vic.c.o -MF tests/tegra/libdrm-test-tegra.a.p/vic.c.o.d -o tests/tegra/libdrm-test-tegra.a.p/vic.c.o -c ../tests/tegra/vic.c [59/130] cc -Itests/etnaviv/etnaviv_2d_test.p -Itests/etnaviv -I../tests/etnaviv -I. -I.. -I../include/drm -Ietnaviv -I../etnaviv -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -MD -MQ tests/etnaviv/etnaviv_2d_test.p/etnaviv_2d_test.c.o -MF tests/etnaviv/etnaviv_2d_test.p/etnaviv_2d_test.c.o.d -o tests/etnaviv/etnaviv_2d_test.p/etnaviv_2d_test.c.o -c ../tests/etnaviv/etnaviv_2d_test.c FAILED: tests/etnaviv/etnaviv_2d_test.p/etnaviv_2d_test.c.o cc -Itests/etnaviv/etnaviv_2d_test.p -Itests/etnaviv -I../tests/etnaviv -I. -I.. -I../include/drm -Ietnaviv -I../etnaviv -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -MD -MQ tests/etnaviv/etnaviv_2d_test.p/etnaviv_2d_test.c.o -MF tests/etnaviv/etnaviv_2d_test.p/etnaviv_2d_test.c.o.d -o tests/etnaviv/etnaviv_2d_test.p/etnaviv_2d_test.c.o -c ../tests/etnaviv/etnaviv_2d_test.c In file included from ../tests/etnaviv/etnaviv_2d_test.c:32: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ In file included from ../etnaviv/etnaviv_drmif.h:30, from ../tests/etnaviv/etnaviv_2d_test.c:33: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../tests/etnaviv/etnaviv_2d_test.c: In function ‘main’: ../tests/etnaviv/etnaviv_2d_test.c:199:12: warning: implicit declaration of function ‘drmGetVersion’ [-Wimplicit-function-declaration] version = drmGetVersion(fd); ^~~~~~~~~~~~~ ../tests/etnaviv/etnaviv_2d_test.c:199:10: warning: assignment to ‘drmVersionPtr’ {aka ‘struct _drmVersion *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] version = drmGetVersion(fd); ^ ../tests/etnaviv/etnaviv_2d_test.c:206:3: warning: implicit declaration of function ‘drmFreeVersion’ [-Wimplicit-function-declaration] drmFreeVersion(version); ^~~~~~~~~~~~~~ [60/130] cc -Itegra/libdrm_tegra.so.0.0.0.p -Itegra -I../tegra -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ tegra/libdrm_tegra.so.0.0.0.p/pushbuf.c.o -MF tegra/libdrm_tegra.so.0.0.0.p/pushbuf.c.o.d -o tegra/libdrm_tegra.so.0.0.0.p/pushbuf.c.o -c ../tegra/pushbuf.c [61/130] cc -Itests/tegra/tegra-syncpt-timeout.p -Itests/tegra -I../tests/tegra -I. -I.. -I../include/drm -Itegra -I../tegra -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ tests/tegra/tegra-syncpt-timeout.p/syncpt-timeout.c.o -MF tests/tegra/tegra-syncpt-timeout.p/syncpt-timeout.c.o.d -o tests/tegra/tegra-syncpt-timeout.p/syncpt-timeout.c.o -c ../tests/tegra/syncpt-timeout.c [62/130] cc -Itests/modetest/modetest.p -Itests/modetest -I../tests/modetest -I. -I.. -Itests -I../tests -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -pthread -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -Wno-pointer-arith -MD -MQ tests/modetest/modetest.p/modetest.c.o -MF tests/modetest/modetest.p/modetest.c.o.d -o tests/modetest/modetest.p/modetest.c.o -c ../tests/modetest/modetest.c FAILED: tests/modetest/modetest.p/modetest.c.o cc -Itests/modetest/modetest.p -Itests/modetest -I../tests/modetest -I. -I.. -Itests -I../tests -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -pthread -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -Wno-pointer-arith -MD -MQ tests/modetest/modetest.p/modetest.c.o -MF tests/modetest/modetest.p/modetest.c.o.d -o tests/modetest/modetest.p/modetest.c.o -c ../tests/modetest/modetest.c In file included from ../tests/modetest/modetest.c:59: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../tests/modetest/modetest.c: In function ‘dump_fourcc’: ../tests/modetest/modetest.c:190:15: error: implicit declaration of function ‘drmGetFormatName’ [-Werror=implicit-function-declaration] char *name = drmGetFormatName(fourcc); ^~~~~~~~~~~~~~~~ ../tests/modetest/modetest.c:190:15: warning: nested extern declaration of ‘drmGetFormatName’ [-Wnested-externs] ../tests/modetest/modetest.c:190:15: warning: initialization of ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] ../tests/modetest/modetest.c: In function ‘modifier_to_string’: ../tests/modetest/modetest.c:268:24: error: implicit declaration of function ‘drmGetFormatModifierName’ [-Werror=implicit-function-declaration] char *modifier_name = drmGetFormatModifierName(modifier); ^~~~~~~~~~~~~~~~~~~~~~~~ ../tests/modetest/modetest.c:268:24: warning: nested extern declaration of ‘drmGetFormatModifierName’ [-Wnested-externs] ../tests/modetest/modetest.c:268:24: warning: initialization of ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] ../tests/modetest/modetest.c:269:22: error: implicit declaration of function ‘drmGetFormatModifierVendor’; did you mean ‘drmModeFormatModifierBlobIterNext’? [-Werror=implicit-function-declaration] char *vendor_name = drmGetFormatModifierVendor(modifier); ^~~~~~~~~~~~~~~~~~~~~~~~~~ drmModeFormatModifierBlobIterNext ../tests/modetest/modetest.c:269:22: warning: nested extern declaration of ‘drmGetFormatModifierVendor’ [-Wnested-externs] ../tests/modetest/modetest.c:269:22: warning: initialization of ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] ../tests/modetest/modetest.c: In function ‘get_resources’: ../tests/modetest/modetest.c:605:2: error: implicit declaration of function ‘drmSetClientCap’ [-Werror=implicit-function-declaration] drmSetClientCap(dev->fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1); ^~~~~~~~~~~~~~~ ../tests/modetest/modetest.c:605:2: warning: nested extern declaration of ‘drmSetClientCap’ [-Wnested-externs] ../tests/modetest/modetest.c: In function ‘set_cursors’: ../tests/modetest/modetest.c:1712:8: error: implicit declaration of function ‘drmGetCap’; did you mean ‘drmGetEntry’? [-Werror=implicit-function-declaration] ret = drmGetCap(dev->fd, DRM_CAP_CURSOR_WIDTH, &value); ^~~~~~~~~ drmGetEntry ../tests/modetest/modetest.c:1712:8: warning: nested extern declaration of ‘drmGetCap’ [-Wnested-externs] ../tests/modetest/modetest.c: In function ‘test_page_flip’: ../tests/modetest/modetest.c:1759:2: error: unknown type name ‘drmEventContext’; did you mean ‘drm_version_t’? drmEventContext evctx; ^~~~~~~~~~~~~~~ drm_version_t ../tests/modetest/modetest.c:1788:7: error: request for member ‘version’ in something not a structure or union evctx.version = DRM_EVENT_CONTEXT_VERSION; ^ ../tests/modetest/modetest.c:1788:18: error: ‘DRM_EVENT_CONTEXT_VERSION’ undeclared (first use in this function); did you mean ‘DRM_IOCTL_SET_VERSION’? evctx.version = DRM_EVENT_CONTEXT_VERSION; ^~~~~~~~~~~~~~~~~~~~~~~~~ DRM_IOCTL_SET_VERSION ../tests/modetest/modetest.c:1788:18: note: each undeclared identifier is reported only once for each function it appears in ../tests/modetest/modetest.c:1789:7: error: request for member ‘vblank_handler’ in something not a structure or union evctx.vblank_handler = NULL; ^ ../tests/modetest/modetest.c:1790:7: error: request for member ‘page_flip_handler’ in something not a structure or union evctx.page_flip_handler = page_flip_handler; ^ ../tests/modetest/modetest.c:1826:3: error: implicit declaration of function ‘drmHandleEvent’; did you mean ‘roundevenl’? [-Werror=implicit-function-declaration] drmHandleEvent(dev->fd, &evctx); ^~~~~~~~~~~~~~ roundevenl ../tests/modetest/modetest.c:1826:3: warning: nested extern declaration of ‘drmHandleEvent’ [-Wnested-externs] ../tests/modetest/modetest.c: In function ‘main’: ../tests/modetest/modetest.c:2168:4: error: implicit declaration of function ‘drmClose’; did you mean ‘close’? [-Werror=implicit-function-declaration] drmClose(dev.fd); ^~~~~~~~ close ../tests/modetest/modetest.c:2168:4: warning: nested extern declaration of ‘drmClose’ [-Wnested-externs] ../tests/modetest/modetest.c:2220:5: error: implicit declaration of function ‘drmDropMaster’ [-Werror=implicit-function-declaration] drmDropMaster(dev.fd); ^~~~~~~~~~~~~ ../tests/modetest/modetest.c:2220:5: warning: nested extern declaration of ‘drmDropMaster’ [-Wnested-externs] cc1: some warnings being treated as errors [63/130] cc -Itests/etnaviv/etnaviv_2d_test.p -Itests/etnaviv -I../tests/etnaviv -I. -I.. -I../include/drm -Ietnaviv -I../etnaviv -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -MD -MQ tests/etnaviv/etnaviv_2d_test.p/write_bmp.c.o -MF tests/etnaviv/etnaviv_2d_test.p/write_bmp.c.o.d -o tests/etnaviv/etnaviv_2d_test.p/write_bmp.c.o -c ../tests/etnaviv/write_bmp.c ../tests/etnaviv/write_bmp.c: In function ‘bmp_dump32’: ../tests/etnaviv/write_bmp.c:116:2: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(fd, buffer, width * height * 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../tests/etnaviv/write_bmp.c: In function ‘bmp_header_write’: ../tests/etnaviv/write_bmp.c:99:2: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(fd, &bmp_header, sizeof(struct bmp_header)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../tests/etnaviv/write_bmp.c:100:2: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(fd, &dib_header, sizeof(struct dib_header)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../tests/etnaviv/write_bmp.c: In function ‘bmp_dump32_noflip’: ../tests/etnaviv/write_bmp.c:132:2: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(fd, buffer, width * height * 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../tests/etnaviv/write_bmp.c: In function ‘bmp_dump32_ex’: ../tests/etnaviv/write_bmp.c:148:2: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(fd, buffer, width * height * 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [64/130] cc -Itests/tegra/tegra-vic-clear.p -Itests/tegra -I../tests/tegra -I. -I.. -I../include/drm -Itegra -I../tegra -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ tests/tegra/tegra-vic-clear.p/vic-clear.c.o -MF tests/tegra/tegra-vic-clear.p/vic-clear.c.o.d -o tests/tegra/tegra-vic-clear.p/vic-clear.c.o -c ../tests/tegra/vic-clear.c [65/130] cc -Itests/tegra/tegra-syncpt-wait.p -Itests/tegra -I../tests/tegra -I. -I.. -I../include/drm -Itegra -I../tegra -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ tests/tegra/tegra-syncpt-wait.p/syncpt-wait.c.o -MF tests/tegra/tegra-syncpt-wait.p/syncpt-wait.c.o.d -o tests/tegra/tegra-syncpt-wait.p/syncpt-wait.c.o -c ../tests/tegra/syncpt-wait.c [66/130] /usr/bin/rst2man ../man/drmHandleEvent.3.rst man/drmHandleEvent.3 [67/130] /usr/bin/rst2man ../man/drmAvailable.3.rst man/drmAvailable.3 [68/130] cc -Iradeon/libdrm_radeon.so.1.0.1.p -Iradeon -I../radeon -I. -I.. -I../include/drm -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ radeon/libdrm_radeon.so.1.0.1.p/radeon_cs_space.c.o -MF radeon/libdrm_radeon.so.1.0.1.p/radeon_cs_space.c.o.d -o radeon/libdrm_radeon.so.1.0.1.p/radeon_cs_space.c.o -c ../radeon/radeon_cs_space.c [69/130] cc -Iamdgpu/libdrm_amdgpu.so.1.0.0.p -Iamdgpu -I../amdgpu -I. -I.. -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers '-DAMDGPU_ASIC_ID_TABLE="/usr/share/libdrm/amdgpu.ids"' -MD -MQ amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_vamgr.c.o -MF amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_vamgr.c.o.d -o amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_vamgr.c.o -c ../amdgpu/amdgpu_vamgr.c [70/130] /usr/bin/rst2man ../man/drmModeGetResources.3.rst man/drmModeGetResources.3 [71/130] /usr/bin/rst2man ../man/drm.7.rst man/drm.7 [72/130] /usr/bin/rst2man ../man/drm-kms.7.rst man/drm-kms.7 [73/130] /usr/bin/rst2man ../man/drm-memory.7.rst man/drm-memory.7 [74/130] cc -Itests/tegra/libdrm-test-tegra.a.p -Itests/tegra -I../tests/tegra -I. -I.. -I../include/drm -Itegra -I../tegra -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -MD -MQ tests/tegra/libdrm-test-tegra.a.p/vic40.c.o -MF tests/tegra/libdrm-test-tegra.a.p/vic40.c.o.d -o tests/tegra/libdrm-test-tegra.a.p/vic40.c.o -c ../tests/tegra/vic40.c [75/130] cc -Itests/tegra/tegra-vic-blit.p -Itests/tegra -I../tests/tegra -I. -I.. -I../include/drm -Itegra -I../tegra -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ tests/tegra/tegra-vic-blit.p/vic-blit.c.o -MF tests/tegra/tegra-vic-blit.p/vic-blit.c.o.d -o tests/tegra/tegra-vic-blit.p/vic-blit.c.o -c ../tests/tegra/vic-blit.c [76/130] cc -Itests/tegra/libdrm-test-tegra.a.p -Itests/tegra -I../tests/tegra -I. -I.. -I../include/drm -Itegra -I../tegra -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -MD -MQ tests/tegra/libdrm-test-tegra.a.p/vic42.c.o -MF tests/tegra/libdrm-test-tegra.a.p/vic42.c.o.d -o tests/tegra/libdrm-test-tegra.a.p/vic42.c.o -c ../tests/tegra/vic42.c [77/130] cc -Itests/tegra/libdrm-test-tegra.a.p -Itests/tegra -I../tests/tegra -I. -I.. -I../include/drm -Itegra -I../tegra -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -MD -MQ tests/tegra/libdrm-test-tegra.a.p/vic41.c.o -MF tests/tegra/libdrm-test-tegra.a.p/vic41.c.o.d -o tests/tegra/libdrm-test-tegra.a.p/vic41.c.o -c ../tests/tegra/vic41.c [78/130] cc -Itests/tegra/tegra-vic-flip.p -Itests/tegra -I../tests/tegra -I. -I.. -I../include/drm -Itegra -I../tegra -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ tests/tegra/tegra-vic-flip.p/vic-flip.c.o -MF tests/tegra/tegra-vic-flip.p/vic-flip.c.o.d -o tests/tegra/tegra-vic-flip.p/vic-flip.c.o -c ../tests/tegra/vic-flip.c [79/130] cc -Itests/tegra/libdrm-test-tegra.a.p -Itests/tegra -I../tests/tegra -I. -I.. -I../include/drm -Itegra -I../tegra -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -MD -MQ tests/tegra/libdrm-test-tegra.a.p/vic30.c.o -MF tests/tegra/libdrm-test-tegra.a.p/vic30.c.o.d -o tests/tegra/libdrm-test-tegra.a.p/vic30.c.o -c ../tests/tegra/vic30.c [80/130] cc -Ilibdrm.so.2.4.0.p -I. -I.. -I../include/drm -I/usr/include/valgrind -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ libdrm.so.2.4.0.p/xf86drm.c.o -MF libdrm.so.2.4.0.p/xf86drm.c.o.d -o libdrm.so.2.4.0.p/xf86drm.c.o -c ../xf86drm.c FAILED: libdrm.so.2.4.0.p/xf86drm.c.o cc -Ilibdrm.so.2.4.0.p -I. -I.. -I../include/drm -I/usr/include/valgrind -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -Wsign-compare -Werror=undef -Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Wno-missing-field-initializers -MD -MQ libdrm.so.2.4.0.p/xf86drm.c.o -MF libdrm.so.2.4.0.p/xf86drm.c.o.d -o libdrm.so.2.4.0.p/xf86drm.c.o -c ../xf86drm.c In file included from ../xf86drm.c:78: ../xf86drm.h:34: error: unterminated #ifndef #ifndef _XF86DRM_H_ ../xf86drm.c:566:17: warning: no previous prototype for ‘drmSetServerInfo’ [-Wmissing-prototypes] drm_public void drmSetServerInfo(drmServerInfoPtr info) ^~~~~~~~~~~~~~~~ ../xf86drm.c:587:1: warning: no previous prototype for ‘drmMsg’ [-Wmissing-prototypes] drmMsg(const char *format, ...) ^~~~~~ ../xf86drm.c: In function ‘drmMsg’: ../xf86drm.c:596:13: warning: function ‘drmMsg’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] drm_server_info->debug_print(format,ap); ^~~~~~~~~~~~~~~ ../xf86drm.c:598:13: warning: function ‘drmMsg’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] drmDebugPrint(format, ap); ^~~~~~~~~~~~~ ../xf86drm.c: At top level: ../xf86drm.c:611:18: warning: no previous prototype for ‘drmMalloc’ [-Wmissing-prototypes] drm_public void *drmMalloc(int size) ^~~~~~~~~ ../xf86drm.c:616:17: warning: no previous prototype for ‘drmFree’ [-Wmissing-prototypes] drm_public void drmFree(void *pt) ^~~~~~~ ../xf86drm.c: In function ‘drmGetEntry’: ../xf86drm.c:651:24: error: implicit declaration of function ‘drmHashCreate’ [-Werror=implicit-function-declaration] drmHashTable = drmHashCreate(); ^~~~~~~~~~~~~ ../xf86drm.c:651:24: warning: nested extern declaration of ‘drmHashCreate’ [-Wnested-externs] ../xf86drm.c:651:22: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] drmHashTable = drmHashCreate(); ^ ../xf86drm.c:653:9: error: implicit declaration of function ‘drmHashLookup’ [-Werror=implicit-function-declaration] if (drmHashLookup(drmHashTable, key, &value)) { ^~~~~~~~~~~~~ ../xf86drm.c:653:9: warning: nested extern declaration of ‘drmHashLookup’ [-Wnested-externs] ../xf86drm.c:657:25: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] entry->tagTable = drmHashCreate(); ^ ../xf86drm.c:658:9: error: implicit declaration of function ‘drmHashInsert’ [-Werror=implicit-function-declaration] drmHashInsert(drmHashTable, key, entry); ^~~~~~~~~~~~~ ../xf86drm.c:658:9: warning: nested extern declaration of ‘drmHashInsert’ [-Wnested-externs] ../xf86drm.c: In function ‘drmGetDeviceName’: ../xf86drm.c:756:10: error: ‘DRM_NODE_PRIMARY’ undeclared (first use in this function); did you mean ‘DRM_LOCK_READY’? case DRM_NODE_PRIMARY: ^~~~~~~~~~~~~~~~ DRM_LOCK_READY ../xf86drm.c:756:10: note: each undeclared identifier is reported only once for each function it appears in ../xf86drm.c:758:10: error: ‘DRM_NODE_CONTROL’ undeclared (first use in this function); did you mean ‘DRM_IOCTL_CONTROL’? case DRM_NODE_CONTROL: ^~~~~~~~~~~~~~~~ DRM_IOCTL_CONTROL ../xf86drm.c:760:10: error: ‘DRM_NODE_RENDER’ undeclared (first use in this function); did you mean ‘DRM_LOCK_READY’? case DRM_NODE_RENDER: ^~~~~~~~~~~~~~~ DRM_LOCK_READY ../xf86drm.c: At top level: ../xf86drm.c:926:16: warning: no previous prototype for ‘drmAvailable’ [-Wmissing-prototypes] drm_public int drmAvailable(void) ^~~~~~~~~~~~ ../xf86drm.c: In function ‘drmAvailable’: ../xf86drm.c:932:34: error: ‘DRM_NODE_PRIMARY’ undeclared (first use in this function); did you mean ‘DRM_LOCK_READY’? if ((fd = drmOpenMinor(0, 1, DRM_NODE_PRIMARY)) < 0) { ^~~~~~~~~~~~~~~~ DRM_LOCK_READY ../xf86drm.c:936:20: error: implicit declaration of function ‘drmGetVersion’; did you mean ‘drmGetKeyFromFd’? [-Werror=implicit-function-declaration] if ((version = drmGetVersion(fd))) { ^~~~~~~~~~~~~ drmGetKeyFromFd ../xf86drm.c:936:20: warning: nested extern declaration of ‘drmGetVersion’ [-Wnested-externs] ../xf86drm.c:936:18: warning: assignment to ‘drmVersionPtr’ {aka ‘struct _drmVersion *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] if ((version = drmGetVersion(fd))) { ^ ../xf86drm.c:938:9: error: implicit declaration of function ‘drmFreeVersion’; did you mean ‘drmFree’? [-Werror=implicit-function-declaration] drmFreeVersion(version); ^~~~~~~~~~~~~~ drmFree ../xf86drm.c:938:9: warning: nested extern declaration of ‘drmFreeVersion’ [-Wnested-externs] ../xf86drm.c: In function ‘drmGetMinorBase’: ../xf86drm.c:948:10: error: ‘DRM_NODE_PRIMARY’ undeclared (first use in this function); did you mean ‘DRM_LOCK_READY’? case DRM_NODE_PRIMARY: ^~~~~~~~~~~~~~~~ DRM_LOCK_READY ../xf86drm.c:950:10: error: ‘DRM_NODE_CONTROL’ undeclared (first use in this function); did you mean ‘DRM_IOCTL_CONTROL’? case DRM_NODE_CONTROL: ^~~~~~~~~~~~~~~~ DRM_IOCTL_CONTROL ../xf86drm.c:952:10: error: ‘DRM_NODE_RENDER’ undeclared (first use in this function); did you mean ‘DRM_LOCK_READY’? case DRM_NODE_RENDER: ^~~~~~~~~~~~~~~ DRM_LOCK_READY ../xf86drm.c: In function ‘drmGetMinorType’: ../xf86drm.c:987:10: error: ‘DRM_NODE_PRIMARY’ undeclared (first use in this function); did you mean ‘DRM_LOCK_READY’? case DRM_NODE_PRIMARY: ^~~~~~~~~~~~~~~~ DRM_LOCK_READY ../xf86drm.c:988:10: error: ‘DRM_NODE_CONTROL’ undeclared (first use in this function); did you mean ‘DRM_IOCTL_CONTROL’? case DRM_NODE_CONTROL: ^~~~~~~~~~~~~~~~ DRM_IOCTL_CONTROL ../xf86drm.c:989:10: error: ‘DRM_NODE_RENDER’ undeclared (first use in this function); did you mean ‘DRM_LOCK_READY’? case DRM_NODE_RENDER: ^~~~~~~~~~~~~~~ DRM_LOCK_READY ../xf86drm.c: In function ‘drmGetMinorName’: ../xf86drm.c:999:10: error: ‘DRM_NODE_PRIMARY’ undeclared (first use in this function); did you mean ‘DRM_LOCK_READY’? case DRM_NODE_PRIMARY: ^~~~~~~~~~~~~~~~ DRM_LOCK_READY ../xf86drm.c:1001:10: error: ‘DRM_NODE_CONTROL’ undeclared (first use in this function); did you mean ‘DRM_IOCTL_CONTROL’? case DRM_NODE_CONTROL: ^~~~~~~~~~~~~~~~ DRM_IOCTL_CONTROL ../xf86drm.c:1003:10: error: ‘DRM_NODE_RENDER’ undeclared (first use in this function); did you mean ‘DRM_LOCK_READY’? case DRM_NODE_RENDER: ^~~~~~~~~~~~~~~ DRM_LOCK_READY ../xf86drm.c: In function ‘drmOpenByBusid’: ../xf86drm.c:1047:17: error: implicit declaration of function ‘drmSetInterfaceVersion’ [-Werror=implicit-function-declaration] if (drmSetInterfaceVersion(fd, &sv)) { ^~~~~~~~~~~~~~~~~~~~~~ ../xf86drm.c:1047:17: warning: nested extern declaration of ‘drmSetInterfaceVersion’ [-Wnested-externs] ../xf86drm.c:1058:19: error: implicit declaration of function ‘drmGetBusid’; did you mean ‘drmOpenByBusid’? [-Werror=implicit-function-declaration] buf = drmGetBusid(fd); ^~~~~~~~~~~ drmOpenByBusid ../xf86drm.c:1058:19: warning: nested extern declaration of ‘drmGetBusid’ [-Wnested-externs] ../xf86drm.c:1058:17: warning: assignment to ‘const char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] buf = drmGetBusid(fd); ^ ../xf86drm.c:1061:17: error: implicit declaration of function ‘drmFreeBusid’; did you mean ‘drmOpenByBusid’? [-Werror=implicit-function-declaration] drmFreeBusid(buf); ^~~~~~~~~~~~ drmOpenByBusid ../xf86drm.c:1061:17: warning: nested extern declaration of ‘drmFreeBusid’ [-Wnested-externs] ../xf86drm.c: In function ‘drmOpenByName’: ../xf86drm.c:1105:26: warning: assignment to ‘drmVersionPtr’ {aka ‘struct _drmVersion *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] if ((version = drmGetVersion(fd))) { ^ ../xf86drm.c:1108:24: warning: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] id = drmGetBusid(fd); ^ ../xf86drm.c: At top level: ../xf86drm.c:1144:16: warning: no previous prototype for ‘drmOpen’ [-Wmissing-prototypes] drm_public int drmOpen(const char *name, const char *busid) ^~~~~~~ ../xf86drm.c: In function ‘drmOpen’: ../xf86drm.c:1146:12: error: implicit declaration of function ‘drmOpenWithType’; did you mean ‘drmOpenByName’? [-Werror=implicit-function-declaration] return drmOpenWithType(name, busid, DRM_NODE_PRIMARY); ^~~~~~~~~~~~~~~ drmOpenByName ../xf86drm.c:1146:12: warning: nested extern declaration of ‘drmOpenWithType’ [-Wnested-externs] ../xf86drm.c:1146:41: error: ‘DRM_NODE_PRIMARY’ undeclared (first use in this function); did you mean ‘DRM_LOCK_READY’? return drmOpenWithType(name, busid, DRM_NODE_PRIMARY); ^~~~~~~~~~~~~~~~ DRM_LOCK_READY ../xf86drm.c: At top level: ../xf86drm.c:1165:16: warning: no previous prototype for ‘drmOpenWithType’ [-Wmissing-prototypes] drm_public int drmOpenWithType(const char *name, const char *busid, int type) ^~~~~~~~~~~~~~~ ../xf86drm.c:1188:16: warning: no previous prototype for ‘drmOpenControl’ [-Wmissing-prototypes] drm_public int drmOpenControl(int minor) ^~~~~~~~~~~~~~ ../xf86drm.c: In function ‘drmOpenControl’: ../xf86drm.c:1190:35: error: ‘DRM_NODE_CONTROL’ undeclared (first use in this function); did you mean ‘DRM_IOCTL_CONTROL’? return drmOpenMinor(minor, 0, DRM_NODE_CONTROL); ^~~~~~~~~~~~~~~~ DRM_IOCTL_CONTROL ../xf86drm.c: At top level: ../xf86drm.c:1193:16: warning: no previous prototype for ‘drmOpenRender’ [-Wmissing-prototypes] drm_public int drmOpenRender(int minor) ^~~~~~~~~~~~~ ../xf86drm.c: In function ‘drmOpenRender’: ../xf86drm.c:1195:35: error: ‘DRM_NODE_RENDER’ undeclared (first use in this function); did you mean ‘DRM_LOCK_READY’? return drmOpenMinor(minor, 0, DRM_NODE_RENDER); ^~~~~~~~~~~~~~~ DRM_LOCK_READY ../xf86drm.c: At top level: ../xf86drm.c:1207:17: warning: no previous prototype for ‘drmFreeVersion’ [-Wmissing-prototypes] drm_public void drmFreeVersion(drmVersionPtr v) ^~~~~~~~~~~~~~ ../xf86drm.c:1207:17: warning: conflicting types for ‘drmFreeVersion’ ../xf86drm.c:938:9: note: previous implicit declaration of ‘drmFreeVersion’ was here drmFreeVersion(version); ^~~~~~~~~~~~~~ ../xf86drm.c:1277:26: warning: no previous prototype for ‘drmGetVersion’ [-Wmissing-prototypes] drm_public drmVersionPtr drmGetVersion(int fd) ^~~~~~~~~~~~~ ../xf86drm.c:1277:26: error: conflicting types for ‘drmGetVersion’ ../xf86drm.c:936:20: note: previous implicit declaration of ‘drmGetVersion’ was here if ((version = drmGetVersion(fd))) { ^~~~~~~~~~~~~ ../xf86drm.c:1325:26: warning: no previous prototype for ‘drmGetLibVersion’ [-Wmissing-prototypes] drm_public drmVersionPtr drmGetLibVersion(int fd) ^~~~~~~~~~~~~~~~ ../xf86drm.c:1346:16: warning: no previous prototype for ‘drmGetCap’ [-Wmissing-prototypes] drm_public int drmGetCap(int fd, uint64_t capability, uint64_t *value) ^~~~~~~~~ ../xf86drm.c:1362:16: warning: no previous prototype for ‘drmSetClientCap’ [-Wmissing-prototypes] drm_public int drmSetClientCap(int fd, uint64_t capability, uint64_t value) ^~~~~~~~~~~~~~~ ../xf86drm.c:1381:17: warning: no previous prototype for ‘drmFreeBusid’ [-Wmissing-prototypes] drm_public void drmFreeBusid(const char *busid) ^~~~~~~~~~~~ ../xf86drm.c:1381:17: warning: conflicting types for ‘drmFreeBusid’ ../xf86drm.c:1061:17: note: previous implicit declaration of ‘drmFreeBusid’ was here drmFreeBusid(buf); ^~~~~~~~~~~~ ../xf86drm.c:1399:18: warning: no previous prototype for ‘drmGetBusid’ [-Wmissing-prototypes] drm_public char *drmGetBusid(int fd) ^~~~~~~~~~~ ../xf86drm.c:1399:18: error: conflicting types for ‘drmGetBusid’ ../xf86drm.c:1058:19: note: previous implicit declaration of ‘drmGetBusid’ was here buf = drmGetBusid(fd); ^~~~~~~~~~~ ../xf86drm.c:1430:16: warning: no previous prototype for ‘drmSetBusid’ [-Wmissing-prototypes] drm_public int drmSetBusid(int fd, const char *busid) ^~~~~~~~~~~ ../xf86drm.c:1444:16: warning: no previous prototype for ‘drmGetMagic’ [-Wmissing-prototypes] drm_public int drmGetMagic(int fd, drm_magic_t * magic) ^~~~~~~~~~~ ../xf86drm.c:1457:16: warning: no previous prototype for ‘drmAuthMagic’ [-Wmissing-prototypes] drm_public int drmAuthMagic(int fd, drm_magic_t magic) ^~~~~~~~~~~~ ../xf86drm.c:1518:16: warning: no previous prototype for ‘drmAddMap’ [-Wmissing-prototypes] drm_public int drmAddMap(int fd, drm_handle_t offset, drmSize size, drmMapType type, ^~~~~~~~~ ../xf86drm.c:1535:16: warning: no previous prototype for ‘drmRmMap’ [-Wmissing-prototypes] drm_public int drmRmMap(int fd, drm_handle_t handle) ^~~~~~~~ ../xf86drm.c:1563:16: warning: no previous prototype for ‘drmAddBufs’ [-Wmissing-prototypes] drm_public int drmAddBufs(int fd, int count, int size, drmBufDescFlags flags, ^~~~~~~~~~ ../xf86drm.c:1579:16: warning: no previous prototype for ‘drmMarkBufs’ [-Wmissing-prototypes] drm_public int drmMarkBufs(int fd, double low, double high) ^~~~~~~~~~~ ../xf86drm.c:1630:16: warning: no previous prototype for ‘drmFreeBufs’ [-Wmissing-prototypes] drm_public int drmFreeBufs(int fd, int count, int *list) ^~~~~~~~~~~ ../xf86drm.c:1651:16: warning: no previous prototype for ‘drmClose’ [-Wmissing-prototypes] drm_public int drmClose(int fd) ^~~~~~~~ ../xf86drm.c: In function ‘drmClose’: ../xf86drm.c:1656:5: error: implicit declaration of function ‘drmHashDestroy’ [-Werror=implicit-function-declaration] drmHashDestroy(entry->tagTable); ^~~~~~~~~~~~~~ ../xf86drm.c:1656:5: warning: nested extern declaration of ‘drmHashDestroy’ [-Wnested-externs] ../xf86drm.c:1661:5: error: implicit declaration of function ‘drmHashDelete’ [-Werror=implicit-function-declaration] drmHashDelete(drmHashTable, key); ^~~~~~~~~~~~~ ../xf86drm.c:1661:5: warning: nested extern declaration of ‘drmHashDelete’ [-Wnested-externs] ../xf86drm.c: At top level: ../xf86drm.c:1682:16: warning: no previous prototype for ‘drmMap’ [-Wmissing-prototypes] drm_public int drmMap(int fd, drm_handle_t handle, drmSize size, ^~~~~~ ../xf86drm.c:1713:16: warning: no previous prototype for ‘drmUnmap’ [-Wmissing-prototypes] drm_public int drmUnmap(drmAddress address, drmSize size) ^~~~~~~~ ../xf86drm.c:1718:26: warning: no previous prototype for ‘drmGetBufInfo’ [-Wmissing-prototypes] drm_public drmBufInfoPtr drmGetBufInfo(int fd) ^~~~~~~~~~~~~ ../xf86drm.c:1773:25: warning: no previous prototype for ‘drmMapBufs’ [-Wmissing-prototypes] drm_public drmBufMapPtr drmMapBufs(int fd) ^~~~~~~~~~ ../xf86drm.c:1818:16: warning: no previous prototype for ‘drmUnmapBufs’ [-Wmissing-prototypes] drm_public int drmUnmapBufs(drmBufMapPtr bufs) ^~~~~~~~~~~~ ../xf86drm.c:1846:16: warning: no previous prototype for ‘drmDMA’ [-Wmissing-prototypes] drm_public int drmDMA(int fd, drmDMAReqPtr request) ^~~~~~ ../xf86drm.c:1889:16: warning: no previous prototype for ‘drmGetLock’ [-Wmissing-prototypes] drm_public int drmGetLock(int fd, drm_context_t context, drmLockFlags flags) ^~~~~~~~~~ ../xf86drm.c:1920:16: warning: no previous prototype for ‘drmUnlock’ [-Wmissing-prototypes] drm_public int drmUnlock(int fd, drm_context_t context) ^~~~~~~~~ ../xf86drm.c:1929:27: warning: no previous prototype for ‘drmGetReservedContextList’ [-Wmissing-prototypes] drm_public drm_context_t *drmGetReservedContextList(int fd, int *count) ^~~~~~~~~~~~~~~~~~~~~~~~~ ../xf86drm.c:1966:17: warning: no previous prototype for ‘drmFreeReservedContextList’ [-Wmissing-prototypes] drm_public void drmFreeReservedContextList(drm_context_t *pt) ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../xf86drm.c:1989:16: warning: no previous prototype for ‘drmCreateContext’ [-Wmissing-prototypes] drm_public int drmCreateContext(int fd, drm_context_t *handle) ^~~~~~~~~~~~~~~~ ../xf86drm.c:2000:16: warning: no previous prototype for ‘drmSwitchToContext’ [-Wmissing-prototypes] drm_public int drmSwitchToContext(int fd, drm_context_t context) ^~~~~~~~~~~~~~~~~~ ../xf86drm.c:2011:16: warning: no previous prototype for ‘drmSetContextFlags’ [-Wmissing-prototypes] drm_public int drmSetContextFlags(int fd, drm_context_t context, ^~~~~~~~~~~~~~~~~~ ../xf86drm.c:2033:16: warning: no previous prototype for ‘drmGetContextFlags’ [-Wmissing-prototypes] drm_public int drmGetContextFlags(int fd, drm_context_t context, ^~~~~~~~~~~~~~~~~~ ../xf86drm.c:2067:16: warning: no previous prototype for ‘drmDestroyContext’ [-Wmissing-prototypes] drm_public int drmDestroyContext(int fd, drm_context_t handle) ^~~~~~~~~~~~~~~~~ ../xf86drm.c:2078:16: warning: no previous prototype for ‘drmCreateDrawable’ [-Wmissing-prototypes] drm_public int drmCreateDrawable(int fd, drm_drawable_t *handle) ^~~~~~~~~~~~~~~~~ ../xf86drm.c:2089:16: warning: no previous prototype for ‘drmDestroyDrawable’ [-Wmissing-prototypes] drm_public int drmDestroyDrawable(int fd, drm_drawable_t handle) ^~~~~~~~~~~~~~~~~~ ../xf86drm.c:2100:16: warning: no previous prototype for ‘drmUpdateDrawableInfo’ [-Wmissing-prototypes] drm_public int drmUpdateDrawableInfo(int fd, drm_drawable_t handle, ^~~~~~~~~~~~~~~~~~~~~ ../xf86drm.c:2118:16: warning: no previous prototype for ‘drmCrtcGetSequence’ [-Wmissing-prototypes] drm_public int drmCrtcGetSequence(int fd, uint32_t crtcId, uint64_t *sequence, ^~~~~~~~~~~~~~~~~~ ../xf86drm.c:2137:16: warning: no previous prototype for ‘drmCrtcQueueSequence’ [-Wmissing-prototypes] drm_public int drmCrtcQueueSequence(int fd, uint32_t crtcId, uint32_t flags, ^~~~~~~~~~~~~~~~~~~~ ../xf86drm.c:2170:16: warning: no previous prototype for ‘drmAgpAcquire’ [-Wmissing-prototypes] drm_public int drmAgpAcquire(int fd) ^~~~~~~~~~~~~ ../xf86drm.c:2188:16: warning: no previous prototype for ‘drmAgpRelease’ [-Wmissing-prototypes] drm_public int drmAgpRelease(int fd) ^~~~~~~~~~~~~ ../xf86drm.c:2208:16: warning: no previous prototype for ‘drmAgpEnable’ [-Wmissing-prototypes] drm_public int drmAgpEnable(int fd, unsigned long mode) ^~~~~~~~~~~~ ../xf86drm.c:2236:16: warning: no previous prototype for ‘drmAgpAlloc’ [-Wmissing-prototypes] drm_public int drmAgpAlloc(int fd, unsigned long size, unsigned long type, ^~~~~~~~~~~ ../xf86drm.c:2266:16: warning: no previous prototype for ‘drmAgpFree’ [-Wmissing-prototypes] drm_public int drmAgpFree(int fd, drm_handle_t handle) ^~~~~~~~~~ ../xf86drm.c:2291:16: warning: no previous prototype for ‘drmAgpBind’ [-Wmissing-prototypes] drm_public int drmAgpBind(int fd, drm_handle_t handle, unsigned long offset) ^~~~~~~~~~ ../xf86drm.c:2316:16: warning: no previous prototype for ‘drmAgpUnbind’ [-Wmissing-prototypes] drm_public int drmAgpUnbind(int fd, drm_handle_t handle) ^~~~~~~~~~~~ ../xf86drm.c:2339:16: warning: no previous prototype for ‘drmAgpVersionMajor’ [-Wmissing-prototypes] drm_public int drmAgpVersionMajor(int fd) ^~~~~~~~~~~~~~~~~~ ../xf86drm.c:2362:16: warning: no previous prototype for ‘drmAgpVersionMinor’ [-Wmissing-prototypes] drm_public int drmAgpVersionMinor(int fd) ^~~~~~~~~~~~~~~~~~ ../xf86drm.c:2385:26: warning: no previous prototype for ‘drmAgpGetMode’ [-Wmissing-prototypes] drm_public unsigned long drmAgpGetMode(int fd) ^~~~~~~~~~~~~ ../xf86drm.c:2408:26: warning: no previous prototype for ‘drmAgpBase’ [-Wmissing-prototypes] drm_public unsigned long drmAgpBase(int fd) ^~~~~~~~~~ ../xf86drm.c:2431:26: warning: no previous prototype for ‘drmAgpSize’ [-Wmissing-prototypes] drm_public unsigned long drmAgpSize(int fd) ^~~~~~~~~~ ../xf86drm.c:2454:26: warning: no previous prototype for ‘drmAgpMemoryUsed’ [-Wmissing-prototypes] drm_public unsigned long drmAgpMemoryUsed(int fd) ^~~~~~~~~~~~~~~~ ../xf86drm.c:2477:26: warning: no previous prototype for ‘drmAgpMemoryAvail’ [-Wmissing-prototypes] drm_public unsigned long drmAgpMemoryAvail(int fd) ^~~~~~~~~~~~~~~~~ ../xf86drm.c:2500:25: warning: no previous prototype for ‘drmAgpVendorId’ [-Wmissing-prototypes] drm_public unsigned int drmAgpVendorId(int fd) ^~~~~~~~~~~~~~ ../xf86drm.c:2523:25: warning: no previous prototype for ‘drmAgpDeviceId’ [-Wmissing-prototypes] drm_public unsigned int drmAgpDeviceId(int fd) ^~~~~~~~~~~~~~ ../xf86drm.c:2534:16: warning: no previous prototype for ‘drmScatterGatherAlloc’ [-Wmissing-prototypes] drm_public int drmScatterGatherAlloc(int fd, unsigned long size, ^~~~~~~~~~~~~~~~~~~~~ ../xf86drm.c:2549:16: warning: no previous prototype for ‘drmScatterGatherFree’ [-Wmissing-prototypes] drm_public int drmScatterGatherFree(int fd, drm_handle_t handle) ^~~~~~~~~~~~~~~~~~~~ ../xf86drm.c:2571:16: warning: no previous prototype for ‘drmWaitVBlank’ [-Wmissing-prototypes] drm_public int drmWaitVBlank(int fd, drmVBlankPtr vbl) ^~~~~~~~~~~~~ ../xf86drm.c:2603:16: warning: no previous prototype for ‘drmError’ [-Wmissing-prototypes] drm_public int drmError(int err, const char *label) ^~~~~~~~ ../xf86drm.c:2640:16: warning: no previous prototype for ‘drmCtlInstHandler’ [-Wmissing-prototypes] drm_public int drmCtlInstHandler(int fd, int irq) ^~~~~~~~~~~~~~~~~ ../xf86drm.c:2664:16: warning: no previous prototype for ‘drmCtlUninstHandler’ [-Wmissing-prototypes] drm_public int drmCtlUninstHandler(int fd) ^~~~~~~~~~~~~~~~~~~ ../xf86drm.c:2676:16: warning: no previous prototype for ‘drmFinish’ [-Wmissing-prototypes] drm_public int drmFinish(int fd, int context, drmLockFlags flags) ^~~~~~~~~ ../xf86drm.c:2707:16: warning: no previous prototype for ‘drmGetInterruptFromBusID’ [-Wmissing-prototypes] drm_public int drmGetInterruptFromBusID(int fd, int busnum, int devnum, ^~~~~~~~~~~~~~~~~~~~~~~~ ../xf86drm.c:2721:16: warning: no previous prototype for ‘drmAddContextTag’ [-Wmissing-prototypes] drm_public int drmAddContextTag(int fd, drm_context_t context, void *tag) ^~~~~~~~~~~~~~~~ ../xf86drm.c:2732:16: warning: no previous prototype for ‘drmDelContextTag’ [-Wmissing-prototypes] drm_public int drmDelContextTag(int fd, drm_context_t context) ^~~~~~~~~~~~~~~~ ../xf86drm.c:2739:18: warning: no previous prototype for ‘drmGetContextTag’ [-Wmissing-prototypes] drm_public void *drmGetContextTag(int fd, drm_context_t context) ^~~~~~~~~~~~~~~~ ../xf86drm.c:2750:16: warning: no previous prototype for ‘drmAddContextPrivateMapping’ [-Wmissing-prototypes] drm_public int drmAddContextPrivateMapping(int fd, drm_context_t ctx_id, ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../xf86drm.c:2764:16: warning: no previous prototype for ‘drmGetContextPrivateMapping’ [-Wmissing-prototypes] drm_public int drmGetContextPrivateMapping(int fd, drm_context_t ctx_id, ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../xf86drm.c:2780:16: warning: no previous prototype for ‘drmGetMap’ [-Wmissing-prototypes] drm_public int drmGetMap(int fd, int idx, drm_handle_t *offset, drmSize *size, ^~~~~~~~~ ../xf86drm.c:2799:16: warning: no previous prototype for ‘drmGetClient’ [-Wmissing-prototypes] drm_public int drmGetClient(int fd, int idx, int *auth, int *pid, int *uid, ^~~~~~~~~~~~ ../xf86drm.c:2816:16: warning: no previous prototype for ‘drmGetStats’ [-Wmissing-prototypes] drm_public int drmGetStats(int fd, drmStatsT *stats) ^~~~~~~~~~~ ../xf86drm.c:2954:16: warning: no previous prototype for ‘drmSetInterfaceVersion’ [-Wmissing-prototypes] drm_public int drmSetInterfaceVersion(int fd, drmSetVersion *version) ^~~~~~~~~~~~~~~~~~~~~~ ../xf86drm.c:2989:16: warning: no previous prototype for ‘drmCommandNone’ [-Wmissing-prototypes] drm_public int drmCommandNone(int fd, unsigned long drmCommandIndex) ^~~~~~~~~~~~~~ ../xf86drm.c:3016:16: warning: no previous prototype for ‘drmCommandRead’ [-Wmissing-prototypes] drm_public int drmCommandRead(int fd, unsigned long drmCommandIndex, ^~~~~~~~~~~~~~ ../xf86drm.c:3045:16: warning: no previous prototype for ‘drmCommandWrite’ [-Wmissing-prototypes] drm_public int drmCommandWrite(int fd, unsigned long drmCommandIndex, ^~~~~~~~~~~~~~~ ../xf86drm.c:3074:16: warning: no previous prototype for ‘drmCommandWriteRead’ [-Wmissing-prototypes] drm_public int drmCommandWriteRead(int fd, unsigned long drmCommandIndex, ^~~~~~~~~~~~~~~~~~~ ../xf86drm.c:3097:16: warning: no previous prototype for ‘drmOpenOnce’ [-Wmissing-prototypes] drm_public int drmOpenOnce(void *unused, const char *BusID, int *newlyopened) ^~~~~~~~~~~ ../xf86drm.c: In function ‘drmOpenOnce’: ../xf86drm.c:3099:12: error: implicit declaration of function ‘drmOpenOnceWithType’; did you mean ‘drmOpenWithType’? [-Werror=implicit-function-declaration] return drmOpenOnceWithType(BusID, newlyopened, DRM_NODE_PRIMARY); ^~~~~~~~~~~~~~~~~~~ drmOpenWithType ../xf86drm.c:3099:12: warning: nested extern declaration of ‘drmOpenOnceWithType’ [-Wnested-externs] ../xf86drm.c:3099:52: error: ‘DRM_NODE_PRIMARY’ undeclared (first use in this function); did you mean ‘DRM_LOCK_READY’? return drmOpenOnceWithType(BusID, newlyopened, DRM_NODE_PRIMARY); ^~~~~~~~~~~~~~~~ DRM_LOCK_READY ../xf86drm.c: At top level: ../xf86drm.c:3102:16: warning: no previous prototype for ‘drmOpenOnceWithType’ [-Wmissing-prototypes] drm_public int drmOpenOnceWithType(const char *BusID, int *newlyopened, ^~~~~~~~~~~~~~~~~~~ ../xf86drm.c:3136:17: warning: no previous prototype for ‘drmCloseOnce’ [-Wmissing-prototypes] drm_public void drmCloseOnce(int fd) ^~~~~~~~~~~~ ../xf86drm.c:3155:16: warning: no previous prototype for ‘drmSetMaster’ [-Wmissing-prototypes] drm_public int drmSetMaster(int fd) ^~~~~~~~~~~~ ../xf86drm.c:3160:16: warning: no previous prototype for ‘drmDropMaster’ [-Wmissing-prototypes] drm_public int drmDropMaster(int fd) ^~~~~~~~~~~~~ ../xf86drm.c:3165:16: warning: no previous prototype for ‘drmIsMaster’ [-Wmissing-prototypes] drm_public int drmIsMaster(int fd) ^~~~~~~~~~~ ../xf86drm.c:3183:18: warning: no previous prototype for ‘drmGetDeviceNameFromFd’ [-Wmissing-prototypes] drm_public char *drmGetDeviceNameFromFd(int fd) ^~~~~~~~~~~~~~~~~~~~~~ ../xf86drm.c:3247:16: warning: no previous prototype for ‘drmGetNodeTypeFromFd’ [-Wmissing-prototypes] drm_public int drmGetNodeTypeFromFd(int fd) ^~~~~~~~~~~~~~~~~~~~ ../xf86drm.c:3269:16: warning: no previous prototype for ‘drmPrimeHandleToFD’ [-Wmissing-prototypes] drm_public int drmPrimeHandleToFD(int fd, uint32_t handle, uint32_t flags, ^~~~~~~~~~~~~~~~~~ ../xf86drm.c:3287:16: warning: no previous prototype for ‘drmPrimeFDToHandle’ [-Wmissing-prototypes] drm_public int drmPrimeFDToHandle(int fd, int prime_fd, uint32_t *handle) ^~~~~~~~~~~~~~~~~~ ../xf86drm.c:3302:16: warning: no previous prototype for ‘drmCloseBufferHandle’ [-Wmissing-prototypes] drm_public int drmCloseBufferHandle(int fd, uint32_t handle) ^~~~~~~~~~~~~~~~~~~~ ../xf86drm.c:3425:18: warning: no previous prototype for ‘drmGetPrimaryDeviceNameFromFd’ [-Wmissing-prototypes] drm_public char *drmGetPrimaryDeviceNameFromFd(int fd) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../xf86drm.c: In function ‘drmGetPrimaryDeviceNameFromFd’: ../xf86drm.c:3427:37: error: ‘DRM_NODE_PRIMARY’ undeclared (first use in this function); did you mean ‘DRM_LOCK_READY’? return drmGetMinorNameForFD(fd, DRM_NODE_PRIMARY); ^~~~~~~~~~~~~~~~ DRM_LOCK_READY ../xf86drm.c: At top level: ../xf86drm.c:3430:18: warning: no previous prototype for ‘drmGetRenderDeviceNameFromFd’ [-Wmissing-prototypes] drm_public char *drmGetRenderDeviceNameFromFd(int fd) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../xf86drm.c: In function ‘drmGetRenderDeviceNameFromFd’: ../xf86drm.c:3432:37: error: ‘DRM_NODE_RENDER’ undeclared (first use in this function); did you mean ‘DRM_LOCK_READY’? return drmGetMinorNameForFD(fd, DRM_NODE_RENDER); ^~~~~~~~~~~~~~~ DRM_LOCK_READY ../xf86drm.c: In function ‘get_subsystem_type’: ../xf86drm.c:3492:19: error: ‘DRM_BUS_PCI’ undeclared (first use in this function); did you mean ‘DRM_BUS_VIRTIO’? { "/pci", DRM_BUS_PCI }, ^~~~~~~~~~~ DRM_BUS_VIRTIO ../xf86drm.c:3493:19: error: ‘DRM_BUS_USB’ undeclared (first use in this function); did you mean ‘DRM_DEV_UID’? { "/usb", DRM_BUS_USB }, ^~~~~~~~~~~ DRM_DEV_UID ../xf86drm.c:3494:24: error: ‘DRM_BUS_PLATFORM’ undeclared (first use in this function); did you mean ‘DRM_BUS_VIRTIO’? { "/platform", DRM_BUS_PLATFORM }, ^~~~~~~~~~~~~~~~ DRM_BUS_VIRTIO ../xf86drm.c:3496:22: error: ‘DRM_BUS_HOST1X’ undeclared (first use in this function); did you mean ‘DRM_BUS_VIRTIO’? { "/host1x", DRM_BUS_HOST1X }, ^~~~~~~~~~~~~~ DRM_BUS_VIRTIO ../xf86drm.c: At top level: ../xf86drm.c:3626:49: error: unknown type name ‘drmPciBusInfoPtr’; did you mean ‘drmBufInfoPtr’? static int drmParsePciBusInfo(int maj, int min, drmPciBusInfoPtr info) ^~~~~~~~~~~~~~~~ drmBufInfoPtr ../xf86drm.c:3683:32: error: unknown type name ‘drmDevicePtr’; did you mean ‘drmRegionPtr’? drm_public int drmDevicesEqual(drmDevicePtr a, drmDevicePtr b) ^~~~~~~~~~~~ drmRegionPtr ../xf86drm.c:3683:48: error: unknown type name ‘drmDevicePtr’; did you mean ‘drmRegionPtr’? drm_public int drmDevicesEqual(drmDevicePtr a, drmDevicePtr b) ^~~~~~~~~~~~ drmRegionPtr ../xf86drm.c: In function ‘drmGetNodeType’: ../xf86drm.c:3715:16: error: ‘DRM_NODE_CONTROL’ undeclared (first use in this function); did you mean ‘DRM_IOCTL_CONTROL’? return DRM_NODE_CONTROL; ^~~~~~~~~~~~~~~~ DRM_IOCTL_CONTROL ../xf86drm.c:3719:16: error: ‘DRM_NODE_RENDER’ undeclared (first use in this function); did you mean ‘DRM_LOCK_READY’? return DRM_NODE_RENDER; ^~~~~~~~~~~~~~~ DRM_LOCK_READY ../xf86drm.c:3723:16: error: ‘DRM_NODE_PRIMARY’ undeclared (first use in this function); did you mean ‘DRM_LOCK_READY’? return DRM_NODE_PRIMARY; ^~~~~~~~~~~~~~~~ DRM_LOCK_READY ../xf86drm.c: At top level: ../xf86drm.c:3739:39: error: unknown type name ‘drmPciDeviceInfoPtr’; did you mean ‘drmServerInfoPtr’? drmPciDeviceInfoPtr device, ^~~~~~~~~~~~~~~~~~~ drmServerInfoPtr ../xf86drm.c:3781:36: error: unknown type name ‘drmPciDeviceInfoPtr’; did you mean ‘drmServerInfoPtr’? drmPciDeviceInfoPtr device) ^~~~~~~~~~~~~~~~~~~ drmServerInfoPtr ../xf86drm.c:3812:34: error: unknown type name ‘drmPciDeviceInfoPtr’; did you mean ‘drmServerInfoPtr’? drmPciDeviceInfoPtr device, ^~~~~~~~~~~~~~~~~~~ drmServerInfoPtr ../xf86drm.c:3896:35: error: unknown type name ‘drmDevicePtr’; did you mean ‘drmRegionPtr’? static void drmFreePlatformDevice(drmDevicePtr device) ^~~~~~~~~~~~ drmRegionPtr ../xf86drm.c:3912:33: error: unknown type name ‘drmDevicePtr’; did you mean ‘drmRegionPtr’? static void drmFreeHost1xDevice(drmDevicePtr device) ^~~~~~~~~~~~ drmRegionPtr ../xf86drm.c:3928:31: error: unknown type name ‘drmDevicePtr’; did you mean ‘drmRegionPtr’? drm_public void drmFreeDevice(drmDevicePtr *device) ^~~~~~~~~~~~ drmRegionPtr ../xf86drm.c:3949:32: error: unknown type name ‘drmDevicePtr’; did you mean ‘drmRegionPtr’? drm_public void drmFreeDevices(drmDevicePtr devices[], int count) ^~~~~~~~~~~~ drmRegionPtr ../xf86drm.c:3961:8: error: unknown type name ‘drmDevicePtr’ static drmDevicePtr drmDeviceAlloc(unsigned int type, const char *node, ^~~~~~~~~~~~ ../xf86drm.c: In function ‘drmDeviceAlloc’: ../xf86drm.c:3966:5: error: unknown type name ‘drmDevicePtr’; did you mean ‘drmRegionPtr’? drmDevicePtr device; ^~~~~~~~~~~~ drmRegionPtr ../xf86drm.c:3971:13: error: ‘DRM_NODE_MAX’ undeclared (first use in this function); did you mean ‘DRM_NODE_NAME_MAX’? extra = DRM_NODE_MAX * (sizeof(void *) + max_node_length); ^~~~~~~~~~~~ DRM_NODE_NAME_MAX ../xf86drm.c:3973:19: error: invalid type argument of unary ‘*’ (have ‘int’) size = sizeof(*device) + extra + bus_size + device_size; ^~~~~~~ ../xf86drm.c:3975:12: warning: assignment to ‘int’ from ‘void *’ makes integer from pointer without a cast [-Wint-conversion] device = calloc(1, size); ^ ../xf86drm.c:3977:16: warning: returning ‘void *’ from a function with return type ‘int’ makes integer from pointer without a cast [-Wint-conversion] return NULL; ^~~~ ../xf86drm.c:3979:11: error: invalid type argument of ‘->’ (have ‘int’) device->available_nodes = 1 << type; ^~ ../xf86drm.c:3981:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] ptr = (char *)device + sizeof(*device); ^ ../xf86drm.c:3981:35: error: invalid type argument of unary ‘*’ (have ‘int’) ptr = (char *)device + sizeof(*device); ^~~~~~~ ../xf86drm.c:3982:11: error: invalid type argument of ‘->’ (have ‘int’) device->nodes = (char **)ptr; ^~ ../xf86drm.c:3987:15: error: invalid type argument of ‘->’ (have ‘int’) device->nodes[i] = ptr; ^~ ../xf86drm.c:3991:18: error: invalid type argument of ‘->’ (have ‘int’) memcpy(device->nodes[type], node, max_node_length); ^~ ../xf86drm.c: At top level: ../xf86drm.c:3998:32: error: unknown type name ‘drmDevicePtr’; did you mean ‘drmRegionPtr’? static int drmProcessPciDevice(drmDevicePtr *device, ^~~~~~~~~~~~ drmRegionPtr ../xf86drm.c:4084:49: error: unknown type name ‘drmUsbBusInfoPtr’; did you mean ‘drmBufInfoPtr’? static int drmParseUsbBusInfo(int maj, int min, drmUsbBusInfoPtr info) ^~~~~~~~~~~~~~~~ drmBufInfoPtr ../xf86drm.c:4125:52: error: unknown type name ‘drmUsbDeviceInfoPtr’; did you mean ‘drmServerInfoPtr’? static int drmParseUsbDeviceInfo(int maj, int min, drmUsbDeviceInfoPtr info) ^~~~~~~~~~~~~~~~~~~ drmServerInfoPtr ../xf86drm.c:4156:32: error: unknown type name ‘drmDevicePtr’; did you mean ‘drmRegionPtr’? static int drmProcessUsbDevice(drmDevicePtr *device, const char *node, ^~~~~~~~~~~~ drmRegionPtr ../xf86drm.c: In function ‘drmParseOFBusInfo’: ../xf86drm.c:4219:33: error: ‘DRM_PLATFORM_DEVICE_NAME_LEN’ undeclared (first use in this function); did you mean ‘DRM_PROP_NAME_LEN’? strncpy(fullname, tmp_name, DRM_PLATFORM_DEVICE_NAME_LEN); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ DRM_PROP_NAME_LEN ../xf86drm.c: At top level: ../xf86drm.c:4290:37: error: unknown type name ‘drmDevicePtr’; did you mean ‘drmRegionPtr’? static int drmProcessPlatformDevice(drmDevicePtr *device, ^~~~~~~~~~~~ drmRegionPtr ../xf86drm.c:4330:35: error: unknown type name ‘drmDevicePtr’; did you mean ‘drmRegionPtr’? static int drmProcessHost1xDevice(drmDevicePtr *device, ^~~~~~~~~~~~ drmRegionPtr ../xf86drm.c:4371:16: error: unknown type name ‘drmDevicePtr’; did you mean ‘drmRegionPtr’? process_device(drmDevicePtr *device, const char *d_name, ^~~~~~~~~~~~ drmRegionPtr ../xf86drm.c:4422:38: error: unknown type name ‘drmDevicePtr’; did you mean ‘drmRegionPtr’? static void drmFoldDuplicatedDevices(drmDevicePtr local_devices[], int count) ^~~~~~~~~~~~ drmRegionPtr ../xf86drm.c: In function ‘drm_device_validate_flags’: ../xf86drm.c:4443:26: error: ‘DRM_DEVICE_GET_PCI_REVISION’ undeclared (first use in this function) return (flags & ~DRM_DEVICE_GET_PCI_REVISION); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../xf86drm.c: At top level: ../xf86drm.c:4447:21: error: unknown type name ‘drmDevicePtr’; did you mean ‘drmRegionPtr’? drm_device_has_rdev(drmDevicePtr device, dev_t find_rdev) ^~~~~~~~~~~~ drmRegionPtr ../xf86drm.c:4478:71: error: unknown type name ‘drmDevicePtr’; did you mean ‘drmRegionPtr’? drm_public int drmGetDeviceFromDevId(dev_t find_rdev, uint32_t flags, drmDevicePtr *device) ^~~~~~~~~~~~ drmRegionPtr ../xf86drm.c:4606:54: error: unknown type name ‘drmDevicePtr’; did you mean ‘drmRegionPtr’? drm_public int drmGetDevice2(int fd, uint32_t flags, drmDevicePtr *device) ^~~~~~~~~~~~ drmRegionPtr ../xf86drm.c:4631:37: error: unknown type name ‘drmDevicePtr’; did you mean ‘drmRegionPtr’? drm_public int drmGetDevice(int fd, drmDevicePtr *device) ^~~~~~~~~~~~ drmRegionPtr ../xf86drm.c:4652:47: error: unknown type name ‘drmDevicePtr’; did you mean ‘drmRegionPtr’? drm_public int drmGetDevices2(uint32_t flags, drmDevicePtr devices[], ^~~~~~~~~~~~ drmRegionPtr ../xf86drm.c:4720:30: error: unknown type name ‘drmDevicePtr’; did you mean ‘drmRegionPtr’? drm_public int drmGetDevices(drmDevicePtr devices[], int max_devices) ^~~~~~~~~~~~ drmRegionPtr ../xf86drm.c:4725:18: warning: no previous prototype for ‘drmGetDeviceNameFromFd2’ [-Wmissing-prototypes] drm_public char *drmGetDeviceNameFromFd2(int fd) ^~~~~~~~~~~~~~~~~~~~~~~ ../xf86drm.c:4785:16: warning: no previous prototype for ‘drmSyncobjCreate’ [-Wmissing-prototypes] drm_public int drmSyncobjCreate(int fd, uint32_t flags, uint32_t *handle) ^~~~~~~~~~~~~~~~ ../xf86drm.c:4800:16: warning: no previous prototype for ‘drmSyncobjDestroy’ [-Wmissing-prototypes] drm_public int drmSyncobjDestroy(int fd, uint32_t handle) ^~~~~~~~~~~~~~~~~ ../xf86drm.c:4809:16: warning: no previous prototype for ‘drmSyncobjHandleToFD’ [-Wmissing-prototypes] drm_public int drmSyncobjHandleToFD(int fd, uint32_t handle, int *obj_fd) ^~~~~~~~~~~~~~~~~~~~ ../xf86drm.c:4824:16: warning: no previous prototype for ‘drmSyncobjFDToHandle’ [-Wmissing-prototypes] drm_public int drmSyncobjFDToHandle(int fd, int obj_fd, uint32_t *handle) ^~~~~~~~~~~~~~~~~~~~ ../xf86drm.c:4839:16: warning: no previous prototype for ‘drmSyncobjImportSyncFile’ [-Wmissing-prototypes] drm_public int drmSyncobjImportSyncFile(int fd, uint32_t handle, ^~~~~~~~~~~~~~~~~~~~~~~~ ../xf86drm.c:4851:16: warning: no previous prototype for ‘drmSyncobjExportSyncFile’ [-Wmissing-prototypes] drm_public int drmSyncobjExportSyncFile(int fd, uint32_t handle, ^~~~~~~~~~~~~~~~~~~~~~~~ ../xf86drm.c:4868:16: warning: no previous prototype for ‘drmSyncobjWait’ [-Wmissing-prototypes] drm_public int drmSyncobjWait(int fd, uint32_t *handles, unsigned num_handles, ^~~~~~~~~~~~~~ ../xf86drm.c:4890:16: warning: no previous prototype for ‘drmSyncobjReset’ [-Wmissing-prototypes] drm_public int drmSyncobjReset(int fd, const uint32_t *handles, ^~~~~~~~~~~~~~~ ../xf86drm.c:4904:16: warning: no previous prototype for ‘drmSyncobjSignal’ [-Wmissing-prototypes] drm_public int drmSyncobjSignal(int fd, const uint32_t *handles, ^~~~~~~~~~~~~~~~ ../xf86drm.c:4918:16: warning: no previous prototype for ‘drmSyncobjTimelineSignal’ [-Wmissing-prototypes] drm_public int drmSyncobjTimelineSignal(int fd, const uint32_t *handles, ^~~~~~~~~~~~~~~~~~~~~~~~ ../xf86drm.c:4933:16: warning: no previous prototype for ‘drmSyncobjTimelineWait’ [-Wmissing-prototypes] drm_public int drmSyncobjTimelineWait(int fd, uint32_t *handles, uint64_t *points, ^~~~~~~~~~~~~~~~~~~~~~ ../xf86drm.c:4958:16: warning: no previous prototype for ‘drmSyncobjQuery’ [-Wmissing-prototypes] drm_public int drmSyncobjQuery(int fd, uint32_t *handles, uint64_t *points, ^~~~~~~~~~~~~~~ ../xf86drm.c:4975:16: warning: no previous prototype for ‘drmSyncobjQuery2’ [-Wmissing-prototypes] drm_public int drmSyncobjQuery2(int fd, uint32_t *handles, uint64_t *points, ^~~~~~~~~~~~~~~~ ../xf86drm.c:4990:16: warning: no previous prototype for ‘drmSyncobjTransfer’ [-Wmissing-prototypes] drm_public int drmSyncobjTransfer(int fd, ^~~~~~~~~~~~~~~~~~ ../xf86drm.c:5031:1: warning: no previous prototype for ‘drmGetFormatModifierVendor’ [-Wmissing-prototypes] drmGetFormatModifierVendor(uint64_t modifier) ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../xf86drm.c:5056:1: warning: no previous prototype for ‘drmGetFormatModifierName’ [-Wmissing-prototypes] drmGetFormatModifierName(uint64_t modifier) ^~~~~~~~~~~~~~~~~~~~~~~~ ../xf86drm.c:5081:1: warning: no previous prototype for ‘drmGetFormatName’ [-Wmissing-prototypes] drmGetFormatName(uint32_t format) ^~~~~~~~~~~~~~~~ ../xf86drm.c: In function ‘drmOpen’: ../xf86drm.c:1147:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../xf86drm.c: In function ‘drmOpenControl’: ../xf86drm.c:1191:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../xf86drm.c: In function ‘drmOpenRender’: ../xf86drm.c:1196:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../xf86drm.c: In function ‘drmOpenOnce’: ../xf86drm.c:3100:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../xf86drm.c: In function ‘drmGetPrimaryDeviceNameFromFd’: ../xf86drm.c:3428:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../xf86drm.c: In function ‘drmGetRenderDeviceNameFromFd’: ../xf86drm.c:3433:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../xf86drm.c: In function ‘drmGetFormatModifierNameFromAmlogic’: ../xf86drm.c:546:5: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] asprintf(&mod_amlogic, "FBC,LAYOUT=%s,OPTIONS=%s", layout_str, opts_str); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../xf86drm.c: In function ‘drmGetFormatModifierNameFromNvidia’: ../xf86drm.c:359:9: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] asprintf(&mod_nvidia, "BLOCK_LINEAR_2D,HEIGHT=%"PRIu64",KIND=%"PRIu64"," ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "GEN=%"PRIu64",SECTOR=%"PRIu64",COMPRESSION=%"PRIu64"", height, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ kind, gen, sector, compression); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ At top level: ../xf86drm.c:4441:1: warning: ‘drm_device_validate_flags’ defined but not used [-Wunused-function] drm_device_validate_flags(uint32_t flags) ^~~~~~~~~~~~~~~~~~~~~~~~~ ../xf86drm.c:4230:12: warning: ‘drmParseOFDeviceInfo’ defined but not used [-Wunused-function] static int drmParseOFDeviceInfo(int maj, int min, char ***compatible) ^~~~~~~~~~~~~~~~~~~~ ../xf86drm.c:4195:12: warning: ‘drmParseOFBusInfo’ defined but not used [-Wunused-function] static int drmParseOFBusInfo(int maj, int min, char *fullname) ^~~~~~~~~~~~~~~~~ ../xf86drm.c:4040:12: warning: ‘drm_usb_dev_path’ defined but not used [-Wunused-function] static int drm_usb_dev_path(int maj, int min, char *path, size_t len) ^~~~~~~~~~~~~~~~ ../xf86drm.c:3961:21: warning: ‘drmDeviceAlloc’ defined but not used [-Wunused-function] static drmDevicePtr drmDeviceAlloc(unsigned int type, const char *node, ^~~~~~~~~~~~~~ ../xf86drm.c:3711:12: warning: ‘drmGetNodeType’ defined but not used [-Wunused-function] static int drmGetNodeType(const char *name) ^~~~~~~~~~~~~~ ../xf86drm.c:3550:1: warning: ‘get_pci_path’ defined but not used [-Wunused-function] get_pci_path(int maj, int min, char *pci_path) ^~~~~~~~~~~~ ../xf86drm.c:3519:12: warning: ‘drmParseSubsystemType’ defined but not used [-Wunused-function] static int drmParseSubsystemType(int maj, int min) ^~~~~~~~~~~~~~~~~~~~~ ../xf86drm.c:550:17: warning: ‘log2_int’ defined but not used [-Wunused-function] static unsigned log2_int(unsigned x) ^~~~~~~~ cc1: some warnings being treated as errors [81/130] cc -Itests/util/libutil.a.p -Itests/util -I../tests/util -I. -I.. -I../include/drm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -include config.h -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -MD -MQ tests/util/libutil.a.p/pattern.c.o -MF tests/util/libutil.a.p/pattern.c.o.d -o tests/util/libutil.a.p/pattern.c.o -c ../tests/util/pattern.c ninja: build stopped: subcommand failed. error: Bad exit status from /var/tmp/rpm-tmp.nNDc3s (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.nNDc3s (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/libdrm.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/libdrm.spec