Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Compile phase fail! What packages are your nemesis?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9199
Location: almost Mile High in the USA

PostPosted: Mon Jan 23, 2023 4:34 pm    Post subject: Compile phase fail! What packages are your nemesis? Reply with quote

I was wondering about some of the most annoying packages to build and tried this command:
Code:
atom# grep ERROR.*compile\  /var/log/portage/elog/summary.log|awk '{print $2}'| cut -f1-2 -d- |sort|uniq -c|sort -rn|head
     19 sys-devel/llvm
     10 sys-devel/gcc
      7 media-video/ffmpeg
      7 media-sound/audacity
      7 dev-lang/perl
      6 net-dns/libidn2
      5 sys-libs/binutils
      4 www-client/firefox
      4 sys-devel/gdb
      4 dev-libs/nss

I think gcc and llvm die a lot because I abort them (^C) when I see that it's not optimally using my machine, but yes I see a lot of ffmpeg random failures along with libidn2, and gdb even. Definitely a lot of firefox build deaths. I don't know why perl showed up here, likewise nss, but they may have been from a long time ago and long forgotten what I had to do to get them to build. Note that this could be any reason from missing header files to running out of disk space, so take with a grain of salt if you don't remember why it died.

Tried on another machine and firefox showed up a lot, plus a bunch of experimental packages. dev-python/docutils also showed up. As it's a newer box, perl and nss don't show up.

Curious which packages people end up having to hand fix due to some unforeseen build problem. Unfortunately the machine that I was most curious of (my server) logrotated the old entries away, so boo... however the latest summary.log had no compile phase errors, which meant it was all hunky dory on the last few merges!
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Syl20
Guru
Guru


Joined: 04 Aug 2005
Posts: 591
Location: France

PostPosted: Tue Jan 24, 2023 4:53 pm    Post subject: Reply with quote

I don't keep a summary.log file. But, for me, most of the times, the problem is either a tmp directory full (on my workstations, /tmp on tmpfs, so I have to update the package.env file, and so on), or an OOM (on my servers, too many jobs, so I have to update the package.env file, and so on).

Theeeeeeen... the winners are :

Code:
 # cat /etc/portage/package.env
app-emulation/virtualbox                notmpfs
app-emulation/virtualbox-additions      notmpfs
app-office/libreoffice                  notmpfs
app-text/texlive-core                   notmpfs
dev-lang/go                             notmpfs
dev-lang/mono                           notmpfs
dev-lang/rust                           notmpfs
dev-lang/spidermonkey                   notmpfs
dev-libs/boost                          notmpfs
dev-libs/libsigc++                      notmpfs
dev-libs/nss                            notmpfs
dev-qt/qtwebengine                      notmpfs
gnome-base/librsvg                      notmpfs
net-libs/nodejs                         notmpfs
sys-devel/clang                         notmpfs
sys-devel/gcc                           notmpfs
sys-devel/llvm                          notmpfs
sys-kernel/gentoo-sources               notmpfs
sys-kernel/linux-firmware               notmpfs
sys-kernel/linux-headers                notmpfs
x11-libs/wxGTK                          notmpfs


No surprise, except that firefox and thunderbird are not listed anymore, since I switched to -bin versions (my internet bandwidth is a joke).
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 2763
Location: Rasi, Finland

PostPosted: Tue Jan 24, 2023 10:24 pm    Post subject: Reply with quote

The awk freak in me came up with this:
Code:
awk '/ERROR.*compile / {sub(/-[0-9].*$/,"",$2); pkgs[$2]++} END{for (p in pkgs) print p ": " pkgs[p]}' /var/log/portage/elog/summary.log | sort -k 2 -nr
... and most packages are from my own repo. :oops:
Code:
games-resources/freedoom: 54
dev-games/eureka: 10
app-arch/bzip2: 6
sys-apps/gentoo-functions: 3
media-sound/pulseaudio: 2
... bzip2 and gentoo-functions... What? gentoo-functions is a shell script. Maybe my awkline isn't doing what it should....

But really. I rarely see problems compiling stuff from ::gentoo. Or even from ::guru.
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9199
Location: almost Mile High in the USA

PostPosted: Wed Jan 25, 2023 1:22 am    Post subject: Reply with quote

You must have seen firefox die frequently? I can't count the number of times I had to restart firefox build, usually disabling distcc to let it build. But frequently it works quite fine with distcc too...

I don't have much of a repo other than ::gentoo, alas I do have a small /usr/local/portage repo. Yes those die frequently as expected, been experimenting with those, but defintely still have ::gentoo failures during compile albeit some are self-inflicted (like distcc, oom, and aborts). But some do end up giving random include file not found errors, missing files, and such, ... quickly fixed by re-emerging some package, but these are the annoying ones.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat 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