Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 575734 - net-libs/nodejs-5.6.0-r1 src/stream_base.h:225:11: error: looser throw specifier for 'virtual node::StreamBase::~StreamBase() with gcc<4.8
Summary: net-libs/nodejs-5.6.0-r1 src/stream_base.h:225:11: error: looser throw speci...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-26 14:12 UTC by Anton Kochkov
Modified: 2020-03-26 17:53 UTC (History)
1 user (show)

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


Attachments
emerge --info output (emerge_info.log,4.60 KB, text/plain)
2016-02-26 14:13 UTC, Anton Kochkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Kochkov 2016-02-26 14:12:09 UTC
x86_64-pc-linux-gnu-g++ '-DNODE_ARCH="x64"' '-DNODE_PLATFORM="linux"' '-DNODE_WANT_INTERNALS=1' '-DV8_DEPRECATION_WARNINGS=1' '-DHAVE_OPENSSL=1' '-D__POSIX__' -I../src -I../tools/msvs/genfiles -I../deps/uv/src/ares -I/var/tmp/portage/net-libs/nodejs-5.6.0-r1/work/node-v5.6.0/out/Release/obj/gen -I../deps/v8 -I../deps/cares/include -I../deps/v8/include  -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x   -march=core2 -mtune=generic -O2 -pipe -c -o /var/tmp/portage/net-libs/nodejs-5.6.0-r1/work/node-v5.6.0/out/Release/obj.target/node/src/node.o ../src/node.cc
In file included from ../src/js_stream.h:6:0,
                 from ../src/js_stream.cc:1:
../src/stream_base.h:225:11: error: looser throw specifier for 'virtual node::StreamBase::~StreamBase()'
../src/stream_base.h:141:11: error:   overriding 'virtual node::StreamResource::~StreamResource() noexcept (true)'
In file included from ../src/js_stream.cc:1:0:
../src/js_stream.h:17:3: error: looser throw specifier for 'virtual node::JSStream::~JSStream()'
In file included from ../src/js_stream.h:6:0,
                 from ../src/js_stream.cc:1:
../src/stream_base.h:225:11: error:   overriding 'virtual node::StreamBase::~StreamBase() noexcept (true)'
node.target.mk:139: recipe for target '/var/tmp/portage/net-libs/nodejs-5.6.0-r1/work/node-v5.6.0/out/Release/obj.target/node/src/js_stream.o' failed
make: *** [/var/tmp/portage/net-libs/nodejs-5.6.0-r1/work/node-v5.6.0/out/Release/obj.target/node/src/js_stream.o] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory '/var/tmp/portage/net-libs/nodejs-5.6.0-r1/work/node-v5.6.0/out'
 * ERROR: net-libs/nodejs-5.6.0-r1::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=net-libs/nodejs-5.6.0-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-libs/nodejs-5.6.0-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-libs/nodejs-5.6.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-libs/nodejs-5.6.0-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/net-libs/nodejs-5.6.0-r1/work/node-v5.6.0'
 * S: '/var/tmp/portage/net-libs/nodejs-5.6.0-r1/work/node-v5.6.0'

>>> Failed to emerge net-libs/nodejs-5.6.0-r1, Log file:
Comment 1 Anton Kochkov 2016-02-26 14:13:44 UTC
Created attachment 426642 [details]
emerge --info output
Comment 2 Anton Kochkov 2016-02-28 17:27:03 UTC
The solution is to use newer gcc - >=4.8.0
Please, add this as a requirement for those nodejs versions
Comment 3 Johan Bergström 2016-03-02 09:44:44 UTC
Yes, gcc 4.8 or newer is required. I'll look at doing this check more narrow: https://github.com/gentoo/gentoo/blob/master/net-libs/nodejs/nodejs-5.6.0-r1.ebuild#L43
Comment 4 Anton Kochkov 2019-04-17 08:03:52 UTC
I believe this one can be closed now, since the corresponding version of nodejs was removed.