ZFS support

  • Hi there,

    I was curious lack of support of ZFS in LibreElec (is there any reason for that?) so i want to build my own.
    Three days and still nothing.

    Here is my package.md

    config.status: creating module/Makefile
    config.status: creating rpm/generic/zfs-dkms.spec
    config.status: creating rpm/generic/zfs-kmod.spec
    config.status: creating rpm/generic/zfs.spec
    config.status: creating rpm/redhat/zfs-dkms.spec
    config.status: creating rpm/redhat/zfs-kmod.spec
    config.status: creating rpm/redhat/zfs.spec
    config.status: creating tests/zfs-tests/tests/Makefile
    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
    make[1]: Entering directory '/home/work/SOFT/Linux/libreElec/LibreELEC.tv/build.LibreELEC-Generic.x86_64-13.0-devel/b
    uild/zfs-2.3.0'
    Makefile:14040: *** missing separator. Stop.
    make[1]: Leaving directory '/home/work/SOFT/Linux/libreElec/LibreELEC.tv/build.LibreELEC-Generic.x86_64-13.0-devel/bu
    ild/zfs-2.3.0'
    FAILURE: scripts/build zfs:target during make_target (package.mk)
    *********** FAILED COMMAND ***********
    make
    **************************************
    *********** FAILED COMMAND ***********
    ${SCRIPTS}/build "${1}" "${PARENT_PKG}"
    **************************************
    FAILURE: scripts/install zfs:target has failed!

    The following log for this failure is available:
    /home/work/SOFT/Linux/libreElec/LibreELEC.tv/build.LibreELEC-Generic.x86_64-13.0-devel/.threads/logs/188.log

    >>> zfs:target seq 188 >>>
    [303/314] [FAIL] install zfs:target

    The following log for this failure is available:
    /home/work/SOFT/Linux/libreElec/LibreELEC.tv/build.LibreELEC-Generic.x86_64-13.0-devel/.threads/logs/188.log

    Parallel build failure - see log for details. Time of failure: Tue Feb 25 22:26:12 CST 2025
    make: *** [Makefile:10: image] Error 1


    In the zfs Makefile the line 14430 is

    @CODE_COVERAGE_RULES@

    I tried to disable --disable-dependency-tracking

    But still it did not work as you see.

    Any ideas?


    Cheers,

  • I was curious lack of support of ZFS in LibreElec (is there any reason for that?)

    We intentionally omit all forms of software RAID to reduce the scope of what we need to support and maintain. ZFS might interest a small number of people, but it's a small number. The remaining 99.9995% of our userbase has no clue what ZFS is or how to use or benefit from it's features. There's no objection to someone packaging ZFS as an add-on, but it's not for the core distro.

    No ideas on the build issue .. not something I personally have time to look at right now, but others might comment.

  • Configure is doing strange stuff and not using the target compiler.

    build.LibreELEC-Generic.x86_64-13.0-devel/build/zfs-2.3.0/build/kernel_fpu_license/build.log
    make: Entering directory '/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-13.0-devel/build/linux-6.12.15'
    warning: the compiler differs from the one used to build the kernel
    The kernel was built by: x86_64-libreelec-linux-gnu-gcc-15.0.1 (GCC) 15.0.1 20250223 (experimental)
    You are using: gcc (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0
    MODPOST /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-13.0-devel/build/zfs-2.3.0/build/kernel_fpu_license
    /Module.symvers
    ERROR: modpost: GPL-incompatible module kernel_fpu_license.ko uses GPL-only symbol 'kernel_fpu_begin_mask'
    ERROR: modpost: GPL-incompatible module kernel_fpu_license.ko uses GPL-only symbol 'kernel_fpu_end'

    ==

    this will get you quite a bit further. It is not complete or fully working on the make.