Pipewire >=0.3.3 fails to build under musl libc
As of 0.3.4, building pipewire under musl libc will result in the following errors:
[1/370] Compiling C object 'spa/plugins/alsa/b6cb841@@spa-alsa@sha/alsa.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[2/370] Compiling C object 'spa/plugins/audioconvert/e8779ba@@audioconvert_sse@sta/resample-peaks-sse.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[3/370] Compiling C object 'spa/plugins/audioconvert/e8779ba@@audioconvert_ssse3@sta/fmt-ops-ssse3.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[4/370] Compiling C object 'spa/plugins/audioconvert/e8779ba@@audioconvert_ssse3@sta/resample-native-ssse3.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[5/370] Compiling C object 'spa/plugins/audioconvert/e8779ba@@audioconvert_sse41@sta/fmt-ops-sse41.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[6/370] Compiling C object 'spa/plugins/audioconvert/e8779ba@@audioconvert_sse@sta/resample-native-sse.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[7/370] Compiling C object 'spa/plugins/audioconvert/e8779ba@@audioconvert@sta/resample-native.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[8/370] Compiling C object 'spa/plugins/audioconvert/e8779ba@@audioconvert@sta/resample-peaks.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[9/370] Compiling C object 'spa/plugins/audioconvert/e8779ba@@audioconvert_sse@sta/channelmix-ops-sse.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[10/370] Compiling C object 'spa/plugins/audioconvert/e8779ba@@audioconvert@sta/channelmix-ops-c.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[11/370] Compiling C object 'spa/plugins/audioconvert/e8779ba@@audioconvert@sta/channelmix-ops.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[12/370] Linking static target spa/plugins/audioconvert/libaudioconvert_ssse3.a
[13/370] Linking static target spa/plugins/audioconvert/libaudioconvert_sse41.a
[14/370] Linking static target spa/plugins/audioconvert/libaudioconvert_sse.a
[15/370] Compiling C object 'spa/plugins/audioconvert/e8779ba@@audioconvert_sse2@sta/fmt-ops-sse2.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[16/370] Compiling C object 'spa/plugins/audioconvert/e8779ba@@audioconvert@sta/fmt-ops.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[17/370] Compiling C object 'spa/plugins/alsa/b6cb841@@spa-alsa@sha/alsa-pcm-sink.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[18/370] Compiling C object 'spa/plugins/alsa/b6cb841@@spa-alsa@sha/alsa-pcm.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[19/370] Compiling C object 'spa/plugins/alsa/b6cb841@@spa-alsa@sha/alsa-seq-source.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[20/370] Compiling C object 'spa/plugins/audioconvert/e8779ba@@spa-audioconvert@sha/plugin.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[21/370] Linking static target spa/plugins/audioconvert/libaudioconvert_sse2.a
[22/370] Compiling C object 'spa/plugins/audioconvert/e8779ba@@test-audioadapter@exe/test-audioadapter.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[23/370] Compiling C object 'spa/plugins/alsa/b6cb841@@spa-alsa@sha/alsa-udev.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[24/370] Compiling C object 'spa/plugins/audioconvert/e8779ba@@spa-audioconvert@sha/fmtconvert.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[25/370] Compiling C object 'spa/plugins/audioconvert/e8779ba@@benchmark-fmt-ops@exe/benchmark-fmt-ops.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[26/370] Compiling C object 'spa/plugins/audiomixer/55b85d2@@audiomixer_sse@sta/mix-ops-sse.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[27/370] Compiling C object 'spa/plugins/audioconvert/e8779ba@@benchmark-resample@exe/benchmark-resample.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[28/370] Compiling C object 'spa/plugins/alsa/b6cb841@@spa-alsa@sha/alsa-pcm-source.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[29/370] Linking static target spa/plugins/audiomixer/libaudiomixer_sse.a
[30/370] Compiling C object 'spa/plugins/audiomixer/55b85d2@@audiomixer_c@sta/mix-ops-c.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[31/370] Linking static target spa/plugins/audiomixer/libaudiomixer_c.a
[32/370] Compiling C object 'spa/plugins/audioconvert/e8779ba@@spa-resample@exe/spa-resample.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[33/370] Compiling C object 'spa/plugins/audiomixer/55b85d2@@audiomixer_sse2@sta/mix-ops-sse2.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[34/370] Compiling C object 'spa/plugins/audioconvert/e8779ba@@test-fmt-ops@exe/test-fmt-ops.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[35/370] Linking static target spa/plugins/audiomixer/libaudiomixer_sse2.a
[36/370] Compiling C object 'spa/plugins/alsa/b6cb841@@spa-alsa@sha/alsa-pcm-device.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[37/370] Compiling C object 'spa/plugins/audioconvert/e8779ba@@audioconvert@sta/fmt-ops-c.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[38/370] Compiling C object 'spa/plugins/audioconvert/e8779ba@@test-resample@exe/test-resample.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[39/370] Compiling C object 'spa/plugins/audiomixer/55b85d2@@spa-audiomixer@sha/mix-ops.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[40/370] Compiling C object 'spa/plugins/audiomixer/55b85d2@@spa-audiomixer@sha/plugin.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[41/370] Linking static target spa/plugins/audioconvert/libaudioconvert.a
[42/370] Compiling C object 'spa/plugins/audioconvert/e8779ba@@audioconvert_avx@sta/resample-native-avx.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[43/370] Linking static target spa/plugins/audioconvert/libaudioconvert_avx.a
[44/370] Compiling C object 'spa/plugins/control/e5cb727@@spa-control@sha/plugin.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[45/370] Compiling C object 'spa/plugins/bluez5/5861950@@spa-bluez5@sha/a2dp-codecs.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[46/370] Compiling C object 'spa/plugins/audioconvert/e8779ba@@test-audioconvert@exe/test-audioconvert.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[47/370] Compiling C object 'spa/plugins/alsa/b6cb841@@spa-alsa@sha/alsa-seq.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[48/370] Compiling C object 'spa/plugins/audioconvert/e8779ba@@test-channelmix@exe/test-channelmix.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[49/370] Compiling C object 'spa/plugins/bluez5/5861950@@spa-bluez5@sha/plugin.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[50/370] Compiling C object 'spa/plugins/jack/1956ada@@spa-jack@sha/plugin.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[51/370] Compiling C object 'spa/plugins/audioconvert/e8779ba@@spa-audioconvert@sha/splitter.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[52/370] Compiling C object 'spa/plugins/audioconvert/e8779ba@@spa-audioconvert@sha/audioconvert.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[53/370] Compiling C object 'spa/plugins/jack/1956ada@@spa-jack@sha/jack-client.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[54/370] Compiling C object 'spa/plugins/audioconvert/e8779ba@@test_lib@sta/test-source.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[55/370] Linking static target spa/plugins/audioconvert/libtest_lib.a
[56/370] Compiling C object 'spa/plugins/audioconvert/e8779ba@@spa-audioconvert@sha/channelmix.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[57/370] Compiling C object 'spa/plugins/support/ba87df0@@spa-support@sha/cpu.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[58/370] Compiling C object 'spa/plugins/audiomixer/55b85d2@@spa-audiomixer@sha/mixer-dsp.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[59/370] Compiling C object 'spa/plugins/support/ba87df0@@spa-support@sha/node-driver.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[60/370] Compiling C object 'spa/plugins/audioconvert/e8779ba@@spa-audioconvert@sha/merger.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[61/370] Compiling C object 'spa/plugins/audioconvert/e8779ba@@spa-audioconvert@sha/resample.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[62/370] Compiling C object 'spa/plugins/support/ba87df0@@spa-support@sha/plugin.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[63/370] Compiling C object 'spa/plugins/audiomixer/55b85d2@@spa-audiomixer@sha/audiomixer.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[64/370] Compiling C object 'spa/plugins/audioconvert/e8779ba@@spa-audioconvert@sha/audioadapter.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[65/370] Compiling C object 'spa/plugins/support/ba87df0@@spa-support@sha/logger.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[66/370] Compiling C object 'spa/plugins/control/e5cb727@@spa-control@sha/mixer.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[67/370] Compiling C object 'spa/plugins/videoconvert/d1385f6@@spa-videoconvert@sha/plugin.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[68/370] Compiling C object 'spa/plugins/vulkan/2f6ca87@@spa-vulkan@sha/plugin.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[69/370] Compiling C object 'spa/plugins/support/ba87df0@@spa-support@sha/system.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[70/370] Compiling C object 'spa/plugins/v4l2/f952731@@spa-v4l2@sha/v4l2.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[71/370] Compiling C object 'spa/plugins/bluez5/5861950@@spa-bluez5@sha/bluez5-device.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[72/370] Compiling C object 'spa/plugins/jack/1956ada@@spa-jack@sha/jack-device.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[73/370] Compiling C object 'spa/plugins/support/ba87df0@@spa-support@sha/loop.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[74/370] Compiling C object 'spa/plugins/bluez5/5861950@@spa-bluez5@sha/sco-source.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[75/370] Compiling C object 'src/modules/9490802@@pipewire-module-metadata@sha/module-metadata.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[76/370] Compiling C object 'src/modules/9490802@@pipewire-module-metadata@sha/module-metadata_metadata.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[77/370] Compiling C object 'spa/plugins/bluez5/5861950@@spa-bluez5@sha/a2dp-source.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[78/370] Compiling C object 'spa/plugins/support/ba87df0@@spa-dbus@sha/dbus.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[79/370] Compiling C object 'spa/plugins/jack/1956ada@@spa-jack@sha/jack-source.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[80/370] Compiling C object 'spa/plugins/audioconvert/e8779ba@@audioconvert_avx2@sta/fmt-ops-avx2.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[81/370] Linking static target spa/plugins/audioconvert/libaudioconvert_avx2.a
[82/370] Compiling C object 'spa/plugins/audiomixer/55b85d2@@audiomixer_avx@sta/mix-ops-avx.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[83/370] Compiling C object 'spa/plugins/bluez5/5861950@@spa-bluez5@sha/sco-sink.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[84/370] Compiling C object 'spa/plugins/v4l2/f952731@@spa-v4l2@sha/v4l2-device.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[85/370] Compiling C object 'spa/plugins/jack/1956ada@@spa-jack@sha/jack-sink.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[86/370] Linking static target spa/plugins/audiomixer/libaudiomixer_avx.a
[87/370] Compiling C object 'spa/plugins/v4l2/f952731@@spa-v4l2@sha/v4l2-udev.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[88/370] Compiling C object 'spa/tests/f6cd4ad@@spa-test-node@exe/test-node.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[89/370] Compiling C object 'spa/plugins/bluez5/5861950@@spa-bluez5@sha/bluez5-dbus.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[90/370] Compiling C object 'spa/tests/f6cd4ad@@spa-test-buffer@exe/test-buffer.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[91/370] Compiling C object 'spa/tools/d71cb4b@@spa-monitor@exe/spa-monitor.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[92/370] Compiling C object 'spa/plugins/vulkan/2f6ca87@@spa-vulkan@sha/vulkan-utils.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[93/370] Compiling C object 'spa/plugins/bluez5/5861950@@spa-bluez5@sha/a2dp-sink.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[94/370] Compiling C object 'src/modules/9490802@@pipewire-module-client-device@sha/module-client-device.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[95/370] Compiling C object 'spa/tests/f6cd4ad@@spa-stress-ringbuffer@exe/stress-ringbuffer.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[96/370] Compiling C object 'spa/tests/f6cd4ad@@spa-test-utils@exe/test-utils.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[97/370] Compiling C object 'src/modules/9490802@@pipewire-module-adapter@sha/spa_spa-node.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[98/370] Compiling C object 'spa/tests/f6cd4ad@@spa-test-pod@exe/test-pod.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[99/370] Compiling C object 'src/modules/9490802@@pipewire-module-adapter@sha/module-adapter_adapter.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[100/370] Compiling C object 'spa/tests/f6cd4ad@@spa-benchmark-dict@exe/benchmark-dict.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[101/370] Compiling C object 'spa/tools/d71cb4b@@spa-inspect@exe/spa-inspect.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[102/370] Compiling C object 'spa/plugins/vulkan/2f6ca87@@spa-vulkan@sha/vulkan-compute-source.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[103/370] Compiling C object 'spa/tests/f6cd4ad@@spa-benchmark-pod@exe/benchmark-pod.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[104/370] Compiling C++ object 'spa/tests/f6cd4ad@@spa-test-cpp@exe/test-cpp.cpp.o'
FAILED: spa/tests/f6cd4ad@@spa-test-cpp@exe/test-cpp.cpp.o
g++ -Ispa/tests/f6cd4ad@@spa-test-cpp@exe -Ispa/tests -I../spa/tests -Ispa/include -I../spa/include -flto -fdiagnostics-color=always -DNDEBUG -pipe -D_FILE_OFFSET_BITS=64 -fvisibility=hidden -Wsign-compare -Wimplicit-fallthrough -Wpointer-arith -Wformat-security -Werror=suggest-attribute=format -Wmissing-braces -Wtype-limits -Wvariadic-macros -Wno-missing-field-initializers -Wno-unused-parameter -Wno-pedantic -Wunused-result -fstack-clash-protection -D_FORTIFY_SOURCE=2 -mtune=generic -O2 -MD -MQ 'spa/tests/f6cd4ad@@spa-test-cpp@exe/test-cpp.cpp.o' -MF 'spa/tests/f6cd4ad@@spa-test-cpp@exe/test-cpp.cpp.o.d' -o 'spa/tests/f6cd4ad@@spa-test-cpp@exe/test-cpp.cpp.o' -c ../spa/tests/test-cpp.cpp
cc1plus: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
In file included from ../spa/include/spa/node/node.h:34,
from ../spa/include/spa/debug/node.h:32,
from ../spa/tests/test-cpp.cpp:32:
../spa/include/spa/support/log.h: In function 'void spa_log_error(spa_log*, const char*, ...)':
../spa/include/spa/utils/hook.h:140:47: error: function 'void spa_log_error(spa_log*, const char*, ...)' might be a candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format]
140 | _f->method((callbacks)->data, ## __VA_ARGS__); \
| ^
../spa/include/spa/utils/hook.h:152:2: note: in expansion of macro 'spa_callbacks_call'
152 | spa_callbacks_call(&(iface)->cb,type,method,vers,##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
../spa/include/spa/support/log.h:147:3: note: in expansion of macro 'spa_interface_call'
147 | spa_interface_call(&l->iface, \
| ^~~~~~~~~~~~~~~~~~
../spa/include/spa/support/log.h:154:1: note: in expansion of macro 'SPA_LOG_FUNC'
154 | SPA_LOG_FUNC(error, SPA_LOG_LEVEL_ERROR)
| ^~~~~~~~~~~~
../spa/include/spa/support/log.h: In function 'void spa_log_warn(spa_log*, const char*, ...)':
../spa/include/spa/utils/hook.h:140:47: error: function 'void spa_log_warn(spa_log*, const char*, ...)' might be a candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format]
140 | _f->method((callbacks)->data, ## __VA_ARGS__); \
| ^
../spa/include/spa/utils/hook.h:152:2: note: in expansion of macro 'spa_callbacks_call'
152 | spa_callbacks_call(&(iface)->cb,type,method,vers,##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
../spa/include/spa/support/log.h:147:3: note: in expansion of macro 'spa_interface_call'
147 | spa_interface_call(&l->iface, \
| ^~~~~~~~~~~~~~~~~~
../spa/include/spa/support/log.h:155:1: note: in expansion of macro 'SPA_LOG_FUNC'
155 | SPA_LOG_FUNC(warn, SPA_LOG_LEVEL_WARN)
| ^~~~~~~~~~~~
../spa/include/spa/support/log.h: In function 'void spa_log_info(spa_log*, const char*, ...)':
../spa/include/spa/utils/hook.h:140:47: error: function 'void spa_log_info(spa_log*, const char*, ...)' might be a candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format]
140 | _f->method((callbacks)->data, ## __VA_ARGS__); \
| ^
../spa/include/spa/utils/hook.h:152:2: note: in expansion of macro 'spa_callbacks_call'
152 | spa_callbacks_call(&(iface)->cb,type,method,vers,##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
../spa/include/spa/support/log.h:147:3: note: in expansion of macro 'spa_interface_call'
147 | spa_interface_call(&l->iface, \
| ^~~~~~~~~~~~~~~~~~
../spa/include/spa/support/log.h:156:1: note: in expansion of macro 'SPA_LOG_FUNC'
156 | SPA_LOG_FUNC(info, SPA_LOG_LEVEL_INFO)
| ^~~~~~~~~~~~
../spa/include/spa/support/log.h: In function 'void spa_log_debug(spa_log*, const char*, ...)':
../spa/include/spa/utils/hook.h:140:47: error: function 'void spa_log_debug(spa_log*, const char*, ...)' might be a candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format]
140 | _f->method((callbacks)->data, ## __VA_ARGS__); \
| ^
../spa/include/spa/utils/hook.h:152:2: note: in expansion of macro 'spa_callbacks_call'
152 | spa_callbacks_call(&(iface)->cb,type,method,vers,##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
../spa/include/spa/support/log.h:147:3: note: in expansion of macro 'spa_interface_call'
147 | spa_interface_call(&l->iface, \
| ^~~~~~~~~~~~~~~~~~
../spa/include/spa/support/log.h:157:1: note: in expansion of macro 'SPA_LOG_FUNC'
157 | SPA_LOG_FUNC(debug, SPA_LOG_LEVEL_DEBUG)
| ^~~~~~~~~~~~
../spa/include/spa/support/log.h: In function 'void spa_log_trace(spa_log*, const char*, ...)':
../spa/include/spa/utils/hook.h:140:47: error: function 'void spa_log_trace(spa_log*, const char*, ...)' might be a candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format]
140 | _f->method((callbacks)->data, ## __VA_ARGS__); \
| ^
../spa/include/spa/utils/hook.h:152:2: note: in expansion of macro 'spa_callbacks_call'
152 | spa_callbacks_call(&(iface)->cb,type,method,vers,##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
../spa/include/spa/support/log.h:147:3: note: in expansion of macro 'spa_interface_call'
147 | spa_interface_call(&l->iface, \
| ^~~~~~~~~~~~~~~~~~
../spa/include/spa/support/log.h:158:1: note: in expansion of macro 'SPA_LOG_FUNC'
158 | SPA_LOG_FUNC(trace, SPA_LOG_LEVEL_TRACE)
| ^~~~~~~~~~~~
../spa/include/spa/support/log.h: In function 'void spa_log_trace_fp(spa_log*, const char*, ...)':
../spa/include/spa/utils/hook.h:140:47: error: function 'void spa_log_trace_fp(spa_log*, const char*, ...)' might be a candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format]
140 | _f->method((callbacks)->data, ## __VA_ARGS__); \
| ^
../spa/include/spa/utils/hook.h:152:2: note: in expansion of macro 'spa_callbacks_call'
152 | spa_callbacks_call(&(iface)->cb,type,method,vers,##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
../spa/include/spa/support/log.h:147:3: note: in expansion of macro 'spa_interface_call'
147 | spa_interface_call(&l->iface, \
| ^~~~~~~~~~~~~~~~~~
../spa/include/spa/support/log.h:161:1: note: in expansion of macro 'SPA_LOG_FUNC'
161 | SPA_LOG_FUNC(trace_fp, SPA_LOG_LEVEL_TRACE)
| ^~~~~~~~~~~~
cc1plus: some warnings being treated as errors
[105/370] Compiling C object 'spa/plugins/videoconvert/d1385f6@@spa-videoconvert@sha/videoadapter.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[106/370] Linking target spa/tests/spa-test-node
[107/370] Linking target spa/tests/spa-test-buffer
[108/370] Linking target spa/tests/spa-stress-ringbuffer
[109/370] Linking target spa/tools/spa-monitor
[110/370] Linking target spa/tests/spa-benchmark-dict
[111/370] Compiling C object 'spa/examples/0924d57@@example-control@exe/example-control.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[112/370] Linking target spa/plugins/support/libspa-dbus.so
[113/370] Compiling C object 'spa/plugins/v4l2/f952731@@spa-v4l2@sha/v4l2-source.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[114/370] Linking target spa/tests/spa-test-utils
[115/370] Compiling C object 'spa/examples/0924d57@@local-v4l2@exe/local-v4l2.c.o'
cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security]
[116/370] Linking target spa/plugins/audioconvert/spa-resample
[117/370] Linking target spa/plugins/support/libspa-support.so
[118/370] Linking target spa/tools/spa-inspect
[119/370] Linking target spa/tests/spa-benchmark-pod
[120/370] Linking target spa/plugins/control/libspa-control.so
[121/370] Linking target spa/plugins/vulkan/libspa-vulkan.so
[122/370] Linking target spa/tests/spa-test-pod
[123/370] Linking target spa/plugins/audiomixer/lispba-audiomixer.so
[124/370] Linking target spa/plugins/jack/libspa-jack.so
[125/370] Linking target spa/plugins/alsa/libspa-alsa.so
[126/370] Linking target spa/plugins/bluez5/libspa-bluez5.so
[127/370] Linking target spa/plugins/audioconvert/libspa-audioconvert.so
ninja: build stopped: subcommand failed.
pipewire builds fine if I manually removing -Werror=suggest-attribute=format
from meson.build.