Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 390059 - kde-base/rocs-4.7.3 - /usr/include/boost-1_47/boost/numeric/conversion/converter_policies.hpp:162:31: error: exception handling disabled, use -fexceptions to enable
Summary: kde-base/rocs-4.7.3 - /usr/include/boost-1_47/boost/numeric/conversion/conver...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-10 03:28 UTC by Guido Winkelmann
Modified: 2011-11-20 13:42 UTC (History)
2 users (show)

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


Attachments
Build log from /var/tmp/portage/kde-base/rocs-4.7.3/temp/build.log (build.log,19.89 KB, text/plain)
2011-11-10 03:29 UTC, Guido Winkelmann
Details
Build log with LC_ALL=C (build.log,19.83 KB, text/plain)
2011-11-10 21:40 UTC, Guido Winkelmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guido Winkelmann 2011-11-10 03:28:10 UTC
Emerging kde-base/rocs-4.7.3 fails with the following messages:

 87%] Building CXX object src/Plugins/GenerateGraph/CMakeFiles/rocs_generategraphplugin.dir/rocs_generategraphplugin_automoc.o
[ 89%] Building CXX object src/Plugins/GenerateGraph/CMakeFiles/rocs_generategraphplugin.dir/generategraphtoolsplugin.o
In file included from /usr/include/boost-1_47/boost/functional/hash/extensions.hpp:17:0,
                 from /usr/include/boost-1_47/boost/functional/hash/hash.hpp:535,
                 from /usr/include/boost-1_47/boost/functional/hash.hpp:6,
                 from /usr/include/boost-1_47/boost/unordered/unordered_set.hpp:17,
                 from /usr/include/boost-1_47/boost/unordered_set.hpp:16,
                 from /usr/include/boost-1_47/boost/graph/adjacency_list.hpp:21,
                 from /var/tmp/portage/kde-base/rocs-4.7.3/work/rocs-4.7.3/src/Plugins/GenerateGraph/generategraphwidget.h:24,
                 from /var/tmp/portage/kde-base/rocs-4.7.3/work/rocs-4.7.3/src/Plugins/GenerateGraph/generategraphtoolsplugin.cpp:20:
/usr/include/boost-1_47/boost/detail/container_fwd.hpp:72:9: Warnung: »BOOST_CLANG« ist nicht definiert
In file included from /usr/include/boost-1_47/boost/mpl/aux_/has_apply.hpp:17:0,
                 from /usr/include/boost-1_47/boost/mpl/apply_wrap.hpp:23,
                 from /usr/include/boost-1_47/boost/mpl/apply.hpp:23,
                 from /usr/include/boost-1_47/boost/iterator/iterator_facade.hpp:34,
                 from /usr/include/boost-1_47/boost/iterator/iterator_adaptor.hpp:15,
                 from /usr/include/boost-1_47/boost/graph/graph_traits.hpp:22,
                 from /usr/include/boost-1_47/boost/graph/adjacency_list.hpp:33,
                 from /var/tmp/portage/kde-base/rocs-4.7.3/work/rocs-4.7.3/src/Plugins/GenerateGraph/generategraphwidget.h:24,
                 from /var/tmp/portage/kde-base/rocs-4.7.3/work/rocs-4.7.3/src/Plugins/GenerateGraph/generategraphtoolsplugin.cpp:20:
/usr/include/boost-1_47/boost/mpl/has_xxx.hpp:344:9: Warnung: »BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION« ist nicht definiert
/usr/include/boost-1_47/boost/mpl/has_xxx.hpp:357:9: Warnung: »BOOST_MPL_HAS_XXX_NO_WRAPPED_TYPES« ist nicht definiert
/usr/include/boost-1_47/boost/mpl/has_xxx.hpp:386:9: Warnung: »BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION« ist nicht definiert
/usr/include/boost-1_47/boost/mpl/has_xxx.hpp:459:8: Warnung: »BOOST_MPL_HAS_XXX_NEEDS_TEMPLATE_SFINAE« ist nicht definiert
In file included from /usr/include/boost-1_47/boost/numeric/conversion/converter.hpp:14:0,
                 from /usr/include/boost-1_47/boost/numeric/conversion/cast.hpp:32,
                 from /usr/include/boost-1_47/boost/lexical_cast.hpp:31,
                 from /usr/include/boost-1_47/boost/math/constants/constants.hpp:15,
                 from /usr/include/boost-1_47/boost/graph/topology.hpp:17,
                 from /var/tmp/portage/kde-base/rocs-4.7.3/work/rocs-4.7.3/src/Plugins/GenerateGraph/generategraphwidget.h:25,
                 from /var/tmp/portage/kde-base/rocs-4.7.3/work/rocs-4.7.3/src/Plugins/GenerateGraph/generategraphtoolsplugin.cpp:20:
/usr/include/boost-1_47/boost/numeric/conversion/converter_policies.hpp: In Elementfunktion »void boost::numeric::def_overflow_handler::operator()(boost::numeric::range_check_result)«:
/usr/include/boost-1_47/boost/numeric/conversion/converter_policies.hpp:162:31: Fehler: Ausnahmebehandlung ausgeschaltet, benutzen Sie -fexeptions zum Einschalten
make[2]: *** [src/Plugins/GenerateGraph/CMakeFiles/rocs_generategraphplugin.dir/generategraphtoolsplugin.o] Fehler 1
make[1]: *** [src/Plugins/GenerateGraph/CMakeFiles/rocs_generategraphplugin.dir/all] Fehler 2
make: *** [all] Fehler 2
 * ERROR: kde-base/rocs-4.7.3 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of 'emerge --info =kde-base/rocs-4.7.3',
 * the complete build log and the output of 'emerge -pqv =kde-base/rocs-4.7.3'.
 * The complete build log is located at '/var/tmp/portage/kde-base/rocs-4.7.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/kde-base/rocs-4.7.3/temp/environment'.
 * S: '/var/tmp/portage/kde-base/rocs-4.7.3/work/rocs-4.7.3'


Reproducible: Always

Steps to Reproduce:
emerge -v1 kde-base/rocs
Actual Results:  
Emerge fails in the build phase for src/Plugins/GenerateGraph/CMakeFiles/rocs_generategraphplugin.dir/generategraphtoolsplugin.o

Expected Results:  
rocs should be compiled and installed

Output of emerge --info:

*************************
# emerge --info =kde-base/rocs-4.7.3
Portage 2.1.10.32 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.12.2-r0, 2.6.39-gentoo-r3 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.39-gentoo-r3-x86_64-AMD_Athlon-tm-_II_X4_605e_Processor-with-gentoo-2.0.3
Timestamp of tree: Thu, 10 Nov 2011 02:15:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [disabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/ccache:          2.4-r9
dev-util/cmake:           2.8.6-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.5, 4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo bitcoin localrepo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 AdobeFlash-10.1 Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
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.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /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"
CXXFLAGS="-march=k8 -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
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="/var/lib/layman/bitcoin /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnowext X a52 aac acl acpi alsa amd64 apache2 apng arts bash-completion berkdb bittorrent bluetooth branding bzip2 cairo cdda cddb cdr cli consolekit cracklib crypt cups cxx dbus declarative device-mapper dhcp dia doc dri dts dvd dvdr ebook emboss emerald encode exif fam ffmpeg firefox flac fontconfig fortran ftp gd gdbm gdu gif git gpm gstreamer gtk hpijs iconv icu idn imlib ipv6 jabber java jpeg jpeg2k kde kde4 kdehiddenvisibility kerberos lame lcms ldap libnotify lm_sensors lzma mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib musepack mysql ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pango parport pcre pdf perl png policykit postgres postscript ppds pppd python qt3 qt3support qt4 rar rdesktop readline rss rtsp samba sasl sdl semantic-desktop session speex spell sse sse2 ssl startup-notification stream subversion svg sysfs taglib tcpd theora thumbnail tiff truetype udev unicode usb vlc vnc vorbis wacom webkit wmf x264 xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid zip zlib" 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 authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon mach64 fbdev vesa nv" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
*************************

Output of emerge -pqv:
*************************
# emerge -pqv =kde-base/rocs-4.7.3 
[ebuild     U ] kde-base/rocs-4.7.3 [4.7.1] USE="handbook (-aqua) -debug (-kdeenablefinal)"
*************************
Comment 1 Guido Winkelmann 2011-11-10 03:29:33 UTC
Created attachment 292083 [details]
Build log from /var/tmp/portage/kde-base/rocs-4.7.3/temp/build.log
Comment 2 Franz Trischberger 2011-11-10 06:57:59 UTC
Did you build qt-* with USE="-exceptions"? After the cmake-output, you can see the compiler-Flags, where you find "-fno-exceptions". Boost complains about exceptions turned off and asks you to enable them.
Comment 3 Guido Winkelmann 2011-11-10 07:19:34 UTC
(In reply to comment #2)

No, I have never explicitly put "-exceptions" in my use flags. I just checked a few of the qt-* packets, and they're all built with "exceptions" set.
Comment 4 Franz Trischberger 2011-11-10 08:37:32 UTC
What does the "CONFIG +="-line in /usr/share/qt4/mkspecs/qconfig.pri and the one in /usr/share/qt4/mkspecs/gentoo/qconfig.pri mention?
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2011-11-10 16:15:54 UTC
Please attach build logs created with LC_ALL=C - not everyone on this project can read German.
Comment 6 Guido Winkelmann 2011-11-10 21:40:40 UTC
Created attachment 292161 [details]
Build log with LC_ALL=C
Comment 7 Guido Winkelmann 2011-11-10 21:42:55 UTC
(In reply to comment #4)
> What does the "CONFIG +="-line in /usr/share/qt4/mkspecs/qconfig.pri and the
> one in /usr/share/qt4/mkspecs/gentoo/qconfig.pri mention?

That line looks like this:

CONFIG +=  def_files_disabled exceptions no_mocdepend release stl qt_no_framework
Comment 8 Andreas K. Hüttel archtester gentoo-dev 2011-11-12 19:43:06 UTC
No idea... qt, cpp?
Comment 9 Davide Pesavento (RETIRED) gentoo-dev 2011-11-12 21:30:43 UTC
(In reply to comment #8)
> No idea... qt, cpp?

The reporter said he did not disable exceptions, and qconfig.pri confirms that.
However at the end of configure phase cmake prints that -fno-exceptions is in CXXFLAGS, but I don't know why... anyone with more cmake knowledge than me can tell where that flag might come from?
Comment 10 Guido Winkelmann 2011-11-13 00:23:36 UTC
In order to see the actual compiler command line, I tried compiling with "make VERBOSE=1". This is what the command line looks like:

cd /var/tmp/portage/kde-base/rocs-4.7.3/work/rocs-4.7.3_build/src/Plugins/GenerateGraph && /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-g++  -DMAKE_ROCS_GENERATEGRAPHPLUGIN_LIB -D_BSD_SOURCE -DQT_PLUGIN -DQT_NO_DEBUG -DQT_SHARED  -DQT_NO_DEBUG -DNDEBUG -march=k8 -O2 -pipe -ggdb  -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -Werror=return-type -fvisibility-inlines-hidden -fPIC -I/var/tmp/portage/kde-base/rocs-4.7.3/work/rocs-4.7.3_build/src/Plugins/GenerateGraph -I/var/tmp/portage/kde-base/rocs-4.7.3/work/rocs-4.7.3/src/Plugins/GenerateGraph -I/var/tmp/portage/kde-base/rocs-4.7.3/work/rocs-4.7.3/src/Core -I/var/tmp/portage/kde-base/rocs-4.7.3/work/rocs-4.7.3/src/Actions -I/var/tmp/portage/kde-base/rocs-4.7.3/work/rocs-4.7.3/src/GraphicsItem -I/var/tmp/portage/kde-base/rocs-4.7.3/work/rocs-4.7.3/src/Interface -I/var/tmp/portage/kde-base/rocs-4.7.3/work/rocs-4.7.3/src/Models -I/var/tmp/portage/kde-base/rocs-4.7.3/work/rocs-4.7.3/src/Plugins -I/var/tmp/portage/kde-base/rocs-4.7.3/work/rocs-4.7.3/src/Scripts -I/usr/include/KDE -I/usr/include/qt4/QtXmlPatterns -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtWebKit -I/usr/include/qt4/QtUiTools -I/usr/include/qt4/QtTest -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtScriptTools -I/usr/include/qt4/QtScript -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtMultimedia -I/usr/include/qt4/QtDesigner -I/usr/include/qt4/QtDeclarative -I/usr/include/qt4/QtDBus -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4/Qt -I/usr/share/qt4/mkspecs/default -I/usr/include/qt4 -I/usr/include/boost-1_47    -o CMakeFiles/rocs_generategraphplugin.dir/generategraphtoolsplugin.o -c /var/tmp/portage/kde-base/rocs-4.7.3/work/rocs-4.7.3/src/Plugins/GenerateGraph/generategraphtoolsplugin.cpp

So, yeah, it really does have -fno-exceptions and -DQT_NO_EXCEPTIONS in there.

Next, I tried compiling another KDE package (kiten) the same way (i.e. ebuild compile, cd into build directory, make clean, make VERBOSE=1) to see if it has those flags as well. Turns out that, yes, it does. My guess is that all my KDE packages are compiled with exceptions disabled, and only this one fails, because it's including a certain Boost library.
Comment 11 Guido Winkelmann 2011-11-13 00:55:54 UTC
Okay, I just uninstalled Boost 1.47 to get this package to compile against 1.46.1 instead (using eselect boost did not work out), and now it builds successfully.

This is not a real solution for me, though, since I happen to need Boost 1.47.
Comment 12 tdr 2011-11-13 01:10:12 UTC
If it is a problem with dev-libs/boost-1.47, this bug should block #378697
Comment 13 Johannes Huber (RETIRED) gentoo-dev 2011-11-18 16:18:45 UTC
Added kde-base/rocs-4.7.3-r1 to kde overlay. Revision bump contains a upstream patch. Please test it with boost 1.47 and report back.

@dilfridge This bug have to block #378697.
Comment 14 Guido Winkelmann 2011-11-18 23:38:27 UTC
(In reply to comment #13)
The problem apppears to be gone in kde-base/rocs-4.7.3-r1
Comment 15 Andreas K. Hüttel archtester gentoo-dev 2011-11-20 13:42:20 UTC
OK moved to the main tree without revbump. If you've been using the kde overlay ebuild you will get a (harmless) downgrade.