Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Question] Cumule des warnings de compilation
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
glegall
n00b
n00b


Joined: 12 Apr 2017
Posts: 29
Location: Marseille

PostPosted: Fri May 05, 2017 8:41 am    Post subject: [Question] Cumule des warnings de compilation Reply with quote

Salut,
j'aurai une petite question :)

Comment fait gentoo pour cumuler les warnings de compilation de tout les paquets ?

Merci bien !
_________________
Linux is life !
Back to top
View user's profile Send private message
xaviermiller
Administrator
Administrator


Joined: 23 Jul 2004
Posts: 7307
Location: ~Brussels - Belgique

PostPosted: Fri May 05, 2017 8:50 am    Post subject: Reply with quote

Il ne les cumule pas.

Par contre, il conserve les messages émis par portages (elog), que tu peux consulter avec elogv par exemple.
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
glegall
n00b
n00b


Joined: 12 Apr 2017
Posts: 29
Location: Marseille

PostPosted: Fri May 05, 2017 9:37 am    Post subject: Reply with quote

dac je vais voir ça :)
merci !
_________________
Linux is life !
Back to top
View user's profile Send private message
glegall
n00b
n00b


Joined: 12 Apr 2017
Posts: 29
Location: Marseille

PostPosted: Fri May 12, 2017 2:25 pm    Post subject: Reply with quote

Salut,

Serai t-il possible de faire en sorte qu'à chaque compile (emerge) on sauvegarde uniquement les warnings dans un cache ?
_________________
Linux is life !
Back to top
View user's profile Send private message
xaviermiller
Administrator
Administrator


Joined: 23 Jul 2004
Posts: 7307
Location: ~Brussels - Belgique

PostPosted: Fri May 12, 2017 2:35 pm    Post subject: Reply with quote

Tu parles bien des warnings de compilation ou des elogs ?

Pour les warnings, tu devras récupérer le fichier build.log. Pour cela, tu devras désactiver la suppression des fichiers temportaires avec FEATURES=keepwork
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
glegall
n00b
n00b


Joined: 12 Apr 2017
Posts: 29
Location: Marseille

PostPosted: Fri May 12, 2017 2:45 pm    Post subject: Reply with quote

Je parle des warnings de compilation.

j'aimerai faire en sorte qu'à la fin de chaque emerge il me fais un recap des warnings (warning dû à gcc, libtool, ...) .
_________________
Linux is life !
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1664
Location: 127.0.0.1

PostPosted: Fri May 12, 2017 6:29 pm    Post subject: Reply with quote

glegall wrote:
Je parle des warnings de compilation.

j'aimerai faire en sorte qu'à la fin de chaque emerge il me fais un recap des warnings (warning dû à gcc, libtool, ...) .

Salut,

À ma connaissance avec portage çà ne doit pas être possible.
Mais, tu peux activer PORT_LOGDIR dans ton make.conf pour sauvegarder les logs de compilation.
Ensuite, à grands coups de grep...
Code:

$ grep warning /var/log/portage/build/dev-libs/zziplib-0.13.62-r2\:20170504-071329.log
checking CFLAGS for maximum warnings... -Wall
configure: warning: pkgconfigdir=/usr/lib64/pkgconfig (see config.log)
/var/tmp/portage/dev-libs/zziplib-0.13.62-r2/work/zziplib-0.13.62/zzip/mmapped.c:107:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/var/tmp/portage/dev-libs/zziplib-0.13.62-r2/work/zziplib-0.13.62/zzip/mmapped.c:149:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/var/tmp/portage/dev-libs/zziplib-0.13.62-r2/work/zziplib-0.13.62/zzip/mmapped.c:152:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/var/tmp/portage/dev-libs/zziplib-0.13.62-r2/work/zziplib-0.13.62/zzip/mmapped.c:155:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/var/tmp/portage/dev-libs/zziplib-0.13.62-r2/work/zziplib-0.13.62/zzip/mmapped.c:308:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/var/tmp/portage/dev-libs/zziplib-0.13.62-r2/work/zziplib-0.13.62/zzip/mmapped.c:337:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/var/tmp/portage/dev-libs/zziplib-0.13.62-r2/work/zziplib-0.13.62/zzip/mmapped.c:386:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/var/tmp/portage/dev-libs/zziplib-0.13.62-r2/work/zziplib-0.13.62/zzip/mmapped.c:544:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/var/tmp/portage/dev-libs/zziplib-0.13.62-r2/work/zziplib-0.13.62/zzip/mmapped.c:610:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/var/tmp/portage/dev-libs/zziplib-0.13.62-r2/work/zziplib-0.13.62/zzip/fseeko.c:103:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/var/tmp/portage/dev-libs/zziplib-0.13.62-r2/work/zziplib-0.13.62/zzip/fseeko.c:127:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/var/tmp/portage/dev-libs/zziplib-0.13.62-r2/work/zziplib-0.13.62/zzip/fseeko.c:150:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/var/tmp/portage/dev-libs/zziplib-0.13.62-r2/work/zziplib-0.13.62/zzip/fseeko.c:160:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/var/tmp/portage/dev-libs/zziplib-0.13.62-r2/work/zziplib-0.13.62/zzip/fseeko.c:186:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/var/tmp/portage/dev-libs/zziplib-0.13.62-r2/work/zziplib-0.13.62/zzip/fseeko.c:198:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/var/tmp/portage/dev-libs/zziplib-0.13.62-r2/work/zziplib-0.13.62/zzip/fseeko.c:253:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/var/tmp/portage/dev-libs/zziplib-0.13.62-r2/work/zziplib-0.13.62/zzip/fseeko.c:257:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/var/tmp/portage/dev-libs/zziplib-0.13.62-r2/work/zziplib-0.13.62/zzip/fseeko.c:261:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/var/tmp/portage/dev-libs/zziplib-0.13.62-r2/work/zziplib-0.13.62/zzip/fseeko.c:268:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/var/tmp/portage/dev-libs/zziplib-0.13.62-r2/work/zziplib-0.13.62/zzip/fseeko.c:282:13: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/var/tmp/portage/dev-libs/zziplib-0.13.62-r2/work/zziplib-0.13.62/zzip/fseeko.c:367:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/var/tmp/portage/dev-libs/zziplib-0.13.62-r2/work/zziplib-0.13.62/zzip/fseeko.c:541:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/var/tmp/portage/dev-libs/zziplib-0.13.62-r2/work/zziplib-0.13.62/zzip/fseeko.c:559:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/var/tmp/portage/dev-libs/zziplib-0.13.62-r2/work/zziplib-0.13.62/zzip/fseeko.c:613:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/var/tmp/portage/dev-libs/zziplib-0.13.62-r2/work/zziplib-0.13.62/zzip/fseeko.c:626:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/var/tmp/portage/dev-libs/zziplib-0.13.62-r2/work/zziplib-0.13.62/zzip/fseeko.c:643:13: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/var/tmp/portage/dev-libs/zziplib-0.13.62-r2/work/zziplib-0.13.62/bins/zzxorcat.c:95:17: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
/var/tmp/portage/dev-libs/zziplib-0.13.62-r2/work/zziplib-0.13.62/bins/unzzip.c:91:7: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
/var/tmp/portage/dev-libs/zziplib-0.13.62-r2/work/zziplib-0.13.62/bins/zzobfuscated.c:137:17: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
echo '#warning do no not use <zzip.h>, update to include <zzip/lib.h>'\
libtool: install: warning: remember to run `libtool --finish /usr/lib64'
libtool: install: warning: relinking `libzzipwrap.la'
libtool: install: warning: remember to run `libtool --finish /usr/lib64'
libtool: install: warning: `../zzip/libzzip.la' has not been installed in `/usr/lib64'
libtool: install: warning: `../zzip/libzzip.la' has not been installed in `/usr/lib64'
libtool: install: warning: `../zzip/libzzip.la' has not been installed in `/usr/lib64'
libtool: install: warning: `../zzip/libzzip.la' has not been installed in `/usr/lib64'
libtool: install: warning: `../zzip/libzzip.la' has not been installed in `/usr/lib64'
libtool: install: warning: `../zzip/libzzipmmapped.la' has not been installed in `/usr/lib64'
libtool: install: warning: `../zzip/libzzipmmapped.la' has not been installed in `/usr/lib64'
libtool: install: warning: `../zzip/libzzipfseeko.la' has not been installed in `/usr/lib64'
libtool: install: warning: `../zzip/libzzipmmapped.la' has not been installed in `/usr/lib64'
libtool: install: warning: `../zzip/libzzipmmapped.la' has not been installed in `/usr/lib64'
libtool: install: warning: `../zzip/libzzipmmapped.la' has not been installed in `/usr/lib64'
Back to top
View user's profile Send private message
glegall
n00b
n00b


Joined: 12 Apr 2017
Posts: 29
Location: Marseille

PostPosted: Mon May 15, 2017 9:16 am    Post subject: Reply with quote

Merci bien netfab, je vais tester ça !!
_________________
Linux is life !
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French 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