View previous topic :: View next topic |
Author |
Message |
Rion Guru
Joined: 12 Oct 2006 Posts: 383 Location: Minsk, Belarus
|
Posted: Tue Jul 16, 2013 4:10 am Post subject: gcc-4.8.1 + graphite flags |
|
|
I just reemerged world with gcc-4.8.1 an graphite c[xx]flags.
the system seems to be mostly stable, but I had to mask grahite flags for some packages.
here they are
Code: | dev-qt/qtcore no-graphite.conf
dev-qt/qtscript no-graphite.conf
dev-qt/qtwebkit no-graphite.conf
dev-qt/qtgui no-graphite.conf # segfaults
sys-devel/bison no-graphite.conf # just broken.
app-editors/vim no-graphite.conf # very strange unusable behaviour
app-editors/gvim no-graphite.conf # very strange unusable behaviour
app-shells/bash no-graphite.conf # segfaults
app-arch/bzip2 no-graphite.conf # can't decompress anything
media-libs/x264 no-graphite.conf # won't build
media-video/ffmpeg no-graphite.conf # won't build
sys-apps/dbus no-graphite.conf # doesn't start
sys-devel/gdb no-graphite.conf # broken memory handling
dev-libs/openssl no-graphite.conf # tls doesn't work
media-video/mjpegtools no-graphite.conf # gcc OOM
media-libs/gegl no-graphite.conf # won't build
x11-libs/pango no-graphite.conf # cursor handling broken
app-office/libreoffice no-graphite.conf # does not pass tests
dev-vcs/subversion no-graphite.conf # gcc OOM
mate-extra/mate-power-manager no-graphite.conf # gcc OOM
media-video/vlc no-graphite.conf # gcc OOM
dev-qt/qt-creator no-graphite.conf # crashes on project open (sigabrt)
dev-util/valgrind no-graphite.conf # Valgrind: FATAL: aspacem assertion failed. nsegments[nsegments_used-1].end == Addr_MAX
sys-devel/gcc no-graphite.conf # looks like causes some apps to crash (qtcreator for example). have to make more tests..
net-libs/rb_libtorrent no-graphite.conf # crashes
dev-util/geany no-graphite.conf # crashes
sys-apps/gawk no-graphite.conf # somehow breaks configure step of php. leads to Fatal Error on call of any php func
x11-base/xorg-server no-graphite.conf # crash on exit?
dev-python/wxpython no-graphite.conf # only 2.8? causes some apps to crash. phatch for example
media-gfx/inkscape no-graphite.conf # 0.48.4-r1. unusable interface
dev-db/mariadb no-graphite.conf # breaks libreoffice compile
dev-lang/v8 no-graphite.conf # won't build
media-libs/libtheora no-graphite.conf # crashes
net-libs/gnutls no-graphite.conf # 3.2.3. breaks certificate checking procedure. broken wget for example
app-text/poppler no-graphite.conf # 0.22.5. crashes evince on search
dev-lang/erlang no-graphite.conf # 16.1. segfault during compiation
kde-base/konsole no-graphite.conf # broken copy/paste by middle click
dev-lang/perl no-graphite.conf # 5.18.1 segfault during build
sys-block/partitionmanager no-graphite.conf # 1.0.3_p20130623. can't change part params. defaults are wrong
dev-libs/glib no-graphite.conf # 2.36.4-r1. random crashes. for example file-roller on opening some archives
app-emulation/virtualbox no-graphite.conf # 4.3.0. ice
media-libs/sdl-mixer no-graphite.conf # crashes. oolite for example
|
my flags:
Code: | CFLAGS="-march=corei7-avx -O2 -pipe -ftree-vectorize -fgraphite-identity -maes -floop-parallelize-all -floop-interchange -floop-block -fira-loop-pressure"
|
and w/o graphite:
Code: | CFLAGS="-march=corei7-avx -O2 -pipe -maes" |
just fyi, maybe useful for somebody.
I'll update this list if found more unstable packages. _________________ rion-overlay
Last edited by Rion on Sun Nov 10, 2013 4:43 pm; edited 16 times in total |
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
|
mbar Veteran
Joined: 19 Jan 2005 Posts: 1990 Location: Poland
|
Posted: Mon Jul 22, 2013 4:26 am Post subject: |
|
|
And thanks from me |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Mon Jul 22, 2013 2:52 pm Post subject: |
|
|
I've just started playing with graphite. With e.g. mplayer and SDL, it will try to use all available memory, bringing the PC to its knees with disk thrashing. To prevent that, use ulimit, e.g. with 4gb RAM:
I've put that in my root's ~/.bashrc, to make the compilation fail instead of pinching all RAM.
Edit: Gentoo's isl is out-of-date - latest isl is 0.12, which presumably needs gcc compiled with --disable-isl-version-check, since gcc 4.8-20130711's configure only looks for isl 0.10 & 0.11 |
|
Back to top |
|
|
ZeuZ_NG Guru
Joined: 10 Sep 2008 Posts: 453 Location: Near /dev/urandom | /dev/null
|
Posted: Sat Aug 03, 2013 4:41 pm Post subject: |
|
|
Is there any update on wheter some of the listed applications are now able to start?
I'm going to try both LTO and Graphite but since it's in a low powered device I would like to save some time.
PS: Thanks for the information! _________________ | Intel Core i7 920. | Intel DX58SO Extreme. |
| 8gb DDR3 1666mHz | 1TB 7200 RPM WD HDD.|
Unix´s guru view of sex:
unzip ; strip ; touch ; grep ; finger ; \
mount ; fsck ; more ; yes ; umount ; sleep. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
ZeuZ_NG Guru
Joined: 10 Sep 2008 Posts: 453 Location: Near /dev/urandom | /dev/null
|
Posted: Sat Aug 03, 2013 8:20 pm Post subject: |
|
|
Too much problems with LTO for no discernible benefit?
I'm using 4.8.1 so I'm on the edge of breaking guess I shouldn't push it _________________ | Intel Core i7 920. | Intel DX58SO Extreme. |
| 8gb DDR3 1666mHz | 1TB 7200 RPM WD HDD.|
Unix´s guru view of sex:
unzip ; strip ; touch ; grep ; finger ; \
mount ; fsck ; more ; yes ; umount ; sleep. |
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Sat Aug 03, 2013 8:50 pm Post subject: |
|
|
Jaglover wrote: | I've used Code: | -floop-interchange -floop-strip-mine -floop-block | for long time, everything builds. |
The problem with these are not built failures but runtime failures. Since 4.8.0, I disabled graphite since it has broken too many things (accidental crashes, strange behavior etc. pp); in earlier versions of gcc there were only occasional build failures with graphite but since 4.8.0 it has become practically unusable (at least world-wide).
In contrast with lto: I do not remember any package which built with LTO but produced runtime failures. Of course, many packages won't build with LTO. |
|
Back to top |
|
|
ZeuZ_NG Guru
Joined: 10 Sep 2008 Posts: 453 Location: Near /dev/urandom | /dev/null
|
Posted: Sat Aug 03, 2013 9:13 pm Post subject: |
|
|
I'm currently doing a world rebuild so will report back as soon as possible, although this is a newly built system and to be fairly honest I don't have much besides fluxbox and the Xorgserver plus the intel driver..
Perhaps a browser is a good measure? or too risky? _________________ | Intel Core i7 920. | Intel DX58SO Extreme. |
| 8gb DDR3 1666mHz | 1TB 7200 RPM WD HDD.|
Unix´s guru view of sex:
unzip ; strip ; touch ; grep ; finger ; \
mount ; fsck ; more ; yes ; umount ; sleep. |
|
Back to top |
|
|
saellaven l33t
Joined: 23 Jul 2006 Posts: 646
|
Posted: Sat Aug 03, 2013 9:56 pm Post subject: |
|
|
in addition to your list, let me add two more
dev-db/mariadb no-graphite.conf # breaks libreoffice compile
dev-lang/v8 no-graphite.conf # won't build _________________ Ryzen 3700X, Asus Prime X570-Pro, 64 GB DDR4 3200, GeForce GTX 1660 Super
openrc-0.17, ~vanilla-sources, ~nvidia-drivers, ~gcc |
|
Back to top |
|
|
ZeuZ_NG Guru
Joined: 10 Sep 2008 Posts: 453 Location: Near /dev/urandom | /dev/null
|
Posted: Sun Aug 04, 2013 12:22 am Post subject: |
|
|
saellaven wrote: | in addition to your list, let me add two more
dev-db/mariadb no-graphite.conf # breaks libreoffice compile
dev-lang/v8 no-graphite.conf # won't build |
How recently have you tried this? and with what version of gcc compiler suite? _________________ | Intel Core i7 920. | Intel DX58SO Extreme. |
| 8gb DDR3 1666mHz | 1TB 7200 RPM WD HDD.|
Unix´s guru view of sex:
unzip ; strip ; touch ; grep ; finger ; \
mount ; fsck ; more ; yes ; umount ; sleep. |
|
Back to top |
|
|
ZeuZ_NG Guru
Joined: 10 Sep 2008 Posts: 453 Location: Near /dev/urandom | /dev/null
|
Posted: Sun Aug 04, 2013 12:36 am Post subject: Re: gcc-4.8.1 + graphite flags |
|
|
Rion wrote: |
my flags:
Code: | CFLAGS="-march=corei7-avx -O2 -pipe -ftree-vectorize -fgraphite-identity -maes -floop-parallelize-all -floop-interchange -floop-block -fira-loop-pressure"
|
and w/o graphite:
Code: | CFLAGS="-march=corei7-avx -O2 -pipe -maes" |
|
Why not march=native? _________________ | Intel Core i7 920. | Intel DX58SO Extreme. |
| 8gb DDR3 1666mHz | 1TB 7200 RPM WD HDD.|
Unix´s guru view of sex:
unzip ; strip ; touch ; grep ; finger ; \
mount ; fsck ; more ; yes ; umount ; sleep. |
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Sun Aug 04, 2013 6:16 am Post subject: Re: gcc-4.8.1 + graphite flags |
|
|
Rion wrote: | sys-devel/gcc no-graphite.conf # looks like causes some apps to crash (qtcreator for example). have to make more tests. |
Ah, I see: I had compiled gcc-4.8.{0,1}* with graphite, of course. Maybe this is the reason for my many problems with graphite. On the other hand, it would be a strange accident that using gcc compiled with graphite just has problems for compiling with graphite. But who knows: Maybe the cause is that something in graphite is not reentrant or thread-safe and using graphite with a graphite-compiled gcc just forces such a behavior? |
|
Back to top |
|
|
ZeuZ_NG Guru
Joined: 10 Sep 2008 Posts: 453 Location: Near /dev/urandom | /dev/null
|
Posted: Sun Aug 04, 2013 2:06 pm Post subject: Re: gcc-4.8.1 + graphite flags |
|
|
mv wrote: | Rion wrote: | sys-devel/gcc no-graphite.conf # looks like causes some apps to crash (qtcreator for example). have to make more tests. |
Ah, I see: I had compiled gcc-4.8.{0,1}* with graphite, of course. Maybe this is the reason for my many problems with graphite. On the other hand, it would be a strange accident that using gcc compiled with graphite just has problems for compiling with graphite. But who knows: Maybe the cause is that something in graphite is not reentrant or thread-safe and using graphite with a graphite-compiled gcc just forces such a behavior? |
I've had no problem in a first shot building it with -floop-interchange -floop-strip-mine -floop-block although I've been reading:
https://wiki.gentoo.org/wiki/CFLAGS (the graphite/lto/openmp section) and http://software.intel.com/en-us/blogs/2012/09/26/gcc-x86-performance-hints _________________ | Intel Core i7 920. | Intel DX58SO Extreme. |
| 8gb DDR3 1666mHz | 1TB 7200 RPM WD HDD.|
Unix´s guru view of sex:
unzip ; strip ; touch ; grep ; finger ; \
mount ; fsck ; more ; yes ; umount ; sleep. |
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Sun Aug 04, 2013 2:10 pm Post subject: Re: gcc-4.8.1 + graphite flags |
|
|
ZeuZ_NG wrote: | I've had no problem in a first shot building it |
As I said, the problem is not building it but too many runtime failures: The behaviour of vim (saving broken data after editing which obviously also other have experienced) is a typical example; since avoiding graphite solves these issues, it seems that this is not a bug of vim but actually of gcc w/graphite. |
|
Back to top |
|
|
saellaven l33t
Joined: 23 Jul 2006 Posts: 646
|
Posted: Sun Aug 04, 2013 2:28 pm Post subject: |
|
|
ZeuZ_NG wrote: | saellaven wrote: | in addition to your list, let me add two more
dev-db/mariadb no-graphite.conf # breaks libreoffice compile
dev-lang/v8 no-graphite.conf # won't build |
How recently have you tried this? and with what version of gcc compiler suite? |
gcc version 4.8.1 (Gentoo 4.8.1 p1.0, pie-0.5.6)
Sun Jun 30 02:02:03 2013 >>> dev-db/mariadb-5.5.31
Fri Aug 2 10:49:13 2013 >>> dev-lang/v8-3.18.5.14
there was a configure error in libreoffice-4.1.0.1 involving mis-parsing flags from mariadb that was only resolved by compiling mariadb without the graphite flags
v8 threw a compile error with the graphite flags _________________ Ryzen 3700X, Asus Prime X570-Pro, 64 GB DDR4 3200, GeForce GTX 1660 Super
openrc-0.17, ~vanilla-sources, ~nvidia-drivers, ~gcc |
|
Back to top |
|
|
ZeuZ_NG Guru
Joined: 10 Sep 2008 Posts: 453 Location: Near /dev/urandom | /dev/null
|
Posted: Sun Aug 04, 2013 2:36 pm Post subject: |
|
|
saellaven wrote: | ZeuZ_NG wrote: | saellaven wrote: | in addition to your list, let me add two more
dev-db/mariadb no-graphite.conf # breaks libreoffice compile
dev-lang/v8 no-graphite.conf # won't build |
How recently have you tried this? and with what version of gcc compiler suite? |
gcc version 4.8.1 (Gentoo 4.8.1 p1.0, pie-0.5.6)
Sun Jun 30 02:02:03 2013 >>> dev-db/mariadb-5.5.31
Fri Aug 2 10:49:13 2013 >>> dev-lang/v8-3.18.5.14
there was a configure error in libreoffice-4.1.0.1 involving mis-parsing flags from mariadb that was only resolved by compiling mariadb without the graphite flags
v8 threw a compile error with the graphite flags |
Looks like I'll have to end up rebuilding a system from scratch then hehe.. _________________ | Intel Core i7 920. | Intel DX58SO Extreme. |
| 8gb DDR3 1666mHz | 1TB 7200 RPM WD HDD.|
Unix´s guru view of sex:
unzip ; strip ; touch ; grep ; finger ; \
mount ; fsck ; more ; yes ; umount ; sleep. |
|
Back to top |
|
|
ZeuZ_NG Guru
Joined: 10 Sep 2008 Posts: 453 Location: Near /dev/urandom | /dev/null
|
Posted: Mon Aug 05, 2013 1:19 am Post subject: |
|
|
Ok, so following my experience so far I can say that Code: | -floop-interchange -floop-strip-mine -floop-block |
Seems to have negatively impacted performance.. _________________ | Intel Core i7 920. | Intel DX58SO Extreme. |
| 8gb DDR3 1666mHz | 1TB 7200 RPM WD HDD.|
Unix´s guru view of sex:
unzip ; strip ; touch ; grep ; finger ; \
mount ; fsck ; more ; yes ; umount ; sleep. |
|
Back to top |
|
|
Rion Guru
Joined: 12 Oct 2006 Posts: 383 Location: Minsk, Belarus
|
Posted: Mon Aug 05, 2013 2:37 am Post subject: Re: gcc-4.8.1 + graphite flags |
|
|
ZeuZ_NG wrote: |
Why not march=native? | distcc _________________ rion-overlay |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Mon Aug 05, 2013 11:20 pm Post subject: |
|
|
ZeuZ_NG wrote: | Ok, so following my experience so far I can say that Code: | -floop-interchange -floop-strip-mine -floop-block |
Seems to have negatively impacted performance.. |
Interesting. How did you measure that? Is this about build time or running performance? _________________ My Gentoo installation notes.
Please learn how to denote units correctly! |
|
Back to top |
|
|
Rion Guru
Joined: 12 Oct 2006 Posts: 383 Location: Minsk, Belarus
|
Posted: Tue Aug 06, 2013 6:41 am Post subject: |
|
|
Jaglover wrote: | ZeuZ_NG wrote: | Ok, so following my experience so far I can say that Code: | -floop-interchange -floop-strip-mine -floop-block |
Seems to have negatively impacted performance.. |
Interesting. How did you measure that? Is this about build time or running performance? | btw I have noticed something similar with my flags too. _________________ rion-overlay |
|
Back to top |
|
|
ZeuZ_NG Guru
Joined: 10 Sep 2008 Posts: 453 Location: Near /dev/urandom | /dev/null
|
Posted: Wed Aug 07, 2013 12:31 pm Post subject: |
|
|
Jaglover wrote: | ZeuZ_NG wrote: | Ok, so following my experience so far I can say that Code: | -floop-interchange -floop-strip-mine -floop-block |
Seems to have negatively impacted performance.. |
Interesting. How did you measure that? Is this about build time or running performance? |
I've run some bc calculations with time before and after, it's not a good meassure but it overall feels slower.. _________________ | Intel Core i7 920. | Intel DX58SO Extreme. |
| 8gb DDR3 1666mHz | 1TB 7200 RPM WD HDD.|
Unix´s guru view of sex:
unzip ; strip ; touch ; grep ; finger ; \
mount ; fsck ; more ; yes ; umount ; sleep. |
|
Back to top |
|
|
Rion Guru
Joined: 12 Oct 2006 Posts: 383 Location: Minsk, Belarus
|
Posted: Sun Nov 10, 2013 4:49 pm Post subject: |
|
|
probably I'll recompile the world with gcc-4.8.2 and w/o graphite.
just added one yet package to the list above.. _________________ rion-overlay |
|
Back to top |
|
|
|