Code: Select all
ARCH="x86"
CFLAGS="-O2 -march=pentium-m -mtune=pentium-m -pipe -ftracer -fomit-frame-pointer -ffast-math -momit-leaf-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS=${CFLAGS}
LDFLAGS="-Wl,-O1"
Code: Select all
ARCH="x86"
CFLAGS="-O2 -march=pentium-m -mtune=pentium-m -pipe -ftracer -fomit-frame-pointer -ffast-math -momit-leaf-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS=${CFLAGS}
LDFLAGS="-Wl,-O1"

Code: Select all
CFLAGS="-O2 -march=athlon-xp -mtune=athlon-xp -fomit-frame-pointer -ftracer -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
NO LDFLAGS :) it breaks about everythingCode: Select all
Portage 2.0.53 (default-linux/x86/2005.0, gcc-4.0.2, glibc-2.3.5.20050722-r0, 2.6.14-nitro2 i686)
=================================================================
System uname: 2.6.14-nitro2 i686 Pentium III (Coppermine)
Gentoo Base System version 1.12.0_pre11
ccache version 2.4 [enabled]
dev-lang/python: 2.3.4-r1, 2.4.2
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.59-r7
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils: 2.16.91.0.3
sys-devel/libtool: 1.5.20-r1
virtual/os-headers: 2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium3 -mtune=pentium3 -pipe -s -ftree-vectorize -fno-ident -mmmx -msse -DNDEBUG -DG_DISABLE_ASSERT -DNO_DEBUG"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -march=pentium3 -mtune=pentium3 -pipe -s -ftree-vectorize -fno-ident -mmmx -msse -DNDEBUG -DG_DISABLE_ASSERT -DNO_DEBUG -fvisibility-inlines-hidden -fno-enforce-eh-specs"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://src.gentoo.pl http://gentoo.zie.pg.gda.pl http://194.117.143.72 ftp://mirror.switch.ch/mirror/gentoo/"
LANG="pl_PL"
LC_ALL="pl_PL"
LINGUAS="pl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 7zip S3TC X aac acpi alsa ao artswrappersuid audiofile avi berkdb bitmap-fonts bmp bzip2 cairo cdr ck-plus crypt cups curl dbus dga dio divx4linux dlloader emboss encode esd exif expat extras fam ffmpeg flac foomaticdb fortran gdbm geoip gif gimp gimpprint glibc-omitfp glitz glut glx gmp graphviz gtk gtk2 gzip hal hou hpn idn imagemagick imlib jabber java javascript jpeg kde lcms libg++ libgda libwww mad matroska mikmod mmx mng motif mozilla mozsvg mp3 mpeg mpeg4 ncurses new-login nls no-old-linux nocardbus nowin nptl nptlonly nvidia objc ogg oggvorbis openal opengl pam pango pcre pdf pdflib perl pic plugin png python qemu-fast qt quicktime readline rogue rtc sdl slang sou speex spell sqlite sse sse-filters ssl svg svga svgz tcltk tcpd tga theora threads tiff tlen truetype truetype-fonts type1-fonts udev unicode usb userlocales vorbis win32codecs wmf wxwindows xatrix xml xml2 xv xvid xvmc zlib linguas_pl userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CTARGET, LDFLAGS

Possibly that is CFLAG breakage :-p I compiled kde 3.5 numerous times (emerge kde) with GCC 4.0.2 and my stable make.conf setup :-pnbvcxz wrote:Au contraire Gnufsh. Because of my rather old computer with Gentoo installed and only 124 Mb ram I use (which works great):the only problem is KDE - can't compile with gcc-4Code: Select all
Portage 2.0.53 (default-linux/x86/2005.0, gcc-4.0.2, glibc-2.3.5.20050722-r0, 2.6.14-nitro2 i686) ================================================================= System uname: 2.6.14-nitro2 i686 Pentium III (Coppermine) Gentoo Base System version 1.12.0_pre11 ccache version 2.4 [enabled] dev-lang/python: 2.3.4-r1, 2.4.2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.91.0.3 sys-devel/libtool: 1.5.20-r1 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-Os -march=pentium3 -mtune=pentium3 -pipe -s -ftree-vectorize -fno-ident -mmmx -msse -DNDEBUG -DG_DISABLE_ASSERT -DNO_DEBUG" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-Os -march=pentium3 -mtune=pentium3 -pipe -s -ftree-vectorize -fno-ident -mmmx -msse -DNDEBUG -DG_DISABLE_ASSERT -DNO_DEBUG -fvisibility-inlines-hidden -fno-enforce-eh-specs" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://src.gentoo.pl http://gentoo.zie.pg.gda.pl http://194.117.143.72 ftp://mirror.switch.ch/mirror/gentoo/" LANG="pl_PL" LC_ALL="pl_PL" LINGUAS="pl" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 7zip S3TC X aac acpi alsa ao artswrappersuid audiofile avi berkdb bitmap-fonts bmp bzip2 cairo cdr ck-plus crypt cups curl dbus dga dio divx4linux dlloader emboss encode esd exif expat extras fam ffmpeg flac foomaticdb fortran gdbm geoip gif gimp gimpprint glibc-omitfp glitz glut glx gmp graphviz gtk gtk2 gzip hal hou hpn idn imagemagick imlib jabber java javascript jpeg kde lcms libg++ libgda libwww mad matroska mikmod mmx mng motif mozilla mozsvg mp3 mpeg mpeg4 ncurses new-login nls no-old-linux nocardbus nowin nptl nptlonly nvidia objc ogg oggvorbis openal opengl pam pango pcre pdf pdflib perl pic plugin png python qemu-fast qt quicktime readline rogue rtc sdl slang sou speex spell sqlite sse sse-filters ssl svg svga svgz tcltk tcpd tga theora threads tiff tlen truetype truetype-fonts type1-fonts udev unicode usb userlocales vorbis win32codecs wmf wxwindows xatrix xml xml2 xv xvid xvmc zlib linguas_pl userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS
My mistake - I can't compile kdelibs 3.4.x, so far I have't tried last ver. See http://forums.gentoo.org/viewtopic-t-39 ... ight-.html and http://forums.gentoo.org/viewtopic-t-38 ... t-175.htmlcheater1034 wrote:Possibly that is CFLAG breakage :-p I compiled kde 3.5 numerous times (emerge kde) with GCC 4.0.2 and my stable make.conf setup :-p

I know several users who report zero problems using LDFLAGs, myself included with GCC 4.xcheater1034 wrote:I am also looking for a stable and optmized setup for GCC 4.xso far building up, I was considering.
I am about to rebuild the world (testing a new make.conf setup) but a stable make.conf that still has optimization sounds appealingCode: Select all
CFLAGS="-O2 -march=athlon-xp -mtune=athlon-xp -fomit-frame-pointer -ftracer -pipe" CHOST="i686-pc-linux-gnu" CXXFLAGS="${CFLAGS}" NO LDFLAGS :) it breaks about everythingas long as the peformance is increased, not decreased

Code: Select all
CFLAGS="-march=pentium4 -mtune=pentium4 -O2 -pipe -fomit-frame-pointer -mfpmath=sse -funit-at-a-time"
CXXCFLAGS="${CFLAGS}"
You need the first patch from this bug to fix that:yoshi314 wrote:i often pop -fvisibility-inlines-hidden to cxxflags, and remove them if something fails to work.

Maybe because simply, it does :-p I added the following to *test*, "LDFLAGS="-W1,-O1", what happened on emerge -e system? it failed on the first package (patch) I removed them, and everything worked fine.enderandrew wrote:I know several users who report zero problems using LDFLAGs, myself included with GCC 4.xcheater1034 wrote:I am also looking for a stable and optmized setup for GCC 4.xso far building up, I was considering.
I am about to rebuild the world (testing a new make.conf setup) but a stable make.conf that still has optimization sounds appealingCode: Select all
CFLAGS="-O2 -march=athlon-xp -mtune=athlon-xp -fomit-frame-pointer -ftracer -pipe" CHOST="i686-pc-linux-gnu" CXXFLAGS="${CFLAGS}" NO LDFLAGS :) it breaks about everythingas long as the peformance is increased, not decreased
I've yet to read a single report of someone who actually broke their system with normal LDFLAGS on GCC 4.x
So why continue to insist that LDFLAGS break everything?
That's because it's supposed to be LDFLAGS="-Wl,-O1" and not LDFLAGS="-W1,-O1".cheater1034 wrote:Maybe because simply, it does :-p I added the following to *test*, "LDFLAGS="-W1,-O1", what happened on emerge -e system? it failed on the first package (patch) I removed them, and everything worked fine.
And you get a lot of linker errors, not a good idea for ANY* compiler
I don't know how badly you already broke your system before trying any LDFLAGS at all,cheater1034 wrote:
Maybe because simply, it does :-p I added the following to *test*, "LDFLAGS="-W1,-O1", what happened on emerge -e system? it failed on the first package (patch) I removed them, and everything worked fine.
And you get a lot of linker errors, not a good idea for ANY* compiler

I used the most stable LDFLAG setup suggested to me, and it didnt work. My system is up and running now, gcc 4.0.2-r1, no ldflagsTiger683 wrote:I don't know how badly you already broke your system before trying any LDFLAGS at all,cheater1034 wrote:
Maybe because simply, it does :-p I added the following to *test*, "LDFLAGS="-W1,-O1", what happened on emerge -e system? it failed on the first package (patch) I removed them, and everything worked fine.
And you get a lot of linker errors, not a good idea for ANY* compiler
but your elaborations are plain wrong...sorry.

Except I just built two systems with gcc 4.0.2-r1 with the following flags with no problems:cheater1034 wrote:I used the most stable LDFLAG setup suggested to me, and it didnt work. My system is up and running now, gcc 4.0.2-r1, no ldflagsTiger683 wrote:I don't know how badly you already broke your system before trying any LDFLAGS at all,cheater1034 wrote:
Maybe because simply, it does :-p I added the following to *test*, "LDFLAGS="-W1,-O1", what happened on emerge -e system? it failed on the first package (patch) I removed them, and everything worked fine.
And you get a lot of linker errors, not a good idea for ANY* compiler
but your elaborations are plain wrong...sorry.
LDFLAGS are not supported or particulary stable flags, and in order to keep the most stable possible system on gcc 4.x, it is probally best to not use them.

Maybe the problem is this: LDFLAGS="-W1,-O1", where it should be LDFLAGS="-Wl,-O1", with the letter "L" not the number 1.(1) - The Setup, LDFLAGS="-W1,-O1", did not work (maybe I did it wrong)