Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Tar lång tid att kompilera program.......
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Scandinavian
View previous topic :: View next topic  
Author Message
madness1982
n00b
n00b


Joined: 11 Dec 2003
Posts: 5

PostPosted: Fri Dec 12, 2003 3:28 pm    Post subject: Tar lång tid att kompilera program....... Reply with quote

Hej

Har en helt ny installation av gentoo. Tycker det tar en väldigt lång tid att kompilera jämfört med när jag kompilerat samma programvara i ex redhat.
Håller nu på att kompilera qt, satte på kompileringen vid 13.00- Nu e klockan 16.26. Ska det verkligen ta sådan lång tid?
Kan det va något annat som e fel inställt eller något?

Datorn är en 1.8 Ghz Celeron. 256 Ram.

/Christian
Back to top
View user's profile Send private message
ebrostig
Bodhisattva
Bodhisattva


Joined: 20 Jul 2002
Posts: 3152
Location: Orlando, Fl

PostPosted: Fri Dec 12, 2003 6:55 pm    Post subject: Reply with quote

Vel, det kommer an paa hva som blir kompilert.

Qt er en velding intensive pakke som tar lang tid aa kompilere. Det er mulig aa bare kompilere de mest noedvendige libraries etc, men jeg har aldri gjort det selv.

RH har sannsynligvis tatt bort alt det de ikke finner noedvendig. Er du sikker paa at du kompilerte paa RedHat og ikke bare installerte en binaer RPM?

Erik
_________________
'Yes, Firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
Back to top
View user's profile Send private message
gaute
n00b
n00b


Joined: 30 Oct 2002
Posts: 52
Location: Bærum, Norway

PostPosted: Fri Dec 12, 2003 11:54 pm    Post subject: Reply with quote

jeg har også vanskelig for å tro at det tar noe særlig lenger tid å kompilere ting i gentoo enn i redhat, men det er jo en kjent sak at QT og endel andre programmer i C++ slik som openoffice og kde tar utrolig lang tid å kompilere, men dette er da ikke gentoo sin feil.

I redhat er det vel de aller færreste som kompilerer pakker som QT med mindre de har spesielle behov. Det er jo så mye enklere å bare installere en pakke.

Det er jo mulig at dine cflags får det til å ta litt lenger tid for å optimalisere, men dette får du forhåpentligvis igjen for senere. Har dog mine tvil til at forskjellene er så voldsomt store, uten å påstå noe da jeg ikke har målt noe på det.
_________________
-gaute magnussen
Bibamus, moriendum est
Back to top
View user's profile Send private message
monotux
l33t
l33t


Joined: 09 Sep 2003
Posts: 751
Location: Stockholm, Sweden

PostPosted: Tue Dec 16, 2003 2:34 pm    Post subject: Re: Tar lång tid att kompilera program....... Reply with quote

madness1982 wrote:
Hej

Har en helt ny installation av gentoo. Tycker det tar en väldigt lång tid att kompilera jämfört med när jag kompilerat samma programvara i ex redhat.
Håller nu på att kompilera qt, satte på kompileringen vid 13.00- Nu e klockan 16.26. Ska det verkligen ta sådan lång tid?
Kan det va något annat som e fel inställt eller något?

Datorn är en 1.8 Ghz Celeron. 256 Ram.

/Christian


på min p4@1,8 GHz, så tog qt 18 - 20 timmar senast jag installerade.

alla c++-baserade program kommer ta år att kompilera, och kommer gå slött jämfört med c-program, som t.ex. gnome och kärnan :)
_________________
Computer science is no more about computers than astronomy is about telescopes.
Back to top
View user's profile Send private message
hiower4
n00b
n00b


Joined: 06 Jan 2004
Posts: 25
Location: finland

PostPosted: Tue Jan 20, 2004 12:39 pm    Post subject: Reply with quote

Du kan få ner kompileringstiden genom att använda ccache. har du flera datorer kan du ha dom andra att hjälpa till med kompileringen genom o använda distcc :)
kolla att du har -pipe med i CCFLAGS i /etc/make.conf.
det snabbar upp kompileringen

M.h.a distcc tog kompilering av Xfree 7h på min bärbara 233mhz, utan d sku d antagligen tagit minst 50 timmar! ;)
Back to top
View user's profile Send private message
KK_r
Apprentice
Apprentice


Joined: 17 Dec 2003
Posts: 182

PostPosted: Tue Jan 20, 2004 4:19 pm    Post subject: Reply with quote

om du inte behöver använda datorn under tiden kan du ge kompileringen priroritet -20 det ger ca 3,5 ggr snabbare kompilering för mig
_________________
Seamos realistas, exijamos lo imposibile
Back to top
View user's profile Send private message
klacke
n00b
n00b


Joined: 25 Feb 2003
Posts: 36
Location: Stockholm

PostPosted: Tue Jan 20, 2004 4:26 pm    Post subject: Reply with quote

Quote:

om du inte behöver använda datorn under tiden kan du ge kompileringen priroritet -20 det ger ca 3,5 ggr snabbare kompilering för mig


Amen hur rutten tror du att skeduleraren är i linux. Om man inte använder datorn så spelar det ingen roll vilken prio man sätter på kompileringen. Det är ju inte så att den sitter och idlar bara för att den har låg prio.


distcc är verktyget att använda för att snabba upp kompileringstiderna, inte /bin/nice
Back to top
View user's profile Send private message
KK_r
Apprentice
Apprentice


Joined: 17 Dec 2003
Posts: 182

PostPosted: Tue Jan 20, 2004 5:21 pm    Post subject: Reply with quote

jo faktsikt så gör det stor skildnad, har kollat CPU-användningen med priroritet 0 utan att ha igång annat än X och sen kollat med priroritet -20, CPU-användningen ökade med en faktor på ca 3,5

har dock inte kollat förändringen i konsollen, den bör vara en aning mindre
_________________
Seamos realistas, exijamos lo imposibile
Back to top
View user's profile Send private message
DummeGaas
n00b
n00b


Joined: 30 Dec 2003
Posts: 5

PostPosted: Wed Jan 21, 2004 2:12 pm    Post subject: Reply with quote

Ccache er praktisk.
Back to top
View user's profile Send private message
Ixzat
n00b
n00b


Joined: 23 Jan 2004
Posts: 34
Location: Sweden

PostPosted: Thu Jan 29, 2004 12:32 am    Post subject: Reply with quote

wolfie_ wrote:
Du kan få ner kompileringstiden genom att använda ccache. har du flera datorer kan du ha dom andra att hjälpa till med kompileringen genom o använda distcc :)
kolla att du har -pipe med i CCFLAGS i /etc/make.conf.
det snabbar upp kompileringen

M.h.a distcc tog kompilering av Xfree 7h på min bärbara 233mhz, utan d sku d antagligen tagit minst 50 timmar! ;)



Finns det nån bra guide på hur man får igång vad distcc med min linuxmaskin som primär och min flickväns Windows maskin?
Back to top
View user's profile Send private message
odegard
Guru
Guru


Joined: 08 Mar 2003
Posts: 324
Location: Trondheim, NO

PostPosted: Thu Jan 29, 2004 8:08 am    Post subject: Reply with quote

For å få fart på kompileringen sp kan du bruke -O istedetfor evt. -O2 eller -O3 som mange her i forumet bruker. Du ender opp med fysiske mindre filer men som ikke er like mye optimisert. Det er visst fortsatt uenighet om små filer er bedre enn større optimiserte filer... jeg bruker ihvertfall bare -O og ikke særlig mange andre parametere og det går kjapt! Første installering hadde jeg -O3, på siste hadde jeg -O... wow, jeg hadde installert alt på under 20 timer... fra stage1 til Xfree og kde ++
Back to top
View user's profile Send private message
hiower4
n00b
n00b


Joined: 06 Jan 2004
Posts: 25
Location: finland

PostPosted: Fri Jan 30, 2004 6:20 am    Post subject: Reply with quote

Ixzat wrote:
wolfie_ wrote:
Du kan få ner kompileringstiden genom att använda ccache. har du flera datorer kan du ha dom andra att hjälpa till med kompileringen genom o använda distcc :)
kolla att du har -pipe med i CCFLAGS i /etc/make.conf.
det snabbar upp kompileringen

M.h.a distcc tog kompilering av Xfree 7h på min bärbara 233mhz, utan d sku d antagligen tagit minst 50 timmar! ;)



Finns det nån bra guide på hur man får igång vad distcc med min linuxmaskin som primär och min flickväns Windows maskin?


Jep, titta påhttps://forums.gentoo.org/viewtopic.php?t=66930&highlight=distcc+cygwin.

sen kan du också titta på
http://distcc.samba.org/
och
http://www.gentoo.org/doc/en/distcc.xml

Have fun! :)
_________________
I'm not a newbie...im in the stage of learning ;)
and on a permanent quest for insight
Back to top
View user's profile Send private message
Cossins
Veteran
Veteran


Joined: 21 Mar 2003
Posts: 1136
Location: Copenhagen, Denmark

PostPosted: Sun Feb 01, 2004 4:55 pm    Post subject: Reply with quote

Qt burde altså ikke tage så lang tid at kompilere... Jeg har en P4 2.4, og det tager højst 2 timer. Det samme med kdelibs. Det kan selvfølgelig også have noget at gøre med at jeg har 768 Mb RAM... :roll:

Men anyways, ccache er en god ide. Det samme gælder for distcc hvis du har flere maskiner (for eksempel hjælper min Athlon XP 1600+ server min workstation med at kompilere og omvendt).

- Simon
_________________
who cares
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Scandinavian 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