make[3]: Entering directory `/var/tmp/portage/net-libs/gnet-2.0.8/work/gnet-2.0.8/tests/check' if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -I../.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -march=core2 -O3 -pipe -D_REENTRANT -DGNET_EXPERIMENTAL -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -MT gnetcheck.o -MD -MP -MF ".deps/gnetcheck.Tpo" -c -o gnetcheck.o gnetcheck.c; \ then mv -f ".deps/gnetcheck.Tpo" ".deps/gnetcheck.Po"; else rm -f ".deps/gnetcheck.Tpo"; exit 1; fi In file included from gnetcheck.c:22: gnetcheck.h: In function ‘__gnet_tcase_add_test’: gnetcheck.h:318: error: too few arguments to function ‘_tcase_add_test’ make[3]: *** [gnetcheck.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/net-libs/gnet-2.0.8/work/gnet-2.0.8/tests/check' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/net-libs/gnet-2.0.8/work/gnet-2.0.8/tests' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/net-libs/gnet-2.0.8/work/gnet-2.0.8' make: *** [all] Error 2 * ERROR: net-libs/gnet-2.0.8 failed: * compile failure Reproducible: Always Steps to Reproduce: 1. emerge -av app-pda/synce Actual Results: failed at net-libs/gnet-2.0.8 # emerge --info Portage 2.1.7.6 (default/linux/amd64/10.0, gcc-4.4.2, glibc-2.11-r0, 2.6.31-gentoo-r6 x86_64) ================================================================= System uname: Linux-2.6.31-gentoo-r6-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T5750_@_2.00GHz-with-gentoo-2.0.1 Timestamp of tree: Wed, 25 Nov 2009 06:50:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.0_p35 dev-java/java-config: 2.1.9-r1 dev-lang/python: 2.5.4-r3, 2.6.4, 3.1.1-r1 dev-python/pycrypto: 2.1.0_beta1 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.8.0 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.5.2-r2 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10.2, 1.11 sys-devel/binutils: 2.20 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA Broadcom PUEL dlj-1.1 sun-bcla-java-vm" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O3 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=core2 -O3 -pipe" DISTDIR="/var/portage/distfiles" FEATURES="assume-digests ccache distlocks fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.aditsu.net/ http://mirror.averse.net/pub/gentoo/ http://www.cyberuse.com/gentoo/ http://gentoo.mirrors.tera-byte.com/" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="en zh zh_TW" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--progress " PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://mirror.averse.net/gentoo-portage" USE="X Xaw3d a52 aac aalib accessibility acl acpi activefilter alsa amd64 amr amrnb amrwb aqua_theme aspell automount bash-completion bcmath beagle berkdb bidi branding bs2b bzip2 c++ cairo carbone_theme cdda cddax cddb cdio cdparanoia cdr cgraph chardet cjk cli consolekit cracklib crypt cups curl custom-optimization cvs dbus dga dhcp dia dirac disk-partition djbfft dri dts dv dvb dvd dvdnav dvdr dvdread eap-tls eds emboss emerald enca encode esd evo examples exif extras faac faad fam fastcgi ffmpeg firefox firefox3 flac fluidsynth fontconfig fortran ftp galago gd gdbm geoip gif git gmail gmedia gmp gnome gpm graphite gstreamer gtk guile hal hddtemp icecast iconv id3 id3tag idn imlib inkjar inotify jabber java java6 jbig jce jpeg jpeg2k kate kernel-patch kvm lame laptop lcms lib libass libcaca libedit libnotify libsamplerate libssh2 libv4l2 lirc live lm_sensors log4j logitech-mouse logviewer lzma lzo mad maildir matroska md5sum mikmod mmx mmxext mng modplug modules mono moonlight mp2 mp3 mp3tunes mp4 mpeg mplayer msn mtp mudflap multilib musepack music mysql nas nautilus ncurses neXt nemesi network networking nls notify nptl nptlonly nsplugin odbc ogg openal opencore-amr opengl openmp openssl pam passwordsave pch pcre pda pdf perl pkcs11 pmu png pnm policykit ppds pppd prediction projectm pulseaudio python qq qt3support quicktime radius rar raw rdesktop reflection remote rss rtc rtsp ruby samba schedule schroedinger sdl sdl-image servletapi session sha1 sharedmem shout sid skins sndfile source speex spell spl sqlite sqlite3 sse sse2 sse3 ssl ssse3 stats stream subversion svg symlink sysfs taglib tcpd teletext tga theora threads tiff timidity truetype tta twolame udf unicode unzip upnp usb v4l v4l2 vcd vcdinfo vcdx vim vim-syntax virtualbox vlm vorbis wavpack webdav webkit wma wmf wxwidgets wxwindows x264 xanim xattr xext xinerama xml xorg xosd xpm xulrunner xv xvid xvmc yahoo zlib zvbi" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en zh zh_TW" NETBEANS_MODULES="apisupport harness ide java nb websvccommon cnd groovy gsf identity j2ee mobility php profiler soa visualweb webcommon xml dlight enterprise ergonomics ruby" USERLAND="GNU" VIDEO_CARDS="vesa ati radeon radeonhd" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTDIR_OVERLAY
Created attachment 211129 [details] build log added build log and dep tree, hope them would help # emerge -avt app-pda/synce These are the packages that would be merged, in reverse order: Calculating dependencies... done! [ebuild N ] app-pda/synce-0.14 USE="gnome hal serial -kde" 0 kB [ebuild N ] app-pda/synce-trayicon-0.14 USE="-debug" 0 kB [ebuild N ] app-pda/orange-0.4 0 kB [ebuild N ] app-pda/synce-hal-0.14 0 kB [ebuild N ] net-libs/gnet-2.0.8 USE="-debug -doc -test" 0 kB
WORKSFORME with -O2, please don't use -O3 and file bugs when it breaks stuff.
sorry, I've tried with -O2 but same error gnetcheck.h: In function ‘__gnet_tcase_add_test’: gnetcheck.h:318: error: too few arguments to function ‘_tcase_add_test’ it is dep-related or gcc version related ? thanks
(In reply to comment #2) > WORKSFORME with -O2, please don't use -O3 and file bugs when it breaks stuff. > Please stop that. If something fails with -O3 it's a bug that needs to be fixed. Anyways, the build error doesn't look related to -O3.
I have a patch for that in my local checkout, it seems to be due to stricter gcc-4.4. Will commit asap.
(In reply to comment #4) > Please stop that. If something fails with -O3 it's a bug that needs to be > fixed. not for gnome, see [1]. Then see [2] 1. http://www.gentoo.org/proj/en/desktop/gnome/gnome-policy.xml 2. http://www.gentoo.org/doc/en/gcc-optimization.xml > Anyways, the build error doesn't look related to -O3. > That's true :) Anyway the fix looks trivial, Gilles has a patch for that, so he will fix in a few hours/days ;)
The problem is that for some reason, despite the reporters portage stating that it'd be using -test on gnet, doesn't. This build fails with +test for me too. USE="-test" emerge gnet is a workaround for now. This bug probably resides upstream - GNOME's bugzilla is probably the place to go. [1] [2] [1] http://live.gnome.org/GNetLibrary [2] https://bugzilla.gnome.org/
I never use +test for this. Finally I've merged this by removing the problematic code from the source (one line, at gnetcheck.h:318), It seems to be a test and shouldn't affect a lot. This package might be a little bit old, February 12, 2008 from upstream. So this should be a gcc-4.4 problem IMHO too.
(In reply to comment #8) > I never use +test for this. > > Finally I've merged this by removing the problematic code from the source (one > line, at gnetcheck.h:318), It seems to be a test and shouldn't affect a lot. > > This package might be a little bit old, February 12, 2008 from upstream. So > this should be a gcc-4.4 problem IMHO too. > The correct fix is to move the macro-constant definition (#define tcase_add_test) before __gnet_tcase_add_test otherwises this macro is not expanded by the preprocessor. Whatever, wait until Gilles commits his fix.
(In reply to comment #8) > I never use +test for this. > Well something makes your ./configure think so, otherwise that file never gets compiled. I reproduced your exact problem with +test (USE="test" emerge gnet), and w/o it gnet cleanly compiled/installed - because make never did anything in that directory at all. Maybe a --sync might solve your problem (if not Gilles patch hit the tree already)? :)
+*gnet-2.0.8-r1 (08 Dec 2009) + + 08 Dec 2009; Gilles Dartiguelongue <eva@gentoo.org> +gnet-2.0.8-r1.ebuild, + +files/gnet-2.0.8-define-location.patch: + Fix build issue with newer gcc, bug #294558 + Thanks for reporting.