GCC broken after update [Solved]

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

Moderator: Moderators

andreios
Young Hen
Posts: 39
Joined: Fri May 30, 2014 17:17

GCC broken after update [Solved]

Post by 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.

Code: Select all

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 +++
Last edited by andreios on Sun Jun 10, 2018 21:23, edited 1 time in total.

joost
Sagely Hen
Posts: 2681
Joined: Fri Nov 17, 2006 12:11
Location: The Netherlands
Contact:

Re: GCC broken after update

Post by 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.
Image
My blog | Twitter | Please support Sabayon: Image

User avatar
sabayonino
Sagely Hen
Posts: 3232
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: GCC broken after update

Post by 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 :)

andreios
Young Hen
Posts: 39
Joined: Fri May 30, 2014 17:17

Re: GCC broken after update

Post by 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:

User avatar
sabayonino
Sagely Hen
Posts: 3232
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: GCC broken after update

Post by 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 :)

andreios
Young Hen
Posts: 39
Joined: Fri May 30, 2014 17:17

Re: GCC broken after update

Post by andreios » Sat Jun 09, 2018 13:22

Basically the same again:

checking whether the C++ compiler works... no
configure: error: C++ compiler cannot create executables

I have tried to remove and reinstall GCC, but same result.

User avatar
sabayonino
Sagely Hen
Posts: 3232
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: GCC broken after update

Post by sabayonino » Sat Jun 09, 2018 13:49

please , post the complete error log/output and explain what you're doing.
[Che Cos'è Il Calcolo Distribuito (BOINC)

BOINC ready ! Sabayon+BOINC = BILD ,my Sabayon spin :cyclops: - Ready to crunch for the Science everywhere :)

andreios
Young Hen
Posts: 39
Joined: Fri May 30, 2014 17:17

Re: GCC broken after update

Post by andreios » Sat Jun 09, 2018 15:26

I'm trying to install one single package with emerge. But it doesn't matter what i'm trying to install, the error is always the same. Can't install anything with emerge, except it's binary.

Code: Select all

* Package:    media-sound/butt-0.1.16
 * Repository: delicious-absurdities
 * Maintainer: [email protected]
 * USE:        aac abi_x86_64 amd64 elibc_glibc flac kernel_linux mp3 ogg userland_GNU vorbis
 * FEATURES:   compressdebug preserve-libs sandbox splitdebug userpriv usersandbox
>>> Unpacking source...
>>> Unpacking butt-0.1.16.tar.gz to /var/tmp/portage/media-sound/butt-0.1.16/work
>>> Source unpacked in /var/tmp/portage/media-sound/butt-0.1.16/work
>>> Preparing source in /var/tmp/portage/media-sound/butt-0.1.16/work/butt-0.1.16 ...
 * Applying butt-gcc5.patch ...                                                                                                                                                                                   [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-sound/butt-0.1.16/work/butt-0.1.16 ...
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/butt-0.1.16 --htmldir=/usr/share/doc/butt-0.1.16/html --libdir=/usr/lib64
checking for a BSD-compatible install... /usr/lib/portage/python3.5/ebuild-helpers/xattr/install -c
checking whether build environment is sane... yes
/var/tmp/portage/media-sound/butt-0.1.16/work/butt-0.1.16/missing: Unknown `--is-lightweight' option
Try `/var/tmp/portage/media-sound/butt-0.1.16/work/butt-0.1.16/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for x86_64-pc-linux-gnu-g++... x86_64-pc-linux-gnu-g++
checking whether the C++ compiler works... no
configure: error: in `/var/tmp/portage/media-sound/butt-0.1.16/work/butt-0.1.16':
configure: error: C++ compiler cannot create executables
See `config.log' for more details

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/media-sound/butt-0.1.16/work/butt-0.1.16/config.log
 * ERROR: media-sound/butt-0.1.16::delicious-absurdities failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *               ebuild.sh, line  124:  Called src_configure
 *             environment, line 2261:  Called default
 *      phase-functions.sh, line  853:  Called default_src_configure
 *      phase-functions.sh, line  888:  Called __eapi2_src_configure
 *        phase-helpers.sh, line  783:  Called econf
 *        phase-helpers.sh, line  666:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  117:  Called die
 * The specific snippet of code:
 *              die "[email protected]"
 * 
 * If you need support, post the output of `emerge --info '=media-sound/butt-0.1.16::delicious-absurdities'`,
 * the complete build log and the output of `emerge -pqv '=media-sound/butt-0.1.16::delicious-absurdities'`.
 * The complete build log is located at '/var/tmp/portage/media-sound/butt-0.1.16/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-sound/butt-0.1.16/temp/environment'.
 * Working directory: '/var/tmp/portage/media-sound/butt-0.1.16/work/butt-0.1.16'
 * S: '/var/tmp/portage/media-sound/butt-0.1.16/work/butt-0.1.16'

User avatar
sabayonino
Sagely Hen
Posts: 3232
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: GCC broken after update

Post by sabayonino » Sat Jun 09, 2018 17:18

which gcc packages you've installed ?

Code: Select all

$ equo q installed gcc -qv
and gcc-config setup

Code: Select all

# gcc-config -l
[Che Cos'è Il Calcolo Distribuito (BOINC)

BOINC ready ! Sabayon+BOINC = BILD ,my Sabayon spin :cyclops: - Ready to crunch for the Science everywhere :)

joost
Sagely Hen
Posts: 2681
Joined: Fri Nov 17, 2006 12:11
Location: The Netherlands
Contact:

Re: GCC broken after update

Post by joost » Sat Jun 09, 2018 18:09

Code: Select all

# binutils-config -l
 [1] x86_64-pc-linux-gnu-2.29.1 *
Should look like this.
Image
My blog | Twitter | Please support Sabayon: Image

Post Reply