g++ -Wl,-O1 -Wl,--as-needed -fdebug-types-section -Wl,-rpath,/var/tmp/portage/www-client/phantomjs-2.0.0/work/phantomjs-2.0.0/src/qt/qtwebkit/lib -o ../../bin/jsc .obj/jsc.o -Wl,-whole-archive -lJavaScriptCore -Wl,-no-whole-archive -L/var/tmp/portage/www-client/phantomjs-2.0.0/work/phantomjs-2.0.0/src/qt/qtwebkit/Source/JavaScriptCore/release -Wl,-whole-archive -lWTF -Wl,-no-whole-archive -L/var/tmp/portage/www-client/phantomjs-2.0.0/work/phantomjs-2.0.0/src/qt/qtwebkit/Source/WTF/release -licui18n -licuuc -licudata -L/var/tmp/portage/www-client/phantomjs-2.0.0/work/phantomjs-2.0.0/src/qt/qtbase/lib -lQt5Core -lpthread -lz -licui18n -licuuc -lm -ldl -lrt -lpthread /var/tmp/portage/www-client/phantomjs-2.0.0/work/phantomjs-2.0.0/src/qt/qtwebkit/Source/JavaScriptCore/release/libJavaScriptCore.a(JSArray.o): In function `JSC::JSArray::push(JSC::ExecState*, JSC::JSValue)': JSArray.cpp:(.text+0x3171): undefined reference to `void JSC::JSObject::putByIndexBeyondVectorLengthWithoutAttributes<(unsigned char)20>(JSC::ExecState*, unsigned int, JSC::JSValue)' collect2: error: ld returned 1 exit status Makefile.jsc:97: recipe for target '../../bin/jsc' failed make[2]: *** [../../bin/jsc] Error 1 make[2]: Leaving directory '/var/tmp/portage/www-client/phantomjs-2.0.0/work/phantomjs-2.0.0/src/qt/qtwebkit/Source/JavaScriptCore' Makefile.JavaScriptCore:122: recipe for target 'sub-jsc-pro-make_first-ordered' failed make[1]: *** [sub-jsc-pro-make_first-ordered] Error 2 make[1]: Leaving directory '/var/tmp/portage/www-client/phantomjs-2.0.0/work/phantomjs-2.0.0/src/qt/qtwebkit/Source/JavaScriptCore' Makefile:87: recipe for target 'sub-Source-JavaScriptCore-JavaScriptCore-pro-make_first-ordered' failed make: *** [sub-Source-JavaScriptCore-JavaScriptCore-pro-make_first-ordered] Error 2 * ERROR: www-client/phantomjs-2.0.0::gentoo failed (compile phase): * (no error message) Portage 2.2.20 (python 3.3.5-final-0, default/linux/amd64/13.0/desktop/kde, gcc-5.1.0, glibc-2.20-r2, 4.0.4-gentoo x86_64) ================================================================= System uname: Linux-4.0.4-gentoo-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.2 KiB Mem: 7918856 total, 1974592 free KiB Swap: 16777208 total, 16252576 free sh bash 4.3_p39 ld GNU ld (Gentoo 2.25 p1.2) 2.25 app-shells/bash: 4.3_p39::gentoo dev-lang/perl: 5.20.2-r1::gentoo dev-lang/python: 2.7.10::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo dev-util/cmake: 3.2.2::gentoo dev-util/pkgconfig: 0.28-r3::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.16.3::gentoo sys-apps/sandbox: 2.6-r1::gentoo sys-devel/autoconf: 2.69-r1::gentoo sys-devel/automake: 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25-r1::gentoo sys-devel/gcc: 5.1.0::gentoo sys-devel/gcc-config: 1.8::gentoo sys-devel/libtool: 2.4.6-r1::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.0::gentoo (virtual/os-headers) sys-libs/glibc: 2.20-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 x-overlay location: /overlay masters: gentoo priority: 0 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms split-elog strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://mirrors.sohu.com/gentoo/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j4" 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" USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr egl emboss encode exif fam firefox flac fortran gdbm gif glamor gpm gtk iconv ipv6 jpeg kde kipi lcms ldap libnotify mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds python qt3support qt4 readline sdl semantic-desktop session spell sqlite sse sse2 ssl startup-notification svg tcl tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xa xcb xcomposite xinerama xml xscreensaver xv xvfb xvid 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="authn_core authz_core socache_shmcb unixd 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 sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" 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" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_4 pypy" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="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" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
I do get : x86_64-pc-linux-gnu-g++ -c -include .pch/Qt5Network -O2 -pipe -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fno-exceptions -Wall -W -D_REENTRANT -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_GRAPHICSVIEW -DQT_NO_GRAPHICSEFFECT -DQT_NO_STYLESHEET -DQT_NO_STYLE_CDE -DQT_NO_STYLE_CLEANLOOKS -DQT_NO_STYLE_MOTIF -DQT_NO_STYLE_PLASTIQUE -DQT_NO_USING_NAMESPACE -DQT_BUILD_NETWORK_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_CORE_LIB -I../../mkspecs/linux-g++ -I. -isystem /usr/include/freetype2 -I../../include -I../../include/QtNetwork -I../../include/QtNetwork/5.3.0 -I../../include/QtNetwork/5.3.0/QtNetwork -Ikernel -I../../include/QtCore/5.3.0 -I../../include/QtCore/5.3.0/QtCore -I../../include/QtCore -I.moc -o .obj/qsslcertificate.o ssl/qsslcertificate.cpp In file included from ssl/qsslcertificate.cpp:116:0: ssl/qsslsocket_openssl_symbols_p.h:437:1: error: ‘EC_KEY’ does not name a type EC_KEY *q_EC_KEY_new_by_curve_name(int nid); ^ ssl/qsslsocket_openssl_symbols_p.h:438:20: error: variable or field ‘q_EC_KEY_free’ declared void void q_EC_KEY_free(EC_KEY *ecdh); ^ ssl/qsslsocket_openssl_symbols_p.h:438:20: error: ‘EC_KEY’ was not declared in this scope ssl/qsslsocket_openssl_symbols_p.h:438:28: error: ‘ecdh’ was not declared in this scope void q_EC_KEY_free(EC_KEY *ecdh); ^ Makefile:19721: recipe for target '.obj/qsslcertificate.o' failed make[2]: *** [.obj/qsslcertificate.o] Error 1 make[2]: Leaving directory '/var/tmp/portage/www-client/phantomjs-2.0.0/work/phantomjs-2.0.0/src/qt/qtbase/src/network' Makefile:180: recipe for target 'sub-network-make_first' failed make[1]: *** [sub-network-make_first] Error 2 make[1]: Leaving directory '/var/tmp/portage/www-client/phantomjs-2.0.0/work/phantomjs-2.0.0/src/qt/qtbase/src' Makefile:39: recipe for target 'sub-src-make_first' failed make: *** [sub-src-make_first] Error 2 * ERROR: www-client/phantomjs-2.0.0::gentoo failed (compile phase): * (no error message) * * Call stack: * ebuild.sh, line 93: Called src_compile * environment, line 2182: Called die * The specific snippet of code: * ./build.sh --confirm --jobs $(makeopts_jobs) --qt-config "$($(tc-getPKG_CONFIG) --cflags-only-I freetype2)" || die * * If you need support, post the output of `emerge --info '=www-client/phantomjs-2.0.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=www-client/phantomjs-2.0.0::gentoo'`. * The complete build log is located at '/var/log/portage/www-client:phantomjs-2.0.0:20150727-105403.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/www-client/phantomjs-2.0.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/www-client/phantomjs-2.0.0/temp/environment'. * Working directory: '/var/tmp/portage/www-client/phantomjs-2.0.0/work/phantomjs-2.0.0' * S: '/var/tmp/portage/www-client/phantomjs-2.0.0/work/phantomjs-2.0.0' ----------------------------------------------------------------- This is an unstable amd64 chroot image (named amd64-13.0-unstable_20150726-123211/) at a hardened host acting as a tinderbox. Portage 2.2.20 (python 2.7.10-final-0, default/linux/amd64/13.0, gcc-4.8.4, glibc-2.20-r2, 4.0.8-hardened x86_64) ================================================================= System uname: Linux-4.0.8-hardened-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2 KiB Mem: 16164692 total, 1811276 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Mon, 27 Jul 2015 09:45:01 +0000 sh bash 4.3_p33-r2 ld GNU ld (Gentoo 2.24 p1.4) 2.24 app-shells/bash: 4.3_p33-r2::gentoo dev-java/java-config: 2.2.0::gentoo dev-lang/perl: 5.22.0::gentoo dev-lang/python: 2.7.10::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo dev-util/cmake: 3.2.3::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.17::gentoo sys-apps/sandbox: 2.6-r1::gentoo sys-devel/autoconf: 2.69::gentoo sys-devel/automake: 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.24-r3::gentoo sys-devel/gcc: 4.2.4-r1::gentoo, 4.8.4::gentoo sys-devel/gcc-config: 1.8::gentoo sys-devel/libtool: 2.4.6::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers) sys-libs/glibc: 2.20-r2::gentoo Repositories: local location: /usr/local/portage masters: gentoo gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: 9999 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/fax /usr/share/gnupg/qualified.txt /var/spool/fax/etc /var/yp/Makefile" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-O2 -pipe" DISTDIR="/var/tmp/distfiles" EMERGE_DEFAULT_OPTS="--nospinner --tree --quiet-build --accept-properties=-interactive --accept-restrict=-fetch" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox 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://ftp.uni-erlangen.de/pub/mirrors/gentoo rsync://mirror.netcologne.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gor.bytemark.co.uk/gentoo/ rsync://ftp.snt.utwente.nl/gentoo" LANG="en_US.utf8" 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" USE="acl amd64 avx2 berkdb bzip2 cairo cli consolekit cracklib crypt cups curl custom-cflags custom-optimization cxx dot dri drmkms dvd ecc fontconfig fortran fpm freetds gdbm gif git gnuplot gui help iconv imap introspection ipv6 jadetex javaxml jpeg kde kvm mmx mmxext modules multilib ncurses nls nptl oci8 offensive opencv openmp openssl pam pax_kernel pcre pdo plasma png policykit qml qt3support readline scrypt semantic-desktop session spice sqlite sqlite3 sse sse2 sse4 sse4_1 sse4_2 ssh-askpass ssl ssse3 svg system-cairo system-icu system-sqlite tcpd tls truetype unicode usbredir uxa video widgets x264 xkb 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="authn_core authz_core socache_shmcb unixd 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 sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARG ETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
@Toralf Förster I'm not entirely sure your issue is the same as Patricks. In any case, I can replicate Toralf's issue, but not Patricks. Fix applied: commit 4c5140e79c08447de8c8ebe72054a2b7905e5682 Author: Dion Moult <moult@gentoo.org> Date: Mon Sep 21 17:51:59 2015 +1000 www-client/phantomjs: fix requirement on EC so that it compiles (bug #550920) Package-Manager: portage-2.2.15 Hint for the fix taken from https://bugreports.qt.io/browse/QTBUG-40394
(In reply to Dion Moult from comment #2) > @Toralf Förster I'm not entirely sure your issue is the same as Patricks. > > In any case, I can replicate Toralf's issue, but not Patricks. Fix applied: > > commit 4c5140e79c08447de8c8ebe72054a2b7905e5682 > Author: Dion Moult <moult@gentoo.org> > Date: Mon Sep 21 17:51:59 2015 +1000 > > www-client/phantomjs: fix requirement on EC so that it compiles (bug > #550920) > > Package-Manager: portage-2.2.15 > > Hint for the fix taken from https://bugreports.qt.io/browse/QTBUG-40394 Can you attach patch?
There is no patch, just a new useflag requirement. https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c5140e79c08447de8c8ebe72054a2b7905e5682
(In reply to Dion Moult from comment #4) > There is no patch, just a new useflag requirement. > > https://gitweb.gentoo.org/repo/gentoo.git/commit/ > ?id=4c5140e79c08447de8c8ebe72054a2b7905e5682 Same problem. This fix does not helps.
Can you check that openssl has use -bindist too? Please also confirm that you are experiencing Toralfs issue and not Patrick's.
(In reply to Dion Moult from comment #6) > Can you check that openssl has use -bindist too? Please also confirm that > you are experiencing Toralfs issue and not Patrick's. Ahh... Sorry. I can reproduce Patrick's issue. And I have found patch!)
Created attachment 412774 [details, diff] patch for Patrick's issue
Many thanks Suloev! For reference, upstream report https://github.com/ariya/phantomjs/issues/13265 and upstream fix https://github.com/ariya/phantomjs/commit/master?diff=split I will do a test compile and then if everything is good will add the patch.
(In reply to Dion Moult from comment #9) > Many thanks Suloev! > > For reference, upstream report > https://github.com/ariya/phantomjs/issues/13265 and upstream fix > https://github.com/ariya/phantomjs/commit/master?diff=split > > I will do a test compile and then if everything is good will add the patch. To reproduce Patrick's issue you should use gcc 5.x My gcc version: gcc (Gentoo 5.2.0 p1.0, pie-0.6.3) 5.2.0
commit 29576cc6a591b109f32119dd8e2240dd863b9d05 Author: Dion Moult <moult@gentoo.org> Date: Sun Sep 27 09:28:19 2015 +1000 www-client/phantomjs: Add GCC compilation patch Package-Manager: portage-2.2.15