无法在 Gentoo 上编译静态 ZFS 二进制文件

无法在 Gentoo 上编译静态 ZFS 二进制文件

我的内核:来自 init6 的 geek-sources-3.11.1,带有 zfs 和其他几个补丁。

现在我正在使用 SysRescCD 并在 chroot 中执行所有操作。

我最后一次尝试是:

$ grep static-libs /etc/portage/package.use
sys-fs/zfs kernel-builtin static-libs custom-cflags static
=sys-apps/util-linux-2.22.2 static-libs
=sys-libs/zlib-1.2.7 static-libs

$ mkdir /tmp/zfs /tmp/zfsroot
$ cd /tmp/zfs
$ wget http://archive.zfsonlinux.org/downloads/zfsonlinux/zfs/zfs-0.6.2.tar.gz -O-|tar xz

--2013-09-26 10:13:55--  http://archive.zfsonlinux.org/downloads/zfsonlinux/zfs/zfs-0.6.2.tar.gz
Resolving archive.zfsonlinux.org... 176.32.99.47
Connecting to archive.zfsonlinux.org|176.32.99.47|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2158948 (2.1M) [application/x-gzip]
Saving to: ‘STDOUT’

100%[=========================================================================================================================================================================>] 2,158,948    719KB/s   in 2.9s   

$ cd zfs-0.6.2
$ export CFLAGS='-static -O2 -pipe -march=native' LDFLAGS='-static'
$ ./autogen.sh 2>&1 | wgetpaste
Your paste can be seen here: http://bpaste.net/show/135509/
$ ./configure --disable-shared --enable-static --enable-linux-builtin 2>&1 | wgetpaste
Your paste can be seen here: http://bpaste.net/show/135512/
$ make -j5 2>&1 | wgetpaste
Your paste can be seen here: http://bpaste.net/show/135513/
$ make DESTDIR=/tmp/zfsroot install 2>&1 | wgetpaste
Your paste can be seen here: http://bpaste.net/show/135514/
$ file /tmp/zfsroot/usr/local/sbin/zpool
/tmp/zfsroot/usr/local/sbin/zpool: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped

相关内容