Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Kolejny problem z ccache
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish)
View previous topic :: View next topic  
Author Message
red79
Apprentice
Apprentice


Joined: 28 Jun 2005
Posts: 174

PostPosted: Sun Sep 04, 2005 10:12 pm    Post subject: [SOLVED] Kolejny problem z ccache Reply with quote

Idąc za radą Rudyyy'ego wpisałem do mojego pliku /etc/env.d/99locale:

Code:
export CCACHE_DIR="/var/tmp/ccache"
, i wydałem polecenie
Code:
chown -R portage:portage /var/tmp/ccache


Rozpocząłem update kde do wersji 3.4.2 i po skompilowaniu i zainstalowaniu kdelibs (pierwszy pakiet z listy) pojawił się taki oto komunikat:

Quote:
!!! Invalid token (not "=") CCACHE_DIR
Traceback (most recent call last):
File "/usr/bin/emerge", line 3200, in ?
mydepgraph.merge(mydepgraph.altlist())
File "/usr/bin/emerge", line 1912, in merge
retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug)
File "/usr/lib/portage/pym/portage.py", line 2724, in doebuild
return merge(mysettings["CATEGORY"],mysettings["PF"],mysettings["D"],mysettings["BUILDDIR"]+"/build-info",myroot,mysettings,myebuild=mysettings["EBUILD"])
File "/usr/lib/portage/pym/portage.py", line 2896, in merge
return mylink.merge(pkgloc,infloc,myroot,myebuild)
File "/usr/lib/portage/pym/portage.py", line 6893, in merge
return self.treewalk(mergeroot,myroot,inforoot,myebuild,cleanup=cleanup)
File "/usr/lib/portage/pym/portage.py", line 6590, in treewalk
env_update(makelinks=(not downgrade))
File "/usr/lib/portage/pym/portage.py", line 501, in env_update
myconfig=getconfig(root+"etc/env.d/"+x)
File "/usr/lib/portage/pym/portage_util.py", line 273, in getconfig
raise e.__class__, str(e)+" in "+mycfg
Exception: ParseError: Invalid token (not '='): /etc/env.d/99locale: line 4 in /etc/env.d/99locale


Co się popsuło i jak to naprawić?

Na wszelki wypadek tak wygląda mój plik 99locale
Quote:
LANG="pl_PL"
LC_ALL="pl_PL"

export CCACHE_DIR="/var/tmp/ccache"


Last edited by red79 on Wed Sep 07, 2005 8:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
_troll_
Bodhisattva
Bodhisattva


Joined: 04 Feb 2004
Posts: 1971
Location: Warszawa, Poland

PostPosted: Sun Sep 04, 2005 10:24 pm    Post subject: Reply with quote

a katalog istnieje?

Pozdrawiam,
Przemek
_________________
Życie jest jak pudełko czekoladek....
Nigdy nie wiesz na co trafisz" by mother of Forrest Gump
Back to top
View user's profile Send private message
rudyyy
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jul 2005
Posts: 134
Location: /root

PostPosted: Sun Sep 04, 2005 10:51 pm    Post subject: Reply with quote

myslalem ze sie domyslisz, ze katalog musi istniec ;)
Back to top
View user's profile Send private message
red79
Apprentice
Apprentice


Joined: 28 Jun 2005
Posts: 174

PostPosted: Sun Sep 04, 2005 10:52 pm    Post subject: Reply with quote

No bez przesady, aż tak nieprzytomny nie jestem. Katalog istnieje ma 48 bitów wielkości i w środku jest pusty. I tak mam zainstalowane ccache.
Back to top
View user's profile Send private message
damjanek
Apprentice
Apprentice


Joined: 21 Jun 2004
Posts: 259
Location: Poland, Poznań

PostPosted: Sun Sep 04, 2005 10:55 pm    Post subject: Reply with quote

wpis w /etc/make.conf o tresci
Code:
CCACHE_DIR="/var/tmp/ccache"
wystarczy, by cieszyc sie ccache w ustalonej lokalizacji....
_________________
$ uname -rms
Darwin 10.0.0 i386
Welcome to Darwin!
#gentoo-pl@freenode and #gentoo.pl@ircnet team
Back to top
View user's profile Send private message
_troll_
Bodhisattva
Bodhisattva


Joined: 04 Feb 2004
Posts: 1971
Location: Warszawa, Poland

PostPosted: Sun Sep 04, 2005 10:59 pm    Post subject: Reply with quote

z serii 'pytania prymitywne' - env-update zrobiles?

Pozdrawiam,
Przemek
_________________
Życie jest jak pudełko czekoladek....
Nigdy nie wiesz na co trafisz" by mother of Forrest Gump
Back to top
View user's profile Send private message
red79
Apprentice
Apprentice


Joined: 28 Jun 2005
Posts: 174

PostPosted: Sun Sep 04, 2005 11:01 pm    Post subject: Reply with quote

Dodałem tą linię do make.conf i zrobiłem env-update efekt jest taki:

Quote:
!!! Invalid token (not "=") CCACHE_DIR
Traceback (most recent call last):
File "/usr/sbin/env-update", line 11, in ?
portage.env_update()
File "/usr/lib/portage/pym/portage.py", line 501, in env_update
myconfig=getconfig(root+"etc/env.d/"+x)
File "/usr/lib/portage/pym/portage_util.py", line 273, in getconfig
raise e.__class__, str(e)+" in "+mycfg
Exception: ParseError: Invalid token (not '='): /etc/env.d/99locale: line 4 in /etc/env.d/99locale
Back to top
View user's profile Send private message
joi_
Apprentice
Apprentice


Joined: 28 Mar 2005
Posts: 171

PostPosted: Sun Sep 04, 2005 11:15 pm    Post subject: Reply with quote

no i usuń z /etc/env.d/99locale (swoją drogą to on się chyba powinien nazywać 99local)
Back to top
View user's profile Send private message
red79
Apprentice
Apprentice


Joined: 28 Jun 2005
Posts: 174

PostPosted: Sun Sep 04, 2005 11:20 pm    Post subject: Reply with quote

Co mam usunąć cały plik czy tylko wpis o ccache? Jak do tej pory nie miałem problemów z powodu nazwy pliku (chociaż OpenOffice skompilował mi się w wersji anglojęzycznej a nie polskiej).
Back to top
View user's profile Send private message
red79
Apprentice
Apprentice


Joined: 28 Jun 2005
Posts: 174

PostPosted: Sun Sep 04, 2005 11:24 pm    Post subject: Reply with quote

Wywaliłem wpis o ccache z 99locale i teraz env-update przeszedł bez problemu. A co do nazwy tego pliku to jaka ma ona w końcu być?
I jeszcze jedno, mam rekompilować kdelibs-3.4.2 ?
Back to top
View user's profile Send private message
Radioaktywny
Apprentice
Apprentice


Joined: 01 Sep 2005
Posts: 248
Location: Jestem przed komputerem ;)

PostPosted: Tue Sep 06, 2005 11:01 am    Post subject: Reply with quote

Witam

U mnie ccache nie działa pomimo skonfigurowania zgodnie z opisem w tym i poprzednim wątku dotyczącym cccache.
Na początku kompilacji pojawia się informacja:
Code:
* Adjusting permissions on ccache in /var/tmp/ccache


Również ccache -s nic nie pokazuje:
Code:
[root@prime~]# ccache -s
cache hit                              0
cache miss                             0
files in cache                         0
cache size                             0 Kbytes
max cache size                     976.6 Mbytes


Znalazłem w sieci informacje że jest to znany błąd i że jest na niego łata lecz nie zabardzo wiem jak do tego podejść aby czegoś mocniej nie spiep....
https://bugs.gentoo.org/show_bug.cgi?id=99101

Może któryś z kolegów miał podobny problem i podzieli się informacją jak go obejść?
_________________
pozdrawiam
Radioaktywny
Back to top
View user's profile Send private message
damjanek
Apprentice
Apprentice


Joined: 21 Jun 2004
Posts: 259
Location: Poland, Poznań

PostPosted: Tue Sep 06, 2005 2:01 pm    Post subject: Reply with quote

a zobacz sobie w wolnej chwili, ile wazy /var/tmp/ccache... generalnie to sprawdzajac rootem statystyki ccache, poda ci tylko informacje o ccache w /root/. portage buduje aplikacje jako user portage, ktory uzywa swojego katalogu dla ccache zgodnie z CCACHE_DIR.
_________________
$ uname -rms
Darwin 10.0.0 i386
Welcome to Darwin!
#gentoo-pl@freenode and #gentoo.pl@ircnet team
Back to top
View user's profile Send private message
red79
Apprentice
Apprentice


Joined: 28 Jun 2005
Posts: 174

PostPosted: Tue Sep 06, 2005 6:28 pm    Post subject: Reply with quote

ccache ma teraz 63,9 Mb, a polecenie ccache -s nadal pokazuje 0 we wszystkich kategoriach złe jest wskazanie powierzchni zarezerwowanej dla ccache zarezerwowałem 2G a on pokazuje te nieszczęsne 900 Mb.
Back to top
View user's profile Send private message
Bako
Apprentice
Apprentice


Joined: 17 Jul 2005
Posts: 225
Location: Częstochowa [PL]

PostPosted: Tue Sep 06, 2005 6:35 pm    Post subject: Reply with quote

red79 wrote:
ccache ma teraz 63,9 Mb, a polecenie ccache -s nadal pokazuje 0 we wszystkich kategoriach złe jest wskazanie powierzchni zarezerwowanej dla ccache zarezerwowałem 2G a on pokazuje te nieszczęsne 900 Mb.


a wpisz
Code:
CCACHE_DIR="/var/tmp/ccache" ccache -s

jesli pokaze (a tak bedzie :) ) poprawny rozmiar, to po prostu wpisz
Code:
export CCACHE_DIR="/var/tmp/ccache"

np. w /etc/profile lub lepiej w /root/.bashrc - info ccache tylko dla roota
_________________
.: Asus F3JC :: Intel Core 2 Duo T5500 1,66GHz 667MHz :: 2GB DDR2 677MHz :: 100GB 5400rpm :: Nvidia GeForce 7300 :.
.: Powered by Gentoo :) -> http://picasaweb.google.pl/bardzi/Gentoo :.
Back to top
View user's profile Send private message
Radioaktywny
Apprentice
Apprentice


Joined: 01 Sep 2005
Posts: 248
Location: Jestem przed komputerem ;)

PostPosted: Tue Sep 06, 2005 8:00 pm    Post subject: Reply with quote

Wpisanie
Code:
export CCACHE_DIR="/var/tmp/ccache"


do pliku /root/.zshrc spowodowało, że ccache w końcu zaczęło żyć :)

Code:
[root@prime~]# ccache -s
cache hit                           4350
cache miss                          3690
called for link                      376
multiple source files                  2
compile failed                        66
ccache internal error                  2
preprocessor error                    33
not a C/C++ file                     269
autoconf compile/link                882
unsupported compiler option           42
no input file                         62
files in cache                      7380
cache size                         425.4 Mbytes
max cache size                    1024.0 Mbytes


Natomiast nadal nie jestem pewny co do znaczenia komunikatu generowanego przy kompilowaniu programów (na samym początku kompilacji):
Code:
* Adjusting permissions on ccache in /var/tmp/ccache


Jak już wcześniej wspomniałem, z materiałów które znalazłem w sieci wynika że jest to jakiś błąd programu ccache. Czy może się mylę i jest to normalna informacja generowana przez kompilator podczas używania ccache?
_________________
pozdrawiam
Radioaktywny
Back to top
View user's profile Send private message
red79
Apprentice
Apprentice


Joined: 28 Jun 2005
Posts: 174

PostPosted: Wed Sep 07, 2005 7:14 am    Post subject: Reply with quote

Wpisanie polecenia

Quote:
CCACHE_DIR="/var/tmp/ccache" ccache -s


dało spodziewany efekt w postaci:

Quote:
cache hit 2541
cache miss 869
called for link 661
compile failed 192
preprocessor error 476
not a C/C++ file 92
autoconf compile/link 3164
unsupported compiler option 32
no input file 313
files in cache 1738
cache size 66.2 Mbytes
max cache size 2.0 Gbytes


Wyszła jednak jeszcze jedna sprawa, której wcześniej nie zauważyłem. Nie mam pliku .bashrc w katalogu root (jest tylko na koncie usera). Czy to jest normalne i powino tak być? Kiedy tworzy się ten plik? Z konta root korzystam tylko przez su.
Back to top
View user's profile Send private message
Bako
Apprentice
Apprentice


Joined: 17 Jul 2005
Posts: 225
Location: Częstochowa [PL]

PostPosted: Wed Sep 07, 2005 8:01 am    Post subject: Reply with quote

red79 wrote:

Wyszła jednak jeszcze jedna sprawa, której wcześniej nie zauważyłem. Nie mam pliku .bashrc w katalogu root (jest tylko na koncie usera). Czy to jest normalne i powino tak być? Kiedy tworzy się ten plik? Z konta root korzystam tylko przez su.


to jest normalne tj. jak budujesz system to konta roota nie tworzysz, dlatego nie sa dodawane pliki ze "szkieletu" (w odroznieniu od usera, ktore dodajesz normalnie). Skopiuj po prostu od usera 3 pliki:
Code:
.bash_logout
.bash_profile
.bashrc


Radioaktywny wrote:

Natomiast nadal nie jestem pewny co do znaczenia komunikatu generowanego przy kompilowaniu programów (na samym początku kompilacji):
Kod:
* Adjusting permissions on ccache in /var/tmp/ccache


a na pewno wykonales?: chown -R portage:portage /var/tmp/ccache - z nastawieniem na -R :)

ps. ja nie ma nigdzie podanego CCACHE_DIR i zyje ;) jakos niepotrzebne mi sa te statystyki, a jak juz chce sprawdzic, to wklepuje cala sciezke :)
_________________
.: Asus F3JC :: Intel Core 2 Duo T5500 1,66GHz 667MHz :: 2GB DDR2 677MHz :: 100GB 5400rpm :: Nvidia GeForce 7300 :.
.: Powered by Gentoo :) -> http://picasaweb.google.pl/bardzi/Gentoo :.
Back to top
View user's profile Send private message
Radioaktywny
Apprentice
Apprentice


Joined: 01 Sep 2005
Posts: 248
Location: Jestem przed komputerem ;)

PostPosted: Wed Sep 07, 2005 2:58 pm    Post subject: Reply with quote

Na 100% wykonałem:
Code:
chown -R portage:portage /var/tmp/ccache


Na wszelki wypadek zrobiłem to ponownie. Nadal mam:

Code:
* Adjusting permissions on ccache in /var/tmp/ccache


Jakieś pomysły?
_________________
pozdrawiam
Radioaktywny
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
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