我正在尝试按照在线手册在旧笔记本电脑上安装 Gentoo。我已经安装了内核源代码(请参阅这里): 安装
emerge --ask sys-kernel/gentoo-sources
似乎运行良好,直到失败且没有精确的错误消息。日志文件
/var/tmp/portage/sys-kernel/gentoo-sources-4.4.6/temp/build.log
不包含错误消息。该文件中的最后几行读取
* Final size of build directory: 1 KiB
* Final size of installed tree: 623669 KiB
ecompressdir: bzip2 -9 /usr/share/doc
我还查看了/var/log/emerge.log
其中也不包含任何错误消息:
1473188561: Started emerge on: set 06, 2016 21:02:40
1473188561: *** emerge --ask sys-kernel/gentoo-sources
1473188622: >>> emerge (1 of 1) sys-kernel/gentoo-sources-4.4.6 to /
1473188622: === (1 of 1) Cleaning (sys-kernel/gentoo-sources-4.4.6::/usr/portage/sys-kernel/gentoo-sources/gentoo-sources-4.4.6.ebuild)
1473188698: === (1 of 1) Compiling/Merging (sys-kernel/gentoo-sources-4.4.6::/usr/portage/sys-kernel/gentoo-sources/gentoo-sources-4.4.6.ebuild)
1473189553: === (1 of 1) Merging (sys-kernel/gentoo-sources-4.4.6::/usr/portage/sys-kernel/gentoo-sources/gentoo-sources-4.4.6.ebuild)
1473190741: *** Finished. Cleaning up...
1473190743: *** exiting unsuccessfully with status '1'.
1473190751: *** terminating.
我不知道下一步应该检查什么。任何想法?
编辑
这是内容/var/tmp/portage/sys-kernel/gentoo-sources-4.4.6/temp/build.log
(我删除了每行开头出现的一些不可打印的字符):
Package: sys-kernel/gentoo-sources-4.4.6
Repository: gentoo
Maintainer: [email protected]
USE: abi_x86_32 elibc_glibc kernel_linux userland_GNU x86
FEATURES: preserve-libs sandbox userpriv usersandbox
>>> Preparing to unpack ...
>>> Unpacking source...
>>> Unpacking linux-4.4.tar.xz to /var/tmp/portage/sys-kernel/gentoo-sources-4.4.6/work
>>> Unpacking genpatches-4.4-8.base.tar.xz to /var/tmp/portage/sys-kernel/gentoo-sources-4.4.6/work/patches
>>> Unpacking genpatches-4.4-8.extras.tar.xz to /var/tmp/portage/sys-kernel/gentoo-sources-4.4.6/work/patches
Excluding Patch #5000_enable-additional-cpu-optimizations-for-gcc.patch ...
Excluding Patch #5015_kdbus*.patch ...
Applying 1000_linux-4.4.1.patch (-p1) ...
Applying 1001_linux-4.4.2.patch (-p1) ...
Applying 1002_linux-4.4.3.patch (-p1) ...
Applying 1003_linux-4.4.4.patch (-p1) ...
Applying 1004_linux-4.4.5.patch (-p1) ...
Applying 1005_linux-4.4.6.patch (-p1) ...
Applying 1500_XATTR_USER_PREFIX.patch (-p1) ...
Applying 1510_fs-enable-link-security-restrictions-by-default.patch (-p1) ...
Applying 2700_ThinkPad-30-brightness-control-fix.patch (-p1) ...
Applying 2900_dev-root-proc-mount-fix.patch (-p1) ...
Applying 4200_fbcondecor-3.19.patch (-p1) ...
Applying 4567_distro-Gentoo-Kconfig.patch (-p1) ...
>>> Source unpacked in /var/tmp/portage/sys-kernel/gentoo-sources-4.4.6/work
>>> Preparing source in /var/tmp/portage/sys-kernel/gentoo-sources-4.4.6/work/linux-4.4.6-gentoo ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-kernel/gentoo-sources-4.4.6/work/linux-4.4.6-gentoo ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-kernel/gentoo-sources-4.4.6/work/linux-4.4.6-gentoo ...
>>> Source compiled.
>>> Test phase [not enabled]: sys-kernel/gentoo-sources-4.4.6
>>> Install gentoo-sources-4.4.6 into /var/tmp/portage/sys-kernel/gentoo-sources-4.4.6/image/ category sys-kernel
>>> Copying sources ...
>>> Completed installing gentoo-sources-4.4.6 into /var/tmp/portage/sys-kernel/gentoo-sources-4.4.6/image/
Final size of build directory: 1 KiB
Final size of installed tree: 623669 KiB
ecompressdir: bzip2 -9 /usr/share/doc
答案1
答案2
尝试:
rm -vR /usr/portage/distfiles
emerge-webrsync
emerge --sync && emerge -av sys-kernel/gentoo-sources
。
从输出结果来看,您没有正确下载 tarball。如果您注意到 @oscarandrea 的屏幕截图,他的构建目录有 4 kb。你的只有1kb。