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

[Bug Report] Failed to build juceaide #439

Open
Bastrabun opened this issue Oct 6, 2022 · 2 comments
Open

[Bug Report] Failed to build juceaide #439

Bastrabun opened this issue Oct 6, 2022 · 2 comments

Comments

@Bastrabun
Copy link

Describe the bug
Failed to build juceaide

To Reproduce
Steps to reproduce the behavior:
prereq: debian testing

  1. git clone --recurse-submodules https://github.com/TheWaveWarden/odin2.git
  2. cd odin2
  3. cmake -B build -D CMAKE_BUILD_TYPE=Release

Expected behavior

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: debian testing

Additional context

user@vm-511:~/projects/voicechanger/odin2$ cmake -B build -D CMAKE_BUILD_TYPE=Release
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
-- Checking for module 'alsa'
-- Found alsa, version 1.2.7.2
-- Checking for module 'freetype2'
-- Found freetype2, version 24.3.18
-- Checking for module 'libcurl'
-- Found libcurl, version 7.85.0
-- Checking for modules 'webkit2gtk-4.0;gtk+-x11-3.0'
-- Found webkit2gtk-4.0, version 2.38.0
-- Found gtk+-x11-3.0, version 3.24.34
-- Configuring juceaide
-- Building juceaide
CMake Error at libs/JUCELV2/extras/Build/juceaide/CMakeLists.txt:92 (message):
Failed to build juceaide

[ 12%] Building CXX object
extras/Build/juceaide/CMakeFiles/juceaide.dir/Main.cpp.o

In file included from
/home/user/projects/voicechanger/odin2/libs/JUCELV2/modules/juce_gui_basics/juce_gui_basics.h:270,

               from /home/user/projects/voicechanger/odin2/libs/JUCELV2/extras/Build/juce_build_tools/juce_build_tools.h:56,
               from /home/user/projects/voicechanger/odin2/libs/JUCELV2/extras/Build/juceaide/Main.cpp:26:

/home/user/projects/voicechanger/odin2/libs/JUCELV2/modules/juce_gui_basics/windows/juce_ComponentPeer.h:
In member function ‘void juce::ComponentPeer::setAppStyle(Style)’:

/home/user/projects/voicechanger/odin2/libs/JUCELV2/modules/juce_gui_basics/windows/juce_ComponentPeer.h:442:18:
error: ‘exchange’ is not a member of ‘std’

442 |         if (std::exchange (style, s) != style)
    |                  ^~~~~~~~

gmake[2]: *** [extras/Build/juceaide/CMakeFiles/juceaide.dir/build.make:76:
extras/Build/juceaide/CMakeFiles/juceaide.dir/Main.cpp.o] Fehler 1

gmake[1]: *** [CMakeFiles/Makefile2:131:
extras/Build/juceaide/CMakeFiles/juceaide.dir/all] Fehler 2

gmake: *** [Makefile:136: all] Fehler 2

-- Configuring incomplete, errors occurred!

@Bastrabun
Copy link
Author

Bastrabun commented Oct 6, 2022

Might relate to #431

@hfiguiere
Copy link

This is a JUCE bug. This occurs regularly when new version of gcc pop.

I have a patch here: https://github.com/flathub/flathub/pull/4690/files#diff-2bb306d563eb3ad56d8c1e54fc45d9e85b4638901c18ec631b466e9a216ceb37

taylordotfish added a commit to poweraudio/odin2 that referenced this issue Jan 29, 2024
Includes GCC 12 header fix, which fixes TheWaveWarden#431, TheWaveWarden#439, and
(partially) TheWaveWarden#457.
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

2 participants