[Bug libstdc++/69751] New: error: call of overloaded 'abs(size_t)' is ambiguous
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69751 Bug ID: 69751 Summary: error: call of overloaded 'abs(size_t)' is ambiguous Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: martin.gansser at gmail dot com Target Milestone: --- g++ -c -ggdb -O0 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fPIC -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/mysql -I/usr/include/python2.7 -I/usr/include/python2.7 -D_GNU_SOURCE -DBINDEST='"/usr/bin"' -DTARGET='"epgd"' -DLOG_PREFIX='""' -DPLGDIR='"/usr/lib64/epgd"' -DUSEUUID -DUSEMD5 -DUSELIBXML -DUSELIBARCHIVE -DUSEJSON -DUSEGUNZIP -I/usr/include/libxml2 -I/usr/include/libxml2 -DGIT_REV='""' -o series.o series.c series.c: In member function 'int cEpgd::evaluateEpisodes()': series.c:90:99: error: call of overloaded 'abs(size_t)' is ambiguous if (::abs(strlen(evtCompShortText) - strlen(episodeDb->getStrValue("COMPPARTNAME"))) >= dMin) ^ In file included from /usr/include/c++/6.0.0/cstdlib:75:0, from /usr/include/c++/6.0.0/stdlib.h:36, from /usr/include/libxml2/libxml/SAX.h:16, from /usr/include/libxml2/libxml/globals.h:20, from /usr/include/libxml2/libxml/xmlIO.h:117, from /usr/include/libxml2/libxml/parser.h:811, from /usr/include/libxslt/transform.h:15, from epgd.h:11, from series.c:8: /usr/include/stdlib.h:774:12: note: candidate: int abs(int) extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur; ^~~ the program compiles fine with gcc-5.3.1
[Bug libstdc++/69751] error: call of overloaded 'abs(size_t)' is ambiguous
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69751 --- Comment #3 from mgansser at alice dot de --- many thanks for supporting me, problem was solved.
[Bug libstdc++/69808] New: error: could not convert 'count' from 'eVeDisplayMenu' to 'int'
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69808 Bug ID: 69808 Summary: error: could not convert 'count' from 'eVeDisplayMenu' to 'int' Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: martin.gansser at gmail dot com Target Milestone: --- since compiling with gcc6 the following error occurs: g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fPIC -c -DLIBAPIVERSION=0 -DLIBVERSION=\"0.1.0\" -o pluginstructure.o pluginstructure.c In file included from coreengine/area.h:10:0, from coreengine/viewelement.h:12, from coreengine/viewelementplugin.h:4, from coreengine/view.h:13, from coreengine/viewdisplaychannel.h:4, from designer.h:7, from config.h:10, from skindesigner.c:12: coreengine/definitions.h:66:30: error: could not convert 'count' from 'eVeDisplayMenu' to 'int' timers = eVeDisplayMenu::count, ^ coreengine/definitions.h:81:36: error: could not convert 'count' from 'eVeDisplayMenu' to 'int' detailheader = eVeDisplayMenu::count, ^ coreengine/definitions.h:510:40: error: could not convert 'count' from 'eScraperPosterBannerIT' to 'int' islivetv = eScraperPosterBannerIT::count, ^ coreengine/definitions.h:520:37: error: could not convert 'count' from 'eScraperPosterBannerST' to 'int' title = eScraperPosterBannerST::count, ^ coreengine/definitions.h:1041:31: error: could not convert 'count' from 'eScraperHeaderST' to 'int' title = eScraperHeaderST::count, ^ coreengine/definitions.h:1056:36: error: could not convert 'count' from 'eScraperHeaderIT' to 'int' daynumeric = eScraperHeaderIT::count, ^ that's the part in definitions.h ... enum class eVeDisplayMenuMain { timers = eVeDisplayMenu::count, devices, currentweather, currentschedule, discusage, systemload, systemmemory, temperatures, vdrstatistics, lastrecordings, customtokens, count };
[Bug c++/69808] error: could not convert 'count' from 'eVeDisplayMenu' to 'int'
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69808 mgansser at alice dot de changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #1 from mgansser at alice dot de --- issue was fixed by this patch: --- a/coreengine/definitions.h +++ b/coreengine/definitions.h @@ -63,7 +63,7 @@ enum class eVeDisplayMenu { }; enum class eVeDisplayMenuMain { -timers = eVeDisplayMenu::count, +timers = (int)eVeDisplayMenu::count, devices, currentweather, currentschedule, @@ -78,7 +78,7 @@ enum class eVeDisplayMenuMain { }; enum class eVeDisplayDetailedMenu { -detailheader = eVeDisplayMenu::count, +detailheader = (int)eVeDisplayMenu::count, tablabels, count ...
[Bug c++/78861] New: sequencer.cpp:603:53: error: cannot convert 'std::basic_istream::__istream_type {aka std::basic_istream}' to 'bool' in assignment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78861 Bug ID: 78861 Summary: sequencer.cpp:603:53: error: cannot convert 'std::basic_istream::__istream_type {aka std::basic_istream}' to 'bool' in assignment Product: gcc Version: 6.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: martin.gansser at gmail dot com Target Milestone: --- Hi, i tried to compile a programm with gcc (GCC) 6.2.1 20160916 (Red Hat 6.2.1-2), but this fails with this error message: cd /home/martin/rpmbuild/BUILD/plee-the-bear-0.7.0-light/plee-the-bear/lib/src/ptb && /usr/bin/c++ -DNDEBUG -DPTB_TEXT_DOMAIN_PATH=/usr/share/locale -Dplee_the_bear_EXPORTS -I/usr/include/SDL -I/usr/include/bear/bear-engine/core/src -I/usr/include/bear/bear-engine/lib/src -I/home/martin/rpmbuild/BUILD/plee-the-bear-0.7.0-light/plee-the-bear/lib/src/ptb/.. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -DNDEBUG -fPIC -Wall -std=c++11 -pedantic -Wmissing-field-initializers -Wuninitialized -o CMakeFiles/plee_the_bear.dir/item/mini-game/code/sequencer_control.cpp.o -c /home/martin/rpmbuild/BUILD/plee-the-bear-0.7.0-light/plee-the-bear/lib/src/ptb/item/mini-game/code/sequencer_control.cpp /home/martin/rpmbuild/BUILD/plee-the-bear-0.7.0-light/plee-the-bear/lib/src/ptb/item/mini-game/code/sequencer.cpp: In member function 'bool ptb::sequencer::load_track_file(const string&)': /home/martin/rpmbuild/BUILD/plee-the-bear-0.7.0-light/plee-the-bear/lib/src/ptb/item/mini-game/code/sequencer.cpp:603:53: error: cannot convert 'std::basic_istream::__istream_type {aka std::basic_istream}' to 'bool' in assignment result = ( iss >> t.duration >> t.width ); In the relevant source file: bool ptb::sequencer::load_track_file( const std::string& file_name ) { std::stringstream f; bear::engine::resource_pool::get_instance().get_file(file_name, f); std::string line; track t; bool result(false); bear::universe::time_type prev_date(0); std::size_t n(0); while ( !result && std::getline(f, line) ) { claw::text::trim(line); if ( !line.empty() ) if ( line[0] != '#' ) { std::istringstream iss(line); result = ( iss >> t.duration >> t.width ); } ++n; }
[Bug c++/78861] sequencer.cpp:603:53: error: cannot convert 'std::basic_istream::__istream_type {aka std::basic_istream}' to 'bool' in assignment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78861 --- Comment #2 from mgansser at alice dot de --- (In reply to Markus Trippelsdorf from comment #1) > https://gcc.gnu.org/gcc-6/porting_to.html I am not a software developer, could you please tell me, where can i get help ?
[Bug c++/78861] sequencer.cpp:603:53: error: cannot convert 'std::basic_istream::__istream_type {aka std::basic_istream}' to 'bool' in assignment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78861 --- Comment #6 from mgansser at alice dot de --- (In reply to Markus Trippelsdorf from comment #5) > (In reply to Jonathan Wakely from comment #4) > > No, that will convert the stream to a bool then try to bitshift it. > > > > It should be: > > > >result = bool( iss >> t.duration >> t.width ); > > Yeah, sorry. fine, compiles now w/o problems. Danke
[Bug libgcc/82427] New: gcc-7.2.1 error: '::mktime' has not been declared using ::mktime;
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82427 Bug ID: 82427 Summary: gcc-7.2.1 error: '::mktime' has not been declared using ::mktime; Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgcc Assignee: unassigned at gcc dot gnu.org Reporter: martin.gansser at gmail dot com Target Milestone: --- when trying to compile miam-player on Fedora27 with gcc7 the following error message appears: g++ -c -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -g -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DUSE_SWRESAMPLE=1 -DMIAMACOUSTID_LIBRARY -DQT_MULTIMEDIA_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I. -Ichromaprint -Ichromaprint/libavutil -Ichromaprint -I../core -I../core/3rdparty -I../core/3rdparty/QtAV -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtMultimedia -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtSql -isystem /usr/include/qt5/QtCore -Idebug/.moc -isystem /usr/include/libdrm -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o debug/.obj/mbrelease.o mbrelease.cpp make[1]: Leaving directory '/builddir/build/BUILD/Miam-Player-1a21b01a86c4cbcfe8fc6d99cf6e595838856b11/src/acoustid' In file included from /usr/include/c++/7/chrono:41:0, from /usr/include/qt5/QtCore/qobject.h:59, from /usr/include/qt5/QtCore/QObject:1, from mbrelease.h:5, from mbrelease.cpp:1: /usr/include/c++/7/ctime:64:11: error: '::clock' has not been declared using ::clock; ^ /usr/include/c++/7/ctime:65:11: error: '::difftime' has not been declared using ::difftime; ^~~~ /usr/include/c++/7/ctime:66:11: error: '::mktime' has not been declared using ::mktime; ^~ /usr/include/c++/7/ctime:67:11: error: '::time' has not been declared using ::time; ^~~~ /usr/include/c++/7/ctime:68:11: error: '::asctime' has not been declared using ::asctime; ^~~ /usr/include/c++/7/ctime:69:11: error: '::ctime' has not been declared using ::ctime; ^ /usr/include/c++/7/ctime:70:11: error: '::gmtime' has not been declared using ::gmtime; ^~ /usr/include/c++/7/ctime:71:11: error: '::localtime' has not been declared using ::localtime; ^ /usr/include/c++/7/ctime:72:11: error: '::strftime' has not been declared using ::strftime; ^~~~ make[1]: *** [Makefile:555: debug/.obj/mbrelease.o] Error 1 make[1]: *** Waiting for unfinished jobs full error message http://koji.rpmfusion.org/kojifiles/work/tasks/878/160878/build.log How can i solve this ? Many thanks
[Bug libstdc++/82427] gcc-7.2.1 error: '::mktime' has not been declared using ::mktime;
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82427 mgansser at alice dot de changed: What|Removed |Added Resolution|INVALID |FIXED --- Comment #3 from mgansser at alice dot de --- Thank you for identifying the cause.