Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] emerge error of net-print/cups-filters-1.0.53
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
seVes
n00b
n00b


Joined: 06 Jan 2011
Posts: 54
Location: Germany

PostPosted: Tue Dec 02, 2014 10:38 am    Post subject: [SOLVED] emerge error of net-print/cups-filters-1.0.53 Reply with quote

Hey folks!

I think it happens after upgrading GCC from 4.7.3-r1 to 4.8.3, but can't confirm this - anyway i can't emerge net-print/cups-filters-1.0.53.

error as conclusion
Quote:

filter/pdftoopvp/pdftoopvp.cxx: In function 'void* operator new(size_t)':
filter/pdftoopvp/pdftoopvp.cxx:771:54: error: declaration of 'void* operator new(size_t) throw (std::bad_alloc)' has a different exception specifier
void *operator new(size_t size) throw (std::bad_alloc)
^
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/include/g++-v4/ext/new_allocator.h:33:0,
from /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/include/g++-v4/x86_64-pc-linux-gnu/bits/c++allocator.h:33,
from /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/include/g++-v4/bits/allocator.h:46,
from /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/include/g++-v4/string:41,
from /usr/include/poppler/cpp/poppler-global.h:38,
from /usr/include/poppler/cpp/poppler-version.h:22,
from filter/pdftoopvp/pdftoopvp.cxx:17:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/include/g++-v4/new:91:7: error: from previous declaration 'void* operator new(std::size_t)'
void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
^
Makefile:3393: recipe for target 'pdftoopvp-pdftoopvp.o' failed
make[1]: *** [pdftoopvp-pdftoopvp.o] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-print/cups-filters-1.0.53/work/cups-filters-1.0.53'
Makefile:1609: recipe for target 'all' failed
make: *** [all] Error 2


emerge --info
Quote:

Portage 2.2.8-r2 (default/linux/amd64/13.0, gcc-4.8.3, glibc-2.19-r1, 3.16.5-gentoo x86_64)
=================================================================
System uname: Linux-3.16.5-gentoo-x86_64-Intel-R-_Core-TM-_i7-3520M_CPU_@_2.90GHz-with-gentoo-2.2
KiB Mem: 16088600 total, 4975744 free
KiB Swap: 0 total, 0 free
Timestamp of tree: Tue, 02 Dec 2014 01:45:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash: 4.2_p53
dev-java/java-config: 2.2.0
dev-lang/perl: 5.18.2-r2
dev-lang/python: 2.7.7, 3.3.5-r1
dev-util/cmake: 2.8.12.2-r1
dev-util/pkgconfig: 0.28-r1
sys-apps/baselayout: 2.2
sys-apps/openrc: 0.12.4
sys-apps/sandbox: 2.6-r1
sys-devel/autoconf: 2.69
sys-devel/automake: 1.11.6-r1, 1.13.4
sys-devel/binutils: 2.24-r3
sys-devel/gcc: 4.8.3
sys-devel/gcc-config: 1.7.3
sys-devel/libtool: 2.4.2-r1
sys-devel/make: 4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc: 2.19-r1
Repositories: gentoo local
Installed sets: @aokp, @fonts, @steam
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core-avx-i -mtune=core-avx-i -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core-avx-i -mtune=core-avx-i -O2 -pipe -std=c++11"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=5 --load-average=4"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTf-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5 -l4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/package.exclude"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X alsa amd64 avx bzip2 cli cracklib crypt cxx dnotify dri fortran gdbm gif glib iconv inotify ipv6 jpeg libnotify mmx mmxext modules multilib ncurses nptl opengl openmp pam pcre png readline session sse sse2 sse3 sse4 sse4_1 sse4a ssl ssse3 tcpd threads truetype unicode xcomposite xv xvmc zlib" ABI_X86="64" 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" APACHE2_MODULES="actions alias auth_basic auth_digest authn_alias authn_anon authn_core authn_dbm authn_file authz_core authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation ratelimit remoteip rewrite setenvif socache_shmcb speling status substitute unique_id unixd userdir usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="*" 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 ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7 python3_3" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel" 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, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON


build.log
Quote:

I uploaded the file to one of my websites: http://www.hscorp.de/build.log


What can i do? Does anyone know, what the problem could be? I search for that error but didn't find anything.
This error happens to all versions in portage including 9999.

Thanks for helping!!!
_________________
Alex / seVes


Last edited by seVes on Wed Dec 03, 2014 10:56 am; edited 1 time in total
Back to top
View user's profile Send private message
quilosaq
Veteran
Veteran


Joined: 22 Dec 2009
Posts: 1531

PostPosted: Wed Dec 03, 2014 12:39 am    Post subject: Reply with quote

You have different CFLAGS and CXXFLAGS. Try replacing
Code:
CXXFLAGS=${CFLAGS}
in your make.conf.
Back to top
View user's profile Send private message
seVes
n00b
n00b


Joined: 06 Jan 2011
Posts: 54
Location: Germany

PostPosted: Wed Dec 03, 2014 10:56 am    Post subject: Reply with quote

Yeah!

FIXED, after removing "-std=c++11" from CFLAGS.

I got this flag from a news-msg on news-system of portage.
Maybe i did something wrong with it?
_________________
Alex / seVes
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum