Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275951 - [patch] dev-cpp/libthrowable-1.1.0 fails to build tests with GCC-4.3
Summary: [patch] dev-cpp/libthrowable-1.1.0 fails to build tests with GCC-4.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Thomas Anderson (tanderson) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-30 14:21 UTC by Dustin Polke
Modified: 2009-09-27 12:36 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for t_libthrowable.cc (t_libthowable-gcc43.patch,339 bytes, patch)
2009-06-30 14:23 UTC, Dustin Polke
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dustin Polke 2009-06-30 14:21:56 UTC
emerge bails out with

make  t_libthrowable
make[2]: Entering directory `/var/tmp/portage/dev-cpp/libthrowable-1.1.0/work/libthrowable-1.1.0/tests'
if x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I..    -march=core2 -O2 -pipe -msse4.1 -ggdb -Wall -Wextra -Winit-self -Wconversion -Wredundant-decls -MT t_libthrowable.o -MD -MP -MF ".deps/t_libthrowable.Tpo" -c -o t_libthrowable.o t_libthrowable.cc; \
        then mv -f ".deps/t_libthrowable.Tpo" ".deps/t_libthrowable.Po"; else rm -f ".deps/t_libthrowable.Tpo"; exit 1; fi
In file included from t_libthrowable.cc:35:
fd_output_stream.h: In member function ‘virtual int test::FDOutputStreamBuf::overflow(int)’:
fd_output_stream.h:45: warning: conversion to ‘char’ from ‘int’ may alter its value
t_libthrowable.cc: In function ‘void<unnamed>::local::failInMain()’:
t_libthrowable.cc:138: error: ‘exit’ was not declared in this scope
make[2]: *** [t_libthrowable.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-cpp/libthrowable-1.1.0/work/libthrowable-1.1.0/tests'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/var/tmp/portage/dev-cpp/libthrowable-1.1.0/work/libthrowable-1.1.0/tests'
make: *** [check-recursive] Error 1

Reproducible: Always




Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r5-stable x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-r5-stable-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T8100_@_2.10GHz-with-glibc2.2.5
Timestamp of tree: Tue, 30 Jun 2009 07:15:02 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.4-r2
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -msse4.1 -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/bin/mygenkernel /usr/sbin/run-crons /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe -msse4.1 -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks fixpackages multilib-strict parallel-fetch protect-owned sandbox sfperms splitdebug strict test unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://gd.tuwien.ac.at/opsys/linux/gentoo/     ftp://gentoo.inode.at/source/     ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/     ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="*"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS=""
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=500"
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://rsync.europe.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 isdnlog midi mmx mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl sysfs tcpd unicode xorg zlib" ALSA_CARDS="hda-intel mpu401" 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 authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="fuji ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="*" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS_FLAGS, PORTDIR_OVERLAY
Comment 1 Dustin Polke 2009-06-30 14:23:40 UTC
Created attachment 196160 [details, diff]
patch for t_libthrowable.cc
Comment 2 Patrick Lauer gentoo-dev 2009-09-10 16:46:09 UTC
make[2]: Entering directory `/var/tmp/portage/dev-cpp/libthrowable-1.1.0/work/libthrowable-1.1.0/tests'
if x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I..    -O2 -pipe -Wall -Wextra -Winit-self -Wconversion -Wredundant-decls -MT t_libthrowable.o -MD -MP -MF ".deps/t_libthrowable.Tpo" -c -o t_libthrowable.o t_libthrowable.cc; \
        then mv -f ".deps/t_libthrowable.Tpo" ".deps/t_libthrowable.Po"; else rm -f ".deps/t_libthrowable.Tpo"; exit 1; fi
In file included from t_libthrowable.cc:36:
fd_output_stream.h: In member function 'virtual int test::FDOutputStreamBuf::overflow(int)':
fd_output_stream.h:43: error: 'EOF' was not declared in this scope
fd_output_stream.h:45: warning: conversion to 'char' from 'int' may alter its value
make[2]: *** [t_libthrowable.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-cpp/libthrowable-1.1.0/work/libthrowable-1.1.0/tests'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/var/tmp/portage/dev-cpp/libthrowable-1.1.0/work/libthrowable-1.1.0/tests'
make: *** [check-recursive] Error 1
 *
 * ERROR: dev-cpp/libthrowable-1.1.0 failed.

Looks like the patch is incomplete :)
Comment 3 Dustin Polke 2009-09-10 18:58:23 UTC
(In reply to comment #2)
> Looks like the patch is incomplete :)

Cannot reproduce this.
emerge --info and emerge -pv libthrowable, please. 

Comment 4 matt 2009-09-24 19:57:59 UTC
fails here too in my chroot:

make[2]: Entering directory `/var/tmp/portage/dev-cpp/libthrowable-1.1.0/work/libthrowable-1.1.0/tests'
if x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I..    -march=athlon64 -O2 -pipe -Wall -Wextra -Winit-self -Wconversion -Wredundant-decls -MT t_libthrowable.o -MD -MP -MF ".deps/t_libthrowable.Tpo" -c -o t_libthrowable.o t_libthrowable.cc; \
        then mv -f ".deps/t_libthrowable.Tpo" ".deps/t_libthrowable.Po"; else rm -f ".deps/t_libthrowable.Tpo"; exit 1; fi
In file included from t_libthrowable.cc:35:
fd_output_stream.h: In member function 'virtual int test::FDOutputStreamBuf::overflow(int)':
fd_output_stream.h:45: warning: conversion to 'char' from 'int' may alter its value
t_libthrowable.cc: In function 'void<unnamed>::local::failInMain()':
t_libthrowable.cc:138: error: 'exit' was not declared in this scope
make[2]: *** [t_libthrowable.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-cpp/libthrowable-1.1.0/work/libthrowable-1.1.0/tests'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/var/tmp/portage/dev-cpp/libthrowable-1.1.0/work/libthrowable-1.1.0/tests'
make: *** [check-recursive] Error 1


(chroot) noose / # emerge --info
Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-x86_64-AMD_Athlon-tm-_Dual_Core_Processor_4850e-with-gentoo-1.12.11.1
Timestamp of tree: Mon, 21 Sep 2009 21:45:01 +0000
app-shells/bash:     4.0_p28
dev-lang/python:     2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks fixpackages multilib-strict parallel-fetch protect-owned sandbox sfperms strict test unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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://192.168.168.16/portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 berkdb blender-game bzip2 cairo cdaudio cddb cdparanoia cli cpudetection cracklib crypt dbus devil dga dri dts encode ffmpeg flac fortran gdbm gif gpm gs gtk iconv id3 id3tag imagemagick imap isdnlog joystick jpeg jpeg2k ladspa libsamplerate lm_sensors maps mikmod minimal mmx mmxext modules mp3 mudflap multilib musepack ncurses nls nptl nptlonly objc ogg opengl openmp pam pcre pdf perl plotutils pmu png postscript pppd qt3 qt4 quicktime readline reflection sdl session speex spell spl sse sse2 ssl svg sysfs tcpd teamarena theora tiff tk unicode vamp vorbis x264 xanim xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="hda-intel loopback" 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 authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

--------------

emerge -B libthrowable works in my default/root install

noose autoconf-gl-macros # emerge --info
Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-x86_64-AMD_Athlon-tm-_Dual_Core_Processor_4850e-with-gentoo-1.12.11.1
Timestamp of tree: Mon, 21 Sep 2009 21:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     4.0_p28
dev-lang/python:     2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.6.3, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks fixpackages multilib-strict parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
PORTDIR_OVERLAY="/usr/local/portage/layman/arcon /usr/local/portage/layman/roslin /usr/local/portage/layman/science /usr/local/portage/layman/xfce-dev /usr/local/portage/layman/qting-edge /usr/local/portage/layman/njw /usr/local/portage/layman/sunrise /usr/local/portage/layman/gamerlay /usr/local/portage/layman/sping /usr/local/portage/local"
SYNC="rsync://192.168.168.16/portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 berkdb blender-game bzip2 cairo cdaudio cddb cdparanoia cli cpudetection cracklib crypt dbus devil dga dri dts encode ffmpeg flac fortran gdbm gif gpm gs gtk iconv id3 id3tag imagemagick imap isdnlog joystick jpeg jpeg2k ladspa libsamplerate lm_sensors maps mikmod minimal mmx mmxext modules mp3 mudflap multilib musepack ncurses nls nptl nptlonly objc ogg opengl openmp pam pcre pdf perl plotutils pmu png postscript pppd qt3 qt4 quicktime readline reflection sdl session speex spell spl sse sse2 ssl svg sysfs tcpd teamarena theora tiff tk unicode vamp vorbis x264 xanim xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="hda-intel loopback" 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 authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Comment 5 matt 2009-09-24 19:59:08 UTC
that was without the patch from comment 1
Comment 6 Dustin Polke 2009-09-25 06:44:16 UTC
(In reply to comment #5)
> that was without the patch from comment 1

And does the patch solve the problem for you?
Thanks
Comment 7 matt 2009-09-25 19:53:19 UTC
in reply to comment #6,
Dustin your patch in comment #1 works for me.
Comment 8 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2009-09-27 12:36:22 UTC
Fixed in CVS, thanks for the report and patch Dustin!