gcc build takes hours, I would like to figure out which package triggers it. Any idea? Thanks.
What is it rebuilding? Scroll through the buffer and it will tell you. Most aur packages need compiling from source, some are small, some are huge (e.g. browsers).
gcc itself. I could not change the title to:
Which package triggers via yay a build of gcc itself
Why would you need to build gcc? It is already build and available in Arch’s repo.
pacman -Ss gcc core/gcc 13.1.1-1 [installed] The GNU Compiler Collection - C and C++ frontends
Correct. That is the question. I do not want to build it but
yes | yay
decides that it has to do it. I need to find what triggers it.
yes should be omitted but too late.
pacman -Qs gcc ?
@ng0177 I think you are misinterpreting normal compilation messages, you have it (gcc) installed from core not aur. Scroll back to the top of the terminal to see what gcc is compiling.
^ oops that was @pebcak 's post
Could you provide more info ? Which version for which architecture ?
I guess it’s an AUR package requiring a particular version of gcc.
@xircon the build runs for several hours on a high end WS with the terminal being far too short to scroll up.
@pebcak whilst still running…
z590: ~ $ pacman -Qs gcc local/gcc 13.1.1-1 The GNU Compiler Collection - C and C++ frontends local/gcc-fortran 13.1.1-1 Fortran front-end for GCC local/gcc-libs 13.1.1-1 Runtime libraries shipped by GCC local/gcc11 11.3.0-6 The GNU Compiler Collection - C and C++ frontends (11.x.x) local/gcc11-libs 11.3.0-6 Runtime libraries shipped by GCC (11.x.x) local/gcc12 12.3.0-2 The GNU Compiler Collection - C and C++ frontends (12.x.x) local/gcc12-libs 12.3.0-2 Runtime libraries shipped by GCC (12.x.x)
These are installed from AUR. So they will get rebuild evey time there is an update to them.
Just (try to) remove gcc11. It’ll tell you if something is still depending on it…
sudo pacman -Rs gcc11 gcc11-libs
I guess, I go for a reinstall of EOS, looks like a mess:
z590: ~ $ sudo pacman -Rns --noconfirm gcc11 checking dependencies... error: failed to prepare transaction (could not satisfy dependencies) :: removing gcc11 breaks dependency 'gcc' required by dkms z590: ~ $ sudo pacman -Rns --noconfirm gcc12 checking dependencies... error: failed to prepare transaction (could not satisfy dependencies) :: removing gcc12 breaks dependency 'gcc12' required by cuda
plus kernel panic. Done.