Skip to content

Instantly share code, notes, and snippets.

@javashin
Created May 22, 2019 22:36
Show Gist options
  • Save javashin/db83b9c2dab62b85edf3d6b264c27215 to your computer and use it in GitHub Desktop.
Save javashin/db83b9c2dab62b85edf3d6b264c27215 to your computer and use it in GitHub Desktop.
env EXTRA_ECONF='--enable-linux-builtin' ebuild /usr/portage/sys-fs/zfs-kmod/zfs-kmod-9999.ebuild clean configure ; (cd /var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-kmod-9999/ && ./copy-builtin /usr/src/linux) ; make oldconfig
* checking ebuild checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* FEATURES='assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr'
* CFLAGS='-march=native -mfpmath=both -funroll-loops -falign-functions=32 -fuse-ld=gold -O3 -fuse-linker-plugin -fipa-pta -fno-plt -fno-math-errno -fno-trapping-math -fdevirtualize-at-ltrans -fno-stack-protector -pipe -Wl,-O2 -Wl,--as-needed,-z,now -Wl,--hash-style=gnu'
* CXXFLAGS='-march=native -mfpmath=both -funroll-loops -falign-functions=32 -fuse-ld=gold -O3 -fuse-linker-plugin -fipa-pta -fno-plt -fno-math-errno -fno-trapping-math -fdevirtualize-at-ltrans -fno-stack-protector -pipe -Wl,-O2 -Wl,--as-needed,-z,now -Wl,--hash-style=gnu'
* CPPFLAGS='-march=native -mfpmath=both -funroll-loops -falign-functions=32 -fuse-ld=gold -O3 -fuse-linker-plugin -fipa-pta -fno-plt -fno-math-errno -fno-trapping-math -fdevirtualize-at-ltrans -fno-stack-protector -pipe'
* FFLAGS='-march=native -mfpmath=both -funroll-loops -falign-functions=32 -fuse-ld=gold -O3 -fuse-linker-plugin -fipa-pta -fno-plt -fno-math-errno -fno-trapping-math -fdevirtualize-at-ltrans -fno-stack-protector -pipe -Wl,-O2 -Wl,--as-needed,-z,now -Wl,--hash-style=gnu'
* FCFLAGS='-march=native -mfpmath=both -funroll-loops -falign-functions=32 -fuse-ld=gold -O3 -fuse-linker-plugin -fipa-pta -fno-plt -fno-math-errno -fno-trapping-math -fdevirtualize-at-ltrans -fno-stack-protector -pipe -Wl,-O2 -Wl,--as-needed,-z,now -Wl,--hash-style=gnu'
* F77FLAGS='-march=native -mfpmath=both -funroll-loops -falign-functions=32 -fuse-ld=gold -O3 -fuse-linker-plugin -fipa-pta -fno-plt -fno-math-errno -fno-trapping-math -fdevirtualize-at-ltrans -fno-stack-protector -pipe -Wl,-O2 -Wl,--as-needed,-z,now -Wl,--hash-style=gnu'
* LDFLAGS='-Wl,-O2 -Wl,--as-needed,-z,now -Wl,--hash-style=gnu'
* MAKEOPTS='-j3'
* EXTRA_ECONF='--enable-linux-builtin'
* gcc (Gentoo 9.1.0 p1.0) 9.1.0
* Linux igloo-l440 5.1.3-gentoo #1 SMP PREEMPT Fri May 17 09:48:31 AST 2019 x86_64 Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz GenuineIntel GNU/Linux
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found sources for kernel version:
* 5.1.4-jsX
* Checking for suitable kernel configuration options... [ ok ]
>>> Unpacking source...
Initialized empty Git repository in /usr/portage/distfiles/git3-src/zfsonlinux_zfs.git/
* Repository id: zfsonlinux_zfs.git
* To override fetched repository properties, use:
* EGIT_OVERRIDE_REPO_ZFSONLINUX_ZFS
* EGIT_OVERRIDE_BRANCH_ZFSONLINUX_ZFS
* EGIT_OVERRIDE_COMMIT_ZFSONLINUX_ZFS
* EGIT_OVERRIDE_COMMIT_DATE_ZFSONLINUX_ZFS
*
* Fetching https://github.com/zfsonlinux/zfs.git ...
git fetch https://github.com/zfsonlinux/zfs.git +HEAD:refs/git-r3/HEAD
remote: Enumerating objects: 32, done.
remote: Counting objects: 100% (32/32), done.
remote: Compressing objects: 100% (32/32), done.
remote: Total 56075 (delta 0), reused 32 (delta 0), pack-reused 56043
Receiving objects: 100% (56075/56075), 39.01 MiB | 1.35 MiB/s, done.
Resolving deltas: 100% (42523/42523), done.
From https://github.com/zfsonlinux/zfs
* [new ref] -> refs/git-r3/HEAD
* [new tag] zfs-0.5.1 -> zfs-0.5.1
* [new tag] zfs-0.5.2 -> zfs-0.5.2
* [new tag] zfs-0.6.0-rc1 -> zfs-0.6.0-rc1
* [new tag] zfs-0.6.0-rc10 -> zfs-0.6.0-rc10
* [new tag] zfs-0.6.0-rc11 -> zfs-0.6.0-rc11
* [new tag] zfs-0.6.0-rc12 -> zfs-0.6.0-rc12
* [new tag] zfs-0.6.0-rc13 -> zfs-0.6.0-rc13
* [new tag] zfs-0.6.0-rc14 -> zfs-0.6.0-rc14
* [new tag] zfs-0.6.0-rc2 -> zfs-0.6.0-rc2
* [new tag] zfs-0.6.0-rc3 -> zfs-0.6.0-rc3
* [new tag] zfs-0.6.0-rc4 -> zfs-0.6.0-rc4
* [new tag] zfs-0.6.0-rc5 -> zfs-0.6.0-rc5
* [new tag] zfs-0.6.0-rc6 -> zfs-0.6.0-rc6
* [new tag] zfs-0.6.0-rc7 -> zfs-0.6.0-rc7
* [new tag] zfs-0.6.0-rc8 -> zfs-0.6.0-rc8
* [new tag] zfs-0.6.0-rc9 -> zfs-0.6.0-rc9
* [new tag] zfs-0.6.1 -> zfs-0.6.1
* [new tag] zfs-0.6.2 -> zfs-0.6.2
* [new tag] zfs-0.6.3 -> zfs-0.6.3
* [new tag] zfs-0.6.4 -> zfs-0.6.4
* [new tag] zfs-0.6.5 -> zfs-0.6.5
* [new tag] zfs-0.7.0 -> zfs-0.7.0
* [new tag] zfs-0.7.0-rc1 -> zfs-0.7.0-rc1
* [new tag] zfs-0.7.0-rc2 -> zfs-0.7.0-rc2
* [new tag] zfs-0.7.0-rc3 -> zfs-0.7.0-rc3
* [new tag] zfs-0.7.0-rc4 -> zfs-0.7.0-rc4
* [new tag] zfs-0.7.0-rc5 -> zfs-0.7.0-rc5
* [new tag] zfs-0.8.0-rc1 -> zfs-0.8.0-rc1
* [new tag] zfs-0.8.0-rc2 -> zfs-0.8.0-rc2
* [new tag] zfs-0.8.0-rc3 -> zfs-0.8.0-rc3
* [new tag] zfs-0.8.0-rc4 -> zfs-0.8.0-rc4
* [new tag] zfs-0.8.0-rc5 -> zfs-0.8.0-rc5
git symbolic-ref refs/git-r3/sys-fs/zfs-kmod/0/__main__ refs/git-r3/HEAD
Initialized empty Git repository in /usr/portage/distfiles/git3-src/zfsonlinux_zfs-images.git/
* Repository id: zfsonlinux_zfs-images.git
* To override fetched repository properties, use:
* EGIT_OVERRIDE_REPO_ZFSONLINUX_ZFS_IMAGES
* EGIT_OVERRIDE_BRANCH_ZFSONLINUX_ZFS_IMAGES
* EGIT_OVERRIDE_COMMIT_ZFSONLINUX_ZFS_IMAGES
* EGIT_OVERRIDE_COMMIT_DATE_ZFSONLINUX_ZFS_IMAGES
*
* Fetching https://github.com/zfsonlinux/zfs-images ...
git fetch https://github.com/zfsonlinux/zfs-images --prune +refs/heads/*:refs/heads/* +refs/tags/*:refs/tags/* +refs/notes/*:refs/notes/* +HEAD:refs/git-r3/HEAD
remote: Enumerating objects: 19, done.
remote: Total 19 (delta 0), reused 0 (delta 0), pack-reused 19
Unpacking objects: 100% (19/19), done.
From https://github.com/zfsonlinux/zfs-images
* [new branch] master -> master
* [new ref] -> refs/git-r3/HEAD
git update-ref --no-deref refs/git-r3/sys-fs/zfs-kmod/0/scripts_zfs-images/__main__ 3331601f6dc50ef2c9779c1656218701b48b276c
* Checking out https://github.com/zfsonlinux/zfs.git to /var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-kmod-9999 ...
git checkout --quiet refs/git-r3/HEAD
GIT NEW branch -->
repository: https://github.com/zfsonlinux/zfs.git
at the commit: 9dc41a769df164875d974c2431b2453e70e16c41
* Checking out https://github.com/zfsonlinux/zfs-images to /var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-kmod-9999/scripts/zfs-images ...
git checkout --quiet 3331601f6dc50ef2c9779c1656218701b48b276c
GIT NEW branch -->
repository: https://github.com/zfsonlinux/zfs-images
at the commit: 3331601f6dc50ef2c9779c1656218701b48b276c
>>> Source unpacked in /var/tmp/portage/sys-fs/zfs-kmod-9999/work
>>> Preparing source in /var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-kmod-9999 ...
* Running eautoreconf in '/var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-kmod-9999' ...
* Running libtoolize --install --copy --force --automake ... [ ok ]
* Running aclocal -I config ... [ ok ]
* Running autoconf --force ... [ ok ]
* Running autoheader ... [ ok ]
* Running automake --add-missing --copy --foreign --force-missing ... [ ok ]
* Running elibtoolize in: zfs-kmod-9999/
* Running elibtoolize in: zfs-kmod-9999/config/
* Applying portage/1.2.0 patch ...
* Applying sed/1.5.6 patch ...
* Applying as-needed/2.4.3 patch ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-kmod-9999 ...
* econf: updating zfs-kmod-9999/config/config.sub with /usr/share/gnuconfig/config.sub
* econf: updating zfs-kmod-9999/config/config.guess with /usr/share/gnuconfig/config.guess
./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/zfs-kmod-9999 --htmldir=/usr/share/doc/zfs-kmod-9999/html --with-sysroot=/ --libdir=/usr/lib64 --bindir=/bin --sbindir=/sbin --with-config=kernel --with-linux=/usr/src/linux --with-linux-obj=/usr/src/linux --disable-debug --enable-linux-builtin
checking for gawk... gawk
checking metadata... git describe
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports nested variables... yes
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 a thread-safe mkdir -p... /bin/mkdir -p
checking whether make sets $(MAKE)... yes
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... configure: error: in `/var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-kmod-9999':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details
!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-kmod-9999/config.log
* ERROR: sys-fs/zfs-kmod-9999::gentoo failed (configure phase):
* econf failed
*
* Call stack:
* ebuild.sh, line 124: Called src_configure
* environment, line 4699: Called econf '--bindir=/bin' '--sbindir=/sbin' '--with-config=kernel' '--with-linux=/usr/src/linux' '--with-linux-obj=/usr/src/linux' '--disable-debug'
* phase-helpers.sh, line 718: Called __helpers_die 'econf failed'
* isolated-functions.sh, line 119: Called die
* The specific snippet of code:
* die "$@"
*
* If you need support, post the output of `emerge --info '=sys-fs/zfs-kmod-9999::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sys-fs/zfs-kmod-9999::gentoo'`.
* The complete build log is located at '/var/tmp/portage/sys-fs/zfs-kmod-9999/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-fs/zfs-kmod-9999/temp/environment'.
* Working directory: '/var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-kmod-9999'
* S: '/var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-kmod-9999'
./copy-builtin: you did not run configure, or you're not in the ZFS source directory.
./copy-builtin: run configure with --with-linux=/usr/src/linux-5.1.4-jsX and --enable-linux-builtin.
scripts/kconfig/conf --oldconfig Kconfig
#
# configuration written to .config
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment