D
D
Dmitry Skrylnikov2015-10-29 02:25:10
linux
Dmitry Skrylnikov, 2015-10-29 02:25:10

Why doesn't gcc work in sabayon?

gcc does not work, I wanted to build the kernel, but I can’t even configure it

make nconfig
  HOSTCC  scripts/basic/fixdep
gcc-config: error: could not run/locate 'gcc'
scripts/Makefile.host:91: recipe for target 'scripts/basic/fixdep' failed
make[1]: *** [scripts/basic/fixdep] Error 1
Makefile:439: recipe for target 'scripts_basic' failed
make: *** [scripts_basic] Error 2

tried to install from an older version
sudo equo install gcc-4.4.7 --ask
╠  @@ Calculating dependencies...
╠  @@ These are the packages that would be installed:
╠  ## [N] [sabayon-weekly] sys-devel/gcc-4.4.7|2
╠  @@ Packages needing to be installed/updated/downgraded: 1
╠  @@ Packages needing to be removed: 0
╠  @@ Packages needing to be installed: 1
╠  @@ Packages needing to be reinstalled: 0
╠  @@ Packages needing to be updated: 0
╠  @@ Packages needing to be downgraded: 0
╠  @@ Download size: 107.5MB
╠  @@ Used disk space: 434.4MB
╠  @@ You need at least: 649.4MB of free space
     Would you like to continue ? [Yes/No] Yes
╠  @@ You need to accept the licenses below:
╠     :: License: FDL-1.2+, needed by:
╠      # [from:sabayon-weekly] sys-devel/gcc-4.4.7
╠     Please select an option
╠       (1) Read the license
╠       (2) Accept the license (I've read it)
╠       (3) Accept the license and don't ask anymore (I've read it)
╠       (0) Quit
       Your choice (type a number and press enter): 3
╠  ::: >>>  (1/1) 1 package
╠    ## Downloading: 1 package
╠    ## ( mirror #1 ) [sys-devel:gcc-4.4.7.f3a5114f66b70d2d688115d65a67ddb9785e1935~2.tbz2] @ http://mirror.umd.edu
╠   ## Aggregated download: 1 item
╠    # [1] mirror.umd.edu => sys-devel:gcc-4.4.7.f3a5114f66b70d2d688115d65a67ddb9785e1935~2.tbz2
╠    ## Checking package checksum...
╠       : [sys-devel:gcc-4.4.7.f3a5114f66b70d2d688115d65a67ddb9785e1935~2.tbz2] GPG validated
╠       : SHA1 disabled
╠       : [sys-devel:gcc-4.4.7.f3a5114f66b70d2d688115d65a67ddb9785e1935~2.tbz2] SHA256 validated
╠       : SHA512 disabled
╠    ## ( mirror #1 ) [sys-devel:gcc-4.4.7.f3a5114f66b70d2d688115d65a67ddb9785e1935~2.tbz2] success @ http://mirror.umd.edu
╠    ##  Aggregated transfer rate: 765.8kB/second
╠  +++ >>>  (1/1) sys-devel/gcc-4.4.7
╠    ## Unpacking: sys-devel:gcc-4.4.7.f3a5114f66b70d2d688115d65a67ddb9785e1935~2.tbz2
╠    ## Package phase: setup
╠    ## Installing package: sys-devel/gcc-4.4.7
╠    ## [The GNU Compiler Collection]
╠    ## Updating installed packages repository: sys-devel/gcc-4.4.7
╠    ## Package phase: postinstall
 * The current gcc config appears valid, so it will not be
 * automatically switched for you.  If you would like to
 * switch to the newly installed gcc version, do the
 * following:

 * gcc-config x86_64-pc-linux-gnu-4.4.7
 * source /etc/profile

 * Switching native-compiler to x86_64-pc-linux-gnu-4.8.4 ...
 * The GCC compiler for x86_64-pc-linux-gnu is not installed.
PORTAGE_BZIP2_COMMAND setting is invalid: 'bzip2'
PORTAGE_BZIP2_COMMAND setting from make.globals is invalid: 'bzip2'
>>> Regenerating /etc/ld.so.cache...                                                                                                                                  [ ok ]

 * If you have issues with packages unable to locate libstdc++.la,
 * then try running 'fix_libtool_files.sh' on the old gcc versions.

 * You might want to review the GCC upgrade guide when moving between
 * major versions (like 4.2 to 4.3):
 * http://www.gentoo.org/doc/en/gcc-upgrading.xml

╠    ## Cleaning: sys-devel/gcc-4.4.7
╠  @@ Installation complete.
╠  @@ No configuration files to update.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Afonin, 2015-12-10
@reli

Try to check for the presence of gcc itself, or maybe Sabayon uses clang instead (then in make.conf you will need to register its compiler by default), or there was no compiler in stage3.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question