another gcc4 problem: g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -Wall -D_REENTRANT -O3 -mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse -ffast-math -c gsm_phonebook.cc -MT gsm_phonebook.lo -MD -MP -MF .deps/gsm_phonebook.TPlo -fPIC -o .libs/gsm_phonebook.o ../gsmlib/gsm_util.h:195: warning: 'class gsmlib::InterruptBase' has virtual functions but non-virtual destructor ../gsmlib/gsm_util.h:210: warning: 'class gsmlib::ProgressBase' has virtual functions but non-virtual destructor ../gsmlib/gsm_map_key.h:82: error: explicit qualification in declaration of `bool gsmlib::operator<(const gsmlib::MapKey<SortedStore>&, const gsmlib::MapKey<SortedStore>&)' ../gsmlib/gsm_map_key.h:107: error: explicit qualification in declaration of `bool gsmlib::operator==(const gsmlib::MapKey<SortedStore>&, const gsmlib::MapKey<SortedStore>&)' ../gsmlib/gsm_sorted_phonebook_base.h:192: warning: 'class gsmlib::CustomPhonebookFactory' has virtual functions but non-virtual destructor ../gsmlib/gsm_event.h:30: warning: 'class gsmlib::GsmEvent' has virtual functions but non-virtual destructor make[2]: *** [gsm_phonebook.lo] Error 1 make[2]: Leaving directory `/var/tmp/portage/gsmlib-1.11_pre041028/work/gsmlib-1.11/gsmlib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/gsmlib-1.11_pre041028/work/gsmlib-1.11' make: *** [all] Error 2 !!! ERROR: app-mobilephone/gsmlib-1.11_pre041028 failed. Call stack: ebuild.sh, line 1894: Called dyn_compile ebuild.sh, line 941: Called src_compile !!! (no error message) !!! If you need support, post the topmost build error, and the call stack if relevant.
emerge --info, please...
jakub if you look at bugzilla i'm recompiling all with gcc 4, so i'm not posting emerge info for every single bug. however: emerge info Portage 2.1_pre4-r1 (default-linux/x86/2005.1, gcc-4.0.2, glibc-2.3.6-r5, 2.6.16-rc2-git1 i686) ================================================================= System uname: 2.6.16-rc2-git1 i686 Pentium III (Katmai) Gentoo Base System version 1.12.0_pre15 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [disabled] dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.91.0.5-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse -ffast-math" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/mail/dspam /opt/openjms/config /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control /var/run/dspam" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O3 -mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse -ffast-math" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks fixpackages sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.ngi.it http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/" LANG="it_IT.utf8" LC_ALL="it_IT.utf8" LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,-Bdirect -Wl,--as-needed -Wl,-hashvals -Wl,-zdynsort" LINGUAS="it" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 X X509 Xaw3d a52 aac aalib accessibility acl acpi activefilter adns alsa apache2 apm arts asf audiofile avi bash-completion berkdb bidi bitmap-fonts bootsplash browserplugin bzip2 cairo caps cdda cddb cdio cdparanoia cdr cgi chroot clamav cli client codecs crypt css cups curl dba dbus dga dhcp directfb djbfft dri edl eds emboss encode ethereal exif expat extraengine faac faad fam fbcon ffmpeg fftw firefox flac flash foomaticdb foreign-package fortran gcj gd gdbm geometry ggi gif gimp gimpprint glut glx gnokii gnome gphoto2 gpm graphviz gs gstreamer gtk gtk2 gtkhtml guile h264 hal iconv idea idn imagemagick imap imlib innodb ipod irda irmc jack java javascript jikes jit joystick jpeg jpeg2k junit justify kde kdeenablefinal kerberos kqemu lame lcd lcms ldap libcaca libclamav libg++ libgda libusb libwww lirc live lm_sensors lua lzo mad mailwrapper matroska md5sum mdb mikmod mime mmx mmx2 mmxext mng mono motif mozcalendar mozdevelop mozilla mozsvg mozxmlterm mp3 mp4live mpeg mpeg2 mpeg4 mplayer mysql mysqli mythtv nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses neXt network ngui nls nntp no_wxgtk1 nobsh nopie nossp noxalan nptl nptlonly nsplugin oav odbc ogg oggvorbis openal opengl operanom2 oss pam pcre pda pdf pdflib pdo pear perl php png pnp postgres ppds pthreads python qemu-fast qhull qt quicktime quotas readline real rrdtool rtc ruby samba scanner sdl server session sftplogging sguil slang slp snortsam soap sockets socks5 softmmu softquota spamassassin speex spell sqlite3 sse ssl subject-rewrite svg svga tcltk tcpd tetex tga theora tiff tokenizer truetype truetype-fonts trusted type1-fonts unicode usb userlocales vidix vorbis win32codecs wmf wsconvert wxwindows x264 xanim xchatdccserver xchattext xine xinerama xml xml2 xmlrpc xmms xosd xpm xprint xsl xv xvid xvm xvmc zlib elibc_glibc kernel_linux linguas_it userland_GNU" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, MAKEOPTS
Please attach a patch that fixes those errors/warnings. That goes for all of your bugs regarding gcc4. It is much easier for you to test those fixes.
i understand you, alin, but i'm not an upstream developer, neither the package mainteiner. when the fix is just removing a cast...ok...but when i need to change the data structure it should need more tests..so it's not a very fast way. i can provide a "let-gcc-compile patch" but no more. mainteiner or gcc-porting team should care this ihmo.
there is a gcc-porting team? then why I get these bugs in the first place :D When we speak about gcc4 fixes, we speak about syntax violations, which normally are easily fixable by anyone with minimal C++ knowledge. If you consider the following statements as true: - gcc4 do not have bugs - the package works if it is compiled with gcc3 (is bug free) - your patch solve syntax issues (in other words, it is compilable) then you could consider following as also true: - the package works if it is compiled with gcc4 Ergo, I would be pretty sure about a *-gcc4.patch if I see it compiles without errors/warnings.
quoting: 1) c++ knowledge. actually i have about 100 packages not compiling with gcc4. i can't do a patch and test for everyone. 2) i know that's a gcc-porting team somewhere (don't hide!!!!). maybe i can join that, but actually i'm not in. so, if you do not can/want do a patch please assign to gcc-porting team :) (this bug should block the gcc4 meta bug too) i repeat...i could even do a patch, but it's not so trustable when i change too many things (i refer to ksms package too) good job :)
someone with a =gcc-4* installed on his/her machine, please help me with this.
Created attachment 80729 [details, diff] gcc-4.1 patch Give this a try.
patch included in cvs.
tested on 4.0.2 works perfectly. please commit to portage and close. Wonderful work!
?!? please see comment #9. I've already commited the fix to the tree.
sure there was a bugzilla commit collition and i'm still sleeping. sorry