Bug 1181881

Summary: GCC 11: presage package fails
Product: [openSUSE] openSUSE Tumbleweed Reporter: Martin Liška <martin.liska>
Component: BasesystemAssignee: Marguerite Su <i>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: swyear
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1181859    

Description Martin Liška 2021-02-06 11:22:22 UTC
The package fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/presage/standard/x86_64

due to:
[   73s] /bin/sh ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../..  -I../../src/lib/tinyxml   -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -I/usr/include/python3.8 -I/usr/include/python3.8 -c -o libpresage_la-presage.lo `test -f 'presage.cpp' || echo './'`presage.cpp
[   73s] libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib/tinyxml -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -I/usr/include/python3.8 -I/usr/include/python3.8 -c presage.cpp  -fPIC -DPIC -o .libs/libpresage_la-presage.o
[   74s] In file included from presage.cpp:25:
[   74s] presage.h:115:40: error: ISO C++17 does not allow dynamic exception specifications
[   74s]   115 |     Presage(PresageCallback* callback) throw (PresageException);
[   74s]       |                                        ^~~~~
[   74s] presage.h:125:66: error: ISO C++17 does not allow dynamic exception specifications
[   74s]   125 |     Presage(PresageCallback* callback, const std::string config) throw (PresageException);
[   74s]       |                                                                  ^~~~~
[   74s] presage.h:141:40: error: ISO C++17 does not allow dynamic exception specifications
[   74s]   141 |     std::vector<std::string> predict() throw (PresageException);
[   74s]       |                                        ^~~~~
[   74s] presage.h:156:81: error: ISO C++17 does not allow dynamic exception specifications
[   74s]   156 |     std::multimap<double, std::string> predict(std::vector<std::string> filter) throw (PresageException);
[   74s]       |                                                                                 ^~~~~
Comment 1 Martin Liška 2021-02-26 13:59:02 UTC
May I please ping this?
Comment 2 Marguerite Su 2021-03-01 08:56:59 UTC
Sorry I just saw this.

Will fix it ASAP

Marguerite
Comment 3 Marguerite Su 2021-03-01 14:19:08 UTC
fixed via https://build.opensuse.org/request/show/876009
Comment 4 OBSbugzilla Bot 2021-03-01 15:20:08 UTC
This is an autogenerated message for OBS integration:
This bug (1181881) was mentioned in
https://build.opensuse.org/request/show/876015 Factory / presage
Comment 5 Martin Liška 2021-04-15 11:25:40 UTC
Unfortunately, I still see similar errors here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/presage/standard/x86_64

[   80s] /bin/sh ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../..  -I../../src/lib/tinyxml   -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -I/usr/include/python3.8 -I/usr/include/python3.8 -c -o libpresage_la-presage.lo `test -f 'presage.cpp' || echo './'`presage.cpp
[   81s] libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib/tinyxml -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -I/usr/include/python3.8 -I/usr/include/python3.8 -c presage.cpp  -fPIC -DPIC -o .libs/libpresage_la-presage.o
[   81s] In file included from presage.cpp:25:
[   81s] presage.h:34:25: error: ISO C++17 does not allow dynamic exception specifications
[   81s]    34 | #define THROW_SPEC(...) throw (__VA_ARGS__)
[   81s]       |                         ^~~~~
[   81s] presage.h:121:40: note: in expansion of macro 'THROW_SPEC'
[   81s]   121 |     Presage(PresageCallback* callback) THROW_SPEC (PresageException);
[   81s]       |                                        ^~~~~~~~~~
[   81s] presage.h:34:25: error: ISO C++17 does not allow dynamic exception specifications
[   81s]    34 | #define THROW_SPEC(...) throw (__VA_ARGS__)
[   81s]       |                         ^~~~~
[   81s] presage.h:131:66: note: in expansion of macro 'THROW_SPEC'
[   81s]   131 |     Presage(PresageCallback* callback, const std::string config) THROW_SPEC (PresageException);
[   81s]       |                                                                  ^~~~~~~~~~
[   81s] presage.h:34:25: error: ISO C++17 does not allow dynamic exception specifications
[   81s]    34 | #define THROW_SPEC(...) throw (__VA_ARGS__)
[   81s]       |                         ^~~~~
[   81s] presage.h:147:40: note: in expansion of macro 'THROW_SPEC'
[   81s]   147 |     std::vector<std::string> predict() THROW_SPEC (PresageException);
[   81s]       |                                        ^~~~~~~~~~
[   81s] presage.h:34:25: error: ISO C++17 does not allow dynamic exception specifications
[   81s]    34 | #define THROW_SPEC(...) throw (__VA_ARGS__)
[   81s]       |                         ^~~~~
[   81s] presage.h:162:81: note: in expansion of macro 'THROW_SPEC'
[   81s]   162 |     std::multimap<double, std::string> predict(std::vector<std::string> filter) THROW_SPEC (PresageException);
[   81s]       |                                                                                 ^~~~~~~~~~
[   81s] presage.h:34:25: error: ISO C++17 does not allow dynamic exception specifications
[   81s]    34 | #define THROW_SPEC(...) throw (__VA_ARGS__)
[   81s]       |                         ^~~~~
[   81s] presage.h:176:46: note: in expansion of macro 'THROW_SPEC'
[   81s]   176 |     void learn(const std::string text) const THROW_SPEC (PresageException);
[   81s]       |                                              ^~~~~~~~~~
[   81s] presage.h:34:25: error: ISO C++17 does not allow dynamic exception specifications
[   81s]    34 | #define THROW_SPEC(...) throw (__VA_ARGS__)
[   81s]       |                         ^~~~~
[   81s] presage.h:185:58: note: in expansion of macro 'THROW_SPEC'
[   81s]   185 |     PresageCallback* callback(PresageCallback* callback) THROW_SPEC (PresageException);
[   81s]       |                                                          ^~~~~~~~~~
Comment 6 OBSbugzilla Bot 2021-05-05 09:40:03 UTC
This is an autogenerated message for OBS integration:
This bug (1181881) was mentioned in
https://build.opensuse.org/request/show/890631 Factory / presage
Comment 7 Martin Liška 2021-05-11 18:53:49 UTC
Fixed.
Comment 8 Martin Liška 2021-05-12 12:14:07 UTC
There's one more issue:

[  135s] scintilla/gtk/ScintillaGTK.cxx:1629:47: error: ordered comparison of pointer with integer zero ('GdkAtom' {aka '_GdkAtom*'} and 'int')
[  135s]  1629 |                 if (TypeOfGSD(selection_data) > 0) {
[  135s]       |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~


I'll fix it.
Comment 9 Martin Liška 2021-05-12 12:16:14 UTC
Made SR#1181881.
Comment 10 Martin Liška 2021-05-12 13:45:45 UTC
(In reply to Martin Liška from comment #9)
> Made SR#1181881.

Should be SR#892475.
Comment 11 Martin Liška 2021-05-13 10:54:26 UTC
Fixed in devel project.