Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
bootstrap i optymalizacja
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish)
View previous topic :: View next topic  
Author Message
sir_skiner
Apprentice
Apprentice


Joined: 03 Mar 2004
Posts: 282
Location: Poland

PostPosted: Tue Apr 20, 2004 12:12 pm    Post subject: bootstrap i optymalizacja Reply with quote

czy na etapie stage 1 bootstrap uzywa flag optymalizacji z make.conf?
bo u mnie raczej nie.
chrootuje sie spod slacka i mi uzywa chyba flag ze slackowego /etc/profile
_________________
sir_skiner
GentooLinux - thinking best ;)
Back to top
View user's profile Send private message
muchar
Bodhisattva
Bodhisattva


Joined: 04 Feb 2004
Posts: 690
Location: /dev/urandom

PostPosted: Tue Apr 20, 2004 3:08 pm    Post subject: Reply with quote

Nie zaleca się dokonywać jakichkolwiek optymalizacji podczas Stage 1. W dalszych - już tak.

Raczej nie korzysta ze slackowego /etc/profile... Jak się chrootujesz dokładnie jak w opisie, i robisz te wszystkie env-update oraz source /etc/profile, to łapie on nowe ustawienia.
_________________
MuchaR
Nie denerwuj mnie. Kliknij tu!!!
Homepage: http://muchar.one.pl!!!
Back to top
View user's profile Send private message
sir_skiner
Apprentice
Apprentice


Joined: 03 Mar 2004
Posts: 282
Location: Poland

PostPosted: Tue Apr 20, 2004 4:02 pm    Post subject: Reply with quote

no zbudowalem bootstrap i
Code:
emerge info
dalej podaje flagi ze slacka. czemu?
oczywiscie chrootuje sie jak kaza

edit

nie wiem jakim cudem ale
Code:
export
pokazuje zmienne ze slacka :o
_________________
sir_skiner
GentooLinux - thinking best ;)
Back to top
View user's profile Send private message
sekretarz
Retired Dev
Retired Dev


Joined: 09 Feb 2004
Posts: 156
Location: Poznan, Poland

PostPosted: Tue Apr 20, 2004 4:22 pm    Post subject: Reply with quote

Po wejściu do chrootowanego środowiska, powinneś wydać 2 polecenia:
Code:
env-update

oraz
Code:
source /etc/profile
Back to top
View user's profile Send private message
sir_skiner
Apprentice
Apprentice


Joined: 03 Mar 2004
Posts: 282
Location: Poland

PostPosted: Tue Apr 20, 2004 4:28 pm    Post subject: Reply with quote

no dokladnie tak robie
_________________
sir_skiner
GentooLinux - thinking best ;)
Back to top
View user's profile Send private message
sir_skiner
Apprentice
Apprentice


Joined: 03 Mar 2004
Posts: 282
Location: Poland

PostPosted: Tue Apr 20, 2004 5:34 pm    Post subject: Reply with quote

zahaszowalem te cflags na slacku i po chroocie
Code:
emerge info
ppodaje flagi z make.conf :D tylko dlaczego tak sie dzieje...

czy emerge system przebudowuje to co zrobil bootstrap (glibc, gcc, itd) :?:
_________________
sir_skiner
GentooLinux - thinking best ;)
Back to top
View user's profile Send private message
muchar
Bodhisattva
Bodhisattva


Joined: 04 Feb 2004
Posts: 690
Location: /dev/urandom

PostPosted: Tue Apr 20, 2004 6:45 pm    Post subject: Reply with quote

W wersji 2004.0 - nie powinien. W 1.4 - robił to AFAIR.
_________________
MuchaR
Nie denerwuj mnie. Kliknij tu!!!
Homepage: http://muchar.one.pl!!!
Back to top
View user's profile Send private message
krzysz
n00b
n00b


Joined: 19 Feb 2004
Posts: 56

PostPosted: Tue Apr 20, 2004 9:46 pm    Post subject: Reply with quote

muchar wrote:
Nie zaleca się dokonywać jakichkolwiek optymalizacji podczas Stage 1. W dalszych - już tak.

A jakie są przeciwskazania ? Pytam bo przymierzam się do kolejnej instalki po awarii dysku i nie chciałbym na dzień dobry czegoś popsuć :)
Back to top
View user's profile Send private message
OBenY
Guru
Guru


Joined: 15 Feb 2004
Posts: 552
Location: Poland -> Wroclaw

PostPosted: Wed Apr 21, 2004 1:33 pm    Post subject: Reply with quote

Ja jade od pierwszego stejdza z optymalizacjami i zadnych problemo nie mam.
Back to top
View user's profile Send private message
free-mind
Tux's lil' helper
Tux's lil' helper


Joined: 19 Apr 2004
Posts: 139
Location: Rzeczpospolita Polska [Poland]

PostPosted: Thu Apr 22, 2004 3:19 pm    Post subject: Reply with quote

muchar wrote:
Nie zaleca się dokonywać jakichkolwiek optymalizacji podczas Stage 1. W dalszych - już tak.
(...)


To w takim razie jak powinien wyglšdać /etc/make.conf dla stage1? Pytam, bo dopiero zaczynam... :) Peace.
_________________
conflict -> contact -> combat
Back to top
View user's profile Send private message
fallow
Bodhisattva
Bodhisattva


Joined: 08 Jan 2004
Posts: 2208
Location: Poland

PostPosted: Thu Apr 22, 2004 5:40 pm    Post subject: Reply with quote

OBenY wrote:
Ja jade od pierwszego stejdza z optymalizacjami i zadnych problemo nie mam.


ja podzielam zdanie OBeny`iego :)

pozdro :)
_________________
"Time is a companion that goes with us on a journey. It reminds us to cherish each moment, because it will never come again. What we leave behind is not as important as how we have lived" J-L. Picard ;)
Back to top
View user's profile Send private message
sir_skiner
Apprentice
Apprentice


Joined: 03 Mar 2004
Posts: 282
Location: Poland

PostPosted: Thu Apr 22, 2004 6:27 pm    Post subject: Reply with quote

podepne sie...

zrobilem bootstrap ale z okrojonymi flagami wiec pomyslalem ze zanim zrobie system troche poexperymentuje :twisted: no i...
Code:
emerge gettext

ok
Quote:
emerge binutils

zonk :roll:

Quote:
g++ -I. -I/var/tmp/portage/groff-1.18.1-r4/work/groff-1.18.1/src/roff/troff -I/var/tmp/portage/groff-1.18.1-r4/work/groff-1.18.1/src/include -I/var/tmp/portage/groff-1.18.1-r4/work/groff-1.18.1/src/include -DHAVE_CONFIG_H -O3 -finline-functions -march=athlon-xp -pipe -s -fomit-frame-pointer -mno-push-args -mfpmath=sse -frerun-loop-opt -frerun-cse-after-loop -funroll-loops -fprefetch-loop-arrays -finline-limit=20000 -fforce-addr -falign-functions=64 -falign-loops=16 -falign-jumps=16 -falign-labels=1 -maccumulate-outgoing-args -mpreferred-stack-boundary=4 -minline-all-stringops -c input.cc

cc1plus: out of memory allocating 1267573268 bytes after a total of 10366976 bytes
make[2]: *** [input.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/groff-1.18.1-r4/work/groff-1.18.1/src/roff/troff'
make[1]: *** [src/roff/troff] Error 2
make[1]: Leaving directory `/var/tmp/portage/groff-1.18.1-r4/work/groff-1.18.1'
make: *** [all] Error 2

!!! ERROR: sys-apps/groff-1.18.1-r4 failed.
!!! Function src_compile, Line 85, Exitcode 2
!!! (no error message)

ramu nie moze brakowac
512-ram + 196-swap i gkrellm pokazuje duuzo wolnego.
wiec co?
flagi wzialem z forum gentoo raczej pewne ale tylko raczej
pomocy!
_________________
sir_skiner
GentooLinux - thinking best ;)
Back to top
View user's profile Send private message
muchar
Bodhisattva
Bodhisattva


Joined: 04 Feb 2004
Posts: 690
Location: /dev/urandom

PostPosted: Thu Apr 22, 2004 9:13 pm    Post subject: Reply with quote

Napisałem "nie zaleca się" a nie "nie wolno". Zespół Gentoo nie zaleca - w którymś z ich tekstów wyczytałem. Może to się objawiać niestabilnością etc. Nie wiem jak jest to dokładnie w wersji 2004.x, ale w 1.4 na bank było nie zalecane.
_________________
MuchaR
Nie denerwuj mnie. Kliknij tu!!!
Homepage: http://muchar.one.pl!!!
Back to top
View user's profile Send private message
free-mind
Tux's lil' helper
Tux's lil' helper


Joined: 19 Apr 2004
Posts: 139
Location: Rzeczpospolita Polska [Poland]

PostPosted: Thu Apr 22, 2004 10:47 pm    Post subject: Reply with quote

Ok, ok. understood. :D Peace.
_________________
conflict -> contact -> combat
Back to top
View user's profile Send private message
OBenY
Guru
Guru


Joined: 15 Feb 2004
Posts: 552
Location: Poland -> Wroclaw

PostPosted: Fri Apr 23, 2004 11:53 am    Post subject: Reply with quote

sir_skinner: tu nie chodzi o RAM, lecz o pamuiec dostepna dla aplikacji, ktora jest kompilowana, przegiales przepoteznie z -finline-limit - w ogole IMHO dziwne flagi masz :)
Back to top
View user's profile Send private message
sir_skiner
Apprentice
Apprentice


Joined: 03 Mar 2004
Posts: 282
Location: Poland

PostPosted: Fri Apr 23, 2004 12:29 pm    Post subject: Reply with quote

muchar wrote:
Napisałem "nie zaleca się" a nie "nie wolno". Zespół Gentoo nie zaleca - w którymś z ich tekstów wyczytałem. Może to się objawiać niestabilnością etc. Nie wiem jak jest to dokładnie w wersji 2004.x, ale w 1.4 na bank było nie zalecane.

no ale dlaczego? nie widze powodu....
_________________
sir_skiner
GentooLinux - thinking best ;)
Back to top
View user's profile Send private message
sir_skiner
Apprentice
Apprentice


Joined: 03 Mar 2004
Posts: 282
Location: Poland

PostPosted: Fri Apr 23, 2004 12:33 pm    Post subject: Reply with quote

OBenY wrote:
sir_skinner: tu nie chodzi o RAM, lecz o pamuiec dostepna dla aplikacji, ktora jest kompilowana, przegiales przepoteznie z -finline-limit - w ogole IMHO dziwne flagi masz :)

juz to wiem :D sam do tego doszedlem 8)
jednak jak to jest ze kde kompiluje sie z n=100000 a tu 10000 to za duzo [obecnie mam n=1000]?
flagi mam stad https://forums.gentoo.org/viewtopic.php?t=88860&postdays=0&postorder=asc&highlight=cflags+athlon+xp&start=25
z tym ze kilka zawiera sie w -O3, ale cotam...
a ty jakie masz :) ?
_________________
sir_skiner
GentooLinux - thinking best ;)
Back to top
View user's profile Send private message
fallow
Bodhisattva
Bodhisattva


Joined: 08 Jan 2004
Posts: 2208
Location: Poland

PostPosted: Fri Apr 23, 2004 12:59 pm    Post subject: Reply with quote

co do flag eksperymentowal ktos z ACOVEA 4.0 ? :) ciekawe , nawet bardzo ciekawe :)

https://forums.gentoo.org/viewtopic.php?t=157108&highlight=acovea

pozdro :) ?
_________________
"Time is a companion that goes with us on a journey. It reminds us to cherish each moment, because it will never come again. What we leave behind is not as important as how we have lived" J-L. Picard ;)
Back to top
View user's profile Send private message
OBenY
Guru
Guru


Joined: 15 Feb 2004
Posts: 552
Location: Poland -> Wroclaw

PostPosted: Fri Apr 23, 2004 1:56 pm    Post subject: Reply with quote

Hm moje flagi ?
Nie przestrasz sie burdelu w zmiennych :)

Code:
LD_ADD="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"
LDFLAGS="-z combreloc $LD_ADD"
DEFS="-DNDEBUG -DG_DISABLE_ASSERT"
DEFS_ADD="-DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS"

C_USER="-fnew-ra -fmerge-all-constants -freduce-all-givs"
CFLAGS="-O3 -march=pentium4 -mmmx -msse -msse2 -mfpmath=sse,387 -maccumulate-outgoing-args -momit-leaf-frame-pointer -minline-all-stringops -frename-registers -finline-functions -fomit-frame-pointer -ftracer -fforce-addr -funroll-loops -fprefetch-loop-arrays -ffast-math -fmove-all-movables -pipe $DEFS $DEFS_ADD $LDFLAGS $C_USER $EXP"
CHOST="i686-pc-linux-gnu"
USE="audiofile flac lcms kadu-modules mitshm mmx mng moznocompose moznoirc nptl \
     offensive ppds sse tiff -apm -crypt -encode -gdbm -gpm -imlib -gnome \
     -libg++ -libwww -mikmod -motif -sdl -svga -berkdb -python -java pic"
CXXFLAGS="${CFLAGS} -fno-exceptions"


Ale nie moge sie doczekac az bedzie gcc 3.4 w portach, bo pare nowych flag dodali :)
Back to top
View user's profile Send private message
sir_skiner
Apprentice
Apprentice


Joined: 03 Mar 2004
Posts: 282
Location: Poland

PostPosted: Fri Apr 23, 2004 3:47 pm    Post subject: Reply with quote

a ktore z tych:-freduce-all-givs -fmove-all-movables $LD_ADD i DEFS_ADD nadadza sie do athlona-xp? nadadza znaczy beda dzialac pozytywnie

i po co ci tyle zmiennych?
_________________
sir_skiner
GentooLinux - thinking best ;)
Back to top
View user's profile Send private message
sir_skiner
Apprentice
Apprentice


Joined: 03 Mar 2004
Posts: 282
Location: Poland

PostPosted: Fri Apr 23, 2004 5:22 pm    Post subject: Reply with quote

probowalem te twoje LDFLAGS OBeny, ale wywala mi blad
Code:
ccl: error unrecognized options
tylko -s -z combreloc mi dziala
_________________
sir_skiner
GentooLinux - thinking best ;)
Back to top
View user's profile Send private message
OBenY
Guru
Guru


Joined: 15 Feb 2004
Posts: 552
Location: Poland -> Wroclaw

PostPosted: Fri Apr 23, 2004 6:03 pm    Post subject: Reply with quote

A jakie binutils posiadasz?
Ma byc: 2.14.90.0.8

I nie dodajesz do CFLAGS="LDFLAGS" tylko zawartosc zmiennej, czyli "$LDFLAGS" owe LD_ADD, DEFS, DEFS_ADD, C_USER to takie moje dodatki, podzielone na odpowiednie moduly do kompilowania bootstrapa, systemu, userlandu :)

bezpieczne sa:
Code:
CFLAGS: -fmerge-all-constants -maccumulate-outgoing-args -momit-leaf-frame-pointer -minline-all-stringops -frename-registers -finline-functions -fomit-frame-pointer -ftracer -fforce-addr -funroll-loops -fprefetch-loop-arrays -ffast-math -fmove-all-movables -pipe"
LDFLAGS="-s -z combreloc"
DEFS="-DNDEBUG -DG_DISABLE_ASSERT"

ale LDFLAGS nie musisz ustawiac, bo nowoczesne binutils samo to ustawia :) tylko ta -s mozesz dodac :)
Back to top
View user's profile Send private message
sir_skiner
Apprentice
Apprentice


Joined: 03 Mar 2004
Posts: 282
Location: Poland

PostPosted: Sat Apr 24, 2004 11:41 am    Post subject: Reply with quote

ehh, mea culpa :oops:
slepy jestem, zamiat "-Wl-*" pisalem "-W1-*"
a bin utils mam 2.14.90.0.7-r4 z gentoo2004.0 z L+dvd 02 :)
chyba juz ustawilem te flagi...

zastanawia jedna rzecz - jesli mam pakiet w sklad ktorego wchodzi kilka programow a potrzebuuje tylko czesci z nich to jak przekazac emerge ktore ma kompilowac a ktore olac :?:
i jeszcze 1. czy w portage jest glibc z nptl?
_________________
sir_skiner
GentooLinux - thinking best ;)
Back to top
View user's profile Send private message
OBenY
Guru
Guru


Joined: 15 Feb 2004
Posts: 552
Location: Poland -> Wroclaw

PostPosted: Sat Apr 24, 2004 12:34 pm    Post subject: Reply with quote

Oczywiscie, ze jest glibc z NPTL, ja takowego uzywam.
By miec gllibc z NPTL, trzeba miec kernela z serii 2.6 i jego pliki naglowkowe. Do swoich flag USE musisz dodac "nptl", polecalbym tez dodac "pic" - ladnie potem sie glibc prelinkuje ;)

Poteme emerge glibc i jazda, niektore pakiety tez beda potzrebowaly przebudowania.
_________________
Linux registered user: #205241
KDE registered user: #1919
http://obeny.obeny.net
Back to top
View user's profile Send private message
fallow
Bodhisattva
Bodhisattva


Joined: 08 Jan 2004
Posts: 2208
Location: Poland

PostPosted: Sat Apr 24, 2004 12:47 pm    Post subject: Reply with quote

mozna jeszcze dodac tak w linii z Native Posix Thread Library ktora mozna wkompilowac w glibc , ze nowy kernel (od 2.6.6-rc1) juz standardowo ma polski patch , do obslugi Posixowych Messagow ;)

ps . nikt nie probowal sie pobawic ACOVEA ? :)

dlugo to trwa , ale flagi ciekawe generuje ;)
_________________
"Time is a companion that goes with us on a journey. It reminds us to cherish each moment, because it will never come again. What we leave behind is not as important as how we have lived" J-L. Picard ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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