When compiling the package with gcc 3.8.4 I get the error below. This has also been filed here: https://github.com/joyent/node/issues/7851 But it seems to be fixed already. ln -f "/var/tmp/portage/net-libs/nodejs-0.11.14/work/node-v0.11.14/out/Release/obj.target/deps/v8/tools/gyp/libv8_snapshot.a" "/var/tmp/portage/net-libs/nodejs-0.11.14/work/node-v0.11.14/out/Release/libv8_snapshot.a" 2>/dev/null || (rm -rf "/var/tmp/portage/net-libs/nodejs-0.11.14/work/node-v0.11.14/out/Release/libv8_snapshot.a" && cp -af "/var/tmp/portage/net-libs/nodejs-0.11.14/work/node-v0.11.14/out/Release/obj.target/deps/v8/tools/gyp/libv8_snapshot.a" "/var/tmp/portage/net-libs/nodejs-0.11.14/work/node-v0.11.14/out/Release/libv8_snapshot.a") touch /var/tmp/portage/net-libs/nodejs-0.11.14/work/node-v0.11.14/out/Release/obj.target/deps/v8/tools/gyp/v8.stamp LD_LIBRARY_PATH=/var/tmp/portage/net-libs/nodejs-0.11.14/work/node-v0.11.14/out/Release/lib.host:/var/tmp/portage/net-libs/nodejs-0.11.14/work/node-v0.11.14/out/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../.; mkdir -p /var/tmp/portage/net-libs/nodejs-0.11.14/work/node-v0.11.14/out/Release/obj/gen; /usr/bin/python2.7 tools/js2c.py "/var/tmp/portage/net-libs/nodejs-0.11.14/work/node-v0.11.14/out/Release/obj/gen/node_natives.h" src/node.js lib/_debugger.js lib/_linklist.js lib/assert.js lib/buffer.js lib/child_process.js lib/console.js lib/constants.js lib/crypto.js lib/cluster.js lib/dgram.js lib/dns.js lib/domain.js lib/events.js lib/freelist.js lib/fs.js lib/http.js lib/_http_agent.js lib/_http_client.js lib/_http_common.js lib/_http_incoming.js lib/_http_outgoing.js lib/_http_server.js lib/https.js lib/module.js lib/net.js lib/os.js lib/path.js lib/punycode.js lib/querystring.js lib/readline.js lib/repl.js lib/smalloc.js lib/stream.js lib/_stream_readable.js lib/_stream_writable.js lib/_stream_duplex.js lib/_stream_transform.js lib/_stream_passthrough.js lib/string_decoder.js lib/sys.js lib/timers.js lib/tracing.js lib/tls.js lib/_tls_common.js lib/_tls_legacy.js lib/_tls_wrap.js lib/tty.js lib/url.js lib/util.js lib/vm.js lib/zlib.js ./config.gypi src/notrace_macros.py src/perfctr_macros.py touch /var/tmp/portage/net-libs/nodejs-0.11.14/work/node-v0.11.14/out/Release/obj.host/node_js2c.stamp x86_64-pc-linux-gnu-g++ '-DOPENSSL_NO_SSL2=1' '-DNODE_WANT_INTERNALS=1' '-DARCH="x64"' '-DPLATFORM="linux"' '-DNODE_TAG=""' '-DNODE_V8_OPTIONS=""' '-DHAVE_OPENSSL=1' '-D__POSIX__' -I../src -I../tools/msvs/genfiles -I../deps/uv/src/ares -I/var/tmp/portage/net-libs/nodejs-0.11.14/work/node-v0.11.14/out/Release/obj/gen -I../deps/v8/include -I../deps/cares/include -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -ffunction-sections -fdata-sections -fno-tree-vrp -fno-omit-frame-pointer -fno-rtti -fno-exceptions -MMD -MF /var/tmp/portage/net-libs/nodejs-0.11.14/work/node-v0.11.14/out/Release/.deps//var/tmp/portage/net-libs/nodejs-0.11.14/work/node-v0.11.14/out/Release/obj.target/node/src/fs_event_wrap.o.d.raw -O2 -pipe -march=core2 -fomit-frame-pointer -c -o /var/tmp/portage/net-libs/nodejs-0.11.14/work/node-v0.11.14/out/Release/obj.target/node/src/fs_event_wrap.o ../src/fs_event_wrap.cc x86_64-pc-linux-gnu-g++ '-DOPENSSL_NO_SSL2=1' '-DNODE_WANT_INTERNALS=1' '-DARCH="x64"' '-DPLATFORM="linux"' '-DNODE_TAG=""' '-DNODE_V8_OPTIONS=""' '-DHAVE_OPENSSL=1' '-D__POSIX__' -I../src -I../tools/msvs/genfiles -I../deps/uv/src/ares -I/var/tmp/portage/net-libs/nodejs-0.11.14/work/node-v0.11.14/out/Release/obj/gen -I../deps/v8/include -I../deps/cares/include -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -ffunction-sections -fdata-sections -fno-tree-vrp -fno-omit-frame-pointer -fno-rtti -fno-exceptions -MMD -MF /var/tmp/portage/net-libs/nodejs-0.11.14/work/node-v0.11.14/out/Release/.deps//var/tmp/portage/net-libs/nodejs-0.11.14/work/node-v0.11.14/out/Release/obj.target/node/src/cares_wrap.o.d.raw -O2 -pipe -march=core2 -fomit-frame-pointer -c -o /var/tmp/portage/net-libs/nodejs-0.11.14/work/node-v0.11.14/out/Release/obj.target/node/src/cares_wrap.o ../src/cares_wrap.cc ../src/cares_wrap.cc:68:23: error: ‘uv_getnameinfo_t’ was not declared in this scope typedef class ReqWrap<uv_getnameinfo_t> GetNameInfoReqWrap; ^ ../src/cares_wrap.cc:68:39: error: template argument 1 is invalid typedef class ReqWrap<uv_getnameinfo_t> GetNameInfoReqWrap; ^ ../src/cares_wrap.cc:68:59: error: invalid type in declaration before ‘;’ token typedef class ReqWrap<uv_getnameinfo_t> GetNameInfoReqWrap; ^ ../src/cares_wrap.cc:962:23: error: variable or field ‘AfterGetNameInfo’ declared void void AfterGetNameInfo(uv_getnameinfo_t* req, ^ ../src/cares_wrap.cc:962:23: error: ‘uv_getnameinfo_t’ was not declared in this scope ../src/cares_wrap.cc:962:41: error: ‘req’ was not declared in this scope void AfterGetNameInfo(uv_getnameinfo_t* req, ^ ../src/cares_wrap.cc:963:23: error: expected primary-expression before ‘int’ int status, ^ ../src/cares_wrap.cc:964:23: error: expected primary-expression before ‘const’ const char* hostname, ^ ../src/cares_wrap.cc:965:23: error: expected primary-expression before ‘const’ const char* service) { ^ In file included from ../src/env-inl.h:26:0, from ../src/async-wrap-inl.h:29, from ../src/cares_wrap.cc:25: ../src/node.h:405:3: error: expected ‘}’ at end of input } ^ ../src/node.h:414:3: note: in expansion of macro ‘NODE_MODULE_CONTEXT_AWARE_X’ NODE_MODULE_CONTEXT_AWARE_X(modname, regfunc, NULL, NM_F_BUILTIN) \ ^ ../src/cares_wrap.cc:1261:1: note: in expansion of macro ‘NODE_MODULE_CONTEXT_AWARE_BUILTIN’ NODE_MODULE_CONTEXT_AWARE_BUILTIN(cares_wrap, node::cares_wrap::Initialize) ^ ../src/node.h:405:3: error: expected ‘}’ at end of input } ^ ../src/node.h:414:3: note: in expansion of macro ‘NODE_MODULE_CONTEXT_AWARE_X’ NODE_MODULE_CONTEXT_AWARE_X(modname, regfunc, NULL, NM_F_BUILTIN) \ ^ ../src/cares_wrap.cc:1261:1: note: in expansion of macro ‘NODE_MODULE_CONTEXT_AWARE_BUILTIN’ NODE_MODULE_CONTEXT_AWARE_BUILTIN(cares_wrap, node::cares_wrap::Initialize) ^ ../src/cares_wrap.cc:144:13: warning: ‘void node::cares_wrap::ares_sockstate_cb(void*, ares_socket_t, int, int)’ defined but not used [-Wunused-function] static void ares_sockstate_cb(void* data, ^ node.target.mk:132: recipe for target '/var/tmp/portage/net-libs/nodejs-0.11.14/work/node-v0.11.14/out/Release/obj.target/node/src/cares_wrap.o' failed make[1]: *** [/var/tmp/portage/net-libs/nodejs-0.11.14/work/node-v0.11.14/out/Release/obj.target/node/src/cares_wrap.o] Error 1 make[1]: Leaving directory '/var/tmp/portage/net-libs/nodejs-0.11.14/work/node-v0.11.14/out' Makefile:45: recipe for target 'node' failed make: *** [node] Error 2
1) Please post your `emerge --info' output in a comment. 2) Please attach the entire build log to this bug report.
Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop/kde, gcc-4.8.3, glibc-2.19-r1, 3.15.0 x86_64) ================================================================= System uname: Linux-3.15.0-x86_64-Intel-R-_Core-TM-_i7-4600U_CPU_@_2.10GHz-with-gentoo-2.2 KiB Mem: 7437608 total, 81432 free KiB Swap: 7810136 total, 6582288 free Timestamp of tree: Tue, 28 Oct 2014 09:00:01 +0000 ld GNU ld (GNU Binutils) 2.23.2 app-shells/bash: 4.2_p53 dev-java/java-config: 2.2.0 dev-lang/perl: 5.16.3 dev-lang/python: 2.7.6, 3.2.5-r3, 3.3.3 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.13, 2.69 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.4 sys-devel/binutils: 2.23.2 sys-devel/gcc: 4.6.4, 4.7.3-r1, 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.13 (virtual/os-headers) sys-libs/glibc: 2.19-r1 Repositories: gentoo steam-overlay ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=core2 -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /usr/share/themes/oxygen-gtk/gtk-2.0" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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="-O2 -pipe -march=core2 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" 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 xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.llarian.net/ http://gentoo.osuosl.org/ http://ftp.heanet.ie/pub/gentoo/" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" 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="/var/lib/layman/steam" USE="X a52 aac aacs acl acpi alsa amd64 apache2 bash-completion berkdb bluetooth bluray branding btrfs bzip2 cairo caps cdda cdr cleartype cli connection-sharing consolekit cracklib crypt ctype cups curl cxx dbus declarative device-mapper divx4linux dri dts dvb dvd dvdr emboss encode exif extensions extraengine extras fam firefox flac fortran ftp gamin gd gdbm gif glamor gpm gtk hbci httpd iconv imap ipv6 jabber jpeg jpeg2k json kde kdepim kipi lcms ldap libnotify logrotate lua lvm2 macvtap mad matroska mmx mng modules mp3 mp4 mpeg multilib mysql mysqli ncurses networkmanager nls nptl nptlonly nsplugin ogg opengl openmp openssl oracle pam pango pcmcia pcre pdf pear perl phonon plasma png policykit ppds python qemu qt qt3support qt4 readline rtsp samba sasl script sdl semantic-desktop session simplexml slang snmp soap sockets spell spice sql sqlite sse sse2 ssl startup-notification steamruntime stream subversion svg tcpd theora tiff tls tokenizer truetype udev udisks unicode upcall upower urandom usb v4l vepa vhost-net vhosts virt-network vorbis vpx webkit wifi win32codecs wxwidgets x264 xattr xcb xcomposite xine xinerama xinetd xml xml2 xscreensaver xsl xv xvid zip zlib" ABI_X86="64" ALSA_CARDS="ens1371" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" 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 ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard mouse vmmouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" NGINX_MODULES_HTTP="access auth_basic autoindex charset fastcgi gzip gzip_static limit_conn limit_req map proxy rewrite scgi ssi stub_status spdy" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia intel i965 fbdev vesa" 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" USE_PYTHON="2.7 3.2" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC
Created attachment 387660 [details] build.log
The problem is that the dependency against libuv needs to be bumped, but gentoo doesn't (and shouldn't) have the rc verisons since they doesn't really play nice with versioning. When I previously played with this, I suggested waiting until libuv has a proper release, but for now since we've introduced 0.11.14, the only thing we really can do is disabling the shared libuv build and re-enabling it when libuv hits 1.0.0 (and nodejs depends on it). @patrick: If you agree, feel free to remove the shared libuv build for now.
Update:net-libs/nodejs-0.11.15 works, so I think we can close this.
Newer versions only works because cares isn't longer a dependency (Nodejs broke the abi). Node and io.js doesn't allow linking against a shared cares (I wrote the patch). I'm closing this.