You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
19:12:39 <seishun> so I tried to build v0.12 on debian: ../src/tls_wrap.h:49:3: error: looser throw specifier for ‘virtual node::TLSCallbacks::~TLSCallbacks()’
19:12:44 <seishun> is it just me?
20:32:48 <seishun> which GCC version are we targeting? because it currently doesn't compile on GCC 4.7
20:33:42 <seishun> indutny ^
20:34:48 <indutny> it does for me
Sure enough, I'm using gcc version 4.7.3 (Gentoo 4.7.3-r1 p1.4, pie-0.5.5)
We can't support anything less than gcc 4.8, that boat has shipped unfortunately and was out of our control (v8 embraced C++11). You're either going to have to find a path to getting a newer version on your system or just use one of the binaries available in https://iojs.org/dist/latest/ as they should be portable.
A compiler check would be nice but it's complicated; the output of -v and --version doesn't have a fixed format and -dumpversion is useless with clang, it always prints 4.2.1.
@santigimeno I'd be alright with taking that patch (just noexcept should work too, I think) but I'm not sure we should be encouraging people to use a compiler with known deficiencies. The build error is straightforward to fix but 4.7 may very well have other, more insidious bugs.
@bnoordhuis The only thing that worries me is in the case there's not an easy way to upgrade to higher gcc versions in wheezy. I've tried to upgrade to gcc-4.9 from jessie and also tries to upgrade libc6 and I'm not sure I'm comfortable with that.
I wouldn't be comfortable with that either, no. :-) If it helps, clang 3.5 built painlessly from source for me on wheezy; the only thing you need is patience, or lots of cores.
Activity
rvagg commentedon Jan 15, 2015
We can't support anything less than gcc 4.8, that boat has shipped unfortunately and was out of our control (v8 embraced C++11). You're either going to have to find a path to getting a newer version on your system or just use one of the binaries available in https://iojs.org/dist/latest/ as they should be portable.
donpdonp commentedon Jan 15, 2015
Ok, I'm fine with upgrading gcc - I just didnt know that was the fix! A compiler check in the configure script or makefile would be helpful. Thanks.
rvagg commentedon Jan 15, 2015
agreed re compiler check, we should do that (I'm probably not the person to do it though), it is written on the README though
bnoordhuis commentedon Jan 15, 2015
A compiler check would be nice but it's complicated; the output of
-vand--versiondoesn't have a fixed format and-dumpversionis useless with clang, it always prints 4.2.1.santigimeno commentedon Jan 26, 2015
I've been able to make it build using
gcc version 4.7.2 (Debian 4.7.2-5)by applying this change: https://github.com/santigimeno/io.js/commit/be9bf923e77c0fc321c25c67cb3342b33ea0b0a2I am by no means a C++ expert and I don't know if it makes sense though.
bnoordhuis commentedon Jan 26, 2015
@santigimeno I'd be alright with taking that patch (just
noexceptshould work too, I think) but I'm not sure we should be encouraging people to use a compiler with known deficiencies. The build error is straightforward to fix but 4.7 may very well have other, more insidious bugs.santigimeno commentedon Jan 26, 2015
@bnoordhuis The only thing that worries me is in the case there's not an easy way to upgrade to higher gcc versions in
wheezy. I've tried to upgrade togcc-4.9fromjessieand also tries to upgradelibc6and I'm not sure I'm comfortable with that.bnoordhuis commentedon Jan 26, 2015
I wouldn't be comfortable with that either, no. :-) If it helps, clang 3.5 built painlessly from source for me on wheezy; the only thing you need is patience, or lots of cores.
jbergstroem commentedon Jan 27, 2015
gcc 4.7 had only partial c++11 support; I'd avoid lowering requirements.
santigimeno commentedon Jan 27, 2015
Fair enough. I'll try to use clang instead. Thanks for the info!