Menu

#83 Compilation error in gcc / g++ 8.1

2.14
closed
None
2019-05-28
2019-04-06
Alex
No

Dear Authors,

I would like to report that natest version (2.14) is not compiling using gcc / g++ 8.1.0 (Ubuntu 8.1.0-5ubuntu1~16.04)

Best regards,
Alex

Discussion

  • André Offringa

    André Offringa - 2019-05-28

    Hi Alex, thanks for reporting -- could you post the compilation error? I think I can't reproduce your problem, or it might already be solved in the repository.

     
    • Alex

      Alex - 2019-05-28

      Hi,
      The output from make is attached - its quite large. This problem does not occur if I swich to gcc/gpp 7 or earlier.

       
  • André Offringa

    André Offringa - 2019-05-28

    Hi Alex, thanks for that. It's not an issue in aoflagger ; your gtkmm and glibmm library installation are too old and don't support the latest gccs. Near the end of the log it says:

    In file included from /usr/include/glibmm-2.4/glibmm.h:89,
                     from /opt/aoflagger/aoflagger-2.14.0/src/rfigui/progresswindow.h:8,
                     from /opt/aoflagger/aoflagger-2.14.0/src/rfigui/progresswindow.cpp:1:
    /usr/include/glibmm-2.4/glibmm/threads.h: In member function GPrivate* Glib::Threads::Private<T>::gobj():
    /usr/include/glibmm-2.4/glibmm/threads.h:620:29: error: cannot convert GPrivate {aka ‘_GPrivate’} to GPrivate* {aka ‘_GPrivate*’} in return
       GPrivate* gobj() { return gobject_; }
    

    If you install newer libraries, you'll also get rid of many of the warnings that you see.

     
  • André Offringa

    André Offringa - 2019-05-28
    • status: open --> closed
    • assigned_to: André Offringa