error building v1508: no matching function for call to ‘mstl::memblock<db::Mark>
Chess Database Application
Status: Pre-Alpha
Brought to you by:
gcramer
Build of v1508 fails on ArchLinux gxx 8.2 with
Compiling db_consumer.cpp [-Wall -g -I/usr/include -DSCI_NAMEBASE_FIX=1] In file included from ../mstl/m_memblock.h:71, from ../mstl/m_vector.h:24, from db_move_info_set.h:34, from db_consumer.h:34, from db_consumer.cpp:27: ../mstl/m_memblock.ipp: In instantiation of ‘mstl::memblock<U>& mstl::memblock<T>::operator=(mstl::memblock<T>&&) [with T = db::Mark]’: ../mstl/m_vector.ipp:792:35: required from ‘mstl::vector<T>& mstl::vector<T>::operator=(mstl::vector<T>&&) [with T = db::Mark]’ db_mark_set.ipp:124:34: required from here ../mstl/m_memblock.ipp:134:22: error: no matching function for call to ‘mstl::memblock<db::Mark>::~memblock()’ memblock::~memblock(); ~~~~~~~~~~~~~~~~~~~^~ ../mstl/m_memblock.ipp:45:1: note: candidate: ‘mstl::memblock<T>::~memblock() [with T = db::Mark]’ memblock<T>::~memblock() ^~~~~~~~~~~ ../mstl/m_memblock.ipp:45:1: note: candidate expects 1 argument, 0 provided
I see, compiler versions since 8.1 do not understand call of private destructor anymore,so now it will be called explicitly.
Please compile revision [r1509].
Related
Commit: [r1509]
Hi, seems to be the same issue
Updating '.':
C configure
U src/mstl/m_memblock.ipp
U src/tk/tk_twm.cpp
U tcl/app-db-players.tcl
U tcl/board-piece.tcl
U tcl/board-stuff.tcl
U tcl/colors.tcl
U tcl/manage-layouts.tcl
U tcl/overview.tcl
U tcl/widgets/countrybox.tcl
U tcl/widgets/entrybuttonbox.tcl
U tcl/widgets/genderbox.tcl
U tcl/widgets/searchentry.tcl
U tcl/widgets/tcombobox.tcl
U tcl/widgets/tlistbox.tcl
U tcl/widgets/twm.tcl
Updated to revision 1509.
Hi Gregor
Tried r1512, still same error
Ok, I have done a different fix in [r1513], this should work, I hope.
Sorry that I cannot test gcc 8.2, but my resources are limited, currently not possible to install more compiler versions. Hopefully I can buy new laptop soon.
Related
Commit: [r1513]
r1513 now compiles for me (same architecture as the OP), but crashes upon startup, with the following trace:
Hi
Updated to v1514 builds OK then core dumps
Cleaned up blank lines from output below
(func) invoke
(file) tcl_base.cpp:741
(what) can't read "text(movelist:normal)": no such element in array
(type) tcl::Error
=== Backtrace ============================================
TclNRRunCallbacks
Tcl_EvalEx
Tk_BindEvent
TkBindEventProc
Tk_HandleEvent
TclNRRunCallbacks
TclNRRunCallbacks
Tcl_FSEvalFileEx
Tk_MainEx
__libc_start_main
Error in startup script: 22
while executing
"::scidb::tk::twm load $twm {}$args "
(procedure "::twm::WidgetProc" line 62)
invoked from within
"::twm::WidgetProc .application.nb.board $command {}$args"
(procedure ".application.nb.board" line 1)
invoked from within
"$twm load $layout"
(procedure "twm::load" line 12)
invoked from within
"twm::load $twm"
(procedure "application::open" line 50)
invoked from within
"application::open"
(file "/usr/local/bin/scidb-beta" line 151108)
(func) mainWindow
(file) tk_base.cpp:146
(what) no main window exists
(type) tcl::Exception
=== Backtrace ============================================
Tk_HandleEvent
Tk_DestroyWindow
Tk_DestroyWindow
Tk_DestroyWindow
Tk_DestroyWindow
Tk_DestroyWindow
Tk_DestroyWindow
Tk_DestroyWindow
Tk_DestroyWindow
Tcl_Exit
Tk_MainEx
__libc_start_main
terminate called after throwing an instance of 'tcl::Exception'
Aborted (core dumped)
This problem only occurs if piece letters are used instead of graphical figurine. Is fixed with [r1515]. Thanks for error reporting!
Related
Commit: [r1515]