[amd/drm-shim] build issue on ppc64
amd / drm-shim ppc64el build issue (at least on Ubuntu 23.04 and 23.10). Builds fine on other archs.
Full error log: https://launchpadlibrarian.net/672865282/buildlog_ubuntu-mantic-ppc64el.mesa_23.2git2306181518.da4b5boibaf~m_BUILDING.txt.gz
Error:
../src/amd/drm-shim/amdgpu_dump_states.c: In function ‘amdgpu_dump_memory’:
../src/amd/drm-shim/amdgpu_dump_states.c:105:40: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=]
105 | printf(" .total_heap_size = %llu,\n", info.vram.total_heap_size);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | __u64 {aka long unsigned int}
| long long unsigned int
| %lu
../src/amd/drm-shim/amdgpu_dump_states.c:106:41: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=]
106 | printf(" .usable_heap_size = %llu,\n", info.vram.usable_heap_size);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | __u64 {aka long unsigned int}
| long long unsigned int
| %lu
../src/amd/drm-shim/amdgpu_dump_states.c:107:35: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=]
107 | printf(" .heap_usage = %llu,\n", info.vram.heap_usage);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~
| | |
| | __u64 {aka long unsigned int}
| long long unsigned int
| %lu
../src/amd/drm-shim/amdgpu_dump_states.c:108:39: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=]
108 | printf(" .max_allocation = %llu,\n", info.vram.max_allocation);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | __u64 {aka long unsigned int}
| long long unsigned int
| %lu
../src/amd/drm-shim/amdgpu_dump_states.c:111:40: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=]
111 | printf(" .total_heap_size = %llu,\n", info.cpu_accessible_vram.total_heap_size);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| long long unsigned int __u64 {aka long unsigned int}
| %lu
../src/amd/drm-shim/amdgpu_dump_states.c:112:41: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=]
112 | printf(" .usable_heap_size = %llu,\n", info.cpu_accessible_vram.usable_heap_size);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| long long unsigned int __u64 {aka long unsigned int}
| %lu
../src/amd/drm-shim/amdgpu_dump_states.c:113:35: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=]
113 | printf(" .heap_usage = %llu,\n", info.cpu_accessible_vram.heap_usage);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| long long unsigned int __u64 {aka long unsigned int}
| %lu
../src/amd/drm-shim/amdgpu_dump_states.c:114:39: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=]
114 | printf(" .max_allocation = %llu,\n", info.cpu_accessible_vram.max_allocation);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| long long unsigned int __u64 {aka long unsigned int}
| %lu
../src/amd/drm-shim/amdgpu_dump_states.c:117:40: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=]
117 | printf(" .total_heap_size = %llu,\n", info.gtt.total_heap_size);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | __u64 {aka long unsigned int}
| long long unsigned int
| %lu
../src/amd/drm-shim/amdgpu_dump_states.c:118:41: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=]
118 | printf(" .usable_heap_size = %llu,\n", info.gtt.usable_heap_size);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | __u64 {aka long unsigned int}
| long long unsigned int
| %lu
../src/amd/drm-shim/amdgpu_dump_states.c:119:35: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=]
119 | printf(" .heap_usage = %llu,\n", info.gtt.heap_usage);
| ~~~^ ~~~~~~~~~~~~~~~~~~~
| | |
| | __u64 {aka long unsigned int}
| long long unsigned int
| %lu
../src/amd/drm-shim/amdgpu_dump_states.c:120:39: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=]
120 | printf(" .max_allocation = %llu,\n", info.gtt.max_allocation);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | __u64 {aka long unsigned int}
| long long unsigned int
| %lu
../src/amd/drm-shim/amdgpu_dump_states.c: In function ‘amdgpu_dump_dev_info’:
../src/amd/drm-shim/amdgpu_dump_states.c:177:38: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=]
177 | printf(" .max_engine_clock = %llullu,\n", info.max_engine_clock);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~
| | |
| | __u64 {aka long unsigned int}
| long long unsigned int
| %lu
../src/amd/drm-shim/amdgpu_dump_states.c:178:38: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=]
178 | printf(" .max_memory_clock = %llullu,\n", info.max_memory_clock);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~
| | |
| | __u64 {aka long unsigned int}
| long long unsigned int
| %lu
../src/amd/drm-shim/amdgpu_dump_states.c:195:33: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=]
195 | printf(" .ids_flags = 0x%llxllu,\n", info.ids_flags);
| ~~~^ ~~~~~~~~~~~~~~
| | |
| | __u64 {aka long unsigned int}
| long long unsigned int
| %lx
../src/amd/drm-shim/amdgpu_dump_states.c:196:46: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=]
196 | printf(" .virtual_address_offset = 0x%llxllu,\n", info.virtual_address_offset);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | __u64 {aka long unsigned int}
| long long unsigned int
| %lx
../src/amd/drm-shim/amdgpu_dump_states.c:197:43: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=]
197 | printf(" .virtual_address_max = 0x%llxllu,\n", info.virtual_address_max);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | __u64 {aka long unsigned int}
| long long unsigned int
| %lx
../src/amd/drm-shim/amdgpu_dump_states.c:206:39: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=]
206 | printf(" .prim_buf_gpu_addr = %llullu,\n", info.prim_buf_gpu_addr);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~~
| | |
| | __u64 {aka long unsigned int}
| long long unsigned int
| %lu
../src/amd/drm-shim/amdgpu_dump_states.c:207:38: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=]
207 | printf(" .pos_buf_gpu_addr = %llullu,\n", info.pos_buf_gpu_addr);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~
| | |
| | __u64 {aka long unsigned int}
| long long unsigned int
| %lu
../src/amd/drm-shim/amdgpu_dump_states.c:208:42: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=]
208 | printf(" .cntl_sb_buf_gpu_addr = %llullu,\n", info.cntl_sb_buf_gpu_addr);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | __u64 {aka long unsigned int}
| long long unsigned int
| %lu
../src/amd/drm-shim/amdgpu_dump_states.c:209:40: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=]
209 | printf(" .param_buf_gpu_addr = %llullu,\n", info.param_buf_gpu_addr);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | __u64 {aka long unsigned int}
| long long unsigned int
| %lu
../src/amd/drm-shim/amdgpu_dump_states.c:232:38: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=]
232 | printf(" .high_va_offset = 0x%llxllu,\n", info.high_va_offset);
| ~~~^ ~~~~~~~~~~~~~~~~~~~
| | |
| | __u64 {aka long unsigned int}
| long long unsigned int
| %lx
../src/amd/drm-shim/amdgpu_dump_states.c:233:35: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=]
233 | printf(" .high_va_max = 0x%llxllu,\n", info.high_va_max);
| ~~~^ ~~~~~~~~~~~~~~~~
| | |
| | __u64 {aka long unsigned int}
| long long unsigned int
| %lx
../src/amd/drm-shim/amdgpu_dump_states.c:235:39: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=]
235 | printf(" .tcc_disabled_mask = %llullu,\n", info.tcc_disabled_mask);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~~
| | |
| | __u64 {aka long unsigned int}
| long long unsigned int
| %lu
../src/amd/drm-shim/amdgpu_dump_states.c:236:38: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=]
236 | printf(" .min_engine_clock = %llullu,\n", info.min_engine_clock);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~
| | |
| | __u64 {aka long unsigned int}
| long long unsigned int
| %lu
../src/amd/drm-shim/amdgpu_dump_states.c:237:38: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=]
237 | printf(" .min_memory_clock = %llullu,\n", info.min_memory_clock);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~
| | |
| | __u64 {aka long unsigned int}
| long long unsigned int
| %lu
../src/amd/drm-shim/amdgpu_dump_states.c:244:31: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=]
244 | printf(" .mall_size = %llullu,\n", info.mall_size);
| ~~~^ ~~~~~~~~~~~~~~
| | |
| | __u64 {aka long unsigned int}
| long long unsigned int
| %lu
../src/amd/drm-shim/amdgpu_dump_states.c: In function ‘amdgpu_dump_hw_ips’:
../src/amd/drm-shim/amdgpu_dump_states.c:369:43: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__u64’ {aka ‘long unsigned int’} [-Werror=format=]
369 | printf(" .capabilities_flags = %llullu,\n", info.capabilities_flags);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | __u64 {aka long unsigned int}
| long long unsigned int
| %lu
cc1: some warnings being treated as errors
Edited by Fabio Pedretti