[GH-ISSUE #2] Failed to build due to -Werror #1

Open
opened 2026-02-15 16:03:03 -05:00 by yindo · 0 comments
Owner

Originally created by @q3cpma on GitHub (May 23, 2022).
Original GitHub issue: https://github.com/RPCS3/soundtouch/issues/2

Hello and I apologize in advanced if the issue is setup related, as I'm trying to use/fix a third-party ebuild on Gentoo.

I'm getting

FAILED: rpcs3/Emu/CMakeFiles/rpcs3_emu.dir/Audio/audio_device_listener.cpp.o
/usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -DDATADIR=\"/usr/share/rpcs3\" -DGLX_GLXEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES -DHAVE_LIBEVDEV -DHAVE_VULKAN -DHAVE_X11 -DLLVM_AVAILABLE -DSOUNDTOUCH_ALLOW_SSE -DSOUNDTOUCH_FLOAT_SAMPLES -DST_NO_EXCEPTION_HANDLING -DUSE_MULTICH_ALWAYS -DWC_NO_HARDEN -I/var/tmp/portage/games-e>
In file included from /var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/3rdparty/SoundTouch/soundtouch/include/STTypes.h:127,
                 from /var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/3rdparty/SoundTouch/soundtouch/include/FIFOSamplePipe.h:46,
                 from /var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/3rdparty/SoundTouch/soundtouch/include/SoundTouch.h:68,
                 from /var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/rpcs3/Emu/Audio/audio_resampler.h:10,
                 from /var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/rpcs3/Emu/Cell/Modules/cellAudio.h:9,
                 from /var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/rpcs3/Emu/Audio/audio_device_listener.cpp:5:
/var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/3rdparty/SoundTouch/soundtouch/include/FIFOSamplePipe.h: In member function ‘bool soundtouch::FIFOSamplePipe::verifyNumberOfChannels(int) const’:
/var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/3rdparty/SoundTouch/soundtouch/include/FIFOSamplePipe.h:62:27: error: use of old-style cast to ‘const char*’ [-Werror=old-style-cast]
   62 |         ST_THROW_RT_ERROR("Error: Illegal number of channels");
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/3rdparty/SoundTouch/soundtouch/include/FIFOSamplePipe.h:62:9: note: in expansion of macro ‘ST_THROW_RT_ERROR’
   62 |         ST_THROW_RT_ERROR("Error: Illegal number of channels");
      |         ^~~~~~~~~~~~~~~~~
cc1plus: some warnings being treated as errors
[1683/2135] /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -DDATADIR=\"/usr/share/rpcs3\" -DGLX_GLXEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES -DHAVE_LIBEVDEV -DHAVE_VULKAN -DHAVE_X11 -DLLVM_AVAILABLE -DSOUNDTOUCH_ALLOW_SSE -DSOUNDTOUCH_FLOAT_SAMPLES -DST_NO_EXCEPTION_HANDLING -DUSE_MULTICH_ALWAYS -DWC_NO_HARDEN -I/var/tmp/por>
FAILED: rpcs3/Emu/CMakeFiles/rpcs3_emu.dir/Audio/audio_resampler.cpp.o
/usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -DDATADIR=\"/usr/share/rpcs3\" -DGLX_GLXEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES -DHAVE_LIBEVDEV -DHAVE_VULKAN -DHAVE_X11 -DLLVM_AVAILABLE -DSOUNDTOUCH_ALLOW_SSE -DSOUNDTOUCH_FLOAT_SAMPLES -DST_NO_EXCEPTION_HANDLING -DUSE_MULTICH_ALWAYS -DWC_NO_HARDEN -I/var/tmp/portage/games-e>
In file included from /var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/3rdparty/SoundTouch/soundtouch/include/STTypes.h:127,
                 from /var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/3rdparty/SoundTouch/soundtouch/include/FIFOSamplePipe.h:46,
                 from /var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/3rdparty/SoundTouch/soundtouch/include/SoundTouch.h:68,
                 from /var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/rpcs3/Emu/Audio/audio_resampler.h:10,
                 from /var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/rpcs3/Emu/Audio/audio_resampler.cpp:2:
/var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/3rdparty/SoundTouch/soundtouch/include/FIFOSamplePipe.h: In member function ‘bool soundtouch::FIFOSamplePipe::verifyNumberOfChannels(int) const’:
/var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/3rdparty/SoundTouch/soundtouch/include/FIFOSamplePipe.h:62:27: error: use of old-style cast to ‘const char*’ [-Werror=old-style-cast]
   62 |         ST_THROW_RT_ERROR("Error: Illegal number of channels");
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/3rdparty/SoundTouch/soundtouch/include/FIFOSamplePipe.h:62:9: note: in expansion of macro ‘ST_THROW_RT_ERROR’
   62 |         ST_THROW_RT_ERROR("Error: Illegal number of channels");
      |         ^~~~~~~~~~~~~~~~~
cc1plus: some warnings being treated as errors

with -Werror seemingly coming from your build system, so I thought I'd better alert you.

Originally created by @q3cpma on GitHub (May 23, 2022). Original GitHub issue: https://github.com/RPCS3/soundtouch/issues/2 Hello and I apologize in advanced if the issue is setup related, as I'm trying to use/fix a third-party ebuild on Gentoo. I'm getting ``` FAILED: rpcs3/Emu/CMakeFiles/rpcs3_emu.dir/Audio/audio_device_listener.cpp.o /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -DDATADIR=\"/usr/share/rpcs3\" -DGLX_GLXEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES -DHAVE_LIBEVDEV -DHAVE_VULKAN -DHAVE_X11 -DLLVM_AVAILABLE -DSOUNDTOUCH_ALLOW_SSE -DSOUNDTOUCH_FLOAT_SAMPLES -DST_NO_EXCEPTION_HANDLING -DUSE_MULTICH_ALWAYS -DWC_NO_HARDEN -I/var/tmp/portage/games-e> In file included from /var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/3rdparty/SoundTouch/soundtouch/include/STTypes.h:127, from /var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/3rdparty/SoundTouch/soundtouch/include/FIFOSamplePipe.h:46, from /var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/3rdparty/SoundTouch/soundtouch/include/SoundTouch.h:68, from /var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/rpcs3/Emu/Audio/audio_resampler.h:10, from /var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/rpcs3/Emu/Cell/Modules/cellAudio.h:9, from /var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/rpcs3/Emu/Audio/audio_device_listener.cpp:5: /var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/3rdparty/SoundTouch/soundtouch/include/FIFOSamplePipe.h: In member function ‘bool soundtouch::FIFOSamplePipe::verifyNumberOfChannels(int) const’: /var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/3rdparty/SoundTouch/soundtouch/include/FIFOSamplePipe.h:62:27: error: use of old-style cast to ‘const char*’ [-Werror=old-style-cast] 62 | ST_THROW_RT_ERROR("Error: Illegal number of channels"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/3rdparty/SoundTouch/soundtouch/include/FIFOSamplePipe.h:62:9: note: in expansion of macro ‘ST_THROW_RT_ERROR’ 62 | ST_THROW_RT_ERROR("Error: Illegal number of channels"); | ^~~~~~~~~~~~~~~~~ cc1plus: some warnings being treated as errors [1683/2135] /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -DDATADIR=\"/usr/share/rpcs3\" -DGLX_GLXEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES -DHAVE_LIBEVDEV -DHAVE_VULKAN -DHAVE_X11 -DLLVM_AVAILABLE -DSOUNDTOUCH_ALLOW_SSE -DSOUNDTOUCH_FLOAT_SAMPLES -DST_NO_EXCEPTION_HANDLING -DUSE_MULTICH_ALWAYS -DWC_NO_HARDEN -I/var/tmp/por> FAILED: rpcs3/Emu/CMakeFiles/rpcs3_emu.dir/Audio/audio_resampler.cpp.o /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -DDATADIR=\"/usr/share/rpcs3\" -DGLX_GLXEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES -DHAVE_LIBEVDEV -DHAVE_VULKAN -DHAVE_X11 -DLLVM_AVAILABLE -DSOUNDTOUCH_ALLOW_SSE -DSOUNDTOUCH_FLOAT_SAMPLES -DST_NO_EXCEPTION_HANDLING -DUSE_MULTICH_ALWAYS -DWC_NO_HARDEN -I/var/tmp/portage/games-e> In file included from /var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/3rdparty/SoundTouch/soundtouch/include/STTypes.h:127, from /var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/3rdparty/SoundTouch/soundtouch/include/FIFOSamplePipe.h:46, from /var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/3rdparty/SoundTouch/soundtouch/include/SoundTouch.h:68, from /var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/rpcs3/Emu/Audio/audio_resampler.h:10, from /var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/rpcs3/Emu/Audio/audio_resampler.cpp:2: /var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/3rdparty/SoundTouch/soundtouch/include/FIFOSamplePipe.h: In member function ‘bool soundtouch::FIFOSamplePipe::verifyNumberOfChannels(int) const’: /var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/3rdparty/SoundTouch/soundtouch/include/FIFOSamplePipe.h:62:27: error: use of old-style cast to ‘const char*’ [-Werror=old-style-cast] 62 | ST_THROW_RT_ERROR("Error: Illegal number of channels"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/games-emulation/rpcs3-9999-r4/work/rpcs3-9999/3rdparty/SoundTouch/soundtouch/include/FIFOSamplePipe.h:62:9: note: in expansion of macro ‘ST_THROW_RT_ERROR’ 62 | ST_THROW_RT_ERROR("Error: Illegal number of channels"); | ^~~~~~~~~~~~~~~~~ cc1plus: some warnings being treated as errors ``` with `-Werror` seemingly coming from your build system, so I thought I'd better alert you.
yindo changed title from Failed to build due to -Werror to [GH-ISSUE #2] Failed to build due to -Werror 2026-06-05 16:26:27 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: RPCS3/soundtouch#1