Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gcc 6.1.0
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
nordicruler
Tux's lil' helper
Tux's lil' helper


Joined: 20 Dec 2004
Posts: 93
Location: Philippines (but from Sweden)

PostPosted: Tue Jul 05, 2016 4:01 am    Post subject: Gcc 6.1.0 Reply with quote

Anyone using gcc 6? How is working?
Back to top
View user's profile Send private message
costel78
Guru
Guru


Joined: 20 Apr 2007
Posts: 402

PostPosted: Sun Jul 10, 2016 7:37 am    Post subject: Reply with quote

Yes, I use it and it is working very well.
Please, pay attention to CXXFLAGS as you will have to add -fno-delete-null-pointer-checks -flifetime-dse=1
In fact, I am able to use lto and graphite with very few problems.

My emerge info:
Code:
Portage 2.3.0 (python 3.5.1-final-0, default/linux/amd64/13.0/no-multilib, gcc-6.1.0, glibc-2.23-r2, 4.6.3-gentoo-costel x86_64)
=================================================================
System uname: Linux-4.6.3-gentoo-costel-x86_64-Intel-R-_Core-TM-_i7-6700K_CPU_@_4.00GHz-with-gentoo-2.2
KiB Mem:    31854964 total,  21868380 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 10 Jul 2016 04:45:01 +0000
sh bash 4.3_p46
ld GNU ld (Gentoo 2.26.1) 2.26.1
app-shells/bash:          4.3_p46::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.0-r1::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.5.1-r3::gentoo
dev-util/cmake:           3.6.0::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2-r1::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.26.1-r1::newer
sys-devel/gcc:            6.1.0::newer
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://ftp.romnet.org/gentoo-portage
    priority: -1000
    sync-rsync-vcs-ignore: true
    sync-rsync-extra-opts: --human-readable --delete-before --progress

added
    location: /usr/portage/local/added
    masters: gentoo
    priority: 30

newer
    location: /usr/portage/local/newer
    masters: gentoo
    priority: 30

python
    location: /usr/portage/local/python
    masters: gentoo
    priority: 30

mv
    location: /usr/portage/local/mv
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/user/mv.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -mtune=skylake -w -flto=8 -fuse-linker-plugin -ffat-lto-objects -fuse-ld=gold -fgraphite-identity -floop-interchange -floop-strip-mine -floop-block"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /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/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -mtune=skylake -w -flto=8 -fuse-linker-plugin -ffat-lto-objects -fuse-ld=gold -fgraphite-identity -floop-interchange -floop-strip-mine -floop-block -fno-delete-null-pointer-checks -flifetime-dse=1"
DISTDIR="/mnt/linux/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=3 --load-average=12 --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 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://ftp.romnet.org/gentoo/ ftp://ftp.romnet.org/gentoo/ http://mirrors.xservers.ro/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,now -O2 -pipe -march=native -mtune=skylake -w -flto=8 -fuse-linker-plugin -ffat-lto-objects -fuse-ld=gold -fgraphite-identity -floop-interchange -floop-strip-mine -floop-block -fno-delete-null-pointer-checks -flifetime-dse=1"
MAKEOPTS="-j8 --load-average=16"
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 berkdb branding bzip2 cairo cdda cdr cli colord cracklib crypt cups custom-cflags custom-optimization cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam ffmpeg firefox flac fma3 gdbm gif glamor gmp gnome gnome-keyring gpm gstreamer gtk gtk3 iconv icu introspection ipv6 jemalloc jpeg lcms libnotify libsecret logrotate lz4 mad mmx mmxext mng modules mp3 mp4 mpeg mysql nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pch pcre pdf png policykit popcnt ppds pulseaudio python readline sdl seccomp server session spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg systemd tcpd theora threads tiff truetype udev udisks unicode upower usb vaapi vdpau vhosts vorbis wxwidgets x264 xattr xcb xml xv 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" CAMERAS="ptp2" 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" 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="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 addition auth_basic autoindex browser cache_purge charset dav dav_ext echo empty_gif fancyindex fastcgi flv geo geoip gunzip gzip headers_more image_filter limit_conn limit_req map memc memcached metrics mp4 naxsi perl random_index realip referer rewrite scgi secure_link split_clients ssi sticky stub_status sub upload_progress upstream_ip_hash userid uwsgi xslt" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-0" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby23" 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"
USE_PYTHON="2.7 3.5"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS


package.env
Code:
app-antivirus/clamav std98
app-crypt/gcr no-lto-graphite
app-office/libreoffice no-lto-graphite
app-text/openjade std98
dev-lang/php php
dev-lang/spidermonkey:0/mozjs185 no-lto-graphite
dev-libs/elfutils no-lto-graphite
dev-libs/libgcrypt no-lto-graphite
dev-python/notify-python no-lto-graphite
games-strategy/dunelegacy std98
gnome-base/gnome-shell no-lto-graphite
mail-client/thunderbird no-lto-no-gold-graphite
mail-mta/postfix no-lto-graphite
media-libs/alsa-lib no-lto-graphite
media-sound/pulseaudio no-lto-graphite
net-libs/webkit-gtk no-lto-no-gold-graphite
sys-apps/man-db no-lto-no-graphite
sys-apps/pciutils no-lto-graphite
sys-libs/ncurses php
www-client/chromium no-lto-graphite
www-client/firefox no-lto-no-gold-graphite
x11-drivers/xf86-video-intel no-lto-graphite

app-arch/cpio lto-no-graphite
media-libs/tiff lto-no-graphite
sys-apps/gawk lto-no-graphite
app-arch/tar lto-no-graphite
sys-apps/groff lto-no-graphite
dev-lang/orc lto-no-graphite
media-libs/flac lto-no-graphite
net-mail/mailutils lto-no-graphite
media-video/ffmpeg lto-no-graphite
sys-devel/gettext no-gold


No wrappers are needed for lto. There are a few bugs in gcc itself which prevent some of above packages (lto-no-graphite) to build with both lto and graphite. It seems they will be fixed in gcc-6.2.0

Current, partial fix:
Code:
Handle 3-arg phi in copy_bb_and_scalar_dependences

2016-05-30  Tom de Vries  <tom@codesourcery.com>

   PR tree-optimization/69068
   * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
   phis with more than two args.

   * gcc.dg/graphite/pr69068.c: New test.

---
 gcc/graphite-isl-ast-to-gimple.c        |  7 +++++++
 gcc/testsuite/gcc.dg/graphite/pr69068.c | 14 ++++++++++++++
 2 files changed, 21 insertions(+)

diff --git a/gcc/graphite-isl-ast-to-gimple.c b/gcc/graphite-isl-ast-to-gimple.c
index ff1d91f..c176db0 100644
--- a/gcc/graphite-isl-ast-to-gimple.c
+++ b/gcc/graphite-isl-ast-to-gimple.c
@@ -2725,6 +2725,13 @@ copy_bb_and_scalar_dependences (basic_block bb, edge next_e, vec<tree> iv_map)
     }
   else
     {
+      if (num_phis > 0
+     && EDGE_COUNT (bb->preds) > 2)
+   {
+     codegen_error = true;
+     return NULL;
+   }
+
       new_bb = split_edge (next_e);
       if (num_phis > 0 && bb_contains_loop_phi_nodes (bb))
    {
diff --git a/gcc/testsuite/gcc.dg/graphite/pr69068.c b/gcc/testsuite/gcc.dg/graphite/pr69068.c
new file mode 100644
index 0000000..0abea06
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/graphite/pr69068.c
@@ -0,0 +1,14 @@
+/* { dg-do compile } */
+/* { dg-options "-O1 -fgraphite-identity" } */
+
+int qo;
+int zh[2];
+
+void
+td (void)
+{
+  int ly, en;
+  for (ly = 0; ly < 2; ++ly)
+    for (en = 0; en < 2; ++en)
+      zh[en] = ((qo == 0) || (((qo * 2) != 0))) ? 1 : -1;
+}

_________________
Sorry for my English. I'm still learning this language.
Back to top
View user's profile Send private message
roarinelk
Guru
Guru


Joined: 04 Mar 2004
Posts: 520

PostPosted: Mon Jul 11, 2016 11:00 am    Post subject: Reply with quote

I'd wait for 6.2.0 at least to be honest. The gcc-6 branch has received a very large amount of bugfixes since the 6.1 release over 10 weeks ago.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Tue Jul 12, 2016 10:43 am    Post subject: Reply with quote

Are you able to utilize / use it / have it next to the currenct gcc 5.x.x branch?
Back to top
View user's profile Send private message
tranquilcool
Veteran
Veteran


Joined: 25 Mar 2005
Posts: 1179

PostPosted: Tue Jul 12, 2016 4:42 pm    Post subject: Reply with quote

it doesn't compile for me at the moment.
got the ebuild from the hardened-overlay.
_________________
this is a strange strange world.
Back to top
View user's profile Send private message
nordicruler
Tux's lil' helper
Tux's lil' helper


Joined: 20 Dec 2004
Posts: 93
Location: Philippines (but from Sweden)

PostPosted: Wed Jul 13, 2016 12:59 am    Post subject: Reply with quote

costel78 wrote:
Yes, I use it and it is working very well.
Please, pay attention to CXXFLAGS as you will have to add -fno-delete-null-pointer-checks -flifetime-dse=1
In fact, I am able to use lto and graphite with very few problems.

My emerge info:
Code:
Portage 2.3.0 (python 3.5.1-final-0, default/linux/amd64/13.0/no-multilib, gcc-6.1.0, glibc-2.23-r2, 4.6.3-gentoo-costel x86_64)
=================================================================
System uname: Linux-4.6.3-gentoo-costel-x86_64-Intel-R-_Core-TM-_i7-6700K_CPU_@_4.00GHz-with-gentoo-2.2
KiB Mem:    31854964 total,  21868380 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 10 Jul 2016 04:45:01 +0000
sh bash 4.3_p46
ld GNU ld (Gentoo 2.26.1) 2.26.1
app-shells/bash:          4.3_p46::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.0-r1::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.5.1-r3::gentoo
dev-util/cmake:           3.6.0::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2-r1::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.26.1-r1::newer
sys-devel/gcc:            6.1.0::newer
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://ftp.romnet.org/gentoo-portage
    priority: -1000
    sync-rsync-vcs-ignore: true
    sync-rsync-extra-opts: --human-readable --delete-before --progress

added
    location: /usr/portage/local/added
    masters: gentoo
    priority: 30

newer
    location: /usr/portage/local/newer
    masters: gentoo
    priority: 30

python
    location: /usr/portage/local/python
    masters: gentoo
    priority: 30

mv
    location: /usr/portage/local/mv
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/user/mv.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -mtune=skylake -w -flto=8 -fuse-linker-plugin -ffat-lto-objects -fuse-ld=gold -fgraphite-identity -floop-interchange -floop-strip-mine -floop-block"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /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/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -mtune=skylake -w -flto=8 -fuse-linker-plugin -ffat-lto-objects -fuse-ld=gold -fgraphite-identity -floop-interchange -floop-strip-mine -floop-block -fno-delete-null-pointer-checks -flifetime-dse=1"
DISTDIR="/mnt/linux/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=3 --load-average=12 --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 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://ftp.romnet.org/gentoo/ ftp://ftp.romnet.org/gentoo/ http://mirrors.xservers.ro/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,now -O2 -pipe -march=native -mtune=skylake -w -flto=8 -fuse-linker-plugin -ffat-lto-objects -fuse-ld=gold -fgraphite-identity -floop-interchange -floop-strip-mine -floop-block -fno-delete-null-pointer-checks -flifetime-dse=1"
MAKEOPTS="-j8 --load-average=16"
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 berkdb branding bzip2 cairo cdda cdr cli colord cracklib crypt cups custom-cflags custom-optimization cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam ffmpeg firefox flac fma3 gdbm gif glamor gmp gnome gnome-keyring gpm gstreamer gtk gtk3 iconv icu introspection ipv6 jemalloc jpeg lcms libnotify libsecret logrotate lz4 mad mmx mmxext mng modules mp3 mp4 mpeg mysql nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pch pcre pdf png policykit popcnt ppds pulseaudio python readline sdl seccomp server session spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg systemd tcpd theora threads tiff truetype udev udisks unicode upower usb vaapi vdpau vhosts vorbis wxwidgets x264 xattr xcb xml xv 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" CAMERAS="ptp2" 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" 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="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 addition auth_basic autoindex browser cache_purge charset dav dav_ext echo empty_gif fancyindex fastcgi flv geo geoip gunzip gzip headers_more image_filter limit_conn limit_req map memc memcached metrics mp4 naxsi perl random_index realip referer rewrite scgi secure_link split_clients ssi sticky stub_status sub upload_progress upstream_ip_hash userid uwsgi xslt" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-0" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby23" 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"
USE_PYTHON="2.7 3.5"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS


package.env
Code:
app-antivirus/clamav std98
app-crypt/gcr no-lto-graphite
app-office/libreoffice no-lto-graphite
app-text/openjade std98
dev-lang/php php
dev-lang/spidermonkey:0/mozjs185 no-lto-graphite
dev-libs/elfutils no-lto-graphite
dev-libs/libgcrypt no-lto-graphite
dev-python/notify-python no-lto-graphite
games-strategy/dunelegacy std98
gnome-base/gnome-shell no-lto-graphite
mail-client/thunderbird no-lto-no-gold-graphite
mail-mta/postfix no-lto-graphite
media-libs/alsa-lib no-lto-graphite
media-sound/pulseaudio no-lto-graphite
net-libs/webkit-gtk no-lto-no-gold-graphite
sys-apps/man-db no-lto-no-graphite
sys-apps/pciutils no-lto-graphite
sys-libs/ncurses php
www-client/chromium no-lto-graphite
www-client/firefox no-lto-no-gold-graphite
x11-drivers/xf86-video-intel no-lto-graphite

app-arch/cpio lto-no-graphite
media-libs/tiff lto-no-graphite
sys-apps/gawk lto-no-graphite
app-arch/tar lto-no-graphite
sys-apps/groff lto-no-graphite
dev-lang/orc lto-no-graphite
media-libs/flac lto-no-graphite
net-mail/mailutils lto-no-graphite
media-video/ffmpeg lto-no-graphite
sys-devel/gettext no-gold


No wrappers are needed for lto. There are a few bugs in gcc itself which prevent some of above packages (lto-no-graphite) to build with both lto and graphite. It seems they will be fixed in gcc-6.2.0

Current, partial fix:
Code:
Handle 3-arg phi in copy_bb_and_scalar_dependences

2016-05-30  Tom de Vries  <tom@codesourcery.com>

   PR tree-optimization/69068
   * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
   phis with more than two args.

   * gcc.dg/graphite/pr69068.c: New test.

---
 gcc/graphite-isl-ast-to-gimple.c        |  7 +++++++
 gcc/testsuite/gcc.dg/graphite/pr69068.c | 14 ++++++++++++++
 2 files changed, 21 insertions(+)

diff --git a/gcc/graphite-isl-ast-to-gimple.c b/gcc/graphite-isl-ast-to-gimple.c
index ff1d91f..c176db0 100644
--- a/gcc/graphite-isl-ast-to-gimple.c
+++ b/gcc/graphite-isl-ast-to-gimple.c
@@ -2725,6 +2725,13 @@ copy_bb_and_scalar_dependences (basic_block bb, edge next_e, vec<tree> iv_map)
     }
   else
     {
+      if (num_phis > 0
+     && EDGE_COUNT (bb->preds) > 2)
+   {
+     codegen_error = true;
+     return NULL;
+   }
+
       new_bb = split_edge (next_e);
       if (num_phis > 0 && bb_contains_loop_phi_nodes (bb))
    {
diff --git a/gcc/testsuite/gcc.dg/graphite/pr69068.c b/gcc/testsuite/gcc.dg/graphite/pr69068.c
new file mode 100644
index 0000000..0abea06
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/graphite/pr69068.c
@@ -0,0 +1,14 @@
+/* { dg-do compile } */
+/* { dg-options "-O1 -fgraphite-identity" } */
+
+int qo;
+int zh[2];
+
+void
+td (void)
+{
+  int ly, en;
+  for (ly = 0; ly < 2; ++ly)
+    for (en = 0; en < 2; ++en)
+      zh[en] = ((qo == 0) || (((qo * 2) != 0))) ? 1 : -1;
+}


Thanks for the info, i think i will try it out.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sun Nov 27, 2016 12:22 am    Post subject: Reply with quote

GCC 6.2/6.x:

Quote:
<built-in>: note: this is the location of the previous definition
/var/tmp/portage/dev-qt/qtwebengine-5.6.2/work/qtwebengine-opensource-src-5.6.2/src/3rdparty/chromium/third_party/webrtc/modules/audio_coding/codecs/isac/main/source/lattice.c: In function ‘WebRtcIsac_NormLatticeFilterAr’:
/var/tmp/portage/dev-qt/qtwebengine-5.6.2/work/qtwebengine-opensource-src-5.6.2/src/3rdparty/chromium/third_party/webrtc/modules/audio_coding/codecs/isac/main/source/lattice.c:110:6: internal compiler error: in copy_cond_phi_nodes, at graphite-isl-ast-to-gimple.c:2498
void WebRtcIsac_NormLatticeFilterAr(int orderCoef,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.gentoo.org/> for instructions.



https://www.mail-archive.com/gcc-bugs@gcc.gnu.org/msg512721.html

https://www.mail-archive.com/gcc-bugs@gcc.gnu.org/msg512762.html

Quote:
PR tree-optimization/71575
* graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
bogus assert.


just wonderful :lol:
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54232
Location: 56N 3W

PostPosted: Sun Nov 27, 2016 11:48 am    Post subject: Reply with quote

I'm using gcc-6.2 and the gold linker on arm64 (cortex-a53). It mostly just works.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
schorsch_76
Guru
Guru


Joined: 19 Jun 2012
Posts: 450

PostPosted: Wed Nov 30, 2016 12:21 pm    Post subject: Reply with quote

NeddySeagoon wrote:
I'm using gcc-6.2 and the gold linker on arm64 (cortex-a53). It mostly just works.


Raspberry Pi3? ;)
_________________
// valid again: I forgot about the git access. Now 1.2GB big. Start: 2015-06-25
git daily portage tree
Web: https://github.com/schorsch1976/portage
git clone https://github.com/schorsch1976/portage
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54232
Location: 56N 3W

PostPosted: Wed Nov 30, 2016 12:53 pm    Post subject: Reply with quote

schorsch_76,

You peeked :)
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Ivan The Viking
Tux's lil' helper
Tux's lil' helper


Joined: 14 Apr 2003
Posts: 78
Location: Connecticut, USA

PostPosted: Mon Dec 19, 2016 10:10 pm    Post subject: Reply with quote

"just works" on the Pine64 Arm64 as well for 6.2 GCC for some stuff I tried it on.
GCC 5.4 series is still the default for the system.

I haven't done any speed comparisons, but the compiled code size indicates it's doing something.
The optimized code has grown a few kb on some simple stuff I tried it on.

-Shawn
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3435
Location: Gainesville, Florida

PostPosted: Wed Dec 21, 2016 4:30 pm    Post subject: Reply with quote

For those interested, gcc-6.3 was just released (a bug-fix release, containing fixes for regressions in GCC 6.2 relative to previous releases of GCC).
https://gcc.gnu.org/ml/gcc/2016-12/msg00132.html

gcc-6.3 dec.21, 2016 page: https://gcc.gnu.org/gcc-6/

Detailed changes: https://gcc.gnu.org/gcc-6/changes.html

List of the 79 bug fixes (lots of c++ libstd+ stuff and regressions addressed):
https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&resolution=FIXED&target_milestone=6.3

I'm currently running gcc-5.4 on ~amd64 desktop systems nicely, and have considered moving to gcc-6.2 for a while, but have held back due to some problems I've been reading about.

I'm no gcc expert, and am wondering if in the opinion of those more knowlegeable if 6.3 would be advised over 6.2 as a more plausible move and more likely to succeed?

To those of us with limited expertise, that list of 79 bug/regression fixes certainly is encouraging, and makes me think trying 6.3 would indeed be more likely to work out with at least some of the 6.2 problems resolved for gentoo users. Any thoughts, advice, and experience is greatly appreciated.
_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
OpenRC Gentoo ~amd64 plasma, glibc-2.36-r7, gcc-13.2.1_p20230304
kernel-6.8.4 USE=experimental python3_11
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Wed Dec 21, 2016 4:55 pm    Post subject: Reply with quote

GCC 6 supports Zen but I haven't found anywhere if Zen supports K8 or K10 code. I've googled but all I find is "clean new hardware design" and "GCC 6 supports zen code". Perhaps I should set up a cross-compiler now and start building a stage 3? It would be so much simpler to set march=k8 and emerge- e world on an existing installation, move the drive to the new zen computer, set march=native and again emerge -e world.
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Wed Dec 21, 2016 5:06 pm    Post subject: Reply with quote

wrc1944 wrote:
but have held back due to some problems I've been reading about.

I have just recently compiled @world with gcc-6.2 and have no problems with it.
Quote:
if 6.3 would be advised over 6.2

Sure. Higher minor releases usually only fix bugs. It is very rare that they add regressions.
Quote:
that list of 79 bug/regression fixes certainly is encouraging

I think the number is neither especially high nor low for a minor version bump. Probably most of the bugs you will never run in your system.
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3435
Location: Gainesville, Florida

PostPosted: Wed Dec 21, 2016 7:00 pm    Post subject: Reply with quote

mv,
Thanks much for the great feedback. Very encouraging. :)
No gcc-6.3.0 ebuild in portage yet. Is it necessary to go to 6.2.0-r1 first, or will going straight from gcc-5.4.0 work out?

If a gentoo 6.3.0 ebuild is going to be delayed more than a week or two, could we possibly just rename the 6.2.0-r1 ebuild, or is there more to it with gcc?

The 5.3.0 and 5.4.0 ebuilds are identical and 45 lines, whereas the 6.2.0-r1 is only 25 lines, and needs >=sys-libs/glibc-2.13.

Tony0945,
I'm moving to zen when it's available.
I've also moved through 12-15 years of all amd cpu and mobo versions, and I've never had a problem.
I could be wrong, but I guess you can say that amd stuff has been backward compatible, at least from one version to the very next, at least enough to get a booted system where you can rebuild for the new hardware.

All my Gentoo systems compiled on the old cpu and architecture have always booted into the new hardware system, and then I edit make.conf for the new hardware, compile a new kernel for the new cpu/mobo, reboot and rebuild system and world.

Hopefully, it will be the same this time. I'll probably also first build a generic x86_64 kernel on the old system to have on hand for the reboot after the move over to the new hardware, just in case.
_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
OpenRC Gentoo ~amd64 plasma, glibc-2.36-r7, gcc-13.2.1_p20230304
kernel-6.8.4 USE=experimental python3_11
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Wed Dec 21, 2016 8:03 pm    Post subject: Reply with quote

wrc1944 wrote:
No gcc-6.3.0 ebuild in portage yet.

Nobody can say how long it takes. It took some months after the release until the first gcc-6* has hit the portage repository. Only very rarely bumps are rather timely after upstream bumps, but it happens.
Quote:
Is it necessary to go to 6.2.0-r1 first

Normally you should be able to compile any compiler from any other without any intermediate steps. Of course, nobody tested all combinations, and so bugs can be in your way, but these are rare exceptions. When the emerge succeeds you can be rather sure that no intermediate step is necessary (because the compiler stress-tests itself during bootstrapping).
Quote:
could we possibly just rename the 6.2.0-r1 ebuild

You can try, but nobody can give any promise. I would wait until it is in the gentoo repository, even if it takes long.
Quote:
The 5.3.0 and 5.4.0 ebuilds are identical

The main part of the gcc ebuilds is "hidden" in eclasses.


Last edited by mv on Wed Dec 21, 2016 8:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3435
Location: Gainesville, Florida

PostPosted: Wed Dec 21, 2016 8:04 pm    Post subject: Reply with quote

nordicruler,
Thought I'd mention that since 6.3.0 was just released, perhaps you might consider adding gcc-6.2.0, gcc-6.3 to the thread title in the hopes of getting more feedback and expand this thread into the "go to" forum post for gentoo gcc-6.x.x help and info.

Come to think of it (and since --depclean always wants to remove the active gcc-5.4.0 even though 6.2.0-r1 isn't my selected gcc), maybe the forum moderators might at some point consider moving it from "unsupported" to maybe Portage and Programming, or Other Things Gentoo?
_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
OpenRC Gentoo ~amd64 plasma, glibc-2.36-r7, gcc-13.2.1_p20230304
kernel-6.8.4 USE=experimental python3_11
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3435
Location: Gainesville, Florida

PostPosted: Wed Dec 21, 2016 8:11 pm    Post subject: Reply with quote

mv wrote:
Quote:

The main part of the gcc ebuilds is "hidden" in eclasses.


Ahhh.. Thanks. Didn't realize that. Really appreciate you sharing all this very informative info. :)
_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
OpenRC Gentoo ~amd64 plasma, glibc-2.36-r7, gcc-13.2.1_p20230304
kernel-6.8.4 USE=experimental python3_11
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8935

PostPosted: Wed Dec 21, 2016 11:25 pm    Post subject: Reply with quote

wrc1944 wrote:
but have held back due to some problems I've been reading about.

Well, here's the bug tracker: https://bugs.gentoo.org/show_bug.cgi?id=gcc-6

It's not so much an issue with GCC-6 but with all the packages that do not yet build with it. And 6.3 is not going to change that.
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Thu Dec 22, 2016 5:15 pm    Post subject: Reply with quote

wrc1944 wrote:
Tony0945,
I'm moving to zen when it's available.
I've also moved through 12-15 years of all amd cpu and mobo versions, and I've never had a problem.
I could be wrong, but I guess you can say that amd stuff has been backward compatible, at least from one version to the very next, at least enough to get a booted system where you can rebuild for the new hardware.

All my Gentoo systems compiled on the old cpu and architecture have always booted into the new hardware system, and then I edit make.conf for the new hardware, compile a new kernel for the new cpu/mobo, reboot and rebuild system and world.

Hopefully, it will be the same this time. I'll probably also first build a generic x86_64 kernel on the old system to have on hand for the reboot after the move over to the new hardware, just in case.
I found this old post http://wccftech.com/amd-ditching-bulldozer-instruction-sets-zen-high-performance-core-wip/ So, your procedure may not work if you are running Excavator. I'm moving from Athlon II X3 so I think I will just move the disk, boot, rebuild kernel, reboot and emerge -e world. When I moved another system from Athlon 64 X2 4600+ to Kaveri, I just rebuilt the kernel to support the new hardware, building as K8, moved the drive and ran emerge -e world overnight. I think it took 7 hours IIRC. I started it at 10:00PM and it was done in the morning.
I think I should start getting used to GCC 6 now, however. I can always do the existing builds with 4.9 via gcc-config. IOW, I'm eager to start the project.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8935

PostPosted: Fri Dec 23, 2016 9:51 am    Post subject: Reply with quote

Tony0945 wrote:
I think I should start getting used to GCC 6 now, however. I can always do the existing builds with 4.9 via gcc-config.

Whatever you do, don't switch back and forth between GCC 4.9 and 6. Once you're >=GCC-5, stay there.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54232
Location: 56N 3W

PostPosted: Fri Dec 23, 2016 10:58 am    Post subject: Reply with quote

Tony0945,

There is a C++ ABI change between gcc-4.x and gcc-5.x. The switch between the two requires that you rebuild all the C++ code you have installed.

By all means move to gcc-6.x but do the 5.x update first. Further, gcc is only tested to build one major version up and one down, so going from gcc-4 to gcc-6 is not supported. In other words, you can keep the pieces if it breaks.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3435
Location: Gainesville, Florida

PostPosted: Sat Dec 24, 2016 1:38 am    Post subject: Reply with quote

I finally took the plunge and moved one of my rock solid, --depcleaned, current qt/kde ~amd64 systems, revdep-rebuild consistent to gcc-6.2.0-r1.

I didn't add any lto or graphite flags, but just kept my gcc-5.4.0 compiled system's current make.conf file as it was. (See emerge info below).

After I installed gcc-6.2.0-r1, I selected it as the new default, and rebuilt the toolchain with:
Code:
emerge linux-headers binutils glibc gcc libtool portage

Then I ran an
Code:
emerge -ev1 @system --keep-going
which emerged all 419 packages it listed (including some qt and kde stuff also), with no issues.

Since my system was compiled completely with gcc-5.4.0, I'm wondering if I really need to do an emerge -e @world, or even really need to re-compile all my qt and/or kde packages? All seems to be functioning normally, so far.

I'm also wondering about if it's wise to try adding lto and graphite at this point, or wait on trying those untill the gcc-6.3 ebuild comes to the tree? Any advice is greatly appreciated. Here's my current info:
Code:
 wrc@gentoo-audio ~ $ emerge --info
Portage 2.3.3 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-6.2.0, glibc-2.23-r3, 4.9.0-gentoo x86_64)
=================================================================
System uname: Linux-4.9.0-gentoo-x86_64-AMD_FX-tm-8320_Eight-Core_Processor-with-gentoo-2.3
KiB Mem:    16467740 total,  10756960 free
KiB Swap:    4883452 total,   4883452 free
Timestamp of repository gentoo: Fri, 23 Dec 2016 15:30:01 +0000
sh bash 4.4_p5-r1
ld GNU ld (Gentoo 2.27 p1.0) 2.27
app-shells/bash:          4.4_p5-r1::gentoo
dev-lang/perl:            5.24.1_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.23::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.27::gentoo
sys-devel/gcc:            5.4.0::gentoo, 6.2.0-r1::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer -ftree-vectorize -fipa-icf"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer -ftree-vectorize -fipa-icf"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n --with-bdeps=y"
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="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnowprefetch X a52 aac acl acpi alsa amd64 avx berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fma fortran gdbm gif glamor gpm gtk iconv icu 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 qml qt3support qt4 qt5 readline sdl seccomp semantic-desktop session spell sse sse2 sse3 sse4_1 sse4_2 sse4a ssl ssse3 startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="ice1712" 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 fma3 fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" 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="i386pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="radeon vesa fbdev" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

wrc@gentoo-audio ~

_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
OpenRC Gentoo ~amd64 plasma, glibc-2.36-r7, gcc-13.2.1_p20230304
kernel-6.8.4 USE=experimental python3_11
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3435
Location: Gainesville, Florida

PostPosted: Sun Dec 25, 2016 1:43 pm    Post subject: Reply with quote

After my @system rebuild, I finished my @world update (1120 packages) after moviing to 6.2.0-r1, and only had this one rebuild problem:

https://bugs.gentoo.org/show_bug.cgi?id=582606 which refers to:

Code:
The following package has failed to build, install, or execute postinst:
 *
 *  (dev-util/ragel-6.9:0/0::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/dev-util/ragel-6.9/temp/build.log'

This is the bug 582606 problem:
Code:
 /var/tmp/portage/dev-util/ragel-6.9/work/ragel-6.9/ragel/common.cpp:38:1: error: narrowing conversion of ‘18446744073709551615ul’ from ‘long unsigned int’ to ‘long long int’ inside { } [-Wnarrowing]
 };
 ^
/var/tmp/portage/dev-util/ragel-6.9/work/ragel-6.9/ragel/common.cpp:92:1: error: narrowing conversion of ‘18446744073709551615ull’ from ‘long long unsigned int’ to ‘long long int’ inside { } [-Wnarrowing]
 };
 ^
/var/tmp/portage/dev-util/ragel-6.9/work/ragel-6.9/ragel/common.cpp:120:1: error: narrowing conversion of ‘18446744073709551615ul’ from ‘long unsigned int’ to ‘long long int’ inside { } [-Wnarrowing]
 };

equery d shows:
Code:
gentoo-audio wrc # equery d dev-util/ragel
 * These packages depend on dev-util/ragel:
dev-ruby/json-1.8.3 (dev-util/ragel)
dev-ruby/json-2.0.2 (dev-util/ragel)


revdep rebuild shows system is consistent, and --depclean turns up zero to remove.

There is a work-around patch for bug 582606 and a comment saying appending '-std=c++98' to CXXFLAGS, but nobody on bugzilla seems to think it's the correct way to do it. One person says:
Quote:
While not a fix for this issue: https://github.com/gentoo/gentoo/pull/3078 ragel 7.0 builds fine for me with GCC6.

Since I still have the gcc-5.4 compilled version of dev-util/ragel-6.9:0, how critical is it for me to try and fix this issue right away, or just wait for the 7.0 update in portage (assuming it will eventually come)?

Otherwise, it seems I've successfully moved from 5.4.0 to gcc-6 on this system.
_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
OpenRC Gentoo ~amd64 plasma, glibc-2.36-r7, gcc-13.2.1_p20230304
kernel-6.8.4 USE=experimental python3_11
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Sun Dec 25, 2016 2:14 pm    Post subject: Reply with quote

It's a bit of work but you could patch the tarball by hand, assuming it's only those three places that need an explicit cast,
or you could patch the ebuild using the quick fix mentioned in the bug, or you could install 7.0 by unmasking, local overlay, or remote overlay.

I would tend to favor these in the order 3,1,2. I don't like changing the gcc version on one package.

I can see this as a problem because many upstream packages convert to a smaller size without an explicit cast.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum