Jump to content

Brocklobsta

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by Brocklobsta

  1. On 10/10/2020 at 12:47 AM, turkerali said:

     

    Yes, I am using the linux-image-current-rockchip64 (5.8.x) on nanopc-t4.

     

    There is one more possibility that might have resolved the issue for me. When you install the "linux-headers" package, apt runs "make scripts" command at the end of installation,

    which builds some helper utilities inside the linux-headers package. I believe these helper utilities are responsible for module compilation and the "modpost" errors.

     

    As a workaround, before you install the linux-headers package, make sure to upgrade the gcc version to gcc-9 or gcc-10 from ppa:ubuntu-toolchain-r/test repo.

    Then install the linux-headers package. If you do this, the binary utilites in the scripts folder will be built with the upgraded gcc, and will be able to build & link the zfs modules.

     

    I may be wrong, but it's worth trying.

     

    Thanks @turkerali! Recompiling the kernel headers with GCC-10 fixed the issue.

  2. 9 hours ago, turkerali said:

    I am using Armbian Bionic. I have upgraded the GCC from ppa:ubuntu-toolchain-r/test repo to gcc-10, but I was having the same error message until today:

     

    ERROR: modpost: "__stack_chk_guard" [/root/zfs/zfs-0.8.5/module/zfs/zfs.ko] undefined!
    ERROR: modpost: "__stack_chk_guard" [/root/zfs/zfs-0.8.5/module/zcommon/zcommon.ko] undefined!
    ...

     

    Today Armbian upgraded the kernel&header package (#20.08.8) and zfs compiles without any errors. I checked the changelog from https://docs.armbian.com/Release_Changelog/

    but could not see any related changes. Most probably Armbian is now building the kernel with a newer GCC version, because I did not change anything since the build failed.

     

    @turkerali

    Which kernel package are you using? linux-image-current-rockchip64? I am not able to compile with the "current" kernel, but the "legacy" kernel has always worked.

  3. I am running Armbian bionic and installed gcc-9 and gcc-10 from "ppa:ubuntu-toolchain-r/test". I tried both compilers with dkms and am still getting

    ERROR: modpost: "__stack_chk_guard" [/root/zfs/module/zfs/zfs.ko] undefined!

     

    I set the compiler version by exporting `CC`, but I don't see any mention of the compiler version in the DKMS build output. The make.log does show different compiler warnings, so I'm pretty sure I am successfully setting the compiler version.

  4. Hey All,

     

    I am running a rockpro64 and updated my kernel to 5.7 (linux-image-current-rockchip64 package), but I am not able to run ZFS any longer because ZFS/0.8.4 does not support 5.7 kernel and ZFS/2.0.0rc1 dkms gives me a build failure with linux-image-current-rockchip64 v20.08 (symbol "__stack_chk_guard" is undefined). I was able to build ZFS/2.0.0rc1 with linux-image-current-rockchip64=20.05.7. I am not able to downgrade my kernel because the apt-cache only shows the latest version of linux-image-current-rockchip64 available. Any suggestions on where I can get the old linux-image-current-rockchip64 package (v20.05.7)?

     

    Thanks in advance guys, love the work done here.

     

    ~Brocklobsta

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines