View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008683 | ardour | bugs | public | 2021-04-30 21:54 | 2021-05-02 14:44 |
Reporter | ccaudle | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | GNU | OS | Linux | OS Version | (any) |
Product Version | 6.6 | ||||
Summary | 0008683: compilation failure with gcc 11.1 | ||||
Description | Fails to build git head with development tools included with Fedora 34: gcc-11.1.1-1.fc34.x86_64 gcc-c++-11.1.1-1.fc34.x86_64 libgcc-11.1.1-1.fc34.x86_64 libstdc++-11.1.1-1.fc34.x86_64 boost-1.75.0-4.fc34.x86_64 | ||||
Steps To Reproduce | Configured using command: ./waf configure --libjack=weak --with-backends=jack,alsa,pulseaudio,dummy --optimize Ran ./waf and build failed. Error message (see attachments for full messages) seems to indicate problem with lua I think: In file included from ../libs/lua/LuaBridge/LuaBridge.h:153, from ../libs/ardour/luabindings.cc:101: ../libs/lua/LuaBridge/detail/Namespace.h: In instantiation of ‘luabridge::Namespace::Class<T>& luabridge::Namespace::Class<T>::addFunction(const char*, MemFn) [with MemFn = bool (std::map<int, std::vector<_VampHost::Vamp::Plugin::Feature> >::*)() const noexcept; T = std::map<int, std::vector<_VampHost::Vamp::Plugin::Feature> >]’: ../libs/lua/LuaBridge/detail/Namespace.h:1842:20: required from ‘luabridge::Namespace::Class<std::map<K, V> > luabridge::Namespace::beginStdMap(const char*) [with K = int; V = std::vector<_VampHost::Vamp::Plugin::Feature>]’ ../libs/ardour/luabindings.cc:748:49: required from here ../libs/lua/LuaBridge/detail/Namespace.h:935:95: error: ‘isConstMemberFunction’ is not a member of ‘luabridge::FuncTraits<bool (std::map<int, std::vector<_VampHost::Vamp::Plugin::Feature> >::*)() const noexcept, bool (std::map<int, std::vector<_VampHost::Vamp::Plugin::Feature> >::*)() const noexcept>’ 935 | CFunc::CallMemberFunctionHelper <MemFn, FuncTraits <MemFn>::isConstMemberFunction>::add (L, name, mf); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ ../libs/lua/LuaBridge/detail/Namespace.h: In instantiation of ‘luabridge::Namespace::Class<T>& luabridge::Namespace::Class<T>::addFunction(const char*, MemFn) [with MemFn = long unsigned int (std::map<int, std::vector<_VampHost::Vamp::Plugin::Feature> >::*)() const noexcept; T = std::map<int, std::vector<_VampHost::Vamp::Plugin::Feature> >]’: ../libs/lua/LuaBridge/detail/Namespace.h:1843:20: required from ‘luabridge::Namespace::Class<std::map<K, V> > luabridge::Namespace::beginStdMap(const char*) [with K = int; V = std::vector<_VampHost::Vamp::Plugin::Feature>]’ ../libs/ardour/luabindings.cc:748:49: required from here ../libs/lua/LuaBridge/detail/Namespace.h:935:95: error: ‘isConstMemberFunction’ is not a member of ‘luabridge::FuncTraits<long unsigned int (std::map<int, std::vector<_VampHost::Vamp::Plugin::Feature> >::*)() const noexcept, long unsigned int (std::map<int, std::vector<_VampHost::Vamp::Plugin::Feature> >::*)() const noexcept>’ ../libs/lua/LuaBridge/detail/Namespace.h: In instantiation of ‘luabridge::Namespace::Class<T>& luabridge::Namespace::Class<T>::addFunction(const char*, MemFn) [with MemFn = bool (std::__cxx11::list<boost::shared_ptr<ARDOUR::Route> >::*)() const noexcept; T = std::__cxx11::list<boost::shared_ptr<ARDOUR::Route> >]’: ../libs/lua/LuaBridge/detail/Namespace.h:1888:20: required from ‘luabridge::Namespace::Class<std::__cxx11::list > luabridge::Namespace::beginConstStdList(const char*) [with T = boost::shared_ptr<ARDOUR::Route>]’ ../libs/ardour/luabindings.cc:1743:50: required from here | ||||
Tags | No tags attached. | ||||
|
|
|
Does `./waf configure --cxx11`` help ? |
|
Yes, adding --cxx11 allows compilation to complete. |
|
Latest gcc requires using --cxx11 flag. |
|
OK. Thanks for the confirmation, knowing that it is a C++11/17 issue helped track it down. believed to be fixed in 6.6-379 I don't have a system that runs gcc-11 yet, so I cannot test it. |
Date Modified | Username | Field | Change |
---|---|---|---|
2021-04-30 21:54 | ccaudle | New Issue | |
2021-04-30 21:54 | ccaudle | File Added: gcc_11_build_output.txt | |
2021-04-30 21:54 | ccaudle | File Added: gcc_11_stderr.txt | |
2021-05-01 16:38 | x42 | Note Added: 0025785 | |
2021-05-02 01:59 | ccaudle | Note Added: 0025786 | |
2021-05-02 02:03 | ccaudle | Status | new => closed |
2021-05-02 02:03 | ccaudle | Resolution | open => fixed |
2021-05-02 02:03 | ccaudle | Note Added: 0025787 | |
2021-05-02 14:44 | x42 | Note Added: 0025788 |