>>> libdrm 2.4.100 Extracting bzcat /home/naourr/work/instance-0/dl/libdrm/libdrm-2.4.100.tar.bz2 | /home/naourr/work/instance-0/output-1/host/bin/tar --strip-components=1 -C /home/naourr/work/instance-0/output-1/build/libdrm-2.4.100 -xf - >>> libdrm 2.4.100 Patching Applying 0001-Add-ARM-support-into-xf86drm.h.patch using patch: patching file xf86drm.h Hunk #1 succeeded at 481 (offset 12 lines). 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 287 (offset 8 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 Applying 0005-tests-meson.build-disable-nouveau-tests-for-static-b.patch using patch: patching file tests/meson.build Applying 0006-tests-nouveau-threaded-adapt-ioctl-signature.patch using patch: patching file tests/nouveau/threaded.c >>> libdrm 2.4.100 Configuring rm -rf /home/naourr/work/instance-0/output-1/build/libdrm-2.4.100//build mkdir -p /home/naourr/work/instance-0/output-1/build/libdrm-2.4.100//build sed -e 's%@TARGET_CROSS@%/home/naourr/work/instance-0/output-1/host/bin/sparc-linux-%g' -e 's%@TARGET_ARCH@%sparc%g' -e 's%@TARGET_CPU@%v8%g' -e 's%@TARGET_ENDIAN@%"big"%g' -e 's%@TARGET_CFLAGS@%"-D_LARGEFILE_SOURCE", "-D_LARGEFILE64_SOURCE", "-D_FILE_OFFSET_BITS=64", "-O2", "-DAO_NO_SPARC_V9"%g' -e 's%@TARGET_LDFLAGS@%%g' -e 's%@TARGET_CXXFLAGS@%"-D_LARGEFILE_SOURCE", "-D_LARGEFILE64_SOURCE", "-D_FILE_OFFSET_BITS=64", "-O2"%g' -e 's%@HOST_DIR@%/home/naourr/work/instance-0/output-1/host%g' -e 's%@STAGING_DIR@%/home/naourr/work/instance-0/output-1/host/sparc-buildroot-linux-uclibc/sysroot%g' package/meson/cross-compilation.conf.in > /home/naourr/work/instance-0/output-1/build/libdrm-2.4.100//build/cross-compilation.conf PATH="/home/naourr/work/instance-0/output-1/host/bin:/home/naourr/work/instance-0/output-1/host/sbin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/naourr/bin:/home/naourr/git/git-wrappers:/home/naourr/.local/bin:/home/naourr/bin" PYTHONNOUSERSITE=y /home/naourr/work/instance-0/output-1/host/bin/meson --prefix=/usr --libdir=lib --default-library=shared --buildtype=release --cross-file=/home/naourr/work/instance-0/output-1/build/libdrm-2.4.100//build/cross-compilation.conf -Dcairo-tests=false -Dmanpages=false -Dintel=false -Dradeon=false -Damdgpu=true -Dnouveau=false -Dvmwgfx=false -Domap=false -Detnaviv=true -Dexynos=false -Dfreedreno=false -Dtegra=false -Dvc4=false -Dudev=false -Dvalgrind=false -Dinstall-test-programs=true /home/naourr/work/instance-0/output-1/build/libdrm-2.4.100/ /home/naourr/work/instance-0/output-1/build/libdrm-2.4.100//build WARNING: Unknown endian "big" The Meson build system Version: 0.53.2 Source dir: /home/naourr/work/instance-0/output-1/build/libdrm-2.4.100 Build dir: /home/naourr/work/instance-0/output-1/build/libdrm-2.4.100/build Build type: cross build WARNING: Unknown options: "manpages" Project name: libdrm Project version: 2.4.100 C compiler for the build machine: cc (gcc 9.2.1 "cc (GCC) 9.2.1 20190827 (Red Hat 9.2.1-1)") C linker for the build machine: cc ld.bfd 2.31.1-37 C compiler for the host machine: /home/naourr/work/instance-0/output-1/host/bin/sparc-linux-gcc (gcc 8.3.0 "sparc-linux-gcc.br_real (Buildroot 2019.11) 8.3.0") C linker for the host machine: /home/naourr/work/instance-0/output-1/host/bin/sparc-linux-gcc ld.bfd 2.31.1 Build machine cpu family: x86_64 Build machine cpu: x86_64 Host machine cpu family: sparc Host machine cpu: v8 Target machine cpu family: sparc Target machine cpu: v8 Run-time dependency threads found: YES Found pkg-config: /home/naourr/work/instance-0/output-1/host/bin/pkgconf (1.6.1) Run-time dependency atomic_ops found: YES 7.6.10 Checking if "Intel Atomics" links: NO Checking for function "dlsym" : YES Checking for function "clock_gettime" : YES Library m found: YES Checking if "sys/sysctl.h works" compiles: YES Checking if "sys/select.h works" compiles: YES Checking if "alloca.h works" compiles: 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 -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 Found CMake: NO Run-time dependency pciaccess found: NO (tried pkgconfig and cmake) Run-time dependency cunit found: YES 2.1-3 Program xsltproc found: YES (/usr/bin/xsltproc) Program sed found: YES (/usr/bin/sed) Checking if "compiler supports __attribute__(("hidden"))" compiles: YES Configuring config.h using configuration Program nm found: YES (/usr/bin/nm) meson.build:327: 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. Program kms-symbol-check found: YES (/home/naourr/work/instance-0/output-1/build/libdrm-2.4.100/libkms/kms-symbol-check) Program amdgpu-symbol-check found: YES (/home/naourr/work/instance-0/output-1/build/libdrm-2.4.100/amdgpu/amdgpu-symbol-check) Program etnaviv-symbol-check found: YES (/home/naourr/work/instance-0/output-1/build/libdrm-2.4.100/etnaviv/etnaviv-symbol-check) Message: Message: libdrm will be compiled with: Message: Message: libkms true Message: Intel API false Message: vmwgfx API false Message: Radeon API false Message: AMDGPU API true Message: Nouveau API false 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: 21 Option buildtype is: release [default: debugoptimized] Found ninja-1.10.0 at /home/naourr/work/instance-0/output-1/host/bin/ninja >>> libdrm 2.4.100 Building PATH="/home/naourr/work/instance-0/output-1/host/bin:/home/naourr/work/instance-0/output-1/host/sbin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/naourr/bin:/home/naourr/git/git-wrappers:/home/naourr/.local/bin:/home/naourr/bin" PYTHONNOUSERSITE=y /home/naourr/work/instance-0/output-1/host/bin/ninja -j4 -C /home/naourr/work/instance-0/output-1/build/libdrm-2.4.100//build ninja: Entering directory `/home/naourr/work/instance-0/output-1/build/libdrm-2.4.100//build' [1/84] Compiling C object 'drm@sha/xf86drmRandom.c.o'. [2/84] Compiling C object 'drm@sha/xf86drmHash.c.o'. [3/84] Compiling C object 'libkms/4bec46f@@kms@sha/linux.c.o'. [4/84] Compiling C object 'drm@sha/xf86drmSL.c.o'. [5/84] Compiling C object 'libkms/4bec46f@@kms@sha/api.c.o'. [6/84] Compiling C object 'libkms/4bec46f@@kms@sha/dumb.c.o'. [7/84] Compiling C object 'amdgpu/2894f6a@@drm_amdgpu@sha/amdgpu_asic_id.c.o'. [8/84] Compiling C object 'amdgpu/2894f6a@@drm_amdgpu@sha/amdgpu_bo.c.o'. ../amdgpu/amdgpu_bo.c: In function 'amdgpu_find_bo_by_cpu_mapping': ../amdgpu/amdgpu_bo.c:562:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] cpu < (void*)((uintptr_t)bo->cpu_ptr + bo->alloc_size)) ^ [9/84] Compiling C object 'drm@sha/xf86drmMode.c.o'. [10/84] Compiling C object 'amdgpu/2894f6a@@drm_amdgpu@sha/amdgpu_cs.c.o'. [11/84] Compiling C object 'amdgpu/2894f6a@@drm_amdgpu@sha/amdgpu_device.c.o'. [12/84] Compiling C object 'amdgpu/2894f6a@@drm_amdgpu@sha/amdgpu_gpu_info.c.o'. [13/84] Compiling C object 'amdgpu/2894f6a@@drm_amdgpu@sha/amdgpu_vm.c.o'. [14/84] Compiling C object 'amdgpu/2894f6a@@drm_amdgpu@sha/handle_table.c.o'. [15/84] Compiling C object 'amdgpu/2894f6a@@drm_amdgpu@sha/amdgpu_vamgr.c.o'. [16/84] Compiling C object 'etnaviv/24e13fb@@drm_etnaviv@sha/etnaviv_gpu.c.o'. [17/84] Compiling C object 'etnaviv/24e13fb@@drm_etnaviv@sha/etnaviv_device.c.o'. [18/84] Compiling C object 'etnaviv/24e13fb@@drm_etnaviv@sha/etnaviv_bo_cache.c.o'. [19/84] Compiling C object 'etnaviv/24e13fb@@drm_etnaviv@sha/etnaviv_perfmon.c.o'. [20/84] 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:43: warning: dereferencing type-punned pointer might break strict-aliasing rules [-Wstrict-aliasing] if (!drmHashLookup(tbl, handle, (void **)&bo)) { ^~~ [21/84] Compiling C object 'tests/util/16d880e@@util@sta/format.c.o'. [22/84] Compiling C object 'drm@sha/xf86drm.c.o'. In file included from ../xf86drm.c:69: ../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:2873:50: note: in expansion of macro 'DRM_DIR_NAME' snprintf(dev_name, sizeof(dev_name), DRM_DIR_NAME "/%s", ^~~~~~~~~~~~ ../xf86drm.c:2873:65: note: format string is defined here snprintf(dev_name, sizeof(dev_name), DRM_DIR_NAME "/%s", ^~ ../xf86drm.c:2873: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); ~~~~~~~~~~~~ ../xf86drm.c: In function 'parse_separate_sysfs_files': ../xf86drm.c:3154:37: warning: '/' directive output may be truncated writing 1 byte into a region of size between 0 and 4096 [-Wformat-truncation=] snprintf(path, PATH_MAX, "%s/%s", pci_path, attrs[i]); ^ ../xf86drm.c:3154:9: note: 'snprintf' output 2 or more bytes (assuming 4098) into a destination of size 4096 snprintf(path, PATH_MAX, "%s/%s", pci_path, attrs[i]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../xf86drm.c: In function 'process_device': ../xf86drm.c:3184:33: warning: '/config' directive output may be truncated writing 7 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] snprintf(path, PATH_MAX, "%s/config", pci_path); ^~~~~~~ ../xf86drm.c:3184:5: note: 'snprintf' output between 8 and 4104 bytes into a destination of size 4096 snprintf(path, PATH_MAX, "%s/config", pci_path); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [23/84] Compiling C object 'etnaviv/24e13fb@@drm_etnaviv@sha/etnaviv_pipe.c.o'. [24/84] Linking target libdrm.so.2.4.0. [25/84] Compiling C object 'tests/util/16d880e@@util@sta/kms.c.o'. [26/84] Compiling C object 'etnaviv/24e13fb@@drm_etnaviv@sha/etnaviv_cmd_stream.c.o'. [27/84] Compiling C object 'tests/kms/d711c5d@@kms-test@sta/libkms-test-crtc.c.o'. [28/84] Compiling C object 'tests/kms/d711c5d@@kms-test@sta/libkms-test-framebuffer.c.o'. [29/84] Compiling C object 'tests/kms/d711c5d@@kms-test@sta/libkms-test-device.c.o'. [30/84] Compiling C object 'tests/kms/d711c5d@@kms-test@sta/libkms-test-screen.c.o'. [31/84] Compiling C object 'tests/kms/d711c5d@@kms-test@sta/libkms-test-plane.c.o'. [32/84] Linking static target tests/kms/libkms-test.a. [33/84] Compiling C object 'tests/kms/d711c5d@@kms-steal-crtc@exe/kms-steal-crtc.c.o'. [34/84] Compiling C object 'tests/modeprint/6b185c3@@modeprint@exe/modeprint.c.o'. [35/84] Generating symbol file 'drm@sha/libdrm.so.2.4.0.symbols'. [36/84] Linking target libkms/libkms.so.1.0.0. [37/84] Generating symbol file 'libkms/4bec46f@@kms@sha/libkms.so.1.0.0.symbols'. [38/84] Linking target amdgpu/libdrm_amdgpu.so.1.0.0. [39/84] Compiling C object 'tests/util/16d880e@@util@sta/pattern.c.o'. ../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; ^~~~~~~~ [40/84] Linking target etnaviv/libdrm_etnaviv.so.1.0.0. [41/84] Compiling C object 'tests/kms/d711c5d@@kms-universal-planes@exe/kms-universal-planes.c.o'. [42/84] Linking static target tests/util/libutil.a. [43/84] Linking target tests/kms/kms-steal-crtc. [44/84] Linking target tests/kms/kms-universal-planes. [45/84] Linking target tests/modeprint/modeprint. [46/84] Compiling C object 'tests/proptest/7eb5fbb@@proptest@exe/proptest.c.o'. [47/84] Linking target tests/proptest/proptest. [48/84] Generating symbol file 'amdgpu/2894f6a@@drm_amdgpu@sha/libdrm_amdgpu.so.1.0.0.symbols'. [49/84] Compiling C object 'tests/modetest/f8783dc@@modetest@exe/buffers.c.o'. [50/84] Generating symbol file 'etnaviv/24e13fb@@drm_etnaviv@sha/libdrm_etnaviv.so.1.0.0.symbols'. [51/84] Compiling C object 'tests/modetest/f8783dc@@modetest@exe/cursor.c.o'. [52/84] Compiling C object 'tests/vbltest/3928abf@@vbltest@exe/vbltest.c.o'. [53/84] Compiling C object 'tests/kmstest/e2824f4@@kmstest@exe/main.c.o'. [54/84] Linking target tests/vbltest/vbltest. [55/84] Linking target tests/kmstest/kmstest. [56/84] Compiling C object 'tests/amdgpu/b9f2b1d@@amdgpu_test@exe/amdgpu_test.c.o'. [57/84] Compiling C object 'tests/amdgpu/b9f2b1d@@amdgpu_test@exe/bo_tests.c.o'. [58/84] Compiling C object 'tests/amdgpu/b9f2b1d@@amdgpu_test@exe/cs_tests.c.o'. ../tests/amdgpu/cs_tests.c: In function 'amdgpu_cs_uvd_decode': ../tests/amdgpu/cs_tests.c:383:4: warning: 'ctx_addr' may be used uninitialized in this function [-Wmaybe-uninitialized] uvd_cmd(ctx_addr, 0x206, &i); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ [59/84] Compiling C object 'tests/amdgpu/b9f2b1d@@amdgpu_test@exe/uvd_enc_tests.c.o'. [60/84] Compiling C object 'tests/amdgpu/b9f2b1d@@amdgpu_test@exe/vce_tests.c.o'. [61/84] Compiling C object 'tests/modetest/f8783dc@@modetest@exe/modetest.c.o'. [62/84] Linking target tests/modetest/modetest. [63/84] Compiling C object 'tests/amdgpu/b9f2b1d@@amdgpu_test@exe/vm_tests.c.o'. [64/84] Compiling C object 'tests/amdgpu/b9f2b1d@@amdgpu_test@exe/vcn_tests.c.o'. [65/84] Compiling C object 'tests/amdgpu/b9f2b1d@@amdgpu_test@exe/basic_tests.c.o'. ../tests/amdgpu/basic_tests.c: In function 'amdgpu_memcpy_draw': ../tests/amdgpu/basic_tests.c:2980:23: warning: unused variable 'hangs' [-Wunused-variable] uint32_t hang_state, hangs, expired; ^~~~~ ../tests/amdgpu/basic_tests.c:2980:11: warning: unused variable 'hang_state' [-Wunused-variable] uint32_t hang_state, hangs, expired; ^~~~~~~~~~ [66/84] Compiling C object 'tests/amdgpu/b9f2b1d@@amdgpu_test@exe/deadlock_tests.c.o'. [67/84] Compiling C object 'tests/etnaviv/728953a@@etnaviv_2d_test@exe/write_bmp.c.o'. [68/84] Compiling C object 'tests/etnaviv/728953a@@etnaviv_2d_test@exe/etnaviv_2d_test.c.o'. [69/84] Compiling C object 'tests/etnaviv/728953a@@etnaviv_cmd_stream_test@exe/etnaviv_cmd_stream_test.c.o'. [70/84] Linking target tests/etnaviv/etnaviv_2d_test. [71/84] Linking target tests/etnaviv/etnaviv_cmd_stream_test. [72/84] Compiling C object 'tests/amdgpu/b9f2b1d@@amdgpu_test@exe/syncobj_tests.c.o'. ../tests/amdgpu/syncobj_tests.c: In function 'syncobj_command_submission_helper': ../tests/amdgpu/syncobj_tests.c:99:20: warning: unused variable 'flags' [-Wunused-variable] uint32_t expired, flags; ^~~~~ [73/84] Compiling C object 'tests/etnaviv/728953a@@etnaviv_bo_cache_test@exe/etnaviv_bo_cache_test.c.o'. [74/84] Linking target tests/etnaviv/etnaviv_bo_cache_test. [75/84] Compiling C object 'tests/59830eb@@drmsl@exe/drmsl.c.o'. [76/84] Linking target tests/drmsl. [77/84] Compiling C object 'tests/59830eb@@hash@exe/hash.c.o'. [78/84] Compiling C object 'tests/amdgpu/b9f2b1d@@amdgpu_test@exe/ras_tests.c.o'. ../tests/amdgpu/ras_tests.c: In function 'set_test_card': ../tests/amdgpu/ras_tests.c:653:6: warning: unused variable 'i' [-Wunused-variable] int i; ^ ../tests/amdgpu/ras_tests.c: In function 'amdgpu_ras_query_err_count': ../tests/amdgpu/ras_tests.c:745:6: warning: unused variable 'ret' [-Wunused-variable] int ret; ^~~ ../tests/amdgpu/ras_tests.c: In function '__amdgpu_ras_ip_inject_test': ../tests/amdgpu/ras_tests.c:897:70: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'uint64_t' {aka 'const long long unsigned int'} [-Wformat=] printf("\t Test %s@block %s, subblock %d, error_type %s, address %ld, value %ld: %s\n", ~~^ %lld ../tests/amdgpu/ras_tests.c:902:4: ip_test[i].address, ~~~~~~~~~~~~~~~~~~ ../tests/amdgpu/ras_tests.c:897:81: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'uint64_t' {aka 'const long long unsigned int'} [-Wformat=] printf("\t Test %s@block %s, subblock %d, error_type %s, address %ld, value %ld: %s\n", ~~^ %lld ../tests/amdgpu/ras_tests.c:903:4: ip_test[i].value, ~~~~~~~~~~~~~~~~ ../tests/amdgpu/ras_tests.c: In function 'amdgpu_ras_basic_test': ../tests/amdgpu/ras_tests.c:960:7: warning: unused variable 'name' [-Wunused-variable] char name[1024]; ^~~~ ../tests/amdgpu/ras_tests.c:959:20: warning: unused variable 'ce' [-Wunused-variable] unsigned long ue, ce; ^~ ../tests/amdgpu/ras_tests.c:959:16: warning: unused variable 'ue' [-Wunused-variable] unsigned long ue, ce; ^~ At top level: ../tests/amdgpu/ras_tests.c:835:13: warning: 'amdgpu_ras_enable_test' defined but not used [-Wunused-function] static void amdgpu_ras_enable_test(void) ^~~~~~~~~~~~~~~~~~~~~~ ../tests/amdgpu/ras_tests.c: In function 'amdgpu_ras_query_err_count': ../tests/amdgpu/ras_tests.c:752:21: warning: '%s' directive writing 10 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] sprintf(name, "%s%s%s", get_ras_sysfs_root(), ras_block_str(block), "_err_count"); ^~ ~~~~~~~~~~~~ ../tests/amdgpu/ras_tests.c:752:2: note: 'sprintf' output 11 or more bytes (assuming 1034) into a destination of size 1024 sprintf(name, "%s%s%s", get_ras_sysfs_root(), ras_block_str(block), "_err_count"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../tests/amdgpu/ras_tests.c: In function 'amdgpu_ras_basic_test': ../tests/amdgpu/ras_tests.c:977:20: warning: '%s' directive writing 8 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] sprintf(path, "%s%s", get_ras_debugfs_root(), "ras_ctrl"); ^~ ~~~~~~~~~~ ../tests/amdgpu/ras_tests.c:977:3: note: 'sprintf' output between 9 and 1032 bytes into a destination of size 1024 sprintf(path, "%s%s", get_ras_debugfs_root(), "ras_ctrl"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../tests/amdgpu/ras_tests.c:981:20: warning: '%s' directive writing 8 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] sprintf(path, "%s%s", get_ras_sysfs_root(), "features"); ^~ ~~~~~~~~~~ ../tests/amdgpu/ras_tests.c:981:3: note: 'sprintf' output between 9 and 1032 bytes into a destination of size 1024 sprintf(path, "%s%s", get_ras_sysfs_root(), "features"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../tests/amdgpu/ras_tests.c:993:23: warning: '%s' directive writing 10 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] sprintf(path, "%s%s%s", get_ras_sysfs_root(), ras_block_str(j), "_err_count"); ^~ ~~~~~~~~~~~~ ../tests/amdgpu/ras_tests.c:993:4: note: 'sprintf' output 11 or more bytes (assuming 1034) into a destination of size 1024 sprintf(path, "%s%s%s", get_ras_sysfs_root(), ras_block_str(j), "_err_count"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../tests/amdgpu/ras_tests.c:997:23: warning: '%s' directive writing 11 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] sprintf(path, "%s%s%s", get_ras_debugfs_root(), ras_block_str(j), "_err_inject"); ^~ ~~~~~~~~~~~~~ ../tests/amdgpu/ras_tests.c:997:4: note: 'sprintf' output 12 or more bytes (assuming 1035) into a destination of size 1024 sprintf(path, "%s%s%s", get_ras_debugfs_root(), ras_block_str(j), "_err_inject"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../tests/amdgpu/ras_tests.c: In function 'amdgpu_ras_invoke': ../tests/amdgpu/ras_tests.c:733:19: warning: '%s' directive writing 8 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] sprintf(path, "%s%s", get_ras_debugfs_root(), "ras_ctrl"); ^~ ~~~~~~~~~~ ../tests/amdgpu/ras_tests.c:733:2: note: 'sprintf' output between 9 and 1032 bytes into a destination of size 1024 sprintf(path, "%s%s", get_ras_debugfs_root(), "ras_ctrl"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'amdgpu_ras_inject', inlined from '__amdgpu_ras_ip_inject_test' at ../tests/amdgpu/ras_tests.c:873:9: ../tests/amdgpu/ras_tests.c:782:2: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation] strncpy(inject->head.name, ras_block_str(block), 32); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [79/84] Linking target tests/hash. [80/84] Linking target tests/amdgpu/amdgpu_test. FAILED: tests/amdgpu/amdgpu_test /home/naourr/work/instance-0/output-1/host/bin/sparc-linux-gcc -o tests/amdgpu/amdgpu_test 'tests/amdgpu/b9f2b1d@@amdgpu_test@exe/amdgpu_test.c.o' 'tests/amdgpu/b9f2b1d@@amdgpu_test@exe/basic_tests.c.o' 'tests/amdgpu/b9f2b1d@@amdgpu_test@exe/bo_tests.c.o' 'tests/amdgpu/b9f2b1d@@amdgpu_test@exe/cs_tests.c.o' 'tests/amdgpu/b9f2b1d@@amdgpu_test@exe/vce_tests.c.o' 'tests/amdgpu/b9f2b1d@@amdgpu_test@exe/uvd_enc_tests.c.o' 'tests/amdgpu/b9f2b1d@@amdgpu_test@exe/vcn_tests.c.o' 'tests/amdgpu/b9f2b1d@@amdgpu_test@exe/deadlock_tests.c.o' 'tests/amdgpu/b9f2b1d@@amdgpu_test@exe/vm_tests.c.o' 'tests/amdgpu/b9f2b1d@@amdgpu_test@exe/ras_tests.c.o' 'tests/amdgpu/b9f2b1d@@amdgpu_test@exe/syncobj_tests.c.o' -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -Wl,--start-group libdrm.so.2.4.0 amdgpu/libdrm_amdgpu.so.1.0.0 /home/naourr/work/instance-0/output-1/host/sparc-buildroot-linux-uclibc/sysroot/usr/lib/libcunit.so -Wl,--end-group -pthread '-Wl,-rpath,$ORIGIN/../..:$ORIGIN/../../amdgpu' -Wl,-rpath-link,/home/naourr/work/instance-0/output-1/build/libdrm-2.4.100/build/ -Wl,-rpath-link,/home/naourr/work/instance-0/output-1/build/libdrm-2.4.100/build/amdgpu /home/naourr/work/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/sparc-buildroot-linux-uclibc/8.3.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: tests/amdgpu/b9f2b1d@@amdgpu_test@exe/bo_tests.c.o: undefined reference to symbol 'AO_fetch_compare_and_swap_emulation' /home/naourr/work/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/sparc-buildroot-linux-uclibc/8.3.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: /home/naourr/work/instance-0/output-1/host/sparc-buildroot-linux-uclibc/sysroot/usr/lib/libatomic_ops.so.1: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status [81/84] Compiling C object 'tests/59830eb@@random@exe/random.c.o'. [82/84] Compiling C object 'tests/59830eb@@drmdevice@exe/drmdevice.c.o'. ninja: build stopped: subcommand failed. make: *** [package/pkg-generic.mk:274: /home/naourr/work/instance-0/output-1/build/libdrm-2.4.100/.stamp_built] Error 1 make: Leaving directory '/home/naourr/work/instance-0/buildroot'