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] Compilation error in Eigen Memory.h #332

Open
diegosfbri opened this issue Sep 30, 2023 · 1 comment
Open

[BUG] Compilation error in Eigen Memory.h #332

diegosfbri opened this issue Sep 30, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@diegosfbri
Copy link

Describe the bug
Failing to compile

To Reproduce
Steps to reproduce the behavior:

  1. Compile
  2. cmake -Bbuild -DCMAKE_BUILD_TYPE=Release THIS WORKS OK
  3. cmake --build build --config Release --parallel 4 FAILS
    4.Error
    BYOD/modules/RTNeural/RTNeural/../modules/Eigen/Eigen/src/Core/util/Memory.h:1245:12: error: no member named 'construct_at' in namespace 'std'
    using std::construct_at;

In file included from :1:
In file included from /Users/diego.brihuega/Documents/Projects/BYOD/build/CMakeFiles/BYOD.dir/cmake_pch.hxx:5:

Desktop (please complete the following information):

  • OS: MacOS
  • cmake --version cmake version 3.23.0
  • The C compiler identification is AppleClang 12.0.5.12050022
  • The CXX compiler identification is AppleClang 12.0.5.12050022
    -- VERSION for JUCE: 7.0.5
@diegosfbri diegosfbri added the bug Something isn't working label Sep 30, 2023
@jatinchowdhury18 jatinchowdhury18 changed the title [BUG] [BUG] Compilation error in Eigen Memory.h Sep 30, 2023
@jatinchowdhury18
Copy link
Contributor

Thanks for reporting the issue! There's a few things that could be the issue here.

First off, std::construct_at is a C++20 feature, so you may need to double-check that your compiler supports C++20, and the construct_at feature. I believe AppleClang 12.0.5 should satisfy this requirement, but I'm not 100% sure. In our CI pipelines we're using AppleClang14.0.0. Next, you may need to clear you CMake cache, in case the C++17 setting was left over from a previous build, and hasn't been cleared.

Next, please make sure that your clone of the BYOD repository is at the latest commit on the main branch, and that your submodules are up to date. In particular, the modules/RTNeural submodule should be at commit 113f6e2b61c04e534db722d55bc61b5064d6fdf1.

Finally, when running your CMake build, you may prefer to specify individual build targets, to see if the error occurs with all of them. For example: cmake --build build --config Release --parallel 4 --target BYOD_VST3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants