Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build due to -Werror #2

Open
q3cpma opened this issue May 23, 2022 · 0 comments
Open

Failed to build due to -Werror #2

q3cpma opened this issue May 23, 2022 · 0 comments

Comments

@q3cpma
Copy link

q3cpma commented May 23, 2022

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.

Megamouse pushed a commit to Megamouse/soundtouch that referenced this issue Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant