Skip to content

Failed to build due to -Werror #2

Description

@q3cpma

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions