Menu

#198 error building v1508: no matching function for call to ‘mstl::memblock<db::Mark>

None
closed-fixed
gcc (1) fonts (2)
5
2018-08-28
2018-08-15
No

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

Discussion

  • Gregor Cramer

    Gregor Cramer - 2018-08-17

    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]

  • Drew Ferguson

    Drew Ferguson - 2018-08-17

    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.

    make[1]: 'scidb-beta.1.gz' is up to date.
    Compiling cql/cql_common.cpp              [-Wall -g -I/usr/include -DSCI_NAMEBASE_FIX=1]
    Compiling cql/cql_designator.cpp          [-Wall -g -I/usr/include -DSCI_NAMEBASE_FIX=1]
    Compiling cql/cql_engine.cpp              [-Wall -g -I/usr/include -DSCI_NAMEBASE_FIX=1]
    Compiling cql/cql_match.cpp               [-Wall -g -I/usr/include -DSCI_NAMEBASE_FIX=1]
    Compiling cql/cql_match_board.cpp         [-Wall -g -I/usr/include -DSCI_NAMEBASE_FIX=1]
    Compiling cql/cql_match_info.cpp          [-Wall -g -I/usr/include -DSCI_NAMEBASE_FIX=1]
    Compiling cql/cql_match_move.cpp          [-Wall -g -I/usr/include -DSCI_NAMEBASE_FIX=1]
    Compiling cql/cql_match_relation.cpp      [-Wall -g -I/usr/include -DSCI_NAMEBASE_FIX=1]
    Compiling cql/cql_position.cpp            [-Wall -g -I/usr/include -DSCI_NAMEBASE_FIX=1]
    Compiling cql/cql_relation.cpp            [-Wall -g -I/usr/include -DSCI_NAMEBASE_FIX=1]
    Compiling db_annotation.cpp               [-Wall -g -I/usr/include -DSCI_NAMEBASE_FIX=1]
    Compiling db_board.cpp                    [-Wall -g -I/usr/include -DSCI_NAMEBASE_FIX=1]
    Compiling db_board_base.cpp               [-Wall -g -I/usr/include -DSCI_NAMEBASE_FIX=1]
    Compiling db_bpgn_reader.cpp              [-Wall -g -I/usr/include -DSCI_NAMEBASE_FIX=1]
    Compiling db_clock.cpp                    [-Wall -g -I/usr/include -DSCI_NAMEBASE_FIX=1]
    Compiling db_comment.cpp                  [-Wall -g -I/usr/include -DSCI_NAMEBASE_FIX=1]
    Compiling db_common.cpp                   [-Wall -g -I/usr/include -DSCI_NAMEBASE_FIX=1]
    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:25: error: no matching function for call to ‘mstl::memblock<db::Mark>::~memblock()’
       memblock<T>::~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
    
     
  • Drew Ferguson

    Drew Ferguson - 2018-08-20

    Hi Gregor
    Tried r1512, still same error

     
  • Gregor Cramer

    Gregor Cramer - 2018-08-21

    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]

  • Eyolf

    Eyolf - 2018-08-24

    r1513 now compiles for me (same architecture as the OP), but crashes upon startup, with the following trace:

    -> scidb-beta 
    (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_FSEvalFileEx
     Tk_MainEx
    
     __libc_start_main
    ==========================================================
    
    Error in startup script: can't read "text(movelist:normal)": no such element in array
        while executing
    "set figurine($context:normal) $text($context:normal)"
        (procedure "::font::registerFigurineFonts" line 24)
        invoked from within
    "::font::registerFigurineFonts movelist"
        (procedure "::gametable::build" line 207)
        invoked from within
    "::gametable::build $table [namespace code [list View $parent.treeGames]] $columns  -id db:tree:games:$id  -takefocus 0  -mode list  -positioncmd ::sci..."
        (procedure "tree::games::build" line 8)
        invoked from within
    "tree::games::build $twm $frame $width $height "
        (procedure "::application::BuildPane" line 23)
        invoked from within
    "$Vars(cmd:buildpane) $twm $pane $id $width $height"
        (procedure "BuildPane" line 10)
        invoked from within
    "BuildPane $twm {*}$args"
        (procedure "::twm::WidgetProc" line 10)
        invoked from within
    "::twm::WidgetProc .application.nb.board $command {*}$args"
        (procedure ".application.nb.board" line 1)
        invoked from within
    "::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 151058)
    (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
    
     Tcl_Exit
     Tk_MainEx
    
     __libc_start_main
    ==========================================================
    
    terminate called after throwing an instance of 'tcl::Exception'
    
     
  • Drew Ferguson

    Drew Ferguson - 2018-08-24

    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)

     
  • Gregor Cramer

    Gregor Cramer - 2018-08-26
    • labels: --> gcc, fonts
    • status: open --> closed-fixed
    • assigned_to: Gregor Cramer
     
  • Gregor Cramer

    Gregor Cramer - 2018-08-26

    This problem only occurs if piece letters are used instead of graphical figurine. Is fixed with [r1515]. Thanks for error reporting!

     

    Related

    Commit: [r1515]


Log in to post a comment.