Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

GCC4 and CFLAGS

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
41 posts
  • 1
  • 2
  • Next
Author
Message
Guinpen
Guru
Guru
User avatar
Posts: 393
Joined: Wed Dec 08, 2004 1:18 pm
Contact:
Contact Guinpen
Website

GCC4 and CFLAGS

  • Quote

Post by Guinpen » Tue Dec 13, 2005 1:25 pm

I wonder why I didn't find this already asked on the forum, but hey, here it comes: Will the following happily fuctioning (under GCC 3.4.4) CFLAGS work on GCC 4.0.2 which I want to try out? What about 4.1.0 (beta)? Hardware is Pentium-M 1.3 Banias, 512 RAM.

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"
Top
Gnufsh
Guru
Guru
User avatar
Posts: 400
Joined: Sat Dec 28, 2002 5:40 pm
Location: Portland, OR
Contact:
Contact Gnufsh
Website

  • Quote

Post by Gnufsh » Tue Dec 13, 2005 3:22 pm

Yes., but -momit-leaf-pointer is implied by -fomit-frame-pointer and possibly -O2, so you don't really need it. And people generally advise against -ffast-math. I used -ffast-math for a while, now I don't. I didn't have that many problems with it because most packages that it breaks filter it out. Of course, these are generally the ones that would see the greatest speed-up.
Top
Guinpen
Guru
Guru
User avatar
Posts: 393
Joined: Wed Dec 08, 2004 1:18 pm
Contact:
Contact Guinpen
Website

  • Quote

Post by Guinpen » Tue Dec 13, 2005 5:36 pm

Thank you, I have taken your suggestions in mind and removed the 2 flags.
Top
nbvcxz
Guru
Guru
User avatar
Posts: 379
Joined: Fri Sep 02, 2005 7:09 pm
Location: Kraków / PL

  • Quote

Post by nbvcxz » Tue Dec 13, 2005 5:48 pm

My suggestion is add -ftree-vectorize -fno-ident -s to CFLAGS and CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden -fno-enforce-eh-specs". You can also remove some debugging code by adding -DNDEBUG -DG_DISABLE_ASSERT -DNO_DEBUG but be carefull - eg. gimp don't like it. Pls have a look at http://forums.gentoo.org/viewtopic-t-333123.html
nBVCXz
zen-kernel (bfq compcache) | /tmp -> tmpfs | ext4 | zsh | xfce | schedtool
Top
Guinpen
Guru
Guru
User avatar
Posts: 393
Joined: Wed Dec 08, 2004 1:18 pm
Contact:
Contact Guinpen
Website

  • Quote

Post by Guinpen » Tue Dec 13, 2005 6:27 pm

Thanks, although I definitely don't need more crazy optimization over what I have.. it's fast enough, and quite stable like this. I was more worried about GCC4 being broken for my existing flags, rather than adding new ones.

BTW, would -Os instead of -O2 produce substantial decrease in memory requirements for applications, or am I dreaming?
Top
Gnufsh
Guru
Guru
User avatar
Posts: 400
Joined: Sat Dec 28, 2002 5:40 pm
Location: Portland, OR
Contact:
Contact Gnufsh
Website

  • Quote

Post by Gnufsh » Tue Dec 13, 2005 7:01 pm

I don't think it would be substantial. IMHO, you're better off with -O2, performance-wise.
Top
cheater1034
Veteran
Veteran
User avatar
Posts: 1558
Joined: Thu Sep 09, 2004 7:38 pm
Contact:
Contact cheater1034
Website

  • Quote

Post by cheater1034 » Tue Dec 13, 2005 8:16 pm

I am also looking for a stable and optmized setup for GCC 4.x :) so far building up, I was considering.

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 everything
I am about to rebuild the world (testing a new make.conf setup) but a stable make.conf that still has optimization sounds appealing :) as long as the peformance is increased, not decreased 8)
Last edited by cheater1034 on Tue Dec 13, 2005 8:27 pm, edited 1 time in total.
IRC!: #zen-sources on irc.rizon.net
zen-kernel.org
--
Lost in android development land.
Top
nbvcxz
Guru
Guru
User avatar
Posts: 379
Joined: Fri Sep 02, 2005 7:09 pm
Location: Kraków / PL

  • Quote

Post by nbvcxz » Tue Dec 13, 2005 8:17 pm

Au contraire Gnufsh. Because of my rather old computer with Gentoo installed and only 124 Mb ram I use (which works great):

Code: 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
the only problem is KDE - can't compile with gcc-4
nBVCXz
zen-kernel (bfq compcache) | /tmp -> tmpfs | ext4 | zsh | xfce | schedtool
Top
cheater1034
Veteran
Veteran
User avatar
Posts: 1558
Joined: Thu Sep 09, 2004 7:38 pm
Contact:
Contact cheater1034
Website

  • Quote

Post by cheater1034 » Tue Dec 13, 2005 8:24 pm

nbvcxz wrote:Au contraire Gnufsh. Because of my rather old computer with Gentoo installed and only 124 Mb ram I use (which works great):

Code: 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
the only problem is KDE - can't compile with gcc-4
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
IRC!: #zen-sources on irc.rizon.net
zen-kernel.org
--
Lost in android development land.
Top
nxsty
Veteran
Veteran
User avatar
Posts: 1556
Joined: Wed Jun 23, 2004 7:00 pm
Location: .se
Contact:
Contact nxsty
Website

  • Quote

Post by nxsty » Tue Dec 13, 2005 8:35 pm

I wouldn't recomend using the vectorizer in gcc 4.0. It's still suboptimal and usually only decreases performance. It'll be much better in 4.1 and 4.2.
Top
nbvcxz
Guru
Guru
User avatar
Posts: 379
Joined: Fri Sep 02, 2005 7:09 pm
Location: Kraków / PL

  • Quote

Post by nbvcxz » Tue Dec 13, 2005 8:37 pm

cheater1034 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
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.html

(btw - it can't be CFLAGS breakage - I tried event with CFLAGS="-O2 -march=pentium3" and the same CXXFLAGS with no success)
nBVCXz
zen-kernel (bfq compcache) | /tmp -> tmpfs | ext4 | zsh | xfce | schedtool
Top
enderandrew
l33t
l33t
User avatar
Posts: 731
Joined: Tue Oct 25, 2005 8:37 am

  • Quote

Post by enderandrew » Wed Dec 14, 2005 6:11 am

cheater1034 wrote:I am also looking for a stable and optmized setup for GCC 4.x :) so far building up, I was considering.

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 everything
I am about to rebuild the world (testing a new make.conf setup) but a stable make.conf that still has optimization sounds appealing :) as long as the peformance is increased, not decreased 8)
I know several users who report zero problems using LDFLAGs, myself included with GCC 4.x

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?
Nihilism makes me smile.
Top
luisfelipe
Guru
Guru
Posts: 377
Joined: Sat Apr 09, 2005 7:11 pm

  • Quote

Post by luisfelipe » Wed Dec 14, 2005 6:47 am

Just a quick note : with gcc 4.1 at least, some packages require -ffriend-injection in order to compile. Also, my system still has something
like 15 packages that don't compile with it yet, but they are mostly small stuff.
I didn't notice any significant speed increase after upgrading from gcc 3.x .
Top
yoshi314
l33t
l33t
User avatar
Posts: 852
Joined: Thu Dec 30, 2004 9:33 pm
Location: PL
Contact:
Contact yoshi314
Website

  • Quote

Post by yoshi314 » Wed Dec 14, 2005 7:02 am

i believe i had. but it could just be because i installed newer packages since i installed everything from scratch ( accidental mkfs on /home and you feel free to experiment :/ ) but i think that at least gcc4 works faster than gcc3, as big packages take less time to build. (there is some improvement with glibc, for example)

i use 4.0.2 with pentium4-based celeron willamette 1.7ghz (it's said to be dog slow, perhaps it is) and 768mb ram

Code: Select all

CFLAGS="-march=pentium4 -mtune=pentium4 -O2 -pipe -fomit-frame-pointer -mfpmath=sse -funit-at-a-time"
CXXCFLAGS="${CFLAGS}"
i often pop -fvisibility-inlines-hidden to cxxflags, and remove them if something fails to work.

so far there have been little apps failing with gcc4 - qemu does not compile (probably never will, judging from the developers point of view), transcode does not compile.
~amd64
Top
luisfelipe
Guru
Guru
Posts: 377
Joined: Sat Apr 09, 2005 7:11 pm

  • Quote

Post by luisfelipe » Wed Dec 14, 2005 8:26 am

transcode compiles here. And you are indeed correct about gcc4 being faster at compiling. When I said that I didn't notice
any performance increase, I meant system-wise.
Top
Tiger683
Veteran
Veteran
User avatar
Posts: 1347
Joined: Sat Jan 08, 2005 8:34 pm
Location: Heffner's House

  • Quote

Post by Tiger683 » Wed Dec 14, 2005 2:24 pm

insane LDFLAGS don't break more packages under gcc-4 than under gcc-3, that's a fact.
Actually, only thing that might mess up something is --as-needed, but mostly stuff that can't take it simply doesn't compile, so you know what's up
before runtime.

The masked version of transcode in portage (1.X.X) builds with gcc-4.1

Kernels built with gcc-4.X are noticeably slower than built with gcc-3.4
Retired gentoo user
Top
nxsty
Veteran
Veteran
User avatar
Posts: 1556
Joined: Wed Jun 23, 2004 7:00 pm
Location: .se
Contact:
Contact nxsty
Website

  • Quote

Post by nxsty » Wed Dec 14, 2005 2:37 pm

yoshi314 wrote:i often pop -fvisibility-inlines-hidden to cxxflags, and remove them if something fails to work.
You need the first patch from this bug to fix that:
http://bugs.gentoo.org/show_bug.cgi?id=109633
Top
cheater1034
Veteran
Veteran
User avatar
Posts: 1558
Joined: Thu Sep 09, 2004 7:38 pm
Contact:
Contact cheater1034
Website

  • Quote

Post by cheater1034 » Wed Dec 14, 2005 7:37 pm

enderandrew wrote:
cheater1034 wrote:I am also looking for a stable and optmized setup for GCC 4.x :) so far building up, I was considering.

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 everything
I am about to rebuild the world (testing a new make.conf setup) but a stable make.conf that still has optimization sounds appealing :) as long as the peformance is increased, not decreased 8)
I know several users who report zero problems using LDFLAGs, myself included with GCC 4.x

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?
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
IRC!: #zen-sources on irc.rizon.net
zen-kernel.org
--
Lost in android development land.
Top
nxsty
Veteran
Veteran
User avatar
Posts: 1556
Joined: Wed Jun 23, 2004 7:00 pm
Location: .se
Contact:
Contact nxsty
Website

  • Quote

Post by nxsty » Wed Dec 14, 2005 7:40 pm

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
That's because it's supposed to be LDFLAGS="-Wl,-O1" and not LDFLAGS="-W1,-O1". :P Letting ld optimize the ouput is safe and only breaks a few packages with broken Makefiles that passes the LDFLAGS variable to the linker directly and not through gcc.
Top
Tiger683
Veteran
Veteran
User avatar
Posts: 1347
Joined: Sat Jan 08, 2005 8:34 pm
Location: Heffner's House

  • Quote

Post by Tiger683 » Wed Dec 14, 2005 7:41 pm

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,
but your elaborations are plain wrong...sorry.
Retired gentoo user
Top
cheater1034
Veteran
Veteran
User avatar
Posts: 1558
Joined: Thu Sep 09, 2004 7:38 pm
Contact:
Contact cheater1034
Website

  • Quote

Post by cheater1034 » Wed Dec 14, 2005 7:55 pm

Tiger683 wrote:
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,
but your elaborations are plain wrong...sorry.
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 ldflags :?

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.
IRC!: #zen-sources on irc.rizon.net
zen-kernel.org
--
Lost in android development land.
Top
mpalencia
n00b
n00b
User avatar
Posts: 51
Joined: Wed Feb 16, 2005 8:17 pm
Location: Colombia

  • Quote

Post by mpalencia » Thu Dec 15, 2005 2:54 am

My current system is compiled from scratch using gcc 4.0.2-20051110 (overlay) and nxstys overlay which adds support for -Bdirect.
these are my LDFLAGS:
LDFLAGS="-Wl,-O1 -Wl,-Bdirect -Wl,-z,now"
Of course, -Bdirect is still experimental, although I have not had any problems with it.
The recommended "stable" that will probably not break anything is -Wl,-O1
I use -z,now because it loads all the libraries used by an application, which incresases load time but improves performance and stabilty (or so I read)
Lucky Livecd 32 and 64 bit versions (reiser4 suppport)
http://forums.gentoo.org/viewtopic-p-29 ... ml#2986139

There are 2 things infinite: the universe and human stupidity, but I am not sure about the first one. (Einstein)
Top
enderandrew
l33t
l33t
User avatar
Posts: 731
Joined: Tue Oct 25, 2005 8:37 am

  • Quote

Post by enderandrew » Thu Dec 15, 2005 7:49 am

cheater1034 wrote:
Tiger683 wrote:
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,
but your elaborations are plain wrong...sorry.
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 ldflags :?

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.
Except I just built two systems with gcc 4.0.2-r1 with the following flags with no problems:

CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -ftracer"
CXXFLAGS="${CFLAGS} -ffriend-injection -fvisibility-inlines-hidden"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed"
Nihilism makes me smile.
Top
cheater1034
Veteran
Veteran
User avatar
Posts: 1558
Joined: Thu Sep 09, 2004 7:38 pm
Contact:
Contact cheater1034
Website

  • Quote

Post by cheater1034 » Thu Dec 15, 2005 9:09 pm

Well :? I dont know what to say.
(1) - The Setup, LDFLAGS="-W1,-O1", did not work (maybe I did it wrong :?:)
(2) - Attempting stability, Im staying away 8)
IRC!: #zen-sources on irc.rizon.net
zen-kernel.org
--
Lost in android development land.
Top
mpalencia
n00b
n00b
User avatar
Posts: 51
Joined: Wed Feb 16, 2005 8:17 pm
Location: Colombia

  • Quote

Post by mpalencia » Fri Dec 16, 2005 1:37 am

(1) - The Setup, LDFLAGS="-W1,-O1", did not work (maybe I did it wrong :?:)
Maybe the problem is this: LDFLAGS="-W1,-O1", where it should be LDFLAGS="-Wl,-O1", with the letter "L" not the number 1.
Lucky Livecd 32 and 64 bit versions (reiser4 suppport)
http://forums.gentoo.org/viewtopic-p-29 ... ml#2986139

There are 2 things infinite: the universe and human stupidity, but I am not sure about the first one. (Einstein)
Top
Post Reply

41 posts
  • 1
  • 2
  • Next

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic