Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Was macht -fexceptions in CHOST genau
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
LinuxTom
l33t
l33t


Joined: 26 Mar 2006
Posts: 798

PostPosted: Fri Oct 27, 2006 12:43 pm    Post subject: Was macht -fexceptions in CHOST genau Reply with quote

Kann mir das mal jemand genau erklären? Ich finde dazu im Netz zu wenig (GCC) als dass ich die Auswirkungen genau beurteilen könnte.
Back to top
View user's profile Send private message
amne
Bodhisattva
Bodhisattva


Joined: 17 Nov 2002
Posts: 6378
Location: Graz / EU

PostPosted: Fri Oct 27, 2006 1:11 pm    Post subject: Reply with quote

Im CHOST gar nix, wenn in den CFLAGS.

Generell würde ich von CFLAGS, die ich nicht verstehe einfach die Finger lassen. ;)
_________________
Dinosaur week! (Ok, this thread is so last week)
Back to top
View user's profile Send private message
LinuxTom
l33t
l33t


Joined: 26 Mar 2006
Posts: 798

PostPosted: Fri Oct 27, 2006 1:32 pm    Post subject: Reply with quote

amne wrote:
Generell würde ich von CFLAGS, die ich nicht verstehe einfach die Finger lassen.

Was leider aber nicht immer geht (siehe den Bug). :(

Aber jetzt habe ich inzwischen auch endlich die Erklärung gefunden. Macht die Programme nur entwas größer, nicht langsamer (siehe GCC-Manual)
Back to top
View user's profile Send private message
amne
Bodhisattva
Bodhisattva


Joined: 17 Nov 2002
Posts: 6378
Location: Graz / EU

PostPosted: Fri Oct 27, 2006 1:35 pm    Post subject: Reply with quote

Ich würde dass dann nur als Workaround betrachten und nicht den globalen CFLAGS in der make.conf hinzufügen - bzw wenn der Bug gefixt ist sollte es normal auch funktionieren.
_________________
Dinosaur week! (Ok, this thread is so last week)
Back to top
View user's profile Send private message
LinuxTom
l33t
l33t


Joined: 26 Mar 2006
Posts: 798

PostPosted: Fri Oct 27, 2006 1:39 pm    Post subject: Reply with quote

amne wrote:
Ich würde dass dann nur als Workaround betrachten und nicht den globalen CFLAGS in der make.conf hinzufügen - bzw wenn der Bug gefixt ist sollte es normal auch funktionieren.

Und wie kann ich das den Programmen dann hinzufügen? Ich kenne nicht die Möglichkeit (wie bei USE-Flags) CFLAGS für Programme individuell einstellen zu können. Würde mir aber selber auch besser gefallen.

Noch vor 2 Wochen habe ich die Programme auch ohne diese Option einwandfrei kompilieren können. Aber da scheint eine Änderung im Gentoo-Portage stattgefunden zu haben. Vielleicht war diese Option sonst immer angeschaltet? Denn an der mysql-*-Versionen hat sich seitdem nichts geändert.
Back to top
View user's profile Send private message
smg
Veteran
Veteran


Joined: 13 Aug 2004
Posts: 1402
Location: /home/stephan

PostPosted: Fri Oct 27, 2006 1:40 pm    Post subject: Reply with quote

MGGladeXML.cc <-- scheint ja nen c++ programm zu sein, bzw. source, da sollte auch -fexception an sein! bei c source dagegen nicht, da gibt's error checking ja praktisch nicht (evt. durch asserts etc)
_________________
GnuPG-Key-ID: 0xF8C275D4
Fingerprint: 5B6F 134A 189B A24D 342B 0961 8D4B 0230 F8C2 75D4
Code:
perl -WTe '($")=$/;print qq(@{[reverse('0'..'100')]}$/BOOM!$/);'
Back to top
View user's profile Send private message
amne
Bodhisattva
Bodhisattva


Joined: 17 Nov 2002
Posts: 6378
Location: Graz / EU

PostPosted: Fri Oct 27, 2006 1:45 pm    Post subject: Reply with quote

LinuxTom wrote:
amne wrote:
Ich würde dass dann nur als Workaround betrachten und nicht den globalen CFLAGS in der make.conf hinzufügen - bzw wenn der Bug gefixt ist sollte es normal auch funktionieren.

Und wie kann ich das den Programmen dann hinzufügen? Ich kenne nicht die Möglichkeit (wie bei USE-Flags) CFLAGS für Programme individuell einstellen zu können. Würde mir aber selber auch besser gefallen.

Sowas wie package.use gibts nicht, allerdings funktioniert z.B.:
Code:
CFLAGS="-march=pentium-m -O3 -pipe -fomit-frame-pointer -fexceptions" CXXFLAGS="-march=pentium-m -O3 -pipe -fomit-frame-pointer -fexceptions" emerge dev-db/mysql-administrator
- sprich einfach die CFLAGS aus der make.conf auf der cmdline voranstellen und -fexceptions hinzufügen.
_________________
Dinosaur week! (Ok, this thread is so last week)
Back to top
View user's profile Send private message
LinuxTom
l33t
l33t


Joined: 26 Mar 2006
Posts: 798

PostPosted: Fri Oct 27, 2006 2:08 pm    Post subject: Reply with quote

amne wrote:
sprich einfach die CFLAGS aus der make.conf auf der cmdline voranstellen und -fexceptions hinzufügen.

Und wie passiert das dann bei emerge -uND world, so dass es dann nur für diese beiden Pakete wirkt? ;)
Back to top
View user's profile Send private message
DooMi
Tux's lil' helper
Tux's lil' helper


Joined: 03 May 2004
Posts: 103
Location: /dev/null

PostPosted: Fri Oct 27, 2006 2:51 pm    Post subject: Reply with quote

LinuxTom wrote:
amne wrote:
sprich einfach die CFLAGS aus der make.conf auf der cmdline voranstellen und -fexceptions hinzufügen.

Und wie passiert das dann bei emerge -uND world, so dass es dann nur für diese beiden Pakete wirkt? ;)


garnicht?
die speziellen pakete müssen dann halt per hand geupdated werden.
ist ja kein beinbruch
_________________
cyrex ~ # ./vpenis
--- Weeee! Congrats! Your VPenis is actually 356.8 cm long ---
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5359

PostPosted: Fri Oct 27, 2006 3:00 pm    Post subject: Reply with quote

soweit ich weis, gibt es ne möglichket CFLAGS/CXXFLAGS paket bezogen zu ändern/erweitern...

ach da ist es ja:
https://forums.gentoo.org/viewtopic-t-499881-highlight-custom+cflags.html
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
LinuxTom
l33t
l33t


Joined: 26 Mar 2006
Posts: 798

PostPosted: Fri Oct 27, 2006 4:28 pm    Post subject: Reply with quote

firefly wrote:
soweit ich weis, gibt es ne möglichket CFLAGS/CXXFLAGS paket bezogen zu ändern/erweitern...

Danke, das ist genau das, was ich brauchte. :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
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