>>> libdrm 2.4.99 Extracting bzcat /home/buildroot/build/instance-2/buildroot/instance-2/dl/libdrm/libdrm-2.4.99.tar.bz2 | tar --strip-components=1 -C /home/buildroot/build/instance-2/output/build/libdrm-2.4.99 -xf - >>> libdrm 2.4.99 Patching Applying 0001-Add-ARM-support-into-xf86drm.h.patch using patch: patching file xf86drm.h Applying 0002-xf86atomic-require-CAS-support-in-libatomic_ops.patch using patch: patching file xf86atomic.h Hunk #1 succeeded at 54 (offset -4 lines). Applying 0003-meson.build-fix-intel-atomics-detection.patch using patch: patching file meson.build Applying 0004-meson.build-enable-static-build.patch using patch: patching file amdgpu/meson.build patching file etnaviv/meson.build patching file exynos/meson.build Hunk #1 succeeded at 18 with fuzz 1. patching file freedreno/meson.build Hunk #1 succeeded at 39 with fuzz 1. patching file intel/meson.build patching file libkms/meson.build Hunk #1 succeeded at 41 with fuzz 1. patching file meson.build Hunk #1 succeeded at 282 (offset 3 lines). patching file nouveau/meson.build Hunk #1 succeeded at 19 with fuzz 1. patching file omap/meson.build patching file radeon/meson.build patching file tegra/meson.build >>> libdrm 2.4.99 Configuring rm -rf /home/buildroot/build/instance-2/output/build/libdrm-2.4.99//build mkdir -p /home/buildroot/build/instance-2/output/build/libdrm-2.4.99//build sed -e "s%@TARGET_CROSS@%/home/buildroot/build/instance-2/output/host/bin/x86_64-linux-%g" -e "s%@TARGET_ARCH@%x86_64%g" -e "s%@TARGET_CPU@%%g" -e "s%@TARGET_ENDIAN@%"little"%g" -e "s%@TARGET_CFLAGS@%`printf '"%s", ' -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 `%g" -e "s%@TARGET_LDFLAGS@%%g" -e "s%@TARGET_CXXFLAGS@%`printf '"%s", ' -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 `%g" -e "s%@HOST_DIR@%/home/buildroot/build/instance-2/output/host%g" package/meson/cross-compilation.conf.in > /home/buildroot/build/instance-2/output/build/libdrm-2.4.99//build/cross-compilation.conf PATH="/home/buildroot/build/instance-2/output/host/bin:/home/buildroot/build/instance-2/output/host/sbin:/sbin:/usr/sbin:/bin:/usr/bin" PYTHONNOUSERSITE=y /home/buildroot/build/instance-2/output/host/bin/meson --prefix=/usr --libdir=lib --default-library=shared --buildtype=release --cross-file=/home/buildroot/build/instance-2/output/build/libdrm-2.4.99//build/cross-compilation.conf -Dcairo-tests=false -Dmanpages=false -Dintel=true -Dradeon=true -Damdgpu=false -Dnouveau=true -Dvmwgfx=false -Domap=false -Detnaviv=true -Dexynos=false -Dfreedreno=false -Dtegra=false -Dvc4=false -Dudev=false -Dvalgrind=true /home/buildroot/build/instance-2/output/build/libdrm-2.4.99/ /home/buildroot/build/instance-2/output/build/libdrm-2.4.99//build The Meson build system Version: 0.51.1 Source dir: /home/buildroot/build/instance-2/output/build/libdrm-2.4.99 Build dir: /home/buildroot/build/instance-2/output/build/libdrm-2.4.99/build Build type: cross build WARNING: Unknown options: "manpages" Project name: libdrm Project version: 2.4.99 C compiler for the build machine: cc (gcc 4.9.2 "cc (Debian 4.9.2-10+deb8u2) 4.9.2") C compiler for the host machine: /home/buildroot/build/instance-2/output/host/bin/x86_64-linux-gcc (gcc 7.4.0 "x86_64-linux-gcc.br_real (Buildroot 2019.05.1) 7.4.0") Host machine cpu family: x86_64 Host machine cpu: Target machine cpu family: x86_64 Target machine cpu: Build machine cpu family: x86_64 Build machine cpu: x86_64 Run-time dependency threads found: YES Found pkg-config: /home/buildroot/build/instance-2/output/host/usr/bin/pkg-config (1.6.1) Found CMake: NO Run-time dependency atomic_ops found: NO (tried pkgconfig and cmake) Checking if "Intel Atomics" links: YES Checking for function "dlsym" : YES Checking for function "clock_gettime" : YES Library m found: YES Checking if "sys/sysctl.h works" compiles: NO Checking if "sys/select.h works" compiles: YES Checking if "alloca.h works" compiles: YES Header has symbol "major" : YES Checking for function "open_memstream" : YES Compiler for C supports arguments -Wall: YES Compiler for C supports arguments -Wextra: 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 -Wunused-parameter: YES Compiler for C supports arguments -Wattributes: YES Compiler for C supports arguments -Wlong-long: YES Compiler for C supports arguments -Wmissing-field-initializers: YES Run-time dependency pciaccess found: YES 0.16 Run-time dependency cunit found: NO (tried pkgconfig and cmake) Run-time dependency valgrind found: YES 3.15.0 Program xsltproc found: YES (/usr/bin/xsltproc) Program sed found: YES (/bin/sed) Program bash found: YES (/bin/bash) Checking if "compiler supports __attribute__(("hidden"))" compiles: YES Configuring config.h using configuration Program nm found: YES (/usr/bin/nm) meson.build:322: DEPRECATION: Library drm was passed to the "libraries" keyword argument of a previous call to generate() method instead of first positional argument. Adding libdrm to "Requires" field, but this is a deprecated behaviour that will change in a future version of Meson. Please report the issue if this warning cannot be avoided in your case. Message: Message: libdrm will be compiled with: Message: Message: libkms true Message: Intel API true Message: vmwgfx API false Message: Radeon API true Message: AMDGPU API false Message: Nouveau API true Message: OMAP API false Message: EXYNOS API false Message: Freedreno API false (kgsl: false) Message: Tegra API false Message: VC4 API false Message: Etnaviv API true Message: Build targets in project: 37 Option buildtype is: release [default: debugoptimized] Found ninja-1.9.0 at /home/buildroot/build/instance-2/output/host/bin/ninja >>> libdrm 2.4.99 Building PATH="/home/buildroot/build/instance-2/output/host/bin:/home/buildroot/build/instance-2/output/host/sbin:/sbin:/usr/sbin:/bin:/usr/bin" PYTHONNOUSERSITE=y /home/buildroot/build/instance-2/output/host/bin/ninja -j8 -C /home/buildroot/build/instance-2/output/build/libdrm-2.4.99//build ninja: Entering directory `/home/buildroot/build/instance-2/output/build/libdrm-2.4.99//build' [1/105] Compiling C object 'drm@sha/xf86drmRandom.c.o'. [2/105] Compiling C object 'libkms/4bec46f@@kms@sha/linux.c.o'. [3/105] Compiling C object 'libkms/4bec46f@@kms@sha/api.c.o'. [4/105] Compiling C object 'drm@sha/xf86drmHash.c.o'. [5/105] Compiling C object 'libkms/4bec46f@@kms@sha/dumb.c.o'. [6/105] Compiling C object 'libkms/4bec46f@@kms@sha/intel.c.o'. [7/105] Compiling C object 'libkms/4bec46f@@kms@sha/radeon.c.o'. [8/105] Compiling C object 'drm@sha/xf86drmSL.c.o'. [9/105] Compiling C object 'libkms/4bec46f@@kms@sha/nouveau.c.o'. [10/105] Compiling C object 'intel/96eebba@@drm_intel@sha/intel_bufmgr.c.o'. [11/105] Compiling C object 'intel/96eebba@@drm_intel@sha/intel_chipset.c.o'. [12/105] Compiling C object 'intel/96eebba@@drm_intel@sha/mm.c.o'. [13/105] Compiling C object 'intel/96eebba@@test_decode@exe/test_decode.c.o'. ../intel/test_decode.c: In function 'compare_batch': ../intel/test_decode.c:109:2: warning: dereferencing type-punned pointer might break strict-aliasing rules [-Wstrict-aliasing] out = open_memstream((char **)&ptr, &size); ^~~ [14/105] Compiling C object 'drm@sha/xf86drmMode.c.o'. [15/105] Compiling C object 'intel/96eebba@@drm_intel@sha/intel_bufmgr_fake.c.o'. [16/105] Compiling C object 'nouveau/79b9960@@drm_nouveau@sha/bufctx.c.o'. [17/105] Compiling C object 'nouveau/79b9960@@drm_nouveau@sha/nouveau.c.o'. [18/105] Compiling C object 'nouveau/79b9960@@drm_nouveau@sha/abi16.c.o'. [19/105] Compiling C object 'nouveau/79b9960@@drm_nouveau@sha/pushbuf.c.o'. [20/105] Compiling C object 'radeon/a1e84d4@@drm_radeon@sha/radeon_bo_gem.c.o'. [21/105] Compiling C object 'radeon/a1e84d4@@drm_radeon@sha/radeon_bo.c.o'. [22/105] Compiling C object 'radeon/a1e84d4@@drm_radeon@sha/radeon_cs_space.c.o'. [23/105] Compiling C object 'radeon/a1e84d4@@drm_radeon@sha/radeon_cs_gem.c.o'. [24/105] Compiling C object 'etnaviv/24e13fb@@drm_etnaviv@sha/etnaviv_device.c.o'. [25/105] Compiling C object 'radeon/a1e84d4@@drm_radeon@sha/radeon_cs.c.o'. [26/105] Compiling C object 'etnaviv/24e13fb@@drm_etnaviv@sha/etnaviv_gpu.c.o'. [27/105] Compiling C object 'etnaviv/24e13fb@@drm_etnaviv@sha/etnaviv_bo_cache.c.o'. [28/105] Compiling C object 'etnaviv/24e13fb@@drm_etnaviv@sha/etnaviv_bo.c.o'. ../etnaviv/etnaviv_bo.c: In function 'lookup_bo': ../etnaviv/etnaviv_bo.c:67:2: warning: dereferencing type-punned pointer might break strict-aliasing rules [-Wstrict-aliasing] if (!drmHashLookup(tbl, handle, (void **)&bo)) { ^~ [29/105] Compiling C object 'etnaviv/24e13fb@@drm_etnaviv@sha/etnaviv_perfmon.c.o'. [30/105] Compiling C object 'etnaviv/24e13fb@@drm_etnaviv@sha/etnaviv_pipe.c.o'. [31/105] Compiling C object 'etnaviv/24e13fb@@drm_etnaviv@sha/etnaviv_cmd_stream.c.o'. [32/105] Compiling C object 'drm@sha/xf86drm.c.o'. In file included from ../xf86drm.c:69:0: ../xf86drm.c: In function 'drmGetMinorNameForFD': ../xf86drm.h:85:23: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 55 [-Wformat-truncation=] #define DRM_DIR_NAME "/dev/dri" ^ ../xf86drm.c:2892:50: note: in expansion of macro 'DRM_DIR_NAME' snprintf(dev_name, sizeof(dev_name), DRM_DIR_NAME "/%s", ^~~~~~~~~~~~ ../xf86drm.c:2892:65: note: format string is defined here snprintf(dev_name, sizeof(dev_name), DRM_DIR_NAME "/%s", ^~ ../xf86drm.c:2892:13: note: 'snprintf' output between 10 and 265 bytes into a destination of size 64 snprintf(dev_name, sizeof(dev_name), DRM_DIR_NAME "/%s", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ent->d_name); ~~~~~~~~~~~~ [33/105] Linking target libdrm.so.2.4.0. [34/105] Generating drm with a custom command. [35/105] Generating drm-kms with a custom command. [36/105] Generating drm-memory with a custom command. [37/105] Generating drmAvailable with a custom command. [38/105] Compiling C object 'radeon/a1e84d4@@drm_radeon@sha/radeon_surface.c.o'. [39/105] Generating drmHandleEvent with a custom command. [40/105] Compiling C object 'tests/util/16d880e@@util@sta/format.c.o'. [41/105] Generating drmModeGetResources with a custom command. [42/105] Compiling C object 'intel/96eebba@@drm_intel@sha/intel_bufmgr_gem.c.o'. [43/105] Compiling C object 'tests/util/16d880e@@util@sta/kms.c.o'. [44/105] Compiling C object 'tests/kms/d711c5d@@kms-test@sta/libkms-test-crtc.c.o'. [45/105] Compiling C object 'tests/kms/d711c5d@@kms-test@sta/libkms-test-device.c.o'. [46/105] Generating gen-drm-mm with a meson_exe.py custom command. [47/105] Generating symbol file 'drm@sha/libdrm.so.2.4.0.symbols'. [48/105] Generating gen-drm-gem with a meson_exe.py custom command. [49/105] Compiling C object 'tests/kms/d711c5d@@kms-test@sta/libkms-test-framebuffer.c.o'. [50/105] Linking target libkms/libkms.so.1.0.0. [51/105] Linking target nouveau/libdrm_nouveau.so.2.0.0. [52/105] Compiling C object 'tests/kms/d711c5d@@kms-test@sta/libkms-test-plane.c.o'. [53/105] Linking target radeon/libdrm_radeon.so.1.0.1. [54/105] Linking target etnaviv/libdrm_etnaviv.so.1.0.0. [55/105] Generating gen-drm-ttm with a meson_exe.py custom command. [56/105] Compiling C object 'intel/96eebba@@drm_intel@sha/intel_decode.c.o'. [57/105] Linking target intel/libdrm_intel.so.1.0.0. [58/105] Generating drm-mm.7 with a custom command. [59/105] Compiling C object 'tests/kms/d711c5d@@kms-test@sta/libkms-test-screen.c.o'. [60/105] Linking static target tests/kms/libkms-test.a. [61/105] Generating drm-gem.7 with a custom command. [62/105] Compiling C object 'tests/kms/d711c5d@@kms-steal-crtc@exe/kms-steal-crtc.c.o'. [63/105] Generating symbol file 'etnaviv/24e13fb@@drm_etnaviv@sha/libdrm_etnaviv.so.1.0.0.symbols'. [64/105] Compiling C object 'tests/kms/d711c5d@@kms-universal-planes@exe/kms-universal-planes.c.o'. [65/105] Generating symbol file 'libkms/4bec46f@@kms@sha/libkms.so.1.0.0.symbols'. [66/105] Linking target tests/kms/kms-universal-planes. [67/105] Generating symbol file 'nouveau/79b9960@@drm_nouveau@sha/libdrm_nouveau.so.2.0.0.symbols'. [68/105] Compiling C object 'tests/modeprint/6b185c3@@modeprint@exe/modeprint.c.o'. [69/105] Compiling C object 'tests/proptest/7eb5fbb@@proptest@exe/proptest.c.o'. [70/105] Compiling C object 'tests/modetest/f8783dc@@modetest@exe/cursor.c.o'. [71/105] Compiling C object 'tests/kmstest/e2824f4@@kmstest@exe/main.c.o'. [72/105] Compiling C object 'tests/modetest/f8783dc@@modetest@exe/buffers.c.o'. [73/105] Compiling C object 'tests/vbltest/3928abf@@vbltest@exe/vbltest.c.o'. [74/105] Compiling C object 'tests/radeon/f866ec7@@radeon_ttm@exe/rbo.c.o'. [75/105] Compiling C object 'tests/etnaviv/728953a@@etnaviv_2d_test@exe/write_bmp.c.o'. [76/105] Generating symbol file 'intel/96eebba@@drm_intel@sha/libdrm_intel.so.1.0.0.symbols'. [77/105] Compiling C object 'tests/radeon/f866ec7@@radeon_ttm@exe/radeon_ttm.c.o'. [78/105] Generating drm-ttm.7 with a custom command. [79/105] Linking target tests/radeon/radeon_ttm. [80/105] Linking target intel/test_decode. [81/105] Compiling C object 'tests/etnaviv/728953a@@etnaviv_2d_test@exe/etnaviv_2d_test.c.o'. [82/105] Compiling C object 'tests/nouveau/e47a46e@@threaded@exe/threaded.c.o'. FAILED: tests/nouveau/e47a46e@@threaded@exe/threaded.c.o /home/buildroot/build/instance-2/output/host/bin/x86_64-linux-gcc -Itests/nouveau/e47a46e@@threaded@exe -Itests/nouveau -I../tests/nouveau -I. -I../ -I../include/drm -Itests/nouveau/../../nouveau -I../tests/nouveau/../../nouveau -fdiagnostics-color=always -pipe -Wall -Winvalid-pch -std=gnu99 -O3 -include config.h -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -pthread -Wall -Wextra -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 -fvisibility=hidden -MD -MQ 'tests/nouveau/e47a46e@@threaded@exe/threaded.c.o' -MF 'tests/nouveau/e47a46e@@threaded@exe/threaded.c.o.d' -o 'tests/nouveau/e47a46e@@threaded@exe/threaded.c.o' -c ../tests/nouveau/threaded.c ../tests/nouveau/threaded.c:39:5: error: conflicting types for 'ioctl' int ioctl(int fd, unsigned long request, ...) ^~~~~ In file included from ../tests/nouveau/threaded.c:23:0: /home/buildroot/build/instance-2/output/host/x86_64-buildroot-linux-musl/sysroot/usr/include/sys/ioctl.h:119:5: note: previous declaration of 'ioctl' was here int ioctl (int, int, ...); ^~~~~ [83/105] Compiling C object 'tests/etnaviv/728953a@@etnaviv_bo_cache_test@exe/etnaviv_bo_cache_test.c.o'. [84/105] Compiling C object 'tests/etnaviv/728953a@@etnaviv_cmd_stream_test@exe/etnaviv_cmd_stream_test.c.o'. [85/105] Linking target tests/etnaviv/etnaviv_2d_test. [86/105] Compiling C object 'tests/59830eb@@drmsl@exe/drmsl.c.o'. [87/105] Compiling C object 'tests/59830eb@@hash@exe/hash.c.o'. [88/105] Compiling C object 'tests/util/16d880e@@util@sta/pattern.c.o'. ../tests/util/pattern.c: In function 'util_smpte_c8_gamma': ../tests/util/pattern.c:646:2: warning: 'memset' used with constant zero length parameter; this could be due to transposed parameters [-Wmemset-transposed-args] memset(lut, size * sizeof(struct drm_color_lut), 0); ^~~~~~ ../tests/util/pattern.c: In function 'fill_tiles_rgb16fp': ../tests/util/pattern.c:988:8: warning: unused variable 'mem_base' [-Wunused-variable] void *mem_base = mem; ^~~~~~~~ [89/105] Compiling C object 'tests/modetest/f8783dc@@modetest@exe/modetest.c.o'. ninja: build stopped: subcommand failed. package/pkg-generic.mk:238: recipe for target '/home/buildroot/build/instance-2/output/build/libdrm-2.4.99/.stamp_built' failed make: *** [/home/buildroot/build/instance-2/output/build/libdrm-2.4.99/.stamp_built] Error 1 make: Leaving directory '/home/buildroot/build/instance-2/buildroot'