Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Gentoo Chat
  • Search

Extreme CFLAGS problems...

Opinions, ideas and thoughts about Gentoo. Anything and everything about Gentoo except support questions.
Post Reply
  • Print view
Advanced search
246 posts
  • Page 5 of 10
    • Jump to page:
  • Previous
  • 1
  • …
  • 3
  • 4
  • 5
  • 6
  • 7
  • …
  • 10
  • Next
Author
Message
Lokheed
Veteran
Veteran
User avatar
Posts: 1295
Joined: Mon Jul 12, 2004 8:38 pm
Location: /usr/src/linux
Contact:
Contact Lokheed
Website

  • Quote

Post by Lokheed » Fri Jan 07, 2005 9:41 pm

psyqil wrote:
Lokheed wrote:You should probably read this entire thread then. You 1337 system is quite the contrary...
Perhaps you should read up on his flags in the gcc manual? :P
Maybe I should use more smilies in my posts? Though I am anti-smiley...or maybe I just didnt find his post all that funny. Maybe I am not that big a geek <<insert winky smilie>>
Top
JoeG
Apprentice
Apprentice
User avatar
Posts: 179
Joined: Wed Jul 30, 2003 4:42 pm
Location: Kentucky, USA

  • Quote

Post by JoeG » Tue Jan 11, 2005 9:43 am

Joelio wrote:This is my set of flags for a super 1337 system..

Code: Select all

CFLAGS="-O3 -mcpu=athlon-xp -pipe -fomit-frame-pointer -fnitrous-oxide-inject -fgo-faster-stripes"
That's just wrong, man. I spewed Dr. Pepper all over my keyboard. :lol:
Linux User#226477
Top
falcon_za
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 136
Joined: Tue Aug 31, 2004 12:26 pm
Location: Nara - Japan

  • Quote

Post by falcon_za » Sat Jan 22, 2005 6:55 am

I want to know what you guys think about my flags. Not if I should add something, but more like if I shoudl remove something. I use those because I was told it is safe. I just Hope it wasn't a ricer who told me that. I don't give a shit about +0.5% performance. I would be happy without any flags at all, but When I am told this does good without doing bad, then I give it a try. can you confirm that it actualy doesn't do anything bad?

CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,-S"
Top
TrueDFX
Retired Dev
Retired Dev
Posts: 1348
Joined: Wed Jun 02, 2004 5:33 pm

  • Quote

Post by TrueDFX » Sat Jan 22, 2005 7:18 am

falcon_za: Your CFLAGS look fine. If I were you I'd remove -Wl,-S from the LDFLAGS, however. portage normally strips already, and when it doesn't that's because stripping causes problems. That, and if you want your system to be well-supported, you shouldn't use LDFLAGS at all, but that's a different story :)
Top
falcon_za
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 136
Joined: Tue Aug 31, 2004 12:26 pm
Location: Nara - Japan

  • Quote

Post by falcon_za » Sat Jan 22, 2005 9:17 am

TrueDFX wrote:That, and if you want your system to be well-supported, you shouldn't use LDFLAGS at all, but that's a different story :)
Story I haven't heard of. can you tell me more about this? I understand rather well what is a CFLAG, even though I do not understand well the specific concequences of each individual flag. so with a bit of information on which is stable and which is not, I can quite easily decide what's good for me.

But LDFLALGS is more magical to me, so I got those since I read somewhere (can't recall where) that it was nice. I'll remove the LDFLAG you pointed out, but can you tell me why I should completely quit using LDFLAGs? what's wrong with them?
Top
TrueDFX
Retired Dev
Retired Dev
Posts: 1348
Joined: Wed Jun 02, 2004 5:33 pm

  • Quote

Post by TrueDFX » Sat Jan 22, 2005 9:39 am

They're not necessarily wrong, they're just not tested/trusted/whatever well enough by the Gentoo devs to be officially supported for now.

http://forums.gentoo.org/viewtopic.php? ... 84#1935384

(Edit: added the link.)
Top
ciaranm
Retired Dev
Retired Dev
User avatar
Posts: 1719
Joined: Sat Jul 19, 2003 11:04 pm
Location: In Hiding
Contact:
Contact ciaranm
Website

  • Quote

Post by ciaranm » Sat Jan 22, 2005 1:47 pm

falcon_za wrote:But LDFLALGS is more magical to me, so I got those since I read somewhere (can't recall where) that it was nice. I'll remove the LDFLAG you pointed out, but can you tell me why I should completely quit using LDFLAGs? what's wrong with them?
Hint: if you don't know what something does, don't put it in make.conf.

LDFLAGS affect the linker. Specifying LDFLAGS in make.conf is known to break some apps, can potentially have security issues with s*id apps and doesn't make much of a difference to performance. Right now most developers consider any form of LDFLAGS setting in make.conf to be unsupported. There're vague plans to maybe find and test a sane set of options for global use, but if we do that then we'll probably just stick it in the default make settings anyway so that you don't have to worry about it.
Paludis 0.12, 127.35% Portage compatible and six times faster.
Top
duby2291
Guru
Guru
User avatar
Posts: 583
Joined: Sun Oct 17, 2004 4:47 am

  • Quote

Post by duby2291 » Sat Jan 22, 2005 11:49 pm

I hate to kick a dead horse, but..........
<<kick>> <<kick>>
CFLAGS="-O3 -march=athlon64 -mtune=athlon64 -pipe -ftracer -funroll-loops"
Are these flags considered safe? If not I'll remove the one's that arent. I've been haveing some problems compiling alot of program's from the beginning. Now I'm thinking my CFLAGs are to blame.
Top
ciaranm
Retired Dev
Retired Dev
User avatar
Posts: 1719
Joined: Sat Jul 19, 2003 11:04 pm
Location: In Hiding
Contact:
Contact ciaranm
Website

  • Quote

Post by ciaranm » Sun Jan 23, 2005 12:04 am

duby2291 wrote:I hate to kick a dead horse, but..........
<<kick>> <<kick>>
CFLAGS="-O3 -march=athlon64 -mtune=athlon64 -pipe -ftracer -funroll-loops"
Are these flags considered safe? If not I'll remove the one's that arent. I've been haveing some problems compiling alot of program's from the beginning. Now I'm thinking my CFLAGs are to blame.
Drop to -O2 and kill the -funroll-loops and the -ftracer, then rebuild your system from scratch twice. If you're still having problems then it's probably a genuine issue.
Paludis 0.12, 127.35% Portage compatible and six times faster.
Top
aethyr
Veteran
Veteran
User avatar
Posts: 1085
Joined: Sun Apr 06, 2003 5:16 pm
Location: NYC

  • Quote

Post by aethyr » Sun Jan 23, 2005 7:06 pm

ciaranm wrote:LDFLAGS affect the linker. Specifying LDFLAGS in make.conf is known to break some apps
Which apps would those be? The only one I've seen someone having an issue with is Mac-on-Linux, and I'm not even sure that was a real bug.
Top
ciaranm
Retired Dev
Retired Dev
User avatar
Posts: 1719
Joined: Sat Jul 19, 2003 11:04 pm
Location: In Hiding
Contact:
Contact ciaranm
Website

  • Quote

Post by ciaranm » Sun Jan 23, 2005 7:18 pm

aethyr wrote:
ciaranm wrote:LDFLAGS affect the linker. Specifying LDFLAGS in make.conf is known to break some apps
Which apps would those be? The only one I've seen someone having an issue with is Mac-on-Linux, and I'm not even sure that was a real bug.
Well, it breaks toolchain for a start. Although, our toolchain people are overly nice and do some filtering for you.
Paludis 0.12, 127.35% Portage compatible and six times faster.
Top
vdboor
Guru
Guru
User avatar
Posts: 592
Joined: Wed Dec 03, 2003 9:31 am
Location: The Netherlands
Contact:
Contact vdboor
Website

  • Quote

Post by vdboor » Sun Jan 23, 2005 10:00 pm

ciaranm wrote:Well, it breaks toolchain for a start. Although, our toolchain people are overly nice and do some filtering for you.
What do you mean with the "toolchain" exactly?
The best way to accelerate a windows server is by 9.81M/S²
Linux user #311670 and Yet Another Perl Programmer

[ screenies | Coding on KMess ]
Top
spb
Retired Dev
Retired Dev
User avatar
Posts: 2135
Joined: Fri Jan 02, 2004 1:18 pm
Location: Cambridge, UK

  • Quote

Post by spb » Sun Jan 23, 2005 10:46 pm

vdboor wrote:What do you mean with the "toolchain" exactly?
The toolchain is the set of tools used to build programs. Gcc, binutils, glibc, etc. The thing that you're screwed if you break.
14:20:19 <mark_alec> i fail
..shortly afterwards...
14:32:09 <spb> so it's "do what i want or i ban you"
14:32:13 <mark_alec> yes
Top
truekaiser
l33t
l33t
User avatar
Posts: 832
Joined: Fri Mar 05, 2004 11:00 pm

  • Quote

Post by truekaiser » Sun Jan 23, 2005 11:46 pm

ciaranm i read you cflags perposal. and this is my opnion. you might as well loby the board to remove all user ablity to modify cflags.

a much better option is already in place. just ignore the nuts.
Top
ciaranm
Retired Dev
Retired Dev
User avatar
Posts: 1719
Joined: Sat Jul 19, 2003 11:04 pm
Location: In Hiding
Contact:
Contact ciaranm
Website

  • Quote

Post by ciaranm » Sun Jan 23, 2005 11:53 pm

truekaiser wrote:ciaranm i read you cflags perposal. and this is my opnion. you might as well loby the board to remove all user ablity to modify cflags.

a much better option is already in place. just ignore the nuts.
Eh, naah, I left the sensible -march/cpu/tune stuff in. That's all that really matters. If I thought it was doable via profile then I'd suggest that instead, but there're way too many mips and x86 subCPUs for that.
Paludis 0.12, 127.35% Portage compatible and six times faster.
Top
truekaiser
l33t
l33t
User avatar
Posts: 832
Joined: Fri Mar 05, 2004 11:00 pm

  • Quote

Post by truekaiser » Mon Jan 24, 2005 12:00 am

the other option is still better. ingore the nuts.

put a nice page before it allows you to submit a bug saying if you have any of the X in you make.conf you are not allowed to submit bug reports.

basicly give support to those who want it and let those who don't do what they will without forceing packages to compile under sane flags just cause your too tired of sorting though the nuts.
Top
ciaranm
Retired Dev
Retired Dev
User avatar
Posts: 1719
Joined: Sat Jul 19, 2003 11:04 pm
Location: In Hiding
Contact:
Contact ciaranm
Website

  • Quote

Post by ciaranm » Mon Jan 24, 2005 12:10 am

truekaiser wrote:the other option is still better. ingore the nuts.

put a nice page before it allows you to submit a bug saying if you have any of the X in you make.conf you are not allowed to submit bug reports.

basicly give support to those who want it and let those who don't do what they will without forceing packages to compile under sane flags just cause your too tired of sorting though the nuts.
Tried that, didn't work. You can thank LoveChild and OneOfOne for that.
Paludis 0.12, 127.35% Portage compatible and six times faster.
Top
truekaiser
l33t
l33t
User avatar
Posts: 832
Joined: Fri Mar 05, 2004 11:00 pm

  • Quote

Post by truekaiser » Mon Jan 24, 2005 12:14 am

ciaranm wrote:
truekaiser wrote:the other option is still better. ingore the nuts.

put a nice page before it allows you to submit a bug saying if you have any of the X in you make.conf you are not allowed to submit bug reports.

basicly give support to those who want it and let those who don't do what they will without forceing packages to compile under sane flags just cause your too tired of sorting though the nuts.
Tried that, didn't work. You can thank LoveChild and OneOfOne for that.
then you might as well replace portage with rpm.
Top
spb
Retired Dev
Retired Dev
User avatar
Posts: 2135
Joined: Fri Jan 02, 2004 1:18 pm
Location: Cambridge, UK

  • Quote

Post by spb » Mon Jan 24, 2005 12:17 am

truekaiser wrote:then you might as well replace portage with rpm.
OK, now you're just not making sense.
14:20:19 <mark_alec> i fail
..shortly afterwards...
14:32:09 <spb> so it's "do what i want or i ban you"
14:32:13 <mark_alec> yes
Top
ciaranm
Retired Dev
Retired Dev
User avatar
Posts: 1719
Joined: Sat Jul 19, 2003 11:04 pm
Location: In Hiding
Contact:
Contact ciaranm
Website

  • Quote

Post by ciaranm » Mon Jan 24, 2005 12:17 am

truekaiser wrote:then you might as well replace portage with rpm.
Uh, no. We provide you with choice where there is a sane choice to be made. -ffast-math is not a sane choice.
Paludis 0.12, 127.35% Portage compatible and six times faster.
Top
truekaiser
l33t
l33t
User avatar
Posts: 832
Joined: Fri Mar 05, 2004 11:00 pm

  • Quote

Post by truekaiser » Mon Jan 24, 2005 12:50 am

actualy i am.
your limiting choice. they choose to use those cflags, why isn't the point the fact is they can. if you take that ability away you might as well stop the whole point of gentoo. which is you make your own choices and change it to the father knows best distro's like red hat and suse. so to this point i do wonder why you want to limit choice just cause you can't stand a few nuts. ignore them and be done with it, they will eventualy find out they are at fault or move elsewhere.
Top
ciaranm
Retired Dev
Retired Dev
User avatar
Posts: 1719
Joined: Sat Jul 19, 2003 11:04 pm
Location: In Hiding
Contact:
Contact ciaranm
Website

  • Quote

Post by ciaranm » Mon Jan 24, 2005 12:56 am

truekaiser wrote:actualy i am.
your limiting choice. they choose to use those cflags, why isn't the point the fact is they can. if you take that ability away you might as well stop the whole point of gentoo. which is you make your own choices and change it to the father knows best distro's like red hat and suse. so to this point i do wonder why you want to limit choice just cause you can't stand a few nuts. ignore them and be done with it, they will eventualy find out they are at fault or move elsewhere.
Uh, we provide you with choice where it is sane to do so.
Paludis 0.12, 127.35% Portage compatible and six times faster.
Top
rhill
Retired Dev
Retired Dev
User avatar
Posts: 1629
Joined: Fri Oct 22, 2004 9:58 am
Location: sk.ca

  • Quote

Post by rhill » Mon Jan 24, 2005 2:02 am

bullshit.

freedom of choice is freedom to fuck up our systems if we so choose. please stop trying to protect users from ourselves, dad. just because you've decided something is "sane" doesn't make it law.

flag filtering definitely does have it's place. especially in the toolchain, which should never be build with any C/CXX/LD/ASFLAGS set. but everything else is fair fucking game until it is proven to break. i'm sick of this condescending "save-you-from-your-own-stupidity" attitude. we're not users verses develepers. we're a COMMUNITY, and i think some people need to have that drilled into their head.

feel free to toss away as many bug reports as you like, but force your world-view on the community and i think you'll soon find the community forcing right back.
by design, by neglect
for a fact or just for effect
Top
truekaiser
l33t
l33t
User avatar
Posts: 832
Joined: Fri Mar 05, 2004 11:00 pm

  • Quote

Post by truekaiser » Mon Jan 24, 2005 3:14 am

dirtyepic wrote:bullshit.

freedom of choice is freedom to fuck up our systems if we so choose. please stop trying to protect users from ourselves, dad. just because you've decided something is "sane" doesn't make it law.

flag filtering definitely does have it's place. especially in the toolchain, which should never be build with any C/CXX/LD/ASFLAGS set. but everything else is fair fucking game until it is proven to break. i'm sick of this condescending "save-you-from-your-own-stupidity" attitude. we're not users verses develepers. we're a COMMUNITY, and i think some people need to have that drilled into their head.

feel free to toss away as many bug reports as you like, but force your world-view on the community and i think you'll soon find the community forcing right back.
exactly. just because your tired of the nuts here posting bad bug reports due to there own stupidity doesn't give you the right to force what you consider sane on everyone. if you are tired of see those bug reports then take a break from being a dev for awhile.

if i wanted a 'father knows best distro' i would of chosen suse or mandrake. both of which i liked before coming to gentoo and finding i liked the freedom here.
Top
Athas
Guru
Guru
User avatar
Posts: 394
Joined: Thu Sep 04, 2003 6:00 pm
Location: Brøndby, Denmark
Contact:
Contact Athas
Website

  • Quote

Post by Athas » Mon Jan 24, 2005 8:03 am

truekaiser wrote:exactly. just because your tired of the nuts here posting bad bug reports due to there own stupidity doesn't give you the right to force what you consider sane on everyone. if you are tired of see those bug reports then take a break from being a dev for awhile.
Have any of you ever considered that this might be a general emotion among the Gentoo developers, or that valuable developer time is wasted on bogus bug reports? Gentoo is about sensible choice. ciaranm spends a lot more time on these things than we do, therefore I assume that he is correct, when he states that there is a problem.
Emacs-optimized danish console keymap - My .emacs
Climacs - next generation Emacs.
Top
Post Reply
  • Print view

246 posts
  • Page 5 of 10
    • Jump to page:
  • Previous
  • 1
  • …
  • 3
  • 4
  • 5
  • 6
  • 7
  • …
  • 10
  • Next

Return to “Gentoo Chat”

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