View previous topic :: View next topic |
Author |
Message |
jew.de Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/d9bb02be3dc3c2bd83fe7.jpg)
Joined: 25 Sep 2002 Posts: 226 Location: Frankfurt/Main
|
Posted: Fri Sep 27, 2002 3:35 pm Post subject: /etc/make.conf |
|
|
Hi,
mein System habe ich mit Hilfe von Stage3 1.4_rc1 aufgebaut.
Ich habe mir jetzt mal die Datei /etc/make.conf angeschaut, und habe die CFLAG auf CFLAGS="-mcpu=duron -O3" gesetzt.
Wenn ich jetzt ein Programm kompelieren will, bricht er ab und sagt:
checking whether the C compiler (gcc -mcpu=duron -O3 ) works... no
Wie kann ich den gcc (3.2) optimieren, so dass er läuft?
Wenn ich es denn geschaft haben sollte, kann man dann alles noch einmal mit den geänderten Werten kompelieren, auch das System an sich? Oder den gcc an sich?
Danke
jew.de |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DocSilly n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/d9e354ac3d6ce5c4c1945.jpg)
Joined: 23 Jul 2002 Posts: 13 Location: Germany
|
Posted: Fri Sep 27, 2002 4:45 pm Post subject: |
|
|
Welcher stage3 tarball ist es denn ?
Kannste auch mal eventuell deine kompletten zeilen fuer CHOST, CFLAGS und CXXFLAGS deiner make.conf hier posten? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jew.de Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/d9bb02be3dc3c2bd83fe7.jpg)
Joined: 25 Sep 2002 Posts: 226 Location: Frankfurt/Main
|
Posted: Fri Sep 27, 2002 4:49 pm Post subject: |
|
|
DocSilly wrote: | Welcher stage3 tarball ist es denn ?
Kannste auch mal eventuell deine kompletten zeilen fuer CHOST, CFLAGS und CXXFLAGS deiner make.conf hier posten? |
Klar:
/etc/make.conf:
CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=duron -O3 -pipe"
CXXFLAGS="-mcpu=duron -O3 -pipe"
Ich benutze das stage3-i686_athlon-1.4_rc1.tar.bz2 Tarball.
jew.de |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DocSilly n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/d9e354ac3d6ce5c4c1945.jpg)
Joined: 23 Jul 2002 Posts: 13 Location: Germany
|
Posted: Fri Sep 27, 2002 7:19 pm Post subject: |
|
|
uhm, ich bin nicht der Experte, aber wenn du CFLAGS="-mcpu=duron -O3 -pipe" nutzen willst dann darfst nich den stage3-athlon tarball nehmen, sondern du musst von anfang an mit dem stage1-x86-1.4_rc1-20020908-1208.tar.bz2 arbeiten. Der stage3 den du nutzt wurde komplett mit CFLAGS='-march=athlon -mcpu=athlon -O3 -pipe' kompiliert, was zu deinen problemen fuehrt. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jew.de Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/d9bb02be3dc3c2bd83fe7.jpg)
Joined: 25 Sep 2002 Posts: 226 Location: Frankfurt/Main
|
Posted: Fri Sep 27, 2002 7:26 pm Post subject: |
|
|
ok, wenn ich die Option athlon nehme, klapps. Vorher stand es auf i686.
Kann ich denn jetzt alles, was schon installiert ist, nochmal mit diesen Optionen kompelieren lassen? Wenn ich mir überlege, dass das System so sehr lange laufen soll, dann will ich es auch richtig gemacht habe
jew.de |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DocSilly n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/d9e354ac3d6ce5c4c1945.jpg)
Joined: 23 Jul 2002 Posts: 13 Location: Germany
|
Posted: Fri Sep 27, 2002 7:55 pm Post subject: |
|
|
hmmm, ich sehe 2 optionen.
- du bleibst beim -mcpu=athlon, was kaum unterschiede macht zu -mcpu=duron
- du faengst nochmal von vorne an mit stage1 tarball und nutzt von anfang an -mcpu=duron
Da ich nicht weiss wieviel Zeit du schon investiert hast (wieviel du schon emerged hast) kann ich leider nichts direkt empfehlen. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jew.de Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/d9bb02be3dc3c2bd83fe7.jpg)
Joined: 25 Sep 2002 Posts: 226 Location: Frankfurt/Main
|
Posted: Fri Sep 27, 2002 7:59 pm Post subject: |
|
|
DocSilly wrote: |
- du bleibst beim -mcpu=athlon, was kaum unterschiede macht zu -mcpu=duron
- du faengst nochmal von vorne an mit stage1 tarball und nutzt von anfang an -mcpu=duron
|
ok, den Unterschied zwischen duron und athlon wird wohl nicht sooo groß sein. Aber bei der Installation war der flag auf i686 gesetzt. ICH habe ihn erst auf athlon gesetzt.
Das einzige, was ich erreichen will, ist dass das System komplett noch einmal durch-kompeliert wird.
jew.de |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
meyerm Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/d9e8f8f73d32da1c4ca74.gif)
Joined: 27 Jun 2002 Posts: 1311 Location: Munich / Germany
|
Posted: Fri Sep 27, 2002 8:41 pm Post subject: |
|
|
Der Duron ist ein "thunderbird" mit weniger cache (grob gesagt ). Der "athlon" ist nur der Athlon der ersten Generation. Die "richtige" Architektur fuer den GCC bei einem Duron waere als "athlon-tbird". Ich selber habe hier auch einen Duron gehabt, auf dem ich mit obiger Archtitektur kompiliert habe (und das schoene daran ist, dass ich seit letzter Woche den alten 600er Duron durch einen TBird 1400 ersetzt habe [geht ja dank AMDs Sockelpolitik ] und mein Gentoo nicht einmal neu optimieren musste. ) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|