Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GCC 4.6 Ebuild
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
billydv
l33t
l33t


Joined: 22 Dec 2006
Posts: 911
Location: Mount Vernon, NY

PostPosted: Tue Apr 19, 2011 1:42 am    Post subject: Reply with quote

Okay, I switched to grub2 to avoid that headache with gcc-4.6.0 and am now in the process of rebuilding my system with these flags

CFLAGS="-march=corei7-avx -mtune=corei7-avx -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"

We will see how it is tomorrow!!!
_________________
Billy DeVincentis
Back to top
View user's profile Send private message
billydv
l33t
l33t


Joined: 22 Dec 2006
Posts: 911
Location: Mount Vernon, NY

PostPosted: Tue Apr 19, 2011 3:12 am    Post subject: Reply with quote

Changed my mind
here are my cflags

CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"


Here is what native shows as on my box

Linux1 billydv # echo "" | gcc -march=native -v -E - 2>&1 | grep cc1
/usr/libexec/gcc/x86_64-pc-linux-gnu/4.6.0/cc1 -E -quiet -v - -D_FORTIFY_SOURCE=2 -march=corei7-avx -mcx16 -msahf -maes -mpclmul -mpopcnt -mavx --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=corei7-avx

Let's see what happens!!!
_________________
Billy DeVincentis
Back to top
View user's profile Send private message
billydv
l33t
l33t


Joined: 22 Dec 2006
Posts: 911
Location: Mount Vernon, NY

PostPosted: Tue Apr 19, 2011 3:56 am    Post subject: Reply with quote

Anyone using -Ofast?
_________________
Billy DeVincentis
Back to top
View user's profile Send private message
raj7095
n00b
n00b


Joined: 08 Feb 2011
Posts: 59

PostPosted: Wed Apr 20, 2011 10:20 pm    Post subject: Reply with quote

billydv wrote:
Anyone using -Ofast?

dont use ofast, it's a risk since it enables -ffast-math. on my machine, a lot of programs fail to compile with it, mostly database-related programs or programs that use a database engine.
Back to top
View user's profile Send private message
billydv
l33t
l33t


Joined: 22 Dec 2006
Posts: 911
Location: Mount Vernon, NY

PostPosted: Thu Apr 21, 2011 2:07 am    Post subject: Reply with quote

Okay, for anyone who is serious about upgrading gcc, let me document what I had to do to get this workable on my 1800 + package box.

1- Update to grub2. There is a serious problem with grub-0.9.7 that if it's compiled with gcc 4.6, your system won't boot. Grub2 v1.99rc1 works flawlessly.

2- Going from march=core2 to march=native because I have a Sandy Bridge 2600k which has avx instructions (more on the complications this will bring with Mozilla products down further), I first emerged gcc-4.6.0 with the old cflags and then switched to this

CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"

Which gave me these native optimizations:

Linux1 ~ # echo "" | gcc -march=native -v -E - 2>&1 | grep cc1
/usr/libexec/gcc/x86_64-pc-linux-gnu/4.6.0/cc1 -E -quiet -v - -D_FORTIFY_SOURCE=2 -march=corei7-avx -mcx16 -msahf -maes -mpclmul -mpopcnt -mavx --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=corei7-avx


Then emerge --emptytree system twice and emerge --emptytree world which I started, got to about 1600 package, rebooted and am running once again (currently at about 1450 of 1800)

3- VERY IMPORTANT!!!!! If you have a sandy bridge processor, you must emerge xulrunner, firefox and thunderbird with custom-optimization use flags (seamonkey won't emerge with gcc-4.6 no matter what I try!!). In addition you must use package specific cflags in /etc/portage/env. Create folders for those three packages just as they are in portage (/etc/portage/env/net-libs/xulrunner , /etc/portage/env/www-client/firefox , /etc/portage/env/mail-client/thunderbird respectively) and in each text file in those 3 folders put

CFLAGS="-march=corei7 -mtune=corei7 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"


This will force emerge those packages without avx instructions

4- Here are the packages that would not emerge and the resolutions if any

1- libwpd -unmask libwpd and libwpg. Afterwords rebuild kword, karbon and inkscape. All seem to work fine. Only blocker here I believe is abiword if you use it.

2- libsmbios -none as of yet

3- libpqxx - fixed in development version and will be released with 3.2 version

4- thunderbird - ebuild and patch available in gcc-porting overlay

5- openjade - ebuild and patch available in gcc-porting overlay

6- vigra - see https://bugs.gentoo.org/show_bug.cgi?id=362863 for fix

7- marble - emerge use flag -python

8- avidemux - see https://bugs.gentoo.org/show_bug.cgi?id=364009 for patches

9- libreoffice -not sure yet

10- inkscape - see here for working patch https://bugs.gentoo.org/show_bug.cgi?id=362639

11- gnome-mplayer - version bump fix - see gentoo bugzilla

good luck
_________________
Billy DeVincentis
Back to top
View user's profile Send private message
billydv
l33t
l33t


Joined: 22 Dec 2006
Posts: 911
Location: Mount Vernon, NY

PostPosted: Fri Apr 22, 2011 11:08 am    Post subject: Reply with quote

All in all now after rebuilding everything at least twice, my system seems quite stable.
_________________
Billy DeVincentis
Back to top
View user's profile Send private message
keet
Guru
Guru


Joined: 09 Sep 2008
Posts: 533

PostPosted: Sun Apr 24, 2011 1:25 am    Post subject: Reply with quote

I'm also using a Sandy Bridge C.P.U.

Code:
#cat /etc/portage/package.keywords/gcc460
sys-devel/gcc **
~dev-libs/cloog-ppl-0.15.10
~dev-libs/ppl-0.11.2
~sys-libs/glibc-2.13
~sys-apps/diffutils-3.0

<sys-boot/grub-9999 **
~sys-boot/os-prober-1.44
~media-fonts/unifont-5.1.20080914
~dev-scheme/guile-1.8.8

~x11-libs/qt-core-4.7.2
~x11-libs/qt-script-4.7.2
~x11-libs/qt-gui-4.7.2
~x11-libs/qt-dbus-4.7.2
~x11-libs/qt-qt3support-4.7.2
~x11-libs/qt-sql-4.7.2

~dev-libs/nss-3.12.9
~dev-libs/nspr-4.8.7

~dev-libs/libsigc++-2.2.9


I haven't been able to compile LibreOffice no matter what I try. I've tried USE="-opengl -custom-cflags", MAKEOPTS="-j1", and versions 3.3.1 and 3.3.2. NSS, Thunderbird, and Xulrunner also don't finish, even using billydv's configuration. Since bug 346825 says that the error message that I get will be fixed in later versions, I won't bother with these. Other things seem stable, though.
Back to top
View user's profile Send private message
billydv
l33t
l33t


Joined: 22 Dec 2006
Posts: 911
Location: Mount Vernon, NY

PostPosted: Sun Apr 24, 2011 2:28 am    Post subject: Reply with quote

libreoffice appears broken at this point, a new version will soon be released and I guess that's when it will get fixed. As far as mozilla stuff, please post your emerge --info, it may be because you are not running ~amd64 completely. I have emerged all numerous times this week with no problem. Only seamonkey fails for me.
_________________
Billy DeVincentis
Back to top
View user's profile Send private message
keet
Guru
Guru


Joined: 09 Sep 2008
Posts: 533

PostPosted: Sun Apr 24, 2011 8:53 pm    Post subject: emerge --info Reply with quote

Code:
emerge --info
Portage 2.1.9.42 (default/linux/amd64/10.0/desktop, gcc-4.6.0, libc-0-r0, 2.6.37-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.37-gentoo-r4-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.0.2
Timestamp of tree: Sat, 23 Apr 2011 23:15:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1, 3.1.3-r1
dev-util/cmake:      2.8.4
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.2
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.6.0
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
sys-kernel/linux-headers: 2.6.36.1
virtual/os-headers:  0
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
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 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo"
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 --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/pcsx2"
SYNC="rsync://rsync25.us.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 archive berkdb bluetooth bluray branding bzip2 cairo cdda cddb cdr cjk cli consolekit cracklib crypt cups custom-cflags custom-cpuopts custom-optimization cxx dbus dri dts dvd dvdr emboss encode exif fam fat firefox flac fortran gdbm gdu gif gpm graphite gtk iconv icu idn ipv6 java jpeg lcms ldap libnotify mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib nano-syntax ncurses nls nptl nptlonly nsplugin ntfs ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3support qt4 readline sdl session spell sse sse2 sse3 sse4 ssl startup-notification svg sysfs tcpd threads tiff timidity truetype udev unicode usb v4l2 vorbis x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="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 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="evdev mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" 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, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Back to top
View user's profile Send private message
billydv
l33t
l33t


Joined: 22 Dec 2006
Posts: 911
Location: Mount Vernon, NY

PostPosted: Mon Apr 25, 2011 2:06 am    Post subject: Reply with quote

Check out mine,
Maybe you can see the difference here

Linux1 billydv # emerge --info
Portage 2.2.0_alpha30 (default/linux/amd64/10.0/desktop, gcc-4.6.0, libc-0-r0, 2.6.38-gentoo-r3 x86_64)
=================================================================
System uname: Linux-2.6.38-gentoo-r3-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.0.2
Timestamp of tree: Sun, 24 Apr 2011 05:30:01 +0000
app-shells/bash: 4.2_p8
dev-java/java-config: 2.1.11-r3
dev-lang/python: 2.7.1-r1, 3.1.3-r1
dev-util/cmake: 2.8.4-r1
sys-apps/baselayout: 2.0.2
sys-apps/openrc: 0.8.2
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.13, 2.68
sys-devel/automake: 1.6.3-r1, 1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils: 2.21
sys-devel/gcc: 4.5.2, 4.6.0
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82
sys-kernel/linux-headers: 2.6.38
virtual/os-headers: 0
Repositories: gentoo miscellaneous
Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
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/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going"
FEATURES="assume-digests binpkg-logs buildpkg distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j17 -l24"
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/portage/local/miscellaneous"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib accessibility acl acpi aften alsa amd64 animate archive ares artworkextra audio audiofile avahi bash-completion beep berkdb bidi bittorrent bluetooth bookmarks branding bzip2 cairo cdda cddb cdio cdr chm cli clucene consolekit corefonts cpudetection cracklib crypt css cups curl cxx dbus declarative deprecated designer-plugin device-mapper dga directfb discouraged doc dri dts dv dvb dvd dvdnav dvdr ebook eds elisp emacs emboss emerald encode esd eselect examples exif expat extra-tools extras fam fat fax fbcon fbcondecor ffmpeg firefox flac flash fltk fontconfig foomaticdb fortran ftp fts3 fuse gcj gd gdbm gdu ggi gif gimp glep glib gnome gnutls gphoto2 gpm gstreamer gtk handbook hddtemp hfs hpcups hpijs html httpd hyperestraier iconv idn imagemagick imlib inkjar inotify ipv6 jack jadetex java jfs joystick jpeg jpeg2k kde kdrive kerberos konqueror lame lcms ldap libcaca libnotify libsamplerate lirc live lm_sensors mad mail matroska md5sum mdnsresponder-compat mikmod mime mjpeg mmx mmxext mng modules mono mozilla mp3 mp4 mpeg mplayer mudflap multilib musepack musicbrainz mysql nas nautilus ncurses networking new-login nls npp nptl nptlonly nsplugin ntfs objc odbc offensive ogg openal openexr opengl openmp osdmenu pam pango pcre pdf perl plasma png policykit postgres ppds pppd ps pulseaudio python qt3support qt4 quicktime raptor rar rdesktop readline realmedia reflection regex reiser4 reiserfs reports samba sametime scanner script sdl secure-delete semantic-desktop servletapi session sip skins slang slp smbclient smp sndfile snmp sound speech speex spell sql sqlite sse sse2 ssl startup-notification static-ppds stream subversion svg swat sysfs syslog tcpd templates themes theora threads thumbnail tidy tiff timidity tk tools truetype udev unicode unsupported usb utils v4l2 vcd vdpau vdr video vlm vorbis wav wavpack weather webkit wmf x264 xattr xcb xcomposite xfs xine xml xorg xpm xscreensaver xulrunner xv xvid xvmc zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="evdev joystick keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev nvidia nv vesa" 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, INSTALL_MASK, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Also here is my make.conf

# These settings were set by the catalyst build script that automatically built this stage
# Please consult /usr/share/portage/config/make.conf.example for a more detailed example
#
### Use this to change to different Motherboard
#CHOST="x86_64-pc-linux-gnu"
#CFLAGS="-mtune=generic -O2 -pipe"
#CXXFLAGS="${CFLAGS}"
##
## Some experimental CFLAGS
#CFLAGS="-march=core2 -mtune=generic -O2 -pipe"
#CFLAGS="-march=core2 -mcx16 -msahf -maes -mpclmul -mpopcnt -mavx -msse4.1 -msse4.2 -ftree-vectorize -O2 -ftracer -fweb -pipe -w -frecord-gcc-switches -mtune=generic"
##
### Safe C Flags For Intel I7
#CHOST="x86_64-pc-linux-gnu"
#CFLAGS="-march=core2 -msse4.1 -msse4.2 -mtune=generic -O2 -pipe"
#CXXFLAGS="${CFLAGS}"
##
### C Flags For Intel I7 2600k
#CFLAGS="-march=corei7-avx -mtune=corei7-avx -O2 -pipe"
#CHOST="x86_64-pc-linux-gnu"
#CXXFLAGS="${CFLAGS}"
##
### Use This if supported
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"


USE="3dnow a52 aac aalib accessibility acpi aften alsa altivec animate aqua archive ares artworkextra audio audiofile avahi bash-completion beep berkdb bidi -bindist bittorrent bookmarks branding bzip2 cairo cdda cddb cdio cdr chm clucene consolekit corefonts cpudetection css cups curl dbus declarative deprecated designer-plugin device-mapper dga directfb discouraged doc dts dv dvb dvd dvdnav dvdr ebook eds elisp emacs emerald encode esd eselect examples exif expat extras extra-tools fam fat fax fbcon fbcondecor ffmpeg flac flash fltk fontconfig foomaticdb fortran ftp fts3 fuse gcj gd gdbm gdu ggi gif gimp glep glib gnome gnutls gphoto2 gpm gstreamer gtk handbook hddtemp hfs hpcups hpijs html httpd hyperestraier idn imagemagick imlib inkjar inotify ipv6 jack jadetex java jfs joystick jpeg jpeg2k kde kdrive kerberos konqueror lame lcms ldap libcaca libsamplerate lirc live lm_sensors mad mail matroska md5sum mdnsresponder-compat mikmod mime mjpeg mmx mmxext mng mono mozilla mp3 mpeg mplayer multilib musepack musicbrainz mysql nas nautilus ncurses networking new-login nls npp nptl nsplugin ntfs objc odbc offensive ogg openal openexr opengl osdmenu pam pcre pdf perl plasma png policykit postgres ppds ps pulseaudio python qt3support qt4 quicktime raptor rar rdesktop readline real realmedia reflection regex reiser4 reiserfs reports samba sametime scanner script sdl secure-delete semantic-desktop servletapi session sip skins slang slp smbclient smp sndfile snmp sound speech speex spell sql sqlite sse sse2 ssl startup-notification static-ppds stream subversion svg svga swat sysfs syslog tcpd templates themes theora threads thumbnail tidy tiff timidity tk tools truetype udev unicode unsupported usb utils v4l2 vcd vdpau vdr video vlm vorbis wav wavpack weather webkit win32codecs wmf X x264 xattr xcb xcomposite xfs xine xml xorg xpm xscreensaver xv xvid xvmc zeroconf zlib"

ACCEPT_KEYWORDS="~amd64"
ACCEPT_LICENSE ="*"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going"
#EMERGE_DEFAULT_OPTS="--keep-going --jobs=12 --load-average=24"
FEATURES="buildpkg preserve-libs"
INPUT_DEVICES="evdev joystick keyboard mouse"
MAKEOPTS="-j17 -l24"
PKGDIR="/usr/portage/packages"
PORTAGE_ECLASS_WARNING_ENABLE="0"
PORTAGE_ELOG_CLASSES="warn error log info qa"
PORTAGE_ELOG_SYSTEM="save"
PORTAGE_NICENESS="-18"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/miscellaneous"
USE_PYTHON="2.7 3.1"
VIDEO_CARDS="fbdev nvidia nv vesa"
_________________
Billy DeVincentis
Back to top
View user's profile Send private message
keet
Guru
Guru


Joined: 09 Sep 2008
Posts: 533

PostPosted: Thu Apr 28, 2011 2:19 am    Post subject: Reply with quote

Thanks for your advice. I noticed that you are using all ~amd64, which I am unwilling to do. Even if I'm using KDE 4.6.2 and Gnome 3 (actually I use OpenBox, but I try the others occasionally, and have them installed), and a hard masked version of GCC, I don't want to go all out ~amd64. I used GCC 4.4.5 and -march=core2 to install the things that wouldn't install, and they are relatively few in number, so it doesn't bother me. I do hope that we move toward having GCC for Sandy Bridge without too much trouble.
Back to top
View user's profile Send private message
billydv
l33t
l33t


Joined: 22 Dec 2006
Posts: 911
Location: Mount Vernon, NY

PostPosted: Thu Apr 28, 2011 9:35 pm    Post subject: Reply with quote

The problem becomes that some packages that are in arch won't compile against stable packages. That's why I think you have to make a decision, stable or ~. Mixing can sometimes create complications.
_________________
Billy DeVincentis
Back to top
View user's profile Send private message
spielc
Guru
Guru


Joined: 20 Apr 2004
Posts: 452

PostPosted: Mon May 02, 2011 1:08 pm    Post subject: Reply with quote

Plus another point i've remarked is that as soon as you start to use packages from ~arch, you're keywords file will become bigger and bigger. That's why i switched to ~amd64 in the first place because with almost every world-update i had to add more packages to my packages.keywords.
_________________
Raise your beers up high...
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1379

PostPosted: Mon May 09, 2011 8:31 pm    Post subject: Reply with quote

@spielc, Yes !
My system runs and upgrades using only gcc-4.6.0 and glibc-2.13.
Full running kde-4.6.3 system! I have done an "emerge -e system".

caveats:
- www-client/chromium (11 and 12 tested) doesn't build. Also doesn't help a gcc46 patch from overlay porting-gcc. There is too much old third-party stuff. And no USE flags in place to disable (voice-chat).
- media-gfx/hugin at also foreign sources fails.
_________________
fun2gen2
Back to top
View user's profile Send private message
wolf550e
n00b
n00b


Joined: 20 May 2005
Posts: 17
Location: Israel

PostPosted: Tue May 10, 2011 7:31 am    Post subject: Reply with quote

The gcc-4.6 patch I'm using with www-client/chromium-11.* is attached to
https://bugs.gentoo.org/show_bug.cgi?id=361461
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1379

PostPosted: Tue May 10, 2011 9:16 pm    Post subject: Reply with quote

This patch https://bugs.gentoo.org/attachment.cgi?id=272711
thnx very much, is really working when compiling
chromium-11 with gcc-4.6.0
_________________
fun2gen2
Back to top
View user's profile Send private message
wolf550e
n00b
n00b


Joined: 20 May 2005
Posts: 17
Location: Israel

PostPosted: Wed May 11, 2011 10:49 pm    Post subject: Reply with quote

I have attached a patch for chromium-12* to the same bug: https://bugs.gentoo.org/show_bug.cgi?id=361461
This not being committed upstream and not included in portage is an embarrassment for both google and gentoo.
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1379

PostPosted: Thu May 26, 2011 9:03 pm    Post subject: I got stuck with xulrunner Reply with quote

I tried with different versions of xulrunner, different USE flags, mostly this output appears:
Code:
...
exception_handler.cc
linux_dumper.cc
minidump_writer.cc
dump_syms.cc   
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.0/../../../../x86_64-pc-linux-gnu/bin/ld: dynamic STT_GNU_IFUNC symbol `strcmp' with point
collect2: ld returned 1 exit status
make[5]: *** [dump_syms] Error 1

Becaus some "pie" hints before I made /etc/portage/env/net-libs/xulrunner
Code:

CXXFLAGS="-march=core2 -mtune=generic -O1 -pipe -fPIE -fpermissive"
CFLAGS="-march=core2 -mtune=generic -O1 -fPIE -fpermissive"
#LDFLAGS="${LDFLAGS} -Wl,-pie"
But I have no knowledge about linker flags and that LDFLAGS didn't work
_________________
fun2gen2
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1379

PostPosted: Sun May 29, 2011 1:22 am    Post subject: Reply with quote

With no extra cflags xulrunner got compiled using gcc-4.6.0 - though some useflags I disabled...
_________________
fun2gen2
Back to top
View user's profile Send private message
billydv
l33t
l33t


Joined: 22 Dec 2006
Posts: 911
Location: Mount Vernon, NY

PostPosted: Sun May 29, 2011 7:58 pm    Post subject: Reply with quote

ulenrich,
The gcc 4.6.0 problem with mozilla products has to do with avx instructions that are only so far available on the new I7 Sandy Bridge CPUs. Running any other cpu, you probably can emerge xulrunner with gcc 4.6 with whatever use flags you want!! Gcc 4.6 brings I7 avx instructions to the optimizations and Mozilla products have a problem with it.
_________________
Billy DeVincentis
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1379

PostPosted: Sun May 29, 2011 11:01 pm    Post subject: bug of tune=native? Reply with quote

@billydf, that could be! I had down changed optimization to CXXFLAGS="-march=native -mtune=native -O1 -pipe". Optimization=1 should hinder any attempt of gcc using that not fitting technique?

But then gcc-4.6.0 is buggy for "-mtune=native" should have recognized me not having that chipset ....
_________________
fun2gen2
Back to top
View user's profile Send private message
billydv
l33t
l33t


Joined: 22 Dec 2006
Posts: 911
Location: Mount Vernon, NY

PostPosted: Mon May 30, 2011 12:35 am    Post subject: Reply with quote

It's not that gcc 4.6 is buggy using march or mtune=native, it's that avx instruction is new to the game and mozilla products haven't been updated. I think it was only recently that Windows 7 started making use of it after sp1.
_________________
Billy DeVincentis
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1379

PostPosted: Wed Jun 01, 2011 12:05 am    Post subject: Reply with quote

Ouch, I thought the most recent stable mozilla source is maintained :(

By the way, the gcc-4.6.0 ebuild is weeks old. Debian unstable already catched fixes from upstream. The gentoo maintainer of gcc seems to have holidays. I tried to find a way to compile the newer snapshot source. But the Gentoo gcc ebuild is too minimalistic. All is hidden deep into the toolchain eclass :(

The gentoo ebuild system should enable users to build their own overlays not hinder! Even at a price of cluttered ebuilds. They are very clean an look beautiful. But I am helpless.

If I try to emerge the svn source from overlay dirtyepic I get a new slot. But I had disabled -multislot. Therefore it seems an error to try to emerge this:
Code:
[ebuild  NS   ] sys-devel/gcc-4.6.1_pre9999 [4.5.2, 4.6.0] USE="fortran go gtk mudflap (multilib) nls nptl openmp (-altivec) -bootstrap -build -debug -doc (-fixed-point) -gcj -graphite (-hardened) (-libffi) -multislot (-n32) (-n64) -nobootstrap -nocxx -objc -objc++ -objc-gc -offline -test -vanilla" 0 kB [1]


Because it is against definition of USE flag:
sys-devel/gcc:multislot - Allow for SLOTs to include minor version (3.3.4 instead of just 3.3)
Should I fire a bug?
_________________
fun2gen2
Back to top
View user's profile Send private message
keet
Guru
Guru


Joined: 09 Sep 2008
Posts: 533

PostPosted: Fri Jun 03, 2011 4:25 am    Post subject: Reply with quote

I've compiled everything successfully except libreoffice, nss, and www-client/chromium. I've even tried keyworded and masked versions of these packages and some of their dependencies, but they're still not compiling. I know that there is a bug for NSS, and I think that there is one for Chromium, too. I'm using all three without a problem after setting -march=core2 and temporarily switching to gcc 4.4.5, and I'm not really hoping for a solution other than a newer version, but am merely reporting my status. Oh yes, pcsx2 also segfaults when I run it, but I'm not sure whose fault that is. Oh, well.
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1379

PostPosted: Fri Jun 03, 2011 10:10 am    Post subject: Reply with quote

keet wrote:
I've compiled everything successfully except libreoffice, nss, and www-client/chromium.

If you do at your own overlay for chromium11:
Code:
src_prepare() {
        #ulenrich
        epatch "${FILESDIR}/${PN}-gcc46.patch"
and /youroverlay/www-client/chromium/files/chromium-gcc46.patch:
Code:
--- third_party/tcmalloc/chromium/src/common.cc~   2011-03-29 20:46:14.000000000 +0400
+++ third_party/tcmalloc/chromium/src/common.cc   2011-03-29 20:47:02.000000000 +0400
@@ -30,6 +30,7 @@
 // ---
 // Author: Sanjay Ghemawat <opensource@google.com>
 
+#include <cstddef>
 #include "config.h"
 #include "system-alloc.h"
 #include "config.h"
--- third_party/tcmalloc/chromium/src/base/vdso_support.h~   2011-03-29 23:20:20.000000000 +0400
+++ third_party/tcmalloc/chromium/src/base/vdso_support.h   2011-03-29 23:20:37.000000000 +0400
@@ -37,6 +37,7 @@
 
 #define HAVE_VDSO_SUPPORT 1
 
+#include <cstddef>
 #include <stdlib.h>     // for NULL
 #include <link.h>  // for ElfW
 #include "base/basictypes.h"
--- third_party/tcmalloc/chromium/src/base/stl_allocator.h~   2011-03-31 12:53:13.000000000 +0400
+++ third_party/tcmalloc/chromium/src/base/stl_allocator.h   2011-03-31 12:53:32.000000000 +0400
@@ -38,6 +38,7 @@
 #include <config.h>
 
 #include <limits>
+#include <cstddef>
 
 #include "base/basictypes.h"
 #include "base/logging.h"
--- third_party/tcmalloc/chromium/src/symbolize.h~   2011-03-31 12:58:42.000000000 +0400
+++ third_party/tcmalloc/chromium/src/symbolize.h   2011-03-31 12:59:00.000000000 +0400
@@ -38,6 +38,7 @@
 #include <stdint.h>  // for uintptr_t
 #endif
 #include <map>
+#include <cstddef>
 
 using std::map;
 
--- third_party/tcmalloc/chromium/src/system-alloc.h~   2011-03-31 13:01:01.000000000 +0400
+++ third_party/tcmalloc/chromium/src/system-alloc.h   2011-03-31 13:01:15.000000000 +0400
@@ -37,6 +37,7 @@
 #define TCMALLOC_SYSTEM_ALLOC_H_
 
 #include <config.h>
+#include <cstddef>
 #include "internal_logging.h"
 
 // REQUIRES: "alignment" is a power of two or "0" to indicate default alignment
--- gpu/command_buffer/common/types.h~   2011-03-31 13:32:58.000000000 +0400
+++ gpu/command_buffer/common/types.h   2011-03-31 13:33:12.000000000 +0400
@@ -11,6 +11,7 @@
 #include <stdint.h>
 #endif
 #include <string>
+#include <cstddef>
 
 typedef signed char         schar;
 typedef signed char         int8;
--- third_party/libjingle/source/talk/base/sigslot.h~   2011-03-31 13:43:11.000000000 +0400
+++ third_party/libjingle/source/talk/base/sigslot.h   2011-03-31 13:52:32.000000000 +0400
@@ -80,6 +80,7 @@
 
 #include <set>
 #include <list>
+#include <cstddef>
 
 // On our copy of sigslot.h, we force single threading
 #define SIGSLOT_PURE_ISO
--- third_party/ots/src/os2.cc~   2011-03-31 14:03:13.000000000 +0400
+++ third_party/ots/src/os2.cc   2011-03-31 14:03:25.000000000 +0400
@@ -5,6 +5,7 @@
 #include "os2.h"
 
 #include "head.h"
+#include <cstddef>
 
 // OS/2 - OS/2 and Windows Metrics
 // http://www.microsoft.com/opentype/otspec/os2.htm
--- ui/gfx/codec/jpeg_codec.h~   2011-03-31 14:11:18.000000000 +0400
+++ ui/gfx/codec/jpeg_codec.h   2011-03-31 14:11:27.000000000 +0400
@@ -7,6 +7,7 @@
 #pragma once
 
 #include <vector>
+#include <cstddef>
 
 class SkBitmap;
 
--- chrome/browser/search_engines/template_url_prepopulate_data.h   2011-03-31 14:48:03.000000000 +0400
+++ chrome/browser/search_engines/template_url_prepopulate_data.h~   2011-03-31 14:49:52.000000000 +0400
@@ -7,6 +7,7 @@
 #pragma once
 
 #include <vector>
+#include <cstddef>
 
 class GURL;
 class PrefService;
--- third_party/WebKit/Source/WebCore/dom/make_names.pl
+++ third_party/WebKit/Source/WebCore/dom/make_names.pl
@@ -66,5 +66,5 @@
     $gccLocation = "/usr/bin/gcc";
 }
-my $preprocessor = $gccLocation . " -E -P -x c++";
+my $preprocessor = $gccLocation . " -E -x c++";
 
 GetOptions(

_________________
fun2gen2
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  Next
Page 4 of 6

 
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