Sadly, it's quite a long list.
I am currently on gcc-7.2.0 but, maybe some fixes applies anyway.
php build with:
CFLAGS="${CFLAGS} -flto-partition=max"
CXXFLAGS="${CXXFLAGS} -flto-partition=max"
LDFLAGS="${LDFLAGS} -flto-partition=max"
ncurses, I presume, it's failing during configure and it needs:
LDFLAGS="${LDFLAGS} -ldl"
I have no problems with ruby:2.4 ( I am not using other slot), libaio, flac, mesa, samba, gtkmm and cairo.
spidermonkey:24 patch:
Code: Select all
--- ./js/src/builtin/Intl.cpp.orig 2017-06-25 11:04:52.150266554 +0200
+++ ./js/src/builtin/Intl.cpp 2017-06-25 11:36:01.103553866 +0200
@@ -998,7 +998,7 @@
if (!chars2)
return false;
- UCollationResult uresult = ucol_strcoll(coll, chars1, length1, chars2, length2);
+ UCollationResult uresult = ucol_strcoll(coll, (const UChar*)chars1, length1, (const UChar*)chars2, length2);
int32_t res;
switch (uresult) {
@@ -1333,7 +1333,7 @@
currency = value.toString();
MOZ_ASSERT(currency->length() == 3, "IsWellFormedCurrencyCode permits only length-3 strings");
// uCurrency remains owned by currency.
- uCurrency = JS_GetStringCharsZ(cx, currency);
+ uCurrency = (const UChar*)JS_GetStringCharsZ(cx, currency);
if (!uCurrency)
return NULL;
@@ -1440,12 +1440,12 @@
if (!chars.resize(INITIAL_STRING_BUFFER_SIZE))
return false;
UErrorCode status = U_ZERO_ERROR;
- int size = unum_formatDouble(nf, x, chars.begin(), INITIAL_STRING_BUFFER_SIZE, NULL, &status);
+ int size = unum_formatDouble(nf, x, (UChar*)chars.begin(), INITIAL_STRING_BUFFER_SIZE, NULL, &status);
if (status == U_BUFFER_OVERFLOW_ERROR) {
if (!chars.resize(size))
return false;
status = U_ZERO_ERROR;
- unum_formatDouble(nf, x, chars.begin(), size, NULL, &status);
+ unum_formatDouble(nf, x, (UChar*)chars.begin(), size, NULL, &status);
}
if (U_FAILURE(status)) {
JS_ReportErrorNumber(cx, js_GetErrorMessage, NULL, JSMSG_INTERNAL_INTL_ERROR);
@@ -1800,7 +1800,7 @@
if (!skeleton)
return false;
SkipRoot skip(cx, &skeleton);
- uint32_t skeletonLen = u_strlen(skeleton);
+ uint32_t skeletonLen = u_strlen((const UChar*)skeleton);
UErrorCode status = U_ZERO_ERROR;
UDateTimePatternGenerator *gen = udatpg_open(icuLocale(locale.ptr()), &status);
@@ -1810,7 +1810,7 @@
}
ScopedICUObject<UDateTimePatternGenerator> toClose(gen, udatpg_close);
- int32_t size = udatpg_getBestPattern(gen, skeleton, skeletonLen, NULL, 0, &status);
+ int32_t size = udatpg_getBestPattern(gen, (const UChar*)skeleton, skeletonLen, NULL, 0, &status);
if (U_FAILURE(status) && status != U_BUFFER_OVERFLOW_ERROR) {
JS_ReportErrorNumber(cx, js_GetErrorMessage, NULL, JSMSG_INTERNAL_INTL_ERROR);
return false;
@@ -1820,13 +1820,13 @@
return false;
pattern[size] = '\0';
status = U_ZERO_ERROR;
- udatpg_getBestPattern(gen, skeleton, skeletonLen, pattern, size, &status);
+ udatpg_getBestPattern(gen, (const UChar*)skeleton, skeletonLen, pattern, size, &status);
if (U_FAILURE(status)) {
JS_ReportErrorNumber(cx, js_GetErrorMessage, NULL, JSMSG_INTERNAL_INTL_ERROR);
return false;
}
- RootedString str(cx, JS_NewUCStringCopyZ(cx, pattern));
+ RootedString str(cx, JS_NewUCStringCopyZ(cx, (const jschar *)((const UChar *)pattern)));
if (!str)
return false;
args.rval().setString(str);
@@ -1874,7 +1874,7 @@
if (!JSObject::getProperty(cx, internals, internals, cx->names().timeZone, &value))
return NULL;
if (!value.isUndefined()) {
- uTimeZone = JS_GetStringCharsZ(cx, value.toString());
+ uTimeZone = (const UChar *)JS_GetStringCharsZ(cx, value.toString());
if (!uTimeZone)
return NULL;
uTimeZoneLength = u_strlen(uTimeZone);
@@ -1882,7 +1882,7 @@
}
if (!JSObject::getProperty(cx, internals, internals, cx->names().pattern, &value))
return NULL;
- uPattern = JS_GetStringCharsZ(cx, value.toString());
+ uPattern = (const UChar *)JS_GetStringCharsZ(cx, value.toString());
if (!uPattern)
return NULL;
uPatternLength = u_strlen(uPattern);
@@ -1921,12 +1921,12 @@
if (!chars.resize(INITIAL_STRING_BUFFER_SIZE))
return false;
UErrorCode status = U_ZERO_ERROR;
- int size = udat_format(df, x, chars.begin(), INITIAL_STRING_BUFFER_SIZE, NULL, &status);
+ int size = udat_format(df, x, (UChar*)chars.begin(), INITIAL_STRING_BUFFER_SIZE, NULL, &status);
if (status == U_BUFFER_OVERFLOW_ERROR) {
if (!chars.resize(size))
return false;
status = U_ZERO_ERROR;
- udat_format(df, x, chars.begin(), size, NULL, &status);
+ udat_format(df, x, (UChar*)chars.begin(), size, NULL, &status);
}
if (U_FAILURE(status)) {
JS_ReportErrorNumber(cx, js_GetErrorMessage, NULL, JSMSG_INTERNAL_INTL_ERROR);
wayland patch:
Code: Select all
--- org/tests/test-runner.h 2015-07-06 22:38:51.000000000 +0300
+++ new/tests/test-runner.h 2017-05-09 13:57:50.935848215 +0300
@@ -41,7 +41,7 @@
static void name(void); \
\
const struct test test##name \
- __attribute__ ((section ("test_section"))) = { \
+ __attribute__ ((used, section ("test_section"))) = { \
#name, name, 0 \
}; \
\
@@ -51,7 +51,7 @@
static void name(void); \
\
const struct test test##name \
- __attribute__ ((section ("test_section"))) = { \
+ __attribute__ ((used, section ("test_section"))) = { \
#name, name, 1 \
}; \
\
I am not using anymore x11-drivers/xf86-video-intel, yes I am on intel GPU and qt
For python I am using a modified ebuild to enable lto
emake profile-opt for python-2.7.13 and emake profile-opt CPPFLAGS= CFLAGS= LDFLAGS= for python 3.6.2
If it helps, package.env:
Code: Select all
dev-lang/python no-sandbox
dev-libs/libgcrypt no-lto
dev-python/notify-python no-lto
dev-util/cmocka no-lto
media-libs/alsa-lib no-lto
media-sound/pulseaudio no-lto
gnome-base/orbit no-lto
gnome-base/libbonobo no-lto
dev-libs/elfutils no-lto
net-libs/nodejs no-lto
dev-util/cargo no-lto
media-libs/adplug O2
media-libs/libvorbis O2
media-video/ffmpeg O2
and emerge --info:
Code: Select all
Portage 2.3.7 (python 3.6.2-final-0, hardened/linux/amd64/no-multilib, gcc-7.2.0, glibc-2.26, 4.12.7-gentoo-costel x86_64)
=================================================================
System uname: Linux-4.12.7-gentoo-costel-x86_64-Intel-R-_Core-TM-_i7-6700K_CPU_@_4.00GHz-with-gentoo-2.4.1
KiB Mem: 31844056 total, 14384064 free
KiB Swap: 0 total, 0 free
Timestamp of repository gentoo: Wed, 16 Aug 2017 17:30:01 +0000
Head commit of repository gentoo: edad608296c71126f8617012a70a481c659f9461
sh bash 4.4_p12
ld GNU gold (Gentoo 2.29 p1.0 2.29) 1.14
app-shells/bash: 4.4_p12::gentoo
dev-java/java-config: 2.2.0-r3::gentoo
dev-lang/perl: 5.26.0::gentoo
dev-lang/python: 2.7.13::newer, 3.6.2::newer
dev-util/cmake: 3.9.1::gentoo
dev-util/pkgconfig: 0.29.2::gentoo
sys-apps/baselayout: 2.4.1-r1::gentoo
sys-apps/sandbox: 2.10-r4::gentoo
sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake: 1.13.4-r1::gentoo, 1.15.1::gentoo
sys-devel/binutils: 2.29::gentoo
sys-devel/gcc: 7.2.0::newer
sys-devel/gcc-config: 1.8-r1::gentoo
sys-devel/libtool: 2.4.6-r4::gentoo
sys-devel/make: 4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.11::gentoo (virtual/os-headers)
sys-libs/glibc: 2.26::newer
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.ro.gentoo.org/gentoo-portage/
priority: -1000
sync-rsync-extra-opts: --human-readable --delete-before --progress
sync-rsync-vcs-ignore: true
added
location: /usr/portage/local/added
masters: gentoo
priority: 30
newer
location: /usr/portage/local/newer
masters: gentoo
priority: 100
python
location: /usr/portage/local/python
masters: gentoo
priority: 100
Installed sets: @desktop, @dev, @minimal
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=native -mtune=skylake -fomit-frame-pointer -w -flto=8 -fuse-linker-plugin -floop-nest-optimize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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-php7.1/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O3 -pipe -march=native -mtune=skylake -fomit-frame-pointer -w -flto=8 -fuse-linker-plugin -floop-nest-optimize"
DISTDIR="/mnt/linux/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=11 --keep-going --with-bdeps=y --complete-graph --quiet-build=n --autounmask-write"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy cgroup collision-protect config-protect-if-modified distlocks fail-clean fixlafiles ipc-sandbox merge-sync multilib-strict news nodoc noinfo parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-filter unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.evowise.com/gentoo/ http://ftp.romnet.org/gentoo/ ftp://ftp.romnet.org/gentoo/ http://distfiles.gentoo.org/"
LANG="ro_RO.UTF-8"
LC_ALL="ro_RO.UTF-8"
LDFLAGS="-Wl,-O1,--sort-common,--hash-style=gnu,--as-needed,-z,relro,-z,now -O3 -pipe -march=native -mtune=skylake -fomit-frame-pointer -w -flto=8 -fuse-linker-plugin -floop-nest-optimize"
MAKEOPTS="-j8 --load-average=10"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--human-readable --delete-before --progress"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi aes alsa amd64 avx avx2 branding bzip2 cairo caps cli colord cracklib crypt cups custom-cflags custom-optimization cxx dbus dri egl encode exif fam flac fma3 gif glamor gles gpm gstreamer gtk gtk3 hardened iconv icu idn ipv6 jemalloc jpeg justify lcms libnotify libressl lz4 mad mmx mmxext modules mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp opus pam pango pax_kernel pcre pdf pie png policykit popcnt pulseaudio readline sdl seccomp server session sse sse2 sse3 sse4_1 sse4_2 ssl ssp ssse3 svg systemd tcpd threads tiff truetype udev udisks unicode urandom usb vaapi vdpau vhosts vorbis wayland x264 xattr xcb xtpax xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel usb-audio" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="libressl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" L10N="ro en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ro en" NETBEANS_MODULES="apisupport extide php webcommon" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset fastcgi gzip limit_conn limit_req memcached referer rewrite split_clients userid gunzip naxsi realip" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-1" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="intel i965" 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: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Best of luck!