Opened 2 years ago

Closed 3 weeks ago

#1160 closed Bug Report (wontfix)

Fails to build against gcc-4.8

Reported by: falkTX Owned by: David Robillard
Priority: major Component: Ingen
Keywords: Cc:

Description

After getting all dependencies updated, I cannot build ingen.

[ 46/122] Compiling src/server/Task.cpp
../src/server/Task.cpp: In static member function ‘static std::unique_ptr<Ingen::Server::Task> Ingen::Server::Task::simplify(std::unique_ptr<Ingen::Server::Task>&&)’:
../src/server/Task.cpp:124:6: error: no match for ‘operator=’ (operand types are ‘std::_Deque_iterator<std::unique_ptr<Ingen::Server::Task>, std::unique_ptr<Ingen::Server::Task>&, std::unique_ptr<Ingen::Server::Task>*>’ and ‘void’)
    t = task->_children.insert(
      ^
../src/server/Task.cpp:124:6: note: candidate is:
In file included from /usr/include/c++/4.8/deque:64:0,
                 from /opt/kxstudio/include/boost/detail/container_fwd.hpp:91,
                 from /opt/kxstudio/include/boost/functional/hash/extensions.hpp:22,
                 from /opt/kxstudio/include/boost/functional/hash/hash.hpp:558,
                 from /opt/kxstudio/include/boost/functional/hash.hpp:6,
                 from /opt/kxstudio/include/boost/intrusive/detail/utilities.hpp:33,
                 from /opt/kxstudio/include/boost/intrusive/slist_hook.hpp:19,
                 from /opt/kxstudio/include/boost/intrusive/slist.hpp:21,
                 from ../src/server/BlockImpl.hpp:22,
                 from ../src/server/Task.cpp:17:
/usr/include/c++/4.8/bits/stl_deque.h:106:12: note: std::_Deque_iterator<std::unique_ptr<Ingen::Server::Task>, std::unique_ptr<Ingen::Server::Task>&, std::unique_ptr<Ingen::Server::Task>*>& std::_Deque_iterator<std::unique_ptr<Ingen::Server::Task>, std::unique_ptr<Ingen::Server::Task>&, std::unique_ptr<Ingen::Server::Task>*>::operator=(const std::_Deque_iterator<std::unique_ptr<Ingen::Server::Task>, std::unique_ptr<Ingen::Server::Task>&, std::unique_ptr<Ingen::Server::Task>*>&)
     struct _Deque_iterator
            ^
/usr/include/c++/4.8/bits/stl_deque.h:106:12: note:   no known conversion for argument 1 from ‘void’ to ‘const std::_Deque_iterator<std::unique_ptr<Ingen::Server::Task>, std::unique_ptr<Ingen::Server::Task>&, std::unique_ptr<Ingen::Server::Task>*>&’

This is the configuration:

Checking for 'g++' (C++ compiler)             : /usr/bin/g++ 
Checking for program 'python'                 : /usr/bin/python 

Global Configuration 
Checking for library gcov                     : yes 
 * Install prefix                             : /usr 
 * Debuggable build                           : False 
 * Build documentation                        : False 

Checking for compiler flags ['-std=c++11']    : yes 
Checking for header boost/format.hpp          : yes 
Checking for header boost/intrusive/slist.hpp : yes 
Checking for header boost/intrusive_ptr.hpp   : yes 
Checking for header boost/optional.hpp        : yes 
Checking for thread_local keyword             : yes 
Checking for program 'pkg-config'             : /usr/bin/pkg-config 
Checking for 'lv2' >= 1.15.3                  : yes 
Checking for 'glibmm-2.4' >= 2.14.0           : yes 
Checking for 'gthread-2.0' >= 2.14.0          : yes 
Checking for 'lilv-0' >= 0.21.5               : yes 
Checking for 'suil-0' >= 0.8.7                : yes 
Checking for 'sratom-0' >= 0.4.6              : yes 
Checking for 'raul' >= 0.8.9                  : yes 
Checking for 'serd-0' >= 0.18.0               : yes 
Checking for 'sord-0' >= 0.12.0               : yes 
Checking for 'portaudio-2.0' >= 2.0.0         : not found 
Checking for function posix_memalign          : yes 
Checking for function isatty                  : yes 
Checking for function vasprintf               : yes 
Checking for library dl                       : yes 
Checking for function socket                  : yes 
Checking for python version >= 2.4.0          : 2.7.6 
Checking for 'jack' >= 0.120.0                : yes 
Checking for function jack_set_property       : yes 
Checking for function jack_port_rename        : yes 
Checking for compiler flags ['-pthread']      : yes 
Checking for linker flags ['-pthread']        : yes 
Checking for linker flags ['-lpthread']       : yes 
Checking for 'gtkmm-2.4' >= 2.12.0            : yes 
Checking for 'gtkmm-2.4' >= 2.14.0            : yes 
Checking for 'ganv-1' >= 1.5.4                : yes 
Checking for 'webkit-1.0' >= 1.4.0            : yes 
 * GUI                                        : True 
 * HTML plugin documentation support          : True 
 * PortAudio driver                           : False 
 * Jack driver                                : True 
 * Jack session support                       : True 
 * Jack metadata support                      : True 
 * LV2 plugin driver                          : False 
 * LV2 bundle                                 : /usr/lib/lv2/ingen.lv2 
 * LV2 plugin support                         : True 
 * Socket interface                           : True 

Change History (2)

comment:1 Changed 2 years ago by David Robillard

Ugh, the pre-C++ version of this function is so useless.

comment:2 Changed 3 weeks ago by David Robillard

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.