Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc-4.8.1 + graphite flags
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Rion
Guru
Guru


Joined: 12 Oct 2006
Posts: 364
Location: Ekaterinburg, Russia

PostPosted: Tue Jul 16, 2013 4:10 am    Post subject: gcc-4.8.1 + graphite flags Reply with quote

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.
_________________
~amd64
rion-overlay


Last edited by Rion on Sun Nov 10, 2013 4:43 pm; edited 16 times in total
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


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

PostPosted: Wed Jul 17, 2013 2:40 pm    Post subject: Reply with quote

thanks for sharing :)
_________________
Unofficial minimal livecd x86/amd64 w/reiser4+truecrypt (by Neo2)
2.6.37.2_plus_v1: BFS, CFS,THP,compaction, zcache or TOI
Hardcore Linux user since 2004 :D
Back to top
View user's profile Send private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1952
Location: Poland

PostPosted: Mon Jul 22, 2013 4:26 am    Post subject: Reply with quote

And thanks from me :)
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Mon Jul 22, 2013 2:52 pm    Post subject: Reply with quote

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:
Code:
ulimit -v 1200000

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
View user's profile Send private message
ZeuZ_NG
Guru
Guru


Joined: 10 Sep 2008
Posts: 396
Location: Near /dev/urandom | /dev/null

PostPosted: Sat Aug 03, 2013 4:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 4560
Location: Saint Amant, Acadiana

PostPosted: Sat Aug 03, 2013 6:10 pm    Post subject: Reply with quote

I've used
Code:
-floop-interchange -floop-strip-mine -floop-block
for long time, everything builds. I tried LTO for some time and wasn't convinced it's worth the trouble. No LTO for now. Using 4.7.3.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
ZeuZ_NG
Guru
Guru


Joined: 10 Sep 2008
Posts: 396
Location: Near /dev/urandom | /dev/null

PostPosted: Sat Aug 03, 2013 8:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
mv
Advocate
Advocate


Joined: 20 Apr 2005
Posts: 3784

PostPosted: Sat Aug 03, 2013 8:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
ZeuZ_NG
Guru
Guru


Joined: 10 Sep 2008
Posts: 396
Location: Near /dev/urandom | /dev/null

PostPosted: Sat Aug 03, 2013 9:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
saellaven
Apprentice
Apprentice


Joined: 23 Jul 2006
Posts: 209

PostPosted: Sat Aug 03, 2013 9:56 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
ZeuZ_NG
Guru
Guru


Joined: 10 Sep 2008
Posts: 396
Location: Near /dev/urandom | /dev/null

PostPosted: Sun Aug 04, 2013 12:22 am    Post subject: Reply with quote

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
View user's profile Send private message
ZeuZ_NG
Guru
Guru


Joined: 10 Sep 2008
Posts: 396
Location: Near /dev/urandom | /dev/null

PostPosted: Sun Aug 04, 2013 12:36 am    Post subject: Re: gcc-4.8.1 + graphite flags Reply with quote

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
View user's profile Send private message
mv
Advocate
Advocate


Joined: 20 Apr 2005
Posts: 3784

PostPosted: Sun Aug 04, 2013 6:16 am    Post subject: Re: gcc-4.8.1 + graphite flags Reply with quote

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
View user's profile Send private message
ZeuZ_NG
Guru
Guru


Joined: 10 Sep 2008
Posts: 396
Location: Near /dev/urandom | /dev/null

PostPosted: Sun Aug 04, 2013 2:06 pm    Post subject: Re: gcc-4.8.1 + graphite flags Reply with quote

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
View user's profile Send private message
mv
Advocate
Advocate


Joined: 20 Apr 2005
Posts: 3784

PostPosted: Sun Aug 04, 2013 2:10 pm    Post subject: Re: gcc-4.8.1 + graphite flags Reply with quote

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
View user's profile Send private message
saellaven
Apprentice
Apprentice


Joined: 23 Jul 2006
Posts: 209

PostPosted: Sun Aug 04, 2013 2:28 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
ZeuZ_NG
Guru
Guru


Joined: 10 Sep 2008
Posts: 396
Location: Near /dev/urandom | /dev/null

PostPosted: Sun Aug 04, 2013 2:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
ZeuZ_NG
Guru
Guru


Joined: 10 Sep 2008
Posts: 396
Location: Near /dev/urandom | /dev/null

PostPosted: Mon Aug 05, 2013 1:19 am    Post subject: Reply with quote

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
View user's profile Send private message
Rion
Guru
Guru


Joined: 12 Oct 2006
Posts: 364
Location: Ekaterinburg, Russia

PostPosted: Mon Aug 05, 2013 2:37 am    Post subject: Re: gcc-4.8.1 + graphite flags Reply with quote

ZeuZ_NG wrote:

Why not march=native?
distcc
_________________
~amd64
rion-overlay
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 4560
Location: Saint Amant, Acadiana

PostPosted: Mon Aug 05, 2013 11:20 pm    Post subject: Reply with quote

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?
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Rion
Guru
Guru


Joined: 12 Oct 2006
Posts: 364
Location: Ekaterinburg, Russia

PostPosted: Tue Aug 06, 2013 6:41 am    Post subject: Reply with quote

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.
_________________
~amd64
rion-overlay
Back to top
View user's profile Send private message
ZeuZ_NG
Guru
Guru


Joined: 10 Sep 2008
Posts: 396
Location: Near /dev/urandom | /dev/null

PostPosted: Wed Aug 07, 2013 12:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
Rion
Guru
Guru


Joined: 12 Oct 2006
Posts: 364
Location: Ekaterinburg, Russia

PostPosted: Sun Nov 10, 2013 4:49 pm    Post subject: Reply with quote

probably I'll recompile the world with gcc-4.8.2 and w/o graphite.
just added one yet package to the list above..
_________________
~amd64
rion-overlay
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
Page 1 of 1

 
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