Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GCC 4.5 testing
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6 ... 13, 14, 15  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Colt45
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2007
Posts: 102
Location: Central Washington

PostPosted: Fri Apr 30, 2010 2:44 pm    Post subject: Reply with quote

PuckPoltergeist wrote:
Colt45 wrote:
perl-5.10.1 fails with
Code:

{standard input}: Assembler messages:
{standard input}:5542: Error: no such instruction: `movbe 260(%esp),%eax'
{standard input}:6535: Error: no such instruction: `movbe 280(%esp),%eax'

This is on a Atom N280 with -march=native. Fixed with -mno-movbe in CFLAGS.

binutils is failing the same way. For some reason it feels the need to strip my -mno-movbe out of CFLAGS. Any ideas how to force it to take that CFLAG?


That's a little strange. What version of binutils do you use? From the changelog, you need at least 2.18.50.0.7 to support movbe instruction.

AhHa Thats probably the problem. Ill compile binutils with my old gcc first.

That fixed it. The problem was I changed to ~ when I installed gcc 4.5 so I was still running stable everything.
_________________
"Hopps" - AMD Athlon X2 4450B, 4GB, 128GB Samsung SSD, (Gentoo Hardened amd64; gcc-4.9.3; 4.4.8-hardened-r1)
"Dash" - 2x Intel Xeon 5148, 12GB FB-DIMM, 3x Samsung 1TB (mdadm RAID 5), AMD HD6950, (Gentoo amd64-multilib; gcc-5.3.0; 4.4.0-pf4)
Back to top
View user's profile Send private message
Colt45
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2007
Posts: 102
Location: Central Washington

PostPosted: Fri Apr 30, 2010 10:40 pm    Post subject: Reply with quote

Problem discovered. With -march=atom gcc-4.5.0 fails during bootstrap comparison between stage 2 and 3 when compiling with gcc-4.5.0.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43921
I am testing the patch listed at http://gcc.gnu.org/viewcvs?view=revision&revision=158900
Patch fixes the issue.
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Sat May 01, 2010 6:50 am    Post subject: Reply with quote

Colt45 wrote:
Problem discovered. With -march=atom gcc-4.5.0 fails during bootstrap comparison between stage 2 and 3 when compiling with gcc-4.5.0.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43921
I am testing the patch listed at http://gcc.gnu.org/viewcvs?view=revision&revision=158900
Patch fixes the issue.


thanks for the info, i have the same problem.

cheers
_________________
Error: Failing not supported by current locale
Back to top
View user's profile Send private message
pdfan
n00b
n00b


Joined: 03 May 2010
Posts: 6

PostPosted: Tue May 04, 2010 5:04 am    Post subject: gcc 4.5 upgrade result Reply with quote

1. system upgrade: total 451 packages, 2 package failed and 2 need patched

# paludis -i system --dl-reinstall always

failed: media-gfx/sam2p
https://bugs.gentoo.org/315619

failed: dev-tex/chktex

OK troubled: gcc-4.5.0
gcc-4.5.0 itself has a "print" command problem:
https://bugs.gentoo.org/show_bug.cgi?id=318081

OK need patched: media-gfx/graphviz
has a media-libs/lasi problem:
https://bugs.gentoo.org/show_bug.cgi?id=312799

2. world upgrade: total 1140 packages, 2 failed, 3 need patched

# paludis -i world --dl-reinstall always

failed: media-gfx/sam2p
https://bugs.gentoo.org/315619

failed: app-office/openoffice

OK: dev-tex/chktex

OK troubled: gcc-4.5.0
gcc-4.5.0 itself has a "print" command problem:
https://bugs.gentoo.org/show_bug.cgi?id=318081

OK need patched: media-gfx/graphviz
has a media-libs/lasi problem:
https://bugs.gentoo.org/show_bug.cgi?id=312799

OK? (some one doubted the patch) need patched: dev-db/mysql-5.1.46 :
http://bugs.mysql.com/file.php?id=14421
http://bugs.mysql.com/bug.php?id=52514

OK need patched: dev-scheme/guile-1.8.7
https://bugs.gentoo.org/show_bug.cgi?id=317175

3. reboot:

failed: cpufreqd buffer overflow and fail to start at boot
https://bugs.gentoo.org/show_bug.cgi?id=318287

failed: media-gfx/sam2p
https://bugs.gentoo.org/315619

OK need patched, and use emerge instead of paludis: app-office/openoffice
https://bugs.gentoo.org/show_bug.cgi?id=317207


4 summary:

failed: cpufreqd buffer overflow and fail to start at boot
https://bugs.gentoo.org/show_bug.cgi?id=318287

failed: media-gfx/sam2p
https://bugs.gentoo.org/315619

it takes 4 days to finish the work.

gentoo shm # emerge --info
Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.5.0, glibc-2.11.1-r0,
2.6.33-ccs-r2 x86_64)
=================================================================
System uname:
Linux-2.6.33-ccs-r2-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9300_@_2.50GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 03 May 2010 23:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash: 4.1_p5
dev-java/java-config: 2.1.11
dev-lang/python: 2.6.5-r99, 3.1.2-r3
dev-util/ccache: 2.4-r8
dev-util/cmake: 2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc: 0.6.1-r1
sys-apps/sandbox: 2.2
sys-devel/autoconf: 2.13, 2.65
sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils: 2.20.1
sys-devel/gcc: 4.5.0
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6b
virtual/os-headers: 2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=core2 -march=core2 -O2 -msse4.1 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/
/etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release
/etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/
/etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo
/etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d
/etc/texmf/web2c"
CXXFLAGS="-mtune=core2 -march=core2 -O2 -msse4.1 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache collision-protect distlocks fixpackages news
parallel-fetch protect-owned sandbox sfperms strict unmerge-logs
unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.osuosl.org/pub/gentoo/distfiles/ "
LANG="zh_CN.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="zh_CN en_US zh en"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --stats --timeout=180 --exclude=/distfiles
--exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman/x11 /var/lib/layman/vmware
/var/lib/layman/gentoo-china /var/lib/layman/gentoo-taiwan
/var/lib/layman/sunrise /var/lib/layman/gnome /var/lib/layman/kvm
/var/lib/layman/sage-on-gentoo /var/lib/layman/suka /var/lib/layman/wolf31o2
/var/lib/layman/openoffice-geki"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility acl acpi alsa amd64 ao apache2 bash-completion
berkdb branding bzip2 cairo caps cdr cjk cli consolekit cracklib crypt cups cxx
dbus djvu doc dri dts dvd dvdr eds emboss encode esd evo examples exif fam
ffmpeg firefox flac fortran gdbm gdu gif gimp gnome gnome-keyring gphoto2 gpm
gstreamer gtk guile i18n iconv icu jadetex java jpeg jpeg2k latex lcms ldap
libnotify mad midi mikmod mmap mmx mng modules mp3 mp4 mpeg mudflap multilib
mysql nas nautilus ncurses networkmanager nfs nls nntp nptl nptlonly nsplugin
nvidia ogg opengl openmp pam pango pch pcre pda pdf perl png policykit ppds
pppd python qt3support qt4 readline reflection samba scsi sdl session smp snmp
spell spl sqlite sse sse2 ssl ssse3 startup-notification suid svg sysfs tcpd
threads tiff tk truetype unicode usb v4l2 vim-syntax vorbis x264 xattr xcb xml
xmp xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="ens1370 hda-intel"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file
hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug
rate route share shm softvol" APACHE2_MODULES="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
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" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses
text" LINGUAS="zh_CN en_US zh en" QEMU_SOFTMMU_TARGETS="x86_64"
QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU"
VIDEO_CARDS="vmwgfx vmwlegacy nouveau nvidia nv vmware vesa svga"
XTABLES_ADDONS="cui gfw zhang ipset"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

gentoo shm # emerge -pv cpufreqd

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ] sys-power/cpufreqd-2.3.4-r2 USE="acpi lm_sensors nvidia -apm
-nforce2 -pmu" 0 kB [?=>0]

Total: 1 package (1 reinstall), Size of downloads: 0 kB
Portage tree and overlays:
[0] /usr/portage
[?] indicates that the source repository could not be determined
gentoo shm # emerge -pv gcc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ] sys-devel/gcc-4.5.0 USE="doc fortran gcj graphite gtk lto
mudflap (multilib) multislot nls nptl objc objc++ objc-gc openmp (-altivec)
-bootstrap -build (-fixed-point) (-hardened) (-libffi) (-n32) (-n64) -nocxx
-test -vanilla" 0 kB [?=>0]

Total: 1 package (1 reinstall), Size of downloads: 0 kB
Portage tree and overlays:
[0] /usr/portage
[?] indicates that the source repository could not be determined
gentoo shm # LANG=en_US.utf8 gcc -v
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.0/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.5.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/paludis/sys-devel-gcc-4.5.0/work/gcc-4.5.0/configure
--prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.0
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.0/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.0
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.0/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.0/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.0/include/g++-v4
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec
--disable-fixed-point --with-ppl --with-cloog --enable-lto --enable-nls
--without-included-gettext --with-system-zlib --disable-checking
--disable-werror --enable-secureplt --enable-multilib --enable-libmudflap
--disable-libssp --enable-libgomp --enable-cld
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.5.0/python
--enable-java-awt=gtk --enable-objc-gc
--enable-languages=c,c++,java,objc,obj-c++,fortran --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.5.0 p1.0'
Thread model: posix
gcc version 4.5.0 (Gentoo 4.5.0 p1.0)
gentoo shm #
Back to top
View user's profile Send private message
boerKrelis
Apprentice
Apprentice


Joined: 01 Jul 2003
Posts: 241
Location: The Netherlands

PostPosted: Sun May 09, 2010 4:43 pm    Post subject: Reply with quote

Note to others: If I compile tar with gcc-4.5, the resulting tar buffer overflows when creating archives.
That's with CHOST="i686-pc-linux-gnu" CFLAGS="-O2 -march=atom -fomit-frame-pointer -pipe".
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


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

PostPosted: Sun May 09, 2010 5:08 pm    Post subject: Reply with quote

boerKrelis wrote:
Note to others: If I compile tar with gcc-4.5, the resulting tar buffer overflows when creating archives.
That's with CHOST="i686-pc-linux-gnu" CFLAGS="-O2 -march=atom -fomit-frame-pointer -pipe".


IMO that's not really due to gcc 4.5 but due to its (still) buggy implementation of the march=atom optimizations

it works fine here with -march=core2 -mtune=core2

talking about buffer overflows

you could try adding the following to your CFLAGS and CXXFLAGS (which is enabled in the hardened toolchain by default which I'm using):

-fno-strict-overflow
_________________
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
boerKrelis
Apprentice
Apprentice


Joined: 01 Jul 2003
Posts: 241
Location: The Netherlands

PostPosted: Sun May 09, 2010 6:19 pm    Post subject: Reply with quote

I've tried -march=core2 -mtune=generic already, to no avail. -fno-strict-overflow does not help either:
Code:

*** buffer overflow detected ***: tar terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x50)[0x42e9e360]
/lib/libc.so.6[0x42e9c31a]
/lib/libc.so.6(__strcpy_chk+0x3f)[0x42e9b66f]
tar[0x80514f2]


But I'm fine compiling tar with gcc-4.3 ;-)
Back to top
View user's profile Send private message
rhill
Retired Dev
Retired Dev


Joined: 22 Oct 2004
Posts: 1629
Location: sk.ca

PostPosted: Mon May 10, 2010 1:16 am    Post subject: Reply with quote

that was fixed a while ago.

https://bugs.gentoo.org/317139
_________________
by design, by neglect
for a fact or just for effect
Back to top
View user's profile Send private message
rhill
Retired Dev
Retired Dev


Joined: 22 Oct 2004
Posts: 1629
Location: sk.ca

PostPosted: Mon May 10, 2010 1:32 am    Post subject: Reply with quote

kernelOfTruth wrote:
Ormaaj wrote:
kernelOfTruth wrote:
2nd note / annoyance:

why are packages depending on the previous version of libstdc++.so.6 when building it with the new gcc version ? what to do about it ?

e.g.

Quote:
Generating ../Docs/cmake-gui.txt
Generating ../Docs/cmake.txt
Generating ../Docs/ctest.txt
Generating ../Docs/ccmake.txt
../bin/ctest: /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by ../bin/ctest)
../bin/ccmake: /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by ../bin/ccmake)
../bin/cmake-gui: /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by ../bin/cmake-gui)
make[2]: *** [Docs/ctest.txt] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [Docs/ccmake.txt] Error 1
../bin/cpack: /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by ../bin/cpack)
make[2]: *** [Docs/cmake-gui.txt] Error 1
make[2]: *** [Docs/cpack.txt] Error 1
../bin/cmake: /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by ../bin/cmake)
make[2]: *** [Docs/cmake.txt] Error 1
make[1]: *** [Utilities/CMakeFiles/documentation.dir/all] Error 2
make: *** [all] Error 2
* ERROR: dev-util/cmake-2.8.1-r1 failed:
I'm running in to this when switching back to the old compiler. The usual revdep-rebuild, fix_libtool_files etc isn't doing the trick this time around.


add this to your bashrc:

Code:
export LD_LIBRARY_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.0/


seems like something's not set up correctly :(


I'm guessing you forgot to run env-update && source /etc/profile.
_________________
by design, by neglect
for a fact or just for effect
Back to top
View user's profile Send private message
rhill
Retired Dev
Retired Dev


Joined: 22 Oct 2004
Posts: 1629
Location: sk.ca

PostPosted: Mon May 10, 2010 1:34 am    Post subject: Reply with quote

kernelOfTruth wrote:
ComaWhite wrote:
atom for i7? O_O That's weird, to use Atom especially for an Xeon (mine is just the server version of the i7). I use -march=native anyways ;)


yeah, I was wondering too

I better switch from =march-native to explicit -march=core2 (and other explicit stuff) before anything bad happens: 8O


https://bugs.gentoo.org/317513
_________________
by design, by neglect
for a fact or just for effect
Back to top
View user's profile Send private message
boerKrelis
Apprentice
Apprentice


Joined: 01 Jul 2003
Posts: 241
Location: The Netherlands

PostPosted: Mon May 10, 2010 7:23 am    Post subject: Reply with quote

dirtyepic wrote:
that was fixed a while ago.

https://bugs.gentoo.org/317139

thanks, I thought I had the latest ~ tar, but didn't. The patch is in tar-1.22-r1.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


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

PostPosted: Mon May 10, 2010 9:54 am    Post subject: Reply with quote

dirtyepic wrote:
kernelOfTruth wrote:
ComaWhite wrote:
atom for i7? O_O That's weird, to use Atom especially for an Xeon (mine is just the server version of the i7). I use -march=native anyways ;)


yeah, I was wondering too

I better switch from =march-native to explicit -march=core2 (and other explicit stuff) before anything bad happens: 8O


https://bugs.gentoo.org/317513


thanks dirtyepic ! :)
_________________
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
spielc
Guru
Guru


Joined: 20 Apr 2004
Posts: 452

PostPosted: Mon May 10, 2010 8:51 pm    Post subject: Reply with quote

I just thought i'd share my success story... I was able to compile almost everything with gcc-4.5 successfully. I have to admit that i definitely had "harder" times when i upgraded gcc before (especially my first major version upgrade from gcc-3.x to 4.0 was somewhat adventurous)

In case somebody is intrested my current C(XX)FLAGS are:

Code:

CFLAGS="-march=native -O2 -pipe -msse3 -fomit-frame-pointer -mno-align-stringops -minline-stringops-dynamically -fno-ident -freorder-blocks-and-partition -finline-limit=700 -ftree-vectorize -floop-interchange -floop-strip-mine -floop-block -mstackrealign"


I added -mstackrealign because of the problems mozilla-programs seem to have with -ftree-vectorize (see one of the earlier post in this thread)
_________________
Raise your beers up high...
Back to top
View user's profile Send private message
ComaWhite
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2008
Posts: 125

PostPosted: Mon May 10, 2010 9:37 pm    Post subject: Reply with quote

what about normal flags like -march=native -O2 -pipe? Will I run in to any issues?
Back to top
View user's profile Send private message
Uzytkownik
Guru
Guru


Joined: 31 Oct 2004
Posts: 399
Location: Bay Area, US

PostPosted: Mon May 10, 2010 11:01 pm    Post subject: Reply with quote

ComaWhite wrote:
what about normal flags like -march=native -O2 -pipe? Will I run in to any issues?


Depends on your @world. However I run with -O2 into app-editor/emacs problem (fixed). There are still few opened bugs - so the answer is 'maybe'.
_________________
I've probably left my head... somwhere. Please wait untill I find it.
Back to top
View user's profile Send private message
rhill
Retired Dev
Retired Dev


Joined: 22 Oct 2004
Posts: 1629
Location: sk.ca

PostPosted: Tue May 11, 2010 1:22 am    Post subject: Reply with quote

spielc wrote:
I just thought i'd share my success story... I was able to compile almost everything with gcc-4.5 successfully. I have to admit that i definitely had "harder" times when i upgraded gcc before (especially my first major version upgrade from gcc-3.x to 4.0 was somewhat adventurous)

In case somebody is intrested my current C(XX)FLAGS are:

Code:

CFLAGS="-march=native -O2 -pipe -msse3 -fomit-frame-pointer -mno-align-stringops -minline-stringops-dynamically -fno-ident -freorder-blocks-and-partition -finline-limit=700 -ftree-vectorize -floop-interchange -floop-strip-mine -floop-block -mstackrealign"


I added -mstackrealign because of the problems mozilla-programs seem to have with -ftree-vectorize (see one of the earlier post in this thread)


If you ever file a bug report i will hunt you down. :P

ComaWhite wrote:
what about normal flags like -march=native -O2 -pipe? Will I run in to any issues?


You i like. If you're running a Core i3/i5/i7 then -march=native might try to default to -march=atom. This is a bug that we just got fixed upstream. You can tell what -march=native does by doing the following:

Code:
$ touch test.c
$ gcc -march=native -fverbose-asm -S test.c
$ cat test.s
        .file   "test.c"
# GNU C (Gentoo 4.5.0 p1.0) version 4.5.0 (x86_64-unknown-linux-gnu)
#       compiled by GNU C version 4.5.0, GMP version 4.3.2, MPFR version 2.4.2-p3, MPC version 0.8.1
# GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
# options passed:  test.c -D_FORTIFY_SOURCE=2 -march=core2 -mcx16 -msahf
# -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param
# l2-cache-size=6144 -mtune=core2 -fverbose-asm
# options enabled:  -falign-loops -fargument-alias
# -fasynchronous-unwind-tables -fauto-inc-dec -fbranch-count-reg -fcommon
# -fdelete-null-pointer-checks -fdwarf2-cfi-asm -fearly-inlining
# -feliminate-unused-debug-types -ffunction-cse -fgcse-lm -fident
# -finline-functions-called-once -fira-share-save-slots
# -fira-share-spill-slots -fivopts -fkeep-static-consts
# -fleading-underscore -fmath-errno -fmerge-debug-strings
# -fmove-loop-invariants -fpeephole -freg-struct-return
# -fsched-critical-path-heuristic -fsched-dep-count-heuristic
# -fsched-group-heuristic -fsched-interblock -fsched-last-insn-heuristic
# -fsched-rank-heuristic -fsched-spec -fsched-spec-insn-heuristic
# -fsched-stalled-insns-dep -fshow-column -fsigned-zeros
# -fsplit-ivs-in-unroller -ftrapping-math -ftree-cselim -ftree-forwprop
# -ftree-loop-im -ftree-loop-ivcanon -ftree-loop-optimize
# -ftree-parallelize-loops= -ftree-phiprop -ftree-pta -ftree-reassoc
# -ftree-scev-cprop -ftree-slp-vectorize -ftree-vect-loop-version
# -funit-at-a-time -funwind-tables -fvect-cost-model -fverbose-asm
# -fzero-initialized-in-bss -m128bit-long-double -m64 -m80387
# -maccumulate-outgoing-args -malign-stringops -mcx16 -mfancy-math-387
# -mfp-ret-in-387 -mfused-madd -mglibc -mieee-fp -mmmx -mpush-args
# -mred-zone -msahf -msse -msse2 -msse3 -msse4.1 -mssse3
# -mtls-direct-seg-refs

# Compiler executable checksum: ef2fcdaa4781759995f71d3faefeab48

        .ident  "GCC: (Gentoo 4.5.0 p1.0) 4.5.0"
        .section        .note.GNU-stack,"",@progbits


If it says -march=atom and you don't have an Atom CPU then use -march=core2 until we roll a new patchset. Otherwise, you should be fine. https://bugs.gentoo.org/showdependencytree.cgi?id=296658&hide_resolved=1 lists the packages you will encounter problems with.

For the record I use -O2 -g -march=native -fomit-frame-pointer -pipe.
_________________
by design, by neglect
for a fact or just for effect
Back to top
View user's profile Send private message
ComaWhite
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2008
Posts: 125

PostPosted: Tue May 11, 2010 2:20 am    Post subject: Reply with quote

Code:

zeke@narfxeon ~ $ rm test.c
zeke@narfxeon ~ $ touch test.c
zeke@narfxeon ~ $ gcc-4.5.0 -march=native -fverbose-asm -S test.c                                                                                                                                                 
zeke@narfxeon ~ $ cat test.s
        .file   "test.c"                                                                                                                                                                                         
# GNU C (Gentoo 4.5.0 p1.0) version 4.5.0 (x86_64-pc-linux-gnu)
#       compiled by GNU C version 4.5.0, GMP version 4.3.2, MPFR version 2.4.2-p3, MPC version 0.8.1                                                                                                             
# GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
# options passed:  test.c -D_FORTIFY_SOURCE=2 -march=atom -mcx16 -msahf
# -mpopcnt -msse4.2 --param l1-cache-size=32 --param l1-cache-line-size=64
# --param l2-cache-size=8192 -mtune=core2 -fverbose-asm
# options enabled:  -falign-loops -fargument-alias
# -fasynchronous-unwind-tables -fauto-inc-dec -fbranch-count-reg -fcommon
# -fdelete-null-pointer-checks -fdwarf2-cfi-asm -fearly-inlining
# -feliminate-unused-debug-types -ffunction-cse -fgcse-lm -fident
# -finline-functions-called-once -fira-share-save-slots
# -fira-share-spill-slots -fivopts -fkeep-static-consts
# -fleading-underscore -fmath-errno -fmerge-debug-strings
# -fmove-loop-invariants -fpeephole -freg-struct-return
# -fsched-critical-path-heuristic -fsched-dep-count-heuristic
# -fsched-group-heuristic -fsched-interblock -fsched-last-insn-heuristic
# -fsched-rank-heuristic -fsched-spec -fsched-spec-insn-heuristic
# -fsched-stalled-insns-dep -fshow-column -fsigned-zeros
# -fsplit-ivs-in-unroller -ftrapping-math -ftree-cselim -ftree-forwprop
# -ftree-loop-im -ftree-loop-ivcanon -ftree-loop-optimize
# -ftree-parallelize-loops= -ftree-phiprop -ftree-pta -ftree-reassoc
# -ftree-scev-cprop -ftree-slp-vectorize -ftree-vect-loop-version
# -funit-at-a-time -funwind-tables -fvect-cost-model -fverbose-asm
# -fzero-initialized-in-bss -m128bit-long-double -m64 -m80387
# -maccumulate-outgoing-args -malign-stringops -mcx16 -mfancy-math-387
# -mfp-ret-in-387 -mfused-madd -mglibc -mieee-fp -mmmx -mmovbe -mpopcnt
# -mpush-args -mred-zone -msahf -msse -msse2 -msse3 -msse4 -msse4.1
# -msse4.2 -mssse3 -mtls-direct-seg-refs

# Compiler executable checksum: f20a2bf9172389dd5117e848b194d320

        .ident  "GCC: (Gentoo 4.5.0 p1.0) 4.5.0"
        .section        .note.GNU-stack,"",@progbits
Back to top
View user's profile Send private message
rhill
Retired Dev
Retired Dev


Joined: 22 Oct 2004
Posts: 1629
Location: sk.ca

PostPosted: Tue May 11, 2010 2:36 am    Post subject: Reply with quote

-march=core2 it is then. i'll see if we can't put out a new patchset this weekend.
_________________
by design, by neglect
for a fact or just for effect
Back to top
View user's profile Send private message
ComaWhite
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2008
Posts: 125

PostPosted: Tue May 11, 2010 3:16 am    Post subject: Reply with quote

Thanks mate. It would be really great to have GCC-4.5.0, but I wanna wait a while until most if not all major apps work great with it.
Back to top
View user's profile Send private message
cruzki123
Apprentice
Apprentice


Joined: 16 May 2008
Posts: 249

PostPosted: Tue May 11, 2010 6:26 am    Post subject: Reply with quote

What problems will I have with -lto enable build? Have anyone a list of "problematic" packages?

I am using in a private proyect and I don't see any benefics in speed but a IMPRESIVE reduccion in space!
Back to top
View user's profile Send private message
brot
Guru
Guru


Joined: 06 Apr 2004
Posts: 322

PostPosted: Tue May 11, 2010 8:50 am    Post subject: kdelibs and gcc 4.5 Reply with quote

Has anyone in here compiled kdelibs successfully?

Its more or less the only package that fails here, only mysql makes problems (but that should be fixed soon, afaik.)

My flags are:

CFLAGS="-march=native -O2 -fomit-frame-pointer -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,now -Wl,--sort-common"
Back to top
View user's profile Send private message
Neo2
Apprentice
Apprentice


Joined: 25 Sep 2006
Posts: 224
Location: Italy

PostPosted: Tue May 11, 2010 9:53 am    Post subject: Reply with quote

@brot: I have compiled kdelibs successfully. Both with a lot of flags (considered unstable) and both with the bare CFLAGS="-O2 -march=native -pipe". What error(s) do the logs show?

@cruzki123: it is what LTO is meant to do. I tries to eliminate code redundancy accross different compile units (which usually are the *.c files) by postponing the common sub-expression elimination (CSE) and dead code elimination (DCE) passes until link time. It should allow for better performance also, but that is not always the case (eg: sometimes you can't do better than what has already been done).

Right now I'm moving back to GCC 4.4.4 (which I bumped manually through my overlay). I must say that I've been using gcc-4.5.1_pre9999 (maybe that one doesn't include Gentoo patchset? I honestly don't know).

What I did:

1. CFLAGS="-O2 -march=native -pipe <graphite> <a lot of 'unstable' flags>"
emerge -e1 @world --quiet --keep-going -j5
With this I had a working system with kde 4.4.2. Will post the flags when I'll get home for anyone interested. Only chromium-9999 did compile successfully yet kept exhibiting segfaults one after the other.

2. CFLAGS="-O2 -march=native -pipe <graphite>"
emerge -e1 @world --quiet --keep-going -j5
Almost working system, konqueror 4.4.3 did screw up, along with hplip driver (which allowed me to print rare masterpieces of contemporary art), chromium still segfaulting. Python 3.1 was unable to execute "emerge --depclean -p" due to strange errors regarding uninitialized variables.

3. CFLAGS="-O2 -march=native -pipe"
emerge -e1 @world --quiet --keep-going -j5
Same result that came with graphite flags. I haven't tried hplip with this setup though.

Guile and mysql were failing as expected with all the setups.
Also, with all the setups listed above I've experienced random package failures due to "Bus error"s being thrown during compile time (especially with large packages: kdelibs, chromium). Emerging these packages separately threw no error. Having tested just a little portion of all the packages installed, I can't really say if it introduces bugs in all of the packages or just a few of them. I just came to the conclusion that I need a fully working setup, I have no time to deal with bugs and semi-working things lately.
With GCC 4.4.4 the bus errors went away immediately, so far only chromium-9999 failed (being a patching problem which I'll solve later by hand).
I consider GCC 4.5.0 quite unstable, and I'll be reporting about GCC 4.4.4, which seems to me the best compiler achieved from the GCC team before the LTO branch merge.

Cheers,
Neo2
_________________
Neo2
Unofficial minimal liveCD for x86/amd64 w/reiser4+truecrypt
Back to top
View user's profile Send private message
brot
Guru
Guru


Joined: 06 Apr 2004
Posts: 322

PostPosted: Tue May 11, 2010 10:46 am    Post subject: Reply with quote

The error i am getting is:
Quote:
[ 89%] Building CXX object khtml/CMakeFiles/khtml.dir/css/css_webfont.o
In file included from /var/tmp/portage/kde-base/kdelibs-4.4.3/work/kdelibs-4.4.3/khtml/svg/SVGStyledElement.h:29:0,
from /var/tmp/portage/kde-base/kdelibs-4.4.3/work/kdelibs-4.4.3/khtml/css/SVGCSSStyleSelector.cpp:40:
/var/tmp/portage/kde-base/kdelibs-4.4.3/work/kdelibs-4.4.3/khtml/xml/dom_elementimpl.h:303:18: Warnung: »virtual void DOM::ElementImpl::attributeChanged(DOM::NodeImpl::Id)« war versteckt
/var/tmp/portage/kde-base/kdelibs-4.4.3/work/kdelibs-4.4.3/khtml/svg/SVGElement.h:228:22: Warnung: von »virtual void WebCore::SVGElement::attributeChanged(WebCore::Attribute*, bool)«

/var/tmp/portage/kde-base/kdelibs-4.4.3/work/kdelibs-4.4.3/khtml/svg/SVGElement.h:245:1: Warnung: unbenutzter Parameter »newValue«
In file included from /var/tmp/portage/kde-base/kdelibs-4.4.3/work/kdelibs-4.4.3/khtml/css/SVGCSSStyleSelector.cpp:40:0:
/var/tmp/portage/kde-base/kdelibs-4.4.3/work/kdelibs-4.4.3/khtml/xml/dom_nodeimpl.h:484:18: Warnung: »virtual void DOM::NodeImpl::childrenChanged()« war versteckt
/var/tmp/portage/kde-base/kdelibs-4.4.3/work/kdelibs-4.4.3/khtml/svg/SVGStyledElement.h:61:22: Warnung: von »virtual void WebCore::SVGStyledElement::childrenChanged(bool, WebCore::Node*, WebCore::Node*, int)«
[ 89%] Building CXX object khtml/CMakeFiles/khtml.dir/misc/loader.o
/var/tmp/portage/kde-base/kdelibs-4.4.3/work/kdelibs-4.4.3/khtml/misc/loader.cpp:484:2: Warnung: #warning "Needs some additional performance work"
/var/tmp/portage/kde-base/kdelibs-4.4.3/work/kdelibs-4.4.3/khtml/misc/loader.cpp:868:2: Warnung: #warning QImage* requires heavy porting
[ 89%] Building CXX object khtml/CMakeFiles/khtml.dir/misc/helper.o
{standard input}: Assembler messages:
{standard input}:21230: Error: symbol `_ZZN3WTF6VectorIPN3DOM17CSSFontFaceSourceELm0EE2atEmPPS3_mE19__PRETTY_FUNCTION__' is already defined
make[2]: *** [khtml/CMakeFiles/khtml.dir/css/css_webfont.o] Fehler 1


my useflags for kde are:
Quote:
kde-base/kdelibs-4.4.3 [4.4.2] USE="acl alsa bzip2 debug mmx nls opengl policykit semantic-desktop sse sse2 ssl zeroconf -3dnow (-altivec) (-aqua) -bindist -doc -fam -handbook -jpeg2k (-kdeenablefinal) (-kdeprefix) -kerberos -lzma -openexr -spell -test"
Back to top
View user's profile Send private message
Neo2
Apprentice
Apprentice


Joined: 25 Sep 2006
Posts: 224
Location: Italy

PostPosted: Tue May 11, 2010 12:33 pm    Post subject: Reply with quote

I see you have debug USE flag enabled, is this intentional? Usually the debug USE flag slows down things a lot and unless you want to actively debug kdelibs, you can turn it off. See if that solves the issue. I can spot only that difference between my configuration and yours.
If the suggestion is of no use, can you post your emerge --info?

Cheers,
Neo2
_________________
Neo2
Unofficial minimal liveCD for x86/amd64 w/reiser4+truecrypt
Back to top
View user's profile Send private message
brot
Guru
Guru


Joined: 06 Apr 2004
Posts: 322

PostPosted: Tue May 11, 2010 3:31 pm    Post subject: Reply with quote

Yes, i need the debug flag, as i am doing some testing with programs that link to kde :)

Here is my emerge --info. Thanks for the help, btw.

Quote:
Portage 2.2_rc67 (default/linux/amd64/10.0, gcc-4.5.0, glibc-2.11.1-r0, 2.6.34-rc6 x86_64)
=================================================================
System uname: Linux-2.6.34-rc6-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T5750_@_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 11 May 2010 13:00:01 +0000
ccache version 2.4 [disabled]
app-shells/bash: 4.1_p5
dev-java/java-config: 2.1.11
dev-lang/python: 2.6.5-r2, 3.1.2-r3
dev-python/pycrypto: 2.1.0
dev-util/ccache: 2.4-r8
dev-util/cmake: 2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc: 0.6.1-r1
sys-apps/sandbox: 2.2
sys-devel/autoconf: 2.13, 2.65
sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils: 2.20.1-r1
sys-devel/gcc: 4.5.0
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6b
virtual/os-headers: 2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news paralell-fetch parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,now -Wl,--sort-common"
LINGUAS="de"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/x11 /usr/local/portage/layman/kde /usr/local/portage/layman/scarabeus /usr/local/portage/layman/gamerlay /usr/local/portage/layman/sunrise /usr/local/portage/layman/jokey /usr/local/portage/layman/gnome /usr/local/portage/layman/toolchain /usr/local/portage/brot"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl acpi aio alsa amd64 avahi bash-completion berkdb bluetooth bzip2 cairo cli consolekit cracklib crypt cups cxx dell dri fortran gdbm gpm iconv ipv6 jpeg kde laptop lm_sensors lqr mmx mmxext modules mudflap multilib ncurses networkmanager nls nptl nptlonly opengl openmp pam pcre pdf perl png policykit pppd pulseaudio python readline reflection samba session smp spl sse sse2 sse3 ssl ssse3 svg symlink sysfs system-sqlite tcpd threads tiff truetype unicode utf8 wifi xcomposite xinerama xorg zeroconf zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="synaptics mouse evdev keyboard wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="i810 intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
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 Previous  1, 2, 3, 4, 5, 6 ... 13, 14, 15  Next
Page 5 of 15

 
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