bugGNU Octave - Bugs: bug #57270, [MXE Octave] Warnings during...

 
 

bug #57270: [MXE Octave] Warnings during Octave compilation

Submitter:  Guillaume <gyom>
Submitted:  Tue 19 Nov 2019 04:37:26 PM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Assigned to:  None
Originator Name:  Guillaume Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sun 24 Nov 2019 11:37:49 AM UTC, comment #10: 

Sorry. I accidentally re-opened. Closing again.

Markus Mützel <mmuetzel>
Group administrator
Sun 24 Nov 2019 12:37:01 AM UTC, comment #9: 

Another possible solution to avoid the reinterpret_cast warning: We could call "SetCurrentProcessExplicitAppUserModelID" directly if we increased the Windows API version that we require. That would also simplify the code.

We are currently targeting the Windows API of Windows NT 4.0 SP3. That version's lifecycle ended in January 1999. [1]

The attached patch increases the Windows API version to Windows 7 (for which the support will end in January 2020 [2]). As reported some time ago, Octave won't run on older Windows OSs anyway because of some dependencies.
The newest Windows version that won't be targeted any longer is Windows Vista for which the support ended in April 2017. [3]

I'll just leave the patch here in case this should come up again.

[1]: https://support.microsoft.com/en-us/lifecycle/search/1159
[2]: https://support.microsoft.com/en-us/help/4057281/windows-7-support-will-end-on-january-14-2020
[3]: https://support.microsoft.com/en-us/help/22882/windows-vista-end-of-support

(file #47926)

Markus Mützel <mmuetzel>
Group administrator
Sat 23 Nov 2019 03:54:25 PM UTC, comment #8: 

I pushed the patch for sysdep.cc here https://hg.savannah.gnu.org/hgweb/octave/rev/b5e88a4bce43.

I agree that casting to void seems unappealing and we can just agree no to fix that that.

The Qt warnings could be filed as a separate report if desired.

All the possible issues have been addressed so I'm closing this report.

Rik <rik5>
Group administrator
Sat 23 Nov 2019 11:20:29 AM UTC, comment #7: 

I pushed the patch for the missing header here:
http://hg.savannah.gnu.org/hgweb/octave/rev/527e25f7ee38

@Rik: Your patch looks correct to me.

Wrt the GetProcAddress reinterpret_cast warning: It would be possible to cast to (void (*) ()) before casting to the final type to get rid of the warning. But that doesn't look very pretty.

Markus Mützel <mmuetzel>
Group administrator
Fri 22 Nov 2019 07:39:36 PM UTC, comment #6: 

The attached patch fixes the issue with the undefined __MINGW_PRINTF_FORMAT macro for me.

(file #47923)

Markus Mützel <mmuetzel>
Group administrator
Fri 22 Nov 2019 11:55:02 AM UTC, comment #5: 

The __MINGW_PRINTF_FORMAT macro is defined in "stdio.h" in MinGW. Maybe a missing include somewhere?

https://sourceforge.net/p/mingw-w64/mingw-w64/ci/master/tree/mingw-w64-headers/crt/stdio.h#l226

Markus Mützel <mmuetzel>
Group administrator
Thu 21 Nov 2019 09:19:40 PM UTC, comment #4: 

We shouldn't worry about the warnings in libgnu, that is not Octave code.  If you want you might report what you are seeing upstream with the gnulib project.

The macro __MINGW_PRINTF_FORMAT is used in build-aux/build-aux/mk-octave-config-h.sh and in oct-conf-post.in.h.  It is probably the latter instance that is causing the warning.  The code is below.  It references a bug report and maybe there is some way to suppress the warnings.


#  if defined (__MINGW32__)
    /* MinGW requires special handling due to different format specifiers
     * on different platforms.  The macro __MINGW_PRINTF_FORMAT maps to
     * either gnu_printf or ms_printf depending on where we are compiling
     * to avoid warnings on format specifiers that are legal.
     * See: https://bugzilla.mozilla.org/show_bug.cgi?id=1331349  */
#    define OCTAVE_FORMAT_PRINTF(stringIndex, firstToCheck) \
       __attribute__ ((format (__MINGW_PRINTF_FORMAT, stringIndex, firstToCheck)))

#    define HAVE_OCTAVE_FORMAT_PRINTF_ATTR 1
#  elif defined (__GNUC__)
     /* The following attributes are used with gcc and clang compilers.  */
#    define OCTAVE_FORMAT_PRINTF(index, first) \
       __attribute__ ((__format__(printf, index, first)))

#    define HAVE_OCTAVE_FORMAT_PRINTF_ATTR 1
#  else
#    define OCTAVE_FORMAT_PRINTF(index, first)

/* #    undef HAVE_OCTAVE_FORMAT_PRINTF_ATTR */
#  endif


The warning in ls-hdf5.cc is not important.  It just happens that 'char' on the system you are using is mapped to int8 and so values above 127 are not possible.  But on other systems that map 'char' to 'uint8' this is possible so the code needs to remain.

The warnings in sysdep.cc about comparing signed and unsigned integers is a good find.  I've attached a patch which should fix that.

The Qt warnings should be filed as a separate bug report.

So, the only thing I see remaining is the __MINGW_PRINTF_FORMAT warning.





(file #47919)

Rik <rik5>
Group administrator
Wed 20 Nov 2019 11:57:06 AM UTC, comment #3: 

Thanks for the feedback. make fails when building octave but it indeed still seems to be usable and I could create a distribution zip file.

Guillaume <gyom>
Tue 19 Nov 2019 06:02:12 PM UTC, comment #2: 
John Donoghue <lostbard>
Group Member
Tue 19 Nov 2019 05:52:02 PM UTC, comment #1: 

I see similar errors in the log on my machine, however it built a functioning installer this morning ok.

Looking at the log for a octave 5.1 build of mxe, i also see the same errors/warning


John Donoghue <lostbard>
Group Member
Tue 19 Nov 2019 04:37:26 PM UTC, original submission:  

I can see some warning when compiling Octave (dev) for Windows from Linux (openSUSE 15.0):


/mxe-octave/tmp-default-octave/octave-6.0.0/libgnu/glob.c:73: warning: "__stat64" redefined
   73 | # define __stat64(fname, buf)   stat (fname, buf)
      |
In file included from /mxe-octave/usr/x86_64-w64-mingw32/include/sys/stat.h:58,
                 from ./sys/stat.h:47,
                 from ./glob.h:551,
                 from /mxe-octave/tmp-default-octave/octave-6.0.0/libgnu/glob.c:28:
/mxe-octave/usr/x86_64-w64-mingw32/include/_mingw_stat64.h:97: note: this is the location of the previous definition
   97 | #define __stat64 _stat64



/mxe-octave/tmp-default-octave/octave-6.0.0/libgnu/tzset.c: In function 'rpl_tzset':
/mxe-octave/tmp-default-octave/octave-6.0.0/libgnu/tzset.c:66:20: warning: implicit declaration of function 'getenv' [-Wimplicit-function-declaration]
   66 |   const char *tz = getenv ("TZ");
      |                    ^~~~~~
/mxe-octave/tmp-default-octave/octave-6.0.0/libgnu/tzset.c:66:20: warning: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
/mxe-octave/tmp-default-octave/octave-6.0.0/libgnu/tzset.c:67:21: warning: implicit declaration of function 'strchr' [-Wimplicit-function-declaration]
   67 |   if (tz != NULL && strchr (tz, '/') != NULL)
      |                     ^~~~~~
/mxe-octave/tmp-default-octave/octave-6.0.0/libgnu/tzset.c:67:21: warning: incompatible implicit declaration of built-in function 'strchr'
/mxe-octave/tmp-default-octave/octave-6.0.0/libgnu/tzset.c:26:1: note: include '<string.h>' or provide a declaration of 'strchr'
   25 | #include "localtime-buffer.h"
  +++ |+#include <string.h>
   26 |
/mxe-octave/tmp-default-octave/octave-6.0.0/libgnu/tzset.c:68:5: warning: implicit declaration of function '_putenv' [-Wimplicit-function-declaration]
   68 |     _putenv ("TZ=");
      |     ^~~~~~~



libtool: compile:  x86_64-w64-mingw32-g++ -DHAVE_CONFIG_H -I. -I/mxe-octave/tmp-default-octave/octave-6.0.0 -Iliboctave -I/mxe-octave/tmp-default-octave/octave-6.0.0/liboctave -I/mxe-octave/tmp-default-octave/octave-6.0.0/liboctave/array -Iliboctave/numeric -I/mxe-octave/tmp-default-octave/octave-6.0.0/liboctave/numeric -Iliboctave/operators -I/mxe-octave/tmp-default-octave/octave-6.0.0/liboctave/operators -I/mxe-octave/tmp-default-octave/octave-6.0.0/liboctave/system -I/mxe-octave/tmp-default-octave/octave-6.0.0/liboctave/util -I/mxe-octave/tmp-default-octave/octave-6.0.0/libinterp/octave-value -Ilibinterp -I/mxe-octave/tmp-default-octave/octave-6.0.0/libinterp -I/mxe-octave/tmp-default-octave/octave-6.0.0/libinterp/operators -Ilibinterp/parse-tree -I/mxe-octave/tmp-default-octave/octave-6.0.0/libinterp/parse-tree -Ilibinterp/corefcn -I/mxe-octave/tmp-default-octave/octave-6.0.0/libinterp/corefcn -I/mxe-octave/tmp-default-octave/octave-6.0.0/liboctave/wrappers -I/mxe-octave/usr/x86_64-w64-mingw32/include/GraphicsMagick -I/mxe-octave/usr/x86_64-w64-mingw32/include/libxml2 -I/mxe-octave/usr/x86_64-w64-mingw32/include -I/mxe-octave/usr/x86_64-w64-mingw32/include -I/mxe-octave/usr/x86_64-w64-mingw32/include -I/mxe-octave/usr/x86_64-w64-mingw32/include -I/mxe-octave/usr/x86_64-w64-mingw32/include/freetype2 -I/mxe-octave/usr/x86_64-w64-mingw32/include/libpng16 -I/mxe-octave/usr/x86_64-w64-mingw32/include -I/mxe-octave/usr/x86_64-w64-mingw32/include/freetype2 -I/mxe-octave/usr/x86_64-w64-mingw32/include/libpng16 -I/mxe-octave/usr/x86_64-w64-mingw32/include -I/mxe-octave/usr/x86_64-w64-mingw32/include -fopenmp -Wall -W -Wshadow -Woverloaded-virtual -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -MT libinterp/corefcn/libinterp_corefcn_libcorefcn_la-__pchip_deriv__.lo -MD -MP -MF libinterp/corefcn/.deps/libinterp_corefcn_libcorefcn_la-__pchip_deriv__.Tpo -c /mxe-octave/tmp-default-octave/octave-6.0.0/libinterp/corefcn/__pchip_deriv__.cc  -DDLL_EXPORT -DPIC -o libinterp/corefcn/.libs/libinterp_corefcn_libcorefcn_la-__pchip_deriv__.o
In file included from /mxe-octave/tmp-default-octave/octave-6.0.0/liboctave/util/f77-fcn.h:28,
                 from /mxe-octave/tmp-default-octave/octave-6.0.0/liboctave/numeric/lo-slatec-proto.h:28,
                 from /mxe-octave/tmp-default-octave/octave-6.0.0/libinterp/corefcn/__pchip_deriv__.cc:28:
/mxe-octave/tmp-default-octave/octave-6.0.0/liboctave/util/lo-error.h:58:3: warning: '__MINGW_PRINTF_FORMAT' is an unrecognized format function type [-Wformat=]
   58 |   current_liboctave_error_handler;
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mxe-octave/tmp-default-octave/octave-6.0.0/liboctave/util/lo-error.h:62:3: warning: '__MINGW_PRINTF_FORMAT' is an unrecognized format function type [-Wformat=]
   62 |   current_liboctave_error_with_id_handler;
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mxe-octave/tmp-default-octave/octave-6.0.0/liboctave/util/lo-error.h:65:45: warning: '__MINGW_PRINTF_FORMAT' is an unrecognized format function type [-Wformat=]
   65 | OCTAVE_API extern liboctave_warning_handler current_liboctave_warning_handler;
      |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mxe-octave/tmp-default-octave/octave-6.0.0/liboctave/util/lo-error.h:69:3: warning: '__MINGW_PRINTF_FORMAT' is an unrecognized format function type [-Wformat=]
   69 |   current_liboctave_warning_with_id_handler;
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



/mxe-octave/tmp-default-octave/octave-6.0.0/libinterp/corefcn/ls-hdf5.cc: In lambda function:
/mxe-octave/tmp-default-octave/octave-6.0.0/libinterp/corefcn/ls-hdf5.cc:175:61: warning: comparison is always false due to limited range of data type [-Wtype-limits]
  175 |                             [](char c) { return (c < 0 || c >= 128); });
      |                                                           ~~^~~~~~



/mxe-octave/tmp-default-octave/octave-6.0.0/libinterp/corefcn/sysdep.cc:194:114: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'SETCURRENTAPPID' {aka 'long int (*)(const wchar_t*)'} [-Wcast-function-type]
  194 |           = reinterpret_cast<SETCURRENTAPPID> (GetProcAddress (hShell, "SetCurrentProcessExplicitAppUserModelID"));
      |                                                                                                                  ^
/mxe-octave/tmp-default-octave/octave-6.0.0/libinterp/corefcn/sysdep.cc: In function 'bool octave::drive_or_unc_share(const string&)':
/mxe-octave/tmp-default-octave/octave-6.0.0/libinterp/corefcn/sysdep.cc:356:24: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long long unsigned int'} and 'int' [-Wsign-compare]
  356 |         if (next_slash != -1 && len > next_slash+1)
      |             ~~~~~~~~~~~^~~~~
/mxe-octave/tmp-default-octave/octave-6.0.0/libinterp/corefcn/sysdep.cc:360:28: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long long unsigned int'} and 'int' [-Wsign-compare]
  360 |             if (last_slash == -1 || (len > next_slash+2 && last_slash == len-1))
      |                 ~~~~~~~~~~~^~~~~



/mxe-octave/tmp-default-octave/octave-6.0.0/libgui/src/main-window.cc: In member function 'void octave::main_window::display_release_notes()':
/mxe-octave/tmp-default-octave/octave-6.0.0/libgui/src/main-window.cc:667:64: warning: 'const QRect QDesktopWidget::availableGeometry(int) const' is deprecated: Use QGuiApplication::screens() [-Wdeprecated-declarations]
  667 |         QRect screen_geo = m_desktop->availableGeometry (screen);
      |                                                                ^
In file included from /mxe-octave/usr/x86_64-w64-mingw32/qt5/include/QtWidgets/QDesktopWidget:1,
                 from /mxe-octave/tmp-default-octave/octave-6.0.0/libgui/src/main-window.cc:36:
/mxe-octave/usr/x86_64-w64-mingw32/qt5/include/QtWidgets/qdesktopwidget.h:88:67: note: declared here
   88 |     QT_DEPRECATED_X("Use QGuiApplication::screens()") const QRect availableGeometry(int screen = -1) const;
      |                                                                   ^~~~~~~~~~~~~~~~~
/mxe-octave/tmp-default-octave/octave-6.0.0/libgui/src/main-window.cc: In member function 'void octave::main_window::display_community_news(const QString&)':
/mxe-octave/tmp-default-octave/octave-6.0.0/libgui/src/main-window.cc:745:64: warning: 'const QRect QDesktopWidget::availableGeometry(int) const' is deprecated: Use QGuiApplication::screens() [-Wdeprecated-declarations]
  745 |         QRect screen_geo = m_desktop->availableGeometry (screen);
      |                                                                ^
In file included from /mxe-octave/usr/x86_64-w64-mingw32/qt5/include/QtWidgets/QDesktopWidget:1,
                 from /mxe-octave/tmp-default-octave/octave-6.0.0/libgui/src/main-window.cc:36:
/mxe-octave/usr/x86_64-w64-mingw32/qt5/include/QtWidgets/qdesktopwidget.h:88:67: note: declared here
   88 |     QT_DEPRECATED_X("Use QGuiApplication::screens()") const QRect availableGeometry(int screen = -1) const;
      |                                                                   ^~~~~~~~~~~~~~~~~
/mxe-octave/tmp-default-octave/octave-6.0.0/libgui/src/main-window.cc: In member function 'void octave::main_window::set_window_layout(octave::gui_settings*)':
/mxe-octave/tmp-default-octave/octave-6.0.0/libgui/src/main-window.cc:1530:64: warning: 'const QRect QDesktopWidget::availableGeometry(int) const' is deprecated: Use QGuiApplication::screens() [-Wdeprecated-declarations]
 1530 |         QRect screen_geo = m_desktop->availableGeometry (screen);
      |                                                                ^
In file included from /mxe-octave/usr/x86_64-w64-mingw32/qt5/include/QtWidgets/QDesktopWidget:1,
                 from /mxe-octave/tmp-default-octave/octave-6.0.0/libgui/src/main-window.cc:36:
/mxe-octave/usr/x86_64-w64-mingw32/qt5/include/QtWidgets/qdesktopwidget.h:88:67: note: declared here
   88 |     QT_DEPRECATED_X("Use QGuiApplication::screens()") const QRect availableGeometry(int screen = -1) const;
      |                                                                   ^~~~~~~~~~~~~~~~~
/mxe-octave/tmp-default-octave/octave-6.0.0/libgui/src/resource-manager.cc: In member function 'void octave::resource_manager::get_codecs(QStringList*)':
/mxe-octave/tmp-default-octave/octave-6.0.0/libgui/src/resource-manager.cc:397:19: warning: 'void qSort(Container&) [with Container = QStringList]' is deprecated: Use std::sort [-Wdeprecated-declarations]
  397 |     qSort (*codecs);
      |                   ^
/mxe-octave/tmp-default-octave/octave-6.0.0/libgui/src/find-files-model.cc:193:49: warning: 'void qSort(RandomAccessIterator, RandomAccessIterator, LessThan) [with RandomAccessIterator = QList<QFileInfo>::iterator; LessThan = octave::find_file_less_than]' is deprecated: Use std::sort [-Wdeprecated-declarations]
  193 |                find_file_less_than (m_sortorder));
      |                                                 ^
/mxe-octave/tmp-default-octave/octave-6.0.0/libgui/src/find-files-model.cc:193:49: warning: 'void qSort(RandomAccessIterator, RandomAccessIterator, LessThan) [with RandomAccessIterator = QList<QFileInfo>::iterator; LessThan = octave::find_file_less_than]' is deprecated: Use std::sort [-Wdeprecated-declarations]
  193 |                find_file_less_than (m_sortorder));
      |                                                 ^
/mxe-octave/tmp-default-octave/octave-6.0.0/libgui/src/variable-editor.cc:77:57: warning: 'QSignalMapper::QSignalMapper(QObject*)' is deprecated [-Wdeprecated-declarations]
   77 |     QSignalMapper *plot_mapper = new QSignalMapper (menu);
      |                                                         ^
In file included from /mxe-octave/usr/x86_64-w64-mingw32/qt5/include/QtCore/QSignalMapper:1,
                 from /mxe-octave/tmp-default-octave/octave-6.0.0/libgui/src/variable-editor.cc:41:
/mxe-octave/usr/x86_64-w64-mingw32/qt5/include/QtCore/qsignalmapper.h:56:28: note: declared here
   56 |     QT_DEPRECATED explicit QSignalMapper(QObject *parent = nullptr);
      |                            ^~~~~~~~~~~~~
/mxe-octave/tmp-default-octave/octave-6.0.0/libgui/src/variable-editor.cc: In member function 'virtual void octave::variable_editor_view::setModel(QAbstractItemModel*)':
/mxe-octave/tmp-default-octave/octave-6.0.0/libgui/src/variable-editor.cc:527:61: warning: 'int QFontMetrics::width(QChar) const' is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations]
  527 |         int w = m_var_model->column_width () * fm.width ('0');
      |                                                             ^
In file included from /mxe-octave/usr/x86_64-w64-mingw32/qt5/include/QtWidgets/qwidget.h:50,
                 from /mxe-octave/usr/x86_64-w64-mingw32/qt5/include/QtWidgets/qdialog.h:44,
                 from /mxe-octave/usr/x86_64-w64-mingw32/qt5/include/QtWidgets/qfiledialog.h:47,
                 from /mxe-octave/usr/x86_64-w64-mingw32/qt5/include/QtWidgets/QFileDialog:1,
                 from /mxe-octave/tmp-default-octave/octave-6.0.0/libgui/src/variable-editor.cc:33:
/mxe-octave/usr/x86_64-w64-mingw32/qt5/include/QtGui/qfontmetrics.h:112:9: note: declared here
  112 |     int width(QChar) const;
      |         ^~~~~
/mxe-octave/tmp-default-octave/octave-6.0.0/libgui/src/variable-editor.cc: In member function 'void octave::variable_editor_view::copyClipboard()':
/mxe-octave/tmp-default-octave/octave-6.0.0/libgui/src/variable-editor.cc:839:19: warning: 'void qSort(Container&) [with Container = QList<QModelIndex>]' is deprecated: Use std::sort [-Wdeprecated-declarations]
  839 |     qSort (indices);
      |                   ^
In file included from /mxe-octave/usr/x86_64-w64-mingw32/qt5/include/QtCore/qlist.h:43,
                 from /mxe-octave/usr/x86_64-w64-mingw32/qt5/include/QtCore/qobject.h:49,
                 from /mxe-octave/usr/x86_64-w64-mingw32/qt5/include/QtCore/qcoreapplication.h:46,
                 from /mxe-octave/usr/x86_64-w64-mingw32/qt5/include/QtWidgets/qapplication.h:44,
                 from /mxe-octave/usr/x86_64-w64-mingw32/qt5/include/QtWidgets/QApplication:1,
                 from /mxe-octave/tmp-default-octave/octave-6.0.0/libgui/src/variable-editor.cc:31:
/mxe-octave/usr/x86_64-w64-mingw32/qt5/include/QtCore/qalgorithms.h:188:46: note: declared here
  188 | QT_DEPRECATED_X("Use std::sort") inline void qSort(Container &c)
      |                                              ^~~~~
/mxe-octave/tmp-default-octave/octave-6.0.0/libgui/src/variable-editor.cc:839:19: warning: 'void qSort(Container&) [with Container = QList<QModelIndex>]' is deprecated: Use std::sort [-Wdeprecated-declarations]
  839 |     qSort (indices);
      |                   ^
In file included from /mxe-octave/usr/x86_64-w64-mingw32/qt5/include/QtCore/qlist.h:43,
                 from /mxe-octave/usr/x86_64-w64-mingw32/qt5/include/QtCore/qobject.h:49,
                 from /mxe-octave/usr/x86_64-w64-mingw32/qt5/include/QtCore/qcoreapplication.h:46,
                 from /mxe-octave/usr/x86_64-w64-mingw32/qt5/include/QtWidgets/qapplication.h:44,
                 from /mxe-octave/usr/x86_64-w64-mingw32/qt5/include/QtWidgets/QApplication:1,
                 from /mxe-octave/tmp-default-octave/octave-6.0.0/libgui/src/variable-editor.cc:31:
/mxe-octave/usr/x86_64-w64-mingw32/qt5/include/QtCore/qalgorithms.h:188:46: note: declared here
  188 | QT_DEPRECATED_X("Use std::sort") inline void qSort(Container &c)
      |                                              ^~~~~
/mxe-octave/tmp-default-octave/octave-6.0.0/libgui/src/workspace-view.cc: In member function 'void octave::workspace_view::header_contextmenu_requested(const QPoint&)':
/mxe-octave/tmp-default-octave/octave-6.0.0/libgui/src/workspace-view.cc:285:35: warning: 'QSignalMapper::QSignalMapper(QObject*)' is deprecated [-Wdeprecated-declarations]
  285 |     QSignalMapper sig_mapper (this);
      |                                   ^
In file included from /mxe-octave/usr/x86_64-w64-mingw32/qt5/include/QtCore/QSignalMapper:1,
                 from /mxe-octave/tmp-default-octave/octave-6.0.0/libgui/src/workspace-view.cc:39:
/mxe-octave/usr/x86_64-w64-mingw32/qt5/include/QtCore/qsignalmapper.h:56:28: note: declared here
   56 |     QT_DEPRECATED explicit QSignalMapper(QObject *parent = nullptr);
      |                            ^~~~~~~~~~~~~


I also get a number of errors I cannot yet make sense of:


/usr/bin/install -c libinterp/dldfcn/.libs/symbfact.dll libinterp/dldfcn/symbfact.oct
libtool: link: x86_64-w64-mingw32-g++ -fopenmp -Wall -W -Wshadow -Woverloaded-virtual -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -Wl,-rpath-link -Wl,/mxe-octave/usr/x86_64-w64-mingw32/lib -Wl,--export-all-symbols -o src/.libs/octave-cli.exe src/src_octave_cli-main-cli.o src/src_octave_cli-octave-build-info.o  -L/mxe-octave/usr/x86_64-w64-mingw32/lib -L/mxe-octave/usr/x86_64-w64-mingw32/qt5/lib libinterp/.libs/liboctinterp.dll.a -L/mxe-octave/usr/mingw/lib /mxe-octave/tmp-default-octave/octave-6.0.0/.build/liboctave/.libs/liboctave.dll.a /mxe-octave/usr/x86_64-w64-mingw32/lib/libhdf5.dll.a /mxe-octave/usr/x86_64-w64-mingw32/lib/libGraphicsMagick++.dll.a /mxe-octave/usr/x86_64-w64-mingw32/lib/libGraphicsMagick.dll.a /mxe-octave/usr/x86_64-w64-mingw32/lib/liblcms2.dll.a -lpthread /mxe-octave/usr/x86_64-w64-mingw32/lib/liblzma.dll.a -lbz2 /mxe-octave/usr/x86_64-w64-mingw32/lib/libltdl.dll.a -lopengl32 -lglu32 /mxe-octave/usr/x86_64-w64-mingw32/lib/libfontconfig.dll.a /mxe-octave/usr/x86_64-w64-mingw32/lib/libexpat.dll.a -lfreetype -lgl2ps liboctave/.libs/liboctave.dll.a /mxe-octave/usr/x86_64-w64-mingw32/lib/libcurl.dll.a /mxe-octave/usr/x86_64-w64-mingw32/lib/libssh2.dll.a /mxe-octave/usr/x86_64-w64-mingw32/lib/libgcrypt.dll.a /mxe-octave/usr/x86_64-w64-mingw32/lib/libgpg-error.dll.a /mxe-octave/usr/x86_64-w64-mingw32/lib/libgnutls.dll.a /mxe-octave/usr/x86_64-w64-mingw32/lib/libidn2.dll.a /mxe-octave/usr/x86_64-w64-mingw32/lib/libunistring.dll.a -lnettle -lhogweed /mxe-octave/usr/x86_64-w64-mingw32/lib/libgmp.dll.a /mxe-octave/usr/x86_64-w64-mingw32/lib/libintl.dll.a /mxe-octave/usr/x86_64-w64-mingw32/lib/libpcreposix.dll.a -lcrypt32 -lwldap32 -lz -lcholmod -lumfpack -lamd -lcamd -lcolamd -lccolamd -lcxsparse -lsuitesparseconfig /mxe-octave/usr/x86_64-w64-mingw32/lib/libarpack.dll.a /mxe-octave/usr/x86_64-w64-mingw32/lib/libqrupdate.dll.a -lxerbla /mxe-octave/usr/x86_64-w64-mingw32/lib/libfftw3.dll.a /mxe-octave/usr/x86_64-w64-mingw32/lib/libfftw3f.dll.a -llapack -lblas /mxe-octave/tmp-default-octave/octave-6.0.0/.build/liboctave/external/blas-xtra/.libs/libxerbla.dll.a -lreadline -ltermcap /mxe-octave/usr/x86_64-w64-mingw32/lib/libpcre.dll.a /mxe-octave/usr/lib/gcc/x86_64-w64-mingw32/9.2.0/libgfortran.dll.a /mxe-octave/usr/lib/gcc/x86_64-w64-mingw32/9.2.0/libquadmath.dll.a /mxe-octave/usr/lib/gcc/x86_64-w64-mingw32/9.2.0/libstdc++.dll.a /mxe-octave/usr/x86_64-w64-mingw32/lib/gcc/x86_64-w64-mingw32/9.2.0/libgomp.dll.a libgnu/.libs/libgnu.a -ladvapi32 -lws2_32 /mxe-octave/usr/x86_64-w64-mingw32/lib/libiconv.dll.a -lpsapi -lgdi32 -pthread -fopenmp -L/mxe-octave/usr/x86_64-w64-mingw32/lib/octave/6.0.0 -L/mxe-octave/usr/x86_64-w64-mingw32/lib -L/mxe-octave/usr/lib/gcc/x86_64-w64-mingw32/9.2.0 -L/mxe-octave/usr/x86_64-w64-mingw32/lib/gcc/x86_64-w64-mingw32/9.2.0
libtool:   error: Could not determine the host path corresponding to
libtool:   error:   '/mxe-octave/tmp-default-octave/octave-6.0.0/.build/libinterp/.libs:/mxe-octave/tmp-default-octave/octave-6.0.0/.build/liboctave/.libs:/mxe-octave/usr/x86_64-w64-mingw32/lib:/mxe-octave/tmp-default-octave/octave-6.0.0/.build/liboctave/external/blas-xtra/.libs:/mxe-octave/usr/lib/gcc/x86_64-w64-mingw32/9.2.0:/mxe-octave/usr/x86_64-w64-mingw32/lib/gcc/x86_64-w64-mingw32/9.2.0'
libtool:   error: Continuing, but uninstalled executables may not work.
libtool:   error: Could not determine the host path corresponding to
libtool:   error:   '/mxe-octave/usr/x86_64-w64-mingw32/lib:/mxe-octave/usr/x86_64-w64-mingw32/bin:/mxe-octave/usr/x86_64-w64-mingw32/qt5/lib:/mxe-octave/usr/x86_64-w64-mingw32/qt5/bin:/mxe-octave/tmp-default-octave/octave-6.0.0/.build/libinterp/.libs:/mxe-octave/tmp-default-octave/octave-6.0.0/.build/liboctave/.libs:/mxe-octave/tmp-default-octave/octave-6.0.0/.build/liboctave/external/blas-xtra/.libs:/mxe-octave/usr/lib/gcc/x86_64-w64-mingw32/9.2.0:/mxe-octave/usr/x86_64-w64-mingw32/lib/gcc/x86_64-w64-mingw32/9.2.0:/mxe-octave/usr/x86_64-w64-mingw32/lib/octave/6.0.0'
libtool:   error: Continuing, but uninstalled executables may not work.


Guillaume <gyom>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #47926:  bug57270_Windows7API.patch added by mmuetzel (2KiB - application/octet-stream)
file #47923:  bug57270_printf_format.patch added by mmuetzel (2KiB - application/octet-stream)
file #47919:  57270.patch added by rik5 (837B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by rik5 (Updated the item)
  • -email is unavailable- added by lostbard (Posted a comment)
  • -email is unavailable- added by gyom (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-11-24 mmuetzel Open/ClosedOpen Closed
    2019-11-24 mmuetzel Attached File- Added bug57270_Windows7API.patch, #47926
        StatusFixed None
        Open/ClosedClosed Open
    2019-11-23 rik5 StatusNone Fixed
        Open/ClosedOpen Closed
    2019-11-22 mmuetzel Attached File- Added bug57270_printf_format.patch, #47923
    2019-11-21 rik5 Attached File- Added 57270.patch, #47919

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code