GCC broken after update

Discussion in general that pertains to Sabayon Linux - Must Pertain to Sabayon Linux

Moderator: Moderators

GCC broken after update

Postby andreios » Sun Feb 04, 2018 11:46

I updatet the system and it seems every single package was reinstalled for some reason. Why?
And GCC was replaced by sys-devel/base-gcc-6.4.0-r1
For what reason ever.
But GCC ist dead now with a message.

gcc [11:54:35]
gcc-config: error: could not run/locate 'gcc'

strace /usr/bin/gcc [12:00:05]
execve("/usr/bin/gcc", ["/usr/bin/gcc"], 0x7fffcfff5da0 /* 47 vars */) = 0
brk(NULL) = 0x560f34034000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd31da68000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=521125, ...}) = 0
mmap(NULL, 521125, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fd31d9e8000
close(3) = 0
open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0p\7\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1832496, ...}) = 0
mmap(NULL, 3939936, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd31d484000
mprotect(0x7fd31d63c000, 2097152, PROT_NONE) = 0
mmap(0x7fd31d83c000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b8000) = 0x7fd31d83c000
mmap(0x7fd31d842000, 15968, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fd31d842000
close(3) = 0
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd31d9e5000
arch_prctl(ARCH_SET_FS, 0x7fd31d9e5700) = 0
mprotect(0x7fd31d83c000, 16384, PROT_READ) = 0
mprotect(0x560f32fc1000, 4096, PROT_READ) = 0
mprotect(0x7fd31da6a000, 4096, PROT_READ) = 0
munmap(0x7fd31d9e8000, 521125) = 0
brk(NULL) = 0x560f34034000
brk(0x560f34055000) = 0x560f34055000
stat("/usr/x86_64-pc-linux-gnu/gcc-bin/6.4.0/gcc", 0x7ffc6859fef0) = -1 ENOENT (No such file or directory)
open("/etc/env.d/gcc/.NATIVE", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=360, ...}) = 0
read(3, "LDPATH=\"/usr/lib/gcc/x86_64-pc-l"..., 4096) = 360
stat("/usr/x86_64-pc-linux-gnu/gcc-bin/6.4.0/gcc", 0x7ffc6859de90) = -1 ENOENT (No such file or directory)
read(3, "", 4096) = 0
close(3) = 0
pipe2([3, 4], O_CLOEXEC) = 0
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fd31d9e59d0) = 18364
close(4) = 0
fcntl(3, F_SETFD, 0) = 0
fstat(3, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
read(3, "/usr/x86_64-pc-linux-gnu/gcc-bin"..., 4096) = 39
close(3) = 0
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=18364, si_uid=0, si_status=0, si_utime=1, si_stime=1} ---
wait4(18364, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 18364
execve("/usr/x86_64-pc-linux-gnu/gcc-bin/6.4.0/gcc", ["/usr/x86_64-pc-linux-gnu/gcc-bin"...], 0x7ffc685a2168 /* 47 vars */) = -1 ENOENT (No such file or directory)
write(2, "gcc-config: error: could not run"..., 46gcc-config: error: could not run/locate 'gcc'
) = 46
exit_group(1) = ?
+++ exited with 1 +++
andreios
Young Hen
 
Posts: 28
Joined: Fri May 30, 2014 17:17

Re: GCC broken after update

Postby joost » Sun Feb 04, 2018 11:49

Make sure to have sys-devel/gcc:6.4.0 installed too.

Remember that Sabayon has split gcc in two packages.
joost
Sagely Hen
 
Posts: 2668
Joined: Fri Nov 17, 2006 12:11
Location: The Netherlands

Re: GCC broken after update

Postby sabayonino » Sun Feb 04, 2018 12:16

Code: Select all
sys-devel/base-gcc-6.4.0-r1
sys-devel/gcc-6.4.0-r1


if you need the full gcc suite keep in mind to install @build-essentials set [marked as @] not gcc only (set will install extra packages like cmake ...)
Code: Select all
# equo i @build-essentials


PS : every packages in sabayon repositories were rebuild with new gcc version so you have a very big upgrade
[Che Cos'è Il Calcolo Distribuito (BOINC)

BOINC ready ! Sabayon+BOINC = BILD ,my Sabayon spin :cyclops: - Ready to crunch for the Science everywhere :)
User avatar
sabayonino
Sagely Hen
 
Posts: 3141
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: GCC broken after update

Postby andreios » Sun Feb 04, 2018 12:45

joost wrote:Make sure to have sys-devel/gcc:6.4.0 installed too.

Remember that Sabayon has split gcc in two packages.


Interesting. I had sys-devel/gcc installed before update. But after update it was gone for some reason but this other package was installed called sys-devel/base-gcc. Couldn't find it on my standard gentoo system, so after all this updates I thought it must be some sabayon specific GCC replacement package or so.

sabayonino wrote:if you need the full gcc suite keep in mind to install @build-essentials set [marked as @] not gcc only (set will install extra packages like cmake ...)
Code: Select all
# equo i @build-essentials


Everything works now! Thanks! :salut: :D
sabayonino wrote:PS : every packages in sabayon repositories were rebuild with new gcc version so you have a very big upgrade

Very good! :D That's a very special service here! :salut:
andreios
Young Hen
 
Posts: 28
Joined: Fri May 30, 2014 17:17

Re: GCC broken after update

Postby sabayonino » Sun Feb 04, 2018 13:34

andreios wrote:
joost wrote:
Code: Select all
# equo i @build-essentials


Everything works now! Thanks! :salut: :D

you can find a list of @sets running
Code: Select all
# equo q sets


@build-essentials sets includes :
Code: Select all
╠   #2 build-essentials
╠     sys-devel/autoconf
╠     sys-devel/automake
╠     sys-devel/gcc
╠     virtual/os-headers
╠     virtual/pkgconfig
[Che Cos'è Il Calcolo Distribuito (BOINC)

BOINC ready ! Sabayon+BOINC = BILD ,my Sabayon spin :cyclops: - Ready to crunch for the Science everywhere :)
User avatar
sabayonino
Sagely Hen
 
Posts: 3141
Joined: Sun Sep 21, 2008 1:12
Location: Italy


Return to Sabayon Linux General Discussion

Who is online

Users browsing this forum: No registered users and 10 guests

cron