首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在HP DL380 G4上安装Gentoo在安装内核源时失败

在HP DL380 G4上安装Gentoo在安装内核源时失败
EN

Unix & Linux用户
提问于 2018-09-18 20:29:08
回答 1查看 210关注 0票数 3

我正在尝试在一个amd64上安装Gentoo amd64。我已经找到了Gentoo安装手册中的配置Linux内核部分。使用此命令后:

代码语言:javascript
复制
emerge --ask sys-kernel/gentoo-sources

我得到以下输出:

代码语言:javascript
复制
(chroot) livecd / # emerge --ask sys-kernel/gentoo-sources

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] sys-devel/bc-1.06.95-r2  USE="readline -libedit -static" 
[ebuild  N     ] sys-kernel/gentoo-sources-4.14.65  USE="-build -experimental -symlink" 

Would you like to merge these packages? [Yes/No] yes

>>> Verifying ebuild manifests

>>> Emerging (1 of 2) sys-devel/bc-1.06.95-r2::gentoo
 * Fetching files in the background.
 * To view fetch progress, run in another terminal:
 * tail -f /var/log/emerge-fetch.log
 * bc-1.06.95.tar.bz2 BLAKE2B SHA512 size ;-) ...                                                                                                                                      [ ok ]
>>> Unpacking source...
>>> Unpacking bc-1.06.95.tar.bz2 to /var/tmp/portage/sys-devel/bc-1.06.95-r2/work
>>> Source unpacked in /var/tmp/portage/sys-devel/bc-1.06.95-r2/work
>>> Preparing source in /var/tmp/portage/sys-devel/bc-1.06.95-r2/work/bc-1.06.95 ...
 * Applying bc-1.06.95-void_uninitialized.patch ...                                                                                                                                    [ ok ]
 * Applying bc-1.06.95-mem-leak.patch ...                                                                                                                                              [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-devel/bc-1.06.95-r2/work/bc-1.06.95 ...
./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 --libdir=/usr/lib64 --with-readline --without-libedit
checking for a BSD-compatible install... /usr/lib/portage/python3.6/ebuild-helpers/xattr/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/sys-devel/bc-1.06.95-r2/work/bc-1.06.95/config.log
 * ERROR: sys-devel/bc-1.06.95-r2::gentoo failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *               ebuild.sh, line  124:  Called src_configure
 *             environment, line 2172:  Called econf '--with-readline' '--without-libedit'
 *        phase-helpers.sh, line  718:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  121:  Called die
 * The specific snippet of code:
 *          die "$@"
 * 
 * If you need support, post the output of `emerge --info '=sys-devel/bc-1.06.95-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/bc-1.06.95-r2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-devel/bc-1.06.95-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/bc-1.06.95-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-devel/bc-1.06.95-r2/work/bc-1.06.95'
 * S: '/var/tmp/portage/sys-devel/bc-1.06.95-r2/work/bc-1.06.95'

>>> Failed to emerge sys-devel/bc-1.06.95-r2, Log file:

>>>  '/var/tmp/portage/sys-devel/bc-1.06.95-r2/temp/build.log'

 * Messages for package sys-devel/bc-1.06.95-r2:

 * ERROR: sys-devel/bc-1.06.95-r2::gentoo failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *               ebuild.sh, line  124:  Called src_configure
 *             environment, line 2172:  Called econf '--with-readline' '--without-libedit'
 *        phase-helpers.sh, line  718:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  121:  Called die
 * The specific snippet of code:
 *          die "$@"
 * 
 * If you need support, post the output of `emerge --info '=sys-devel/bc-1.06.95-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/bc-1.06.95-r2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-devel/bc-1.06.95-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/bc-1.06.95-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-devel/bc-1.06.95-r2/work/bc-1.06.95'
 * S: '/var/tmp/portage/sys-devel/bc-1.06.95-r2/work/bc-1.06.95'

问题是什么?

EN

回答 1

Unix & Linux用户

发布于 2018-09-19 19:31:16

有关的条文如下:

代码语言:javascript
复制
checking for C compiler default output file name... configure: error: C compiler cannot create executables

这意味着,当configure包的bc脚本(内核构建过程需要它)检查以确保按命令调用C编译器(GCC)时,它失败了。造成这种情况的可能原因包括,但不限于:

  • 无效选项( Gentoo上的选项将位于CFLAGS变量中的/etc/portage/make.conf中)。这是最有可能发生的情况。例如,将-fstack-protector选项传递给较老的GCC版本,尝试在错误的系统上构建32位或64位的代码,或者尝试使用Graphite优化选项,而GCC是在不支持Graphite的情况下构建的。
  • 硬件问题(内存不好,PSU不好,CPU不好等)。
  • 磁盘上的无声数据损坏。
  • 内存不足(不太可能,除非您已经在tmpfs中配置了要构建的东西,并且没有太多的内存)。
票数 2
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/469882

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档