Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ZFS 0.8 at Raspberry Pi
#!/usr/bin/env sh
set -e
set -x
CUR_PWD="$(pwd)"
cd "$(dirname $0)"
if [ ! -d zfs ]; then
# https://github.com/zfsonlinux/zfs/wiki/Building-ZFS
sudo apt-get install -y build-essential autoconf automake libtool gawk alien fakeroot ksh
sudo apt-get install -y zlib1g-dev uuid-dev libattr1-dev libblkid-dev libselinux-dev libudev-dev
sudo apt-get install -y libacl1-dev libaio-dev libdevmapper-dev libssl-dev libelf-dev
sudo apt-get install -y python3 python3-dev python3-setuptools python3-cffi
#sudo apt-get install -y linux-headers-$(uname -r)
sudo apt-get install raspberrypi-kernel-headers
sudo apt-get install -y git
git clone https://github.com/zfsonlinux/zfs.git
fi
cd zfs
git checkout .
git checkout zfs-0.8-release
git pull
git branch
make clean || true
make distclean || true
./autogen.sh
autoreconf --install --force
./configure
make -s -j$(nproc)
sudo make install
sudo ldconfig
sudo depmod -a
sudo modprobe zfs
sudo zpool import -a
sudo zpool import -a -d /dev
cd "${CUR_DIR}"
@jerlich

This comment has been minimized.

Copy link

jerlich commented Oct 9, 2019

How long does the build take?

@Alexey-Tsarev

This comment has been minimized.

Copy link
Owner Author

Alexey-Tsarev commented Oct 9, 2019

I have pretty loaded Raspberry Pi 3, so I have got:

rm -rf ~/dev/zfs ; time ~/dev/zfs_install.sh
...
real    73m23.282s
user    79m49.783s
sys     14m53.483s
@Hadatko

This comment has been minimized.

Copy link

Hadatko commented Oct 23, 2019

I had used this script on rpi4. I got:
modprobe: FATAL: Module zfs not found in directory /lib/modules/4.19.79-v8+

Issue likely related:
[ -x ./scripts/zfs-tests.sh ] &&
./scripts/zfs-tests.sh -c
Missing helper script common.sh

@Alexey-Tsarev

This comment has been minimized.

Copy link
Owner Author

Alexey-Tsarev commented Oct 24, 2019

Hadatko, Pls provide full output

@Hadatko

This comment has been minimized.

Copy link

Hadatko commented Oct 24, 2019

Hi Alexey,
i can provide full ouput in the evening CET. But as long as i know there were only these two issues. common.sh.in is there but common.sh is not created. Removing .in doesn't help, that lead to another error...

@Hadatko

This comment has been minimized.

Copy link

Hadatko commented Oct 24, 2019

I have connected to my personal network through VPN so here are the outputs

pi@malinka:~ $ sudo ./zfs_install.sh 
+ pwd
+ CUR_PWD=/home/pi
+ dirname ./zfs_install.sh
+ cd .
+ [ ! -d zfs ]
+ sudo apt-get install -y build-essential autoconf automake libtool gawk alien fakeroot ksh
Reading package lists... Done
Building dependency tree       
Reading state information... Done
alien is already the newest version (8.95).
autoconf is already the newest version (2.69-11).
automake is already the newest version (1:1.16.1-4).
build-essential is already the newest version (12.6).
fakeroot is already the newest version (1.23-1).
gawk is already the newest version (1:4.2.1+dfsg-1).
ksh is already the newest version (93u+20120801-3.4).
libtool is already the newest version (2.4.6-9).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ sudo apt-get install -y zlib1g-dev uuid-dev libattr1-dev libblkid-dev libselinux-dev libudev-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libselinux1-dev' instead of 'libselinux-dev'
libattr1-dev is already the newest version (1:2.4.48-4).
libblkid-dev is already the newest version (2.33.1-0.1).
libselinux1-dev is already the newest version (2.8-1+b1).
libudev-dev is already the newest version (241-7~deb10u1+rpi1).
uuid-dev is already the newest version (2.33.1-0.1).
zlib1g-dev is already the newest version (1:1.2.11.dfsg-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ sudo apt-get install -y libacl1-dev libaio-dev libdevmapper-dev libssl-dev libelf-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libacl1-dev is already the newest version (2.2.53-4).
libaio-dev is already the newest version (0.3.112-3).
libdevmapper-dev is already the newest version (2:1.02.155-3).
libelf-dev is already the newest version (0.176-1.1).
libssl-dev is already the newest version (1.1.1d-0+deb10u2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ sudo apt-get install -y python3 python3-dev python3-setuptools python3-cffi
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3 is already the newest version (3.7.3-1).
python3-cffi is already the newest version (1.12.2-1).
python3-dev is already the newest version (3.7.3-1).
python3-setuptools is already the newest version (40.8.0-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ sudo apt-get install -y git
Reading package lists... Done
Building dependency tree       
Reading state information... Done
git is already the newest version (1:2.20.1-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ git clone https://github.com/zfsonlinux/zfs.git
Cloning into 'zfs'...
remote: Enumerating objects: 9, done.
remote: Counting objects: 100% (9/9), done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 129457 (delta 1), reused 1 (delta 0), pack-reused 129448
Receiving objects: 100% (129457/129457), 54.87 MiB | 4.69 MiB/s, done.
Resolving deltas: 100% (93543/93543), done.
+ cd zfs
+ git checkout .
+ git checkout zfs-0.8-release
Branch 'zfs-0.8-release' set up to track remote branch 'zfs-0.8-release' from 'origin'.
Switched to a new branch 'zfs-0.8-release'
+ git pull
Already up to date.
+ git branch
  master
* zfs-0.8-release
+ make clean
make: *** No rule to make target 'clean'.  Stop.
+ true
+ make distclean
make: *** No rule to make target 'distclean'.  Stop.
+ true
+ ./autogen.sh
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I config
autoreconf: configure.ac: tracing
autoreconf: configure.ac: AM_GNU_GETTEXT is used, but not AM_GNU_GETTEXT_VERSION
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
libtoolize: copying file 'config/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'config'.
libtoolize: copying file 'config/libtool.m4'
libtoolize: copying file 'config/ltoptions.m4'
libtoolize: copying file 'config/ltsugar.m4'
libtoolize: copying file 'config/ltversion.m4'
libtoolize: copying file 'config/lt~obsolete.m4'
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:49: installing 'config/compile'
configure.ac:39: installing 'config/config.guess'
configure.ac:39: installing 'config/config.sub'
configure.ac:42: installing 'config/install-sh'
configure.ac:42: installing 'config/missing'
cmd/mount_zfs/Makefile.am: installing 'config/depcomp'
autoreconf: Leaving directory `.'
+ autoreconf --install --force
autoreconf: configure.ac: AM_GNU_GETTEXT is used, but not AM_GNU_GETTEXT_VERSION
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
libtoolize: copying file 'config/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'config'.
libtoolize: copying file 'config/libtool.m4'
libtoolize: copying file 'config/ltoptions.m4'
libtoolize: copying file 'config/ltsugar.m4'
libtoolize: copying file 'config/ltversion.m4'
libtoolize: copying file 'config/lt~obsolete.m4'
configure.ac:49: installing 'config/compile'
configure.ac:42: installing 'config/missing'
cmd/mount_zfs/Makefile.am: installing 'config/depcomp'
+ ./configure --with-config=srpm
checking for gawk... gawk
checking metadata... META file
checking build system type... aarch64-unknown-linux-gnu
checking host system type... aarch64-unknown-linux-gnu
checking target system type... aarch64-unknown-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/bin/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 gcc... 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... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert aarch64-unknown-linux-gnu file names to aarch64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert aarch64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking dependency style of gcc... gcc3
checking whether to build with code coverage support... no
checking how to create a pax tar archive... gnutar
checking zfs author... OpenZFS on Linux
checking zfs license... CDDL
checking linux distribution... debian
checking default package type... deb
checking default init directory... ${prefix}/etc/init.d
checking default init script type... lsb
checking default init config direectory... /etc/default
checking whether initramfs-tools is available... yes
checking whether rpm is available... yes (4.14.2.1)
checking whether rpmbuild is available... yes (4.14.2.1)
checking whether spec files are available... yes (rpm/generic/*.spec.in)
checking whether dpkg is available... yes (1.19.7)
checking whether dpkg-buildpackage is available... yes (1.19.7.)
checking whether alien is available... yes (8.95)
checking for ld... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking 32-bit host C ABI... yes
checking for the common suffixes of directories in the library search path... lib,lib
checking for iconv... yes
checking for working iconv... yes
checking for iconv declaration... 
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking zfs config... srpm
checking whether gcc supports -Wno-unused-but-set-variable... yes
checking whether gcc supports -Wno-bool-compare... yes
checking whether gcc supports -Wframe-larger-than=<size>... yes
checking whether gcc supports -Wno-format-truncation... yes
checking whether gcc supports -fno-omit-frame-pointer... yes
checking whether to build with -fsanitize=address support... no
checking for target asm dir... asm-generic
checking for python3... python3
checking for python version... 3.7
checking for python platform... linux
checking for python script directory... ${prefix}/lib/python3.7/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python3.7/site-packages
checking for python3.7... /usr/bin/python3.7
checking for a version of Python >= '2.1.0'... yes
checking for a version of Python >= '3.4.0'... yes
checking for the distutils Python package... yes
checking for Python include path... -I/usr/include/python3.7m
checking for Python library path... -L/usr/lib -lpython3.7m
checking for Python site-packages path... /usr/lib/python3/dist-packages
checking python extra libraries... -lcrypt -lpthread -ldl  -lutil -lm
checking python extra linking flags... -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions
checking consistency of all components of python development environment... yes
checking for python3.7 module: setuptools... yes
checking for python3.7 module: cffi... yes
checking whether to enable pyzfs: ... yes
checking whether assertion support will be enabled... no
checking whether debuginfo support will be forced... no
checking whether basic kmem accounting is enabled... no
checking whether detailed kmem tracking is enabled... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating udev/Makefile
config.status: creating udev/rules.d/Makefile
config.status: creating etc/Makefile
config.status: creating etc/init.d/Makefile
config.status: creating etc/zfs/Makefile
config.status: creating etc/systemd/Makefile
config.status: creating etc/systemd/system/Makefile
config.status: creating etc/systemd/system-generators/Makefile
config.status: creating etc/sudoers.d/Makefile
config.status: creating etc/modules-load.d/Makefile
config.status: creating man/Makefile
config.status: creating man/man1/Makefile
config.status: creating man/man5/Makefile
config.status: creating man/man8/Makefile
config.status: creating lib/Makefile
config.status: creating lib/libspl/Makefile
config.status: creating lib/libspl/asm-generic/Makefile
config.status: creating lib/libspl/asm-i386/Makefile
config.status: creating lib/libspl/asm-x86_64/Makefile
config.status: creating lib/libspl/include/Makefile
config.status: creating lib/libspl/include/ia32/Makefile
config.status: creating lib/libspl/include/ia32/sys/Makefile
config.status: creating lib/libspl/include/rpc/Makefile
config.status: creating lib/libspl/include/sys/Makefile
config.status: creating lib/libspl/include/sys/dktp/Makefile
config.status: creating lib/libspl/include/util/Makefile
config.status: creating lib/libavl/Makefile
config.status: creating lib/libefi/Makefile
config.status: creating lib/libicp/Makefile
config.status: creating lib/libnvpair/Makefile
config.status: creating lib/libzutil/Makefile
config.status: creating lib/libtpool/Makefile
config.status: creating lib/libunicode/Makefile
config.status: creating lib/libuutil/Makefile
config.status: creating lib/libzpool/Makefile
config.status: creating lib/libzfs/libzfs.pc
config.status: creating lib/libzfs/libzfs_core.pc
config.status: creating lib/libzfs/Makefile
config.status: creating lib/libzfs_core/Makefile
config.status: creating lib/libshare/Makefile
config.status: creating cmd/Makefile
config.status: creating cmd/zdb/Makefile
config.status: creating cmd/zhack/Makefile
config.status: creating cmd/zfs/Makefile
config.status: creating cmd/zinject/Makefile
config.status: creating cmd/zpool/Makefile
config.status: creating cmd/zstreamdump/Makefile
config.status: creating cmd/ztest/Makefile
config.status: creating cmd/mount_zfs/Makefile
config.status: creating cmd/fsck_zfs/Makefile
config.status: creating cmd/zvol_id/Makefile
config.status: creating cmd/vdev_id/Makefile
config.status: creating cmd/arcstat/Makefile
config.status: creating cmd/dbufstat/Makefile
config.status: creating cmd/arc_summary/Makefile
config.status: creating cmd/zed/Makefile
config.status: creating cmd/zed/zed.d/Makefile
config.status: creating cmd/raidz_test/Makefile
config.status: creating cmd/zgenhostid/Makefile
config.status: creating cmd/zvol_wait/Makefile
config.status: creating contrib/Makefile
config.status: creating contrib/bash_completion.d/Makefile
config.status: creating contrib/dracut/Makefile
config.status: creating contrib/dracut/02zfsexpandknowledge/Makefile
config.status: creating contrib/dracut/90zfs/Makefile
config.status: creating contrib/initramfs/Makefile
config.status: creating contrib/initramfs/hooks/Makefile
config.status: creating contrib/initramfs/scripts/Makefile
config.status: creating contrib/initramfs/scripts/local-top/Makefile
config.status: creating contrib/pyzfs/Makefile
config.status: creating contrib/pyzfs/setup.py
config.status: creating module/Makefile
config.status: creating module/avl/Makefile
config.status: creating module/nvpair/Makefile
config.status: creating module/unicode/Makefile
config.status: creating module/zcommon/Makefile
config.status: creating module/zfs/Makefile
config.status: creating module/lua/Makefile
config.status: creating module/icp/Makefile
config.status: creating module/spl/Makefile
config.status: creating include/Makefile
config.status: creating include/linux/Makefile
config.status: creating include/spl/Makefile
config.status: creating include/spl/rpc/Makefile
config.status: creating include/spl/sys/Makefile
config.status: creating include/sys/Makefile
config.status: creating include/sys/fs/Makefile
config.status: creating include/sys/fm/Makefile
config.status: creating include/sys/fm/fs/Makefile
config.status: creating include/sys/crypto/Makefile
config.status: creating include/sys/sysevent/Makefile
config.status: creating include/sys/lua/Makefile
config.status: creating scripts/Makefile
config.status: creating tests/Makefile
config.status: creating tests/test-runner/Makefile
config.status: creating tests/test-runner/bin/Makefile
config.status: creating tests/test-runner/include/Makefile
config.status: creating tests/test-runner/man/Makefile
config.status: creating tests/runfiles/Makefile
config.status: creating tests/zfs-tests/Makefile
config.status: creating tests/zfs-tests/callbacks/Makefile
config.status: creating tests/zfs-tests/cmd/Makefile
config.status: creating tests/zfs-tests/cmd/chg_usr_exec/Makefile
config.status: creating tests/zfs-tests/cmd/user_ns_exec/Makefile
config.status: creating tests/zfs-tests/cmd/devname2devid/Makefile
config.status: creating tests/zfs-tests/cmd/dir_rd_update/Makefile
config.status: creating tests/zfs-tests/cmd/file_check/Makefile
config.status: creating tests/zfs-tests/cmd/file_trunc/Makefile
config.status: creating tests/zfs-tests/cmd/file_write/Makefile
config.status: creating tests/zfs-tests/cmd/largest_file/Makefile
config.status: creating tests/zfs-tests/cmd/libzfs_input_check/Makefile
config.status: creating tests/zfs-tests/cmd/mkbusy/Makefile
config.status: creating tests/zfs-tests/cmd/mkfile/Makefile
config.status: creating tests/zfs-tests/cmd/mkfiles/Makefile
config.status: creating tests/zfs-tests/cmd/mktree/Makefile
config.status: creating tests/zfs-tests/cmd/mmap_exec/Makefile
config.status: creating tests/zfs-tests/cmd/mmap_libaio/Makefile
config.status: creating tests/zfs-tests/cmd/mmapwrite/Makefile
config.status: creating tests/zfs-tests/cmd/nvlist_to_lua/Makefile
config.status: creating tests/zfs-tests/cmd/randfree_file/Makefile
config.status: creating tests/zfs-tests/cmd/randwritecomp/Makefile
config.status: creating tests/zfs-tests/cmd/readmmap/Makefile
config.status: creating tests/zfs-tests/cmd/rename_dir/Makefile
config.status: creating tests/zfs-tests/cmd/rm_lnkcnt_zero_file/Makefile
config.status: creating tests/zfs-tests/cmd/threadsappend/Makefile
config.status: creating tests/zfs-tests/cmd/xattrtest/Makefile
config.status: creating tests/zfs-tests/include/Makefile
config.status: creating tests/zfs-tests/tests/Makefile
config.status: creating tests/zfs-tests/tests/functional/Makefile
config.status: creating tests/zfs-tests/tests/functional/acl/Makefile
config.status: creating tests/zfs-tests/tests/functional/acl/posix/Makefile
config.status: creating tests/zfs-tests/tests/functional/arc/Makefile
config.status: creating tests/zfs-tests/tests/functional/atime/Makefile
config.status: creating tests/zfs-tests/tests/functional/bootfs/Makefile
config.status: creating tests/zfs-tests/tests/functional/cache/Makefile
config.status: creating tests/zfs-tests/tests/functional/cachefile/Makefile
config.status: creating tests/zfs-tests/tests/functional/casenorm/Makefile
config.status: creating tests/zfs-tests/tests/functional/checksum/Makefile
config.status: creating tests/zfs-tests/tests/functional/channel_program/Makefile
config.status: creating tests/zfs-tests/tests/functional/channel_program/lua_core/Makefile
config.status: creating tests/zfs-tests/tests/functional/channel_program/synctask_core/Makefile
config.status: creating tests/zfs-tests/tests/functional/chattr/Makefile
config.status: creating tests/zfs-tests/tests/functional/clean_mirror/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zdb/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zfs_bookmark/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zfs_change-key/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zfs_clone/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zfs_copies/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zfs_create/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zfs_destroy/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zfs_diff/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zfs_get/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zfs_inherit/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zfs_load-key/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zfs/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zfs_mount/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zfs_program/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zfs_promote/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zfs_property/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zfs_receive/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zfs_remap/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zfs_rename/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zfs_reservation/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zfs_rollback/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zfs_send/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zfs_set/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zfs_share/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zfs_snapshot/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zfs_sysfs/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zfs_unload-key/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zfs_unmount/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zfs_unshare/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zfs_upgrade/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zpool_add/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zpool_attach/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zpool_clear/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zpool_create/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zpool_destroy/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zpool_detach/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zpool_events/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zpool_expand/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zpool_export/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zpool_get/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zpool_history/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zpool_import/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zpool_import/blockfiles/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zpool_initialize/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zpool_labelclear/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zpool/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zpool_offline/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zpool_online/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zpool_remove/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zpool_reopen/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zpool_resilver/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zpool_replace/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zpool_scrub/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zpool_set/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zpool_split/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zpool_status/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zpool_sync/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zpool_trim/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/blockfiles/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_user/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_user/misc/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_user/zfs_list/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_user/zpool_iostat/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_user/zpool_list/Makefile
config.status: creating tests/zfs-tests/tests/functional/cli_user/zpool_status/Makefile
config.status: creating tests/zfs-tests/tests/functional/compression/Makefile
config.status: creating tests/zfs-tests/tests/functional/cp_files/Makefile
config.status: creating tests/zfs-tests/tests/functional/ctime/Makefile
config.status: creating tests/zfs-tests/tests/functional/deadman/Makefile
config.status: creating tests/zfs-tests/tests/functional/delegate/Makefile
config.status: creating tests/zfs-tests/tests/functional/devices/Makefile
config.status: creating tests/zfs-tests/tests/functional/events/Makefile
config.status: creating tests/zfs-tests/tests/functional/exec/Makefile
config.status: creating tests/zfs-tests/tests/functional/fault/Makefile
config.status: creating tests/zfs-tests/tests/functional/features/async_destroy/Makefile
config.status: creating tests/zfs-tests/tests/functional/features/large_dnode/Makefile
config.status: creating tests/zfs-tests/tests/functional/features/Makefile
config.status: creating tests/zfs-tests/tests/functional/grow/Makefile
config.status: creating tests/zfs-tests/tests/functional/history/Makefile
config.status: creating tests/zfs-tests/tests/functional/hkdf/Makefile
config.status: creating tests/zfs-tests/tests/functional/inheritance/Makefile
config.status: creating tests/zfs-tests/tests/functional/inuse/Makefile
config.status: creating tests/zfs-tests/tests/functional/io/Makefile
config.status: creating tests/zfs-tests/tests/functional/large_files/Makefile
config.status: creating tests/zfs-tests/tests/functional/largest_pool/Makefile
config.status: creating tests/zfs-tests/tests/functional/link_count/Makefile
config.status: creating tests/zfs-tests/tests/functional/libzfs/Makefile
config.status: creating tests/zfs-tests/tests/functional/limits/Makefile
config.status: creating tests/zfs-tests/tests/functional/migration/Makefile
config.status: creating tests/zfs-tests/tests/functional/mmap/Makefile
config.status: creating tests/zfs-tests/tests/functional/mmp/Makefile
config.status: creating tests/zfs-tests/tests/functional/mount/Makefile
config.status: creating tests/zfs-tests/tests/functional/mv_files/Makefile
config.status: creating tests/zfs-tests/tests/functional/nestedfs/Makefile
config.status: creating tests/zfs-tests/tests/functional/no_space/Makefile
config.status: creating tests/zfs-tests/tests/functional/nopwrite/Makefile
config.status: creating tests/zfs-tests/tests/functional/online_offline/Makefile
config.status: creating tests/zfs-tests/tests/functional/pool_names/Makefile
config.status: creating tests/zfs-tests/tests/functional/pool_checkpoint/Makefile
config.status: creating tests/zfs-tests/tests/functional/poolversion/Makefile
config.status: creating tests/zfs-tests/tests/functional/privilege/Makefile
config.status: creating tests/zfs-tests/tests/functional/procfs/Makefile
config.status: creating tests/zfs-tests/tests/functional/projectquota/Makefile
config.status: creating tests/zfs-tests/tests/functional/pyzfs/Makefile
config.status: creating tests/zfs-tests/tests/functional/quota/Makefile
config.status: creating tests/zfs-tests/tests/functional/raidz/Makefile
config.status: creating tests/zfs-tests/tests/functional/redundancy/Makefile
config.status: creating tests/zfs-tests/tests/functional/refquota/Makefile
config.status: creating tests/zfs-tests/tests/functional/refreserv/Makefile
config.status: creating tests/zfs-tests/tests/functional/removal/Makefile
config.status: creating tests/zfs-tests/tests/functional/rename_dirs/Makefile
config.status: creating tests/zfs-tests/tests/functional/replacement/Makefile
config.status: creating tests/zfs-tests/tests/functional/reservation/Makefile
config.status: creating tests/zfs-tests/tests/functional/rootpool/Makefile
config.status: creating tests/zfs-tests/tests/functional/rsend/Makefile
config.status: creating tests/zfs-tests/tests/functional/scrub_mirror/Makefile
config.status: creating tests/zfs-tests/tests/functional/slog/Makefile
config.status: creating tests/zfs-tests/tests/functional/snapshot/Makefile
config.status: creating tests/zfs-tests/tests/functional/snapused/Makefile
config.status: creating tests/zfs-tests/tests/functional/sparse/Makefile
config.status: creating tests/zfs-tests/tests/functional/suid/Makefile
config.status: creating tests/zfs-tests/tests/functional/alloc_class/Makefile
config.status: creating tests/zfs-tests/tests/functional/threadsappend/Makefile
config.status: creating tests/zfs-tests/tests/functional/tmpfile/Makefile
config.status: creating tests/zfs-tests/tests/functional/trim/Makefile
config.status: creating tests/zfs-tests/tests/functional/truncate/Makefile
config.status: creating tests/zfs-tests/tests/functional/user_namespace/Makefile
config.status: creating tests/zfs-tests/tests/functional/userquota/Makefile
config.status: creating tests/zfs-tests/tests/functional/upgrade/Makefile
config.status: creating tests/zfs-tests/tests/functional/vdev_zaps/Makefile
config.status: creating tests/zfs-tests/tests/functional/write_dirs/Makefile
config.status: creating tests/zfs-tests/tests/functional/xattr/Makefile
config.status: creating tests/zfs-tests/tests/functional/zvol/Makefile
config.status: creating tests/zfs-tests/tests/functional/zvol/zvol_cli/Makefile
config.status: creating tests/zfs-tests/tests/functional/zvol/zvol_ENOSPC/Makefile
config.status: creating tests/zfs-tests/tests/functional/zvol/zvol_misc/Makefile
config.status: creating tests/zfs-tests/tests/functional/zvol/zvol_swap/Makefile
config.status: creating tests/zfs-tests/tests/perf/Makefile
config.status: creating tests/zfs-tests/tests/perf/fio/Makefile
config.status: creating tests/zfs-tests/tests/perf/regression/Makefile
config.status: creating tests/zfs-tests/tests/perf/scripts/Makefile
config.status: creating tests/zfs-tests/tests/stress/Makefile
config.status: creating rpm/Makefile
config.status: creating rpm/redhat/Makefile
config.status: creating rpm/redhat/zfs.spec
config.status: creating rpm/redhat/zfs-kmod.spec
config.status: creating rpm/redhat/zfs-dkms.spec
config.status: creating rpm/generic/Makefile
config.status: creating rpm/generic/zfs.spec
config.status: creating rpm/generic/zfs-kmod.spec
config.status: creating rpm/generic/zfs-dkms.spec
config.status: creating zfs.release
config.status: creating zfs_config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing po-directories commands
+ nproc
+ make -s -j4
Making all in include
Making all in linux
Making all in spl
Making all in rpc
Making all in sys
Making all in sys
Making all in fm
Making all in fs
Making all in fs
Making all in crypto
Making all in lua
Making all in sysevent
Making all in rpm
Making all in generic
Making all in redhat
Missing helper script common.sh
+ sudo make install
./scripts/make_gitrev.sh
make  install-recursive
make[1]: Entering directory '/home/pi/zfs'
Making install in include
make[2]: Entering directory '/home/pi/zfs/include'
Making install in linux
make[3]: Entering directory '/home/pi/zfs/include/linux'
make[4]: Entering directory '/home/pi/zfs/include/linux'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Leaving directory '/home/pi/zfs/include/linux'
make[3]: Leaving directory '/home/pi/zfs/include/linux'
Making install in spl
make[3]: Entering directory '/home/pi/zfs/include/spl'
Making install in rpc
make[4]: Entering directory '/home/pi/zfs/include/spl/rpc'
make[5]: Entering directory '/home/pi/zfs/include/spl/rpc'
make[5]: Nothing to be done for 'install-exec-am'.
make[5]: Leaving directory '/home/pi/zfs/include/spl/rpc'
make[4]: Leaving directory '/home/pi/zfs/include/spl/rpc'
Making install in sys
make[4]: Entering directory '/home/pi/zfs/include/spl/sys'
make[5]: Entering directory '/home/pi/zfs/include/spl/sys'
make[5]: Nothing to be done for 'install-exec-am'.
make[5]: Leaving directory '/home/pi/zfs/include/spl/sys'
make[4]: Leaving directory '/home/pi/zfs/include/spl/sys'
make[4]: Entering directory '/home/pi/zfs/include/spl'
make[5]: Entering directory '/home/pi/zfs/include/spl'
make[5]: Nothing to be done for 'install-exec-am'.
make[5]: Nothing to be done for 'install-data-am'.
make[5]: Leaving directory '/home/pi/zfs/include/spl'
make[4]: Leaving directory '/home/pi/zfs/include/spl'
make[3]: Leaving directory '/home/pi/zfs/include/spl'
Making install in sys
make[3]: Entering directory '/home/pi/zfs/include/sys'
Making install in fm
make[4]: Entering directory '/home/pi/zfs/include/sys/fm'
Making install in fs
make[5]: Entering directory '/home/pi/zfs/include/sys/fm/fs'
make[6]: Entering directory '/home/pi/zfs/include/sys/fm/fs'
make[6]: Nothing to be done for 'install-exec-am'.
make[6]: Leaving directory '/home/pi/zfs/include/sys/fm/fs'
make[5]: Leaving directory '/home/pi/zfs/include/sys/fm/fs'
make[5]: Entering directory '/home/pi/zfs/include/sys/fm'
make[6]: Entering directory '/home/pi/zfs/include/sys/fm'
make[6]: Nothing to be done for 'install-exec-am'.
make[6]: Leaving directory '/home/pi/zfs/include/sys/fm'
make[5]: Leaving directory '/home/pi/zfs/include/sys/fm'
make[4]: Leaving directory '/home/pi/zfs/include/sys/fm'
Making install in fs
make[4]: Entering directory '/home/pi/zfs/include/sys/fs'
make[5]: Entering directory '/home/pi/zfs/include/sys/fs'
make[5]: Nothing to be done for 'install-exec-am'.
make[5]: Leaving directory '/home/pi/zfs/include/sys/fs'
make[4]: Leaving directory '/home/pi/zfs/include/sys/fs'
Making install in crypto
make[4]: Entering directory '/home/pi/zfs/include/sys/crypto'
make[5]: Entering directory '/home/pi/zfs/include/sys/crypto'
make[5]: Nothing to be done for 'install-exec-am'.
make[5]: Leaving directory '/home/pi/zfs/include/sys/crypto'
make[4]: Leaving directory '/home/pi/zfs/include/sys/crypto'
Making install in lua
make[4]: Entering directory '/home/pi/zfs/include/sys/lua'
make[5]: Entering directory '/home/pi/zfs/include/sys/lua'
make[5]: Nothing to be done for 'install-exec-am'.
make[5]: Leaving directory '/home/pi/zfs/include/sys/lua'
make[4]: Leaving directory '/home/pi/zfs/include/sys/lua'
Making install in sysevent
make[4]: Entering directory '/home/pi/zfs/include/sys/sysevent'
make[5]: Entering directory '/home/pi/zfs/include/sys/sysevent'
make[5]: Nothing to be done for 'install-exec-am'.
make[5]: Leaving directory '/home/pi/zfs/include/sys/sysevent'
make[4]: Leaving directory '/home/pi/zfs/include/sys/sysevent'
make[4]: Entering directory '/home/pi/zfs/include/sys'
make[5]: Entering directory '/home/pi/zfs/include/sys'
make[5]: Nothing to be done for 'install-exec-am'.
make[5]: Leaving directory '/home/pi/zfs/include/sys'
make[4]: Leaving directory '/home/pi/zfs/include/sys'
make[3]: Leaving directory '/home/pi/zfs/include/sys'
make[3]: Entering directory '/home/pi/zfs/include'
make[4]: Entering directory '/home/pi/zfs/include'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Leaving directory '/home/pi/zfs/include'
make[3]: Leaving directory '/home/pi/zfs/include'
make[2]: Leaving directory '/home/pi/zfs/include'
Making install in rpm
make[2]: Entering directory '/home/pi/zfs/rpm'
Making install in generic
make[3]: Entering directory '/home/pi/zfs/rpm/generic'
make[4]: Entering directory '/home/pi/zfs/rpm/generic'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/home/pi/zfs/rpm/generic'
make[3]: Leaving directory '/home/pi/zfs/rpm/generic'
Making install in redhat
make[3]: Entering directory '/home/pi/zfs/rpm/redhat'
make[4]: Entering directory '/home/pi/zfs/rpm/redhat'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/home/pi/zfs/rpm/redhat'
make[3]: Leaving directory '/home/pi/zfs/rpm/redhat'
make[3]: Entering directory '/home/pi/zfs/rpm'
make[4]: Entering directory '/home/pi/zfs/rpm'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/home/pi/zfs/rpm'
make[3]: Leaving directory '/home/pi/zfs/rpm'
make[2]: Leaving directory '/home/pi/zfs/rpm'
make[2]: Entering directory '/home/pi/zfs'
[ -x ./scripts/zfs-tests.sh ] && \
    ./scripts/zfs-tests.sh -c
Missing helper script common.sh
make[2]: [Makefile:1560: all-local] Error 1 (ignored)
make[3]: Entering directory '/home/pi/zfs'
make[3]: Nothing to be done for 'install-exec-am'.
make  install-data-hook
make[4]: Entering directory '/home/pi/zfs'
make[4]: Nothing to be done for 'install-data-hook'.
make[4]: Leaving directory '/home/pi/zfs'
make[3]: Leaving directory '/home/pi/zfs'
make[2]: Leaving directory '/home/pi/zfs'
make[1]: Leaving directory '/home/pi/zfs'
+ sudo ldconfig
+ sudo depmod -a
+ sudo modprobe zfs
modprobe: FATAL: Module zfs not found in directory /lib/modules/4.19.79-v8+

Mind that ./configure leads to error message (something with usage of empty module). So i changed it to ./configure --with-config=srpm
as described here: https://gist.github.com/mohakshah/b203d33a235307c40065bdc43e287547

@Alexey-Tsarev

This comment has been minimized.

Copy link
Owner Author

Alexey-Tsarev commented Oct 25, 2019

My install log on RPI3:
https://drive.google.com/file/d/1Eww3XIDoR_gbcjkGfRKIE2ecU3UM9E-G/view?usp=sharing

@Hadatko, unfortunately, I don't have a RPI4 to check from my side.

@jonwedell

This comment has been minimized.

Copy link

jonwedell commented Oct 25, 2019

I fixed the error that @Hadatko is having (RPI4, Raspbian 10, zfs 0.8.2) by running sudo apt install raspberrypi-kernel-headers and not using the --with-config=srpm option to configure.

@ksundqv

This comment has been minimized.

Copy link

ksundqv commented Oct 26, 2019

Any way to proceed from here to creating an initramfs?

@Hadatko

This comment has been minimized.

Copy link

Hadatko commented Oct 28, 2019

Hi guys,
thanks for your cooperation. Unfortunatelly i can try @jonwedell solution next week, not earlier. I will let you know.

@Alexey-Tsarev

This comment has been minimized.

Copy link
Owner Author

Alexey-Tsarev commented Oct 30, 2019

I added the following line

sudo apt-get install raspberrypi-kernel-headers

to the gist.

@Alexey-Tsarev

This comment has been minimized.

Copy link
Owner Author

Alexey-Tsarev commented Nov 28, 2019

I am not telling people to use the master branch. My gist contains:
git checkout zfs-0.8-release

@satmandu

This comment has been minimized.

Copy link

satmandu commented Dec 2, 2019

Sigh. That was my poor reading comprehension. Carry on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.