-
Notifications
You must be signed in to change notification settings - Fork 179
configure fails to properly "checking whether kuid_t/kgid_t is available..." #653
Comments
Can you post in the relevant section of the |
from console.log: configure:17048: checking whether kuid_t/kgid_t is available |
I also created a test.c here with: ----- test.c ------------ kuid_t userid = 0; int main(){return(1);} -----end test.c-------- this fails to compile with: gcc -I/usr/src/linux-headers-4.4.77-rockchip-ayufan-133/include test.c ---- start test2.c ------ #include <linux/uidgid.h> kuid_t userid; int main(){return(1);} -------- end test2.c ---------- |
Closing. @digitalsanity I'm unable to reproduce the issue on an aarch64 odroid-c2 running Ubuntu 16.04. If this is still an issue with the latest ZFS releases please go ahead and open a new issue in zfsonlinux/zfs repository. |
You are able to install spl-dkms/zfs-dkms without issue? Which kernel are you using? I am now on 4.4.x with bionic 18.04 using zfs/spl 0.7.5-1ubuntu16 from bionic-updates arm64.. I've had to do the same process with jessie/stretch/xenial and now bionic so far .. but maybe it's something with the kernel? It really comes down to making sure configure shows: checking whether kuid_t/kgid_t is available... yes; mandatory -- without this hack, it says "no" or "yes; optional" and either of those cause the build to fail to KUID issues. The smoking gun I saw were errors about improperly initializing with the wrong type .. i.e. kgid_t groupid = 0; fails because 0 is an integer and not a kgid_t. @behlendorf - Some additional details in my post/instructions here if it helps: https://forum.armbian.com/topic/6789-build-zfs-on-rk3328/?do=findComment&comment=53681 Basically, installing spl-dkms fails to compile but the package/build remains on the system, so I modify the generated configure file and manually install and it completes. After that, zfs-dkms builds and installs correctly.. using it successfully/happily with two USB 3.0 8x drive enclosures on top of a hub(!) and it's been more stable than most of the other Linux eSATA/PMP/PCIe/PCI drivers/chipsets I've gone through.. Linux rock64 4.4.126-rockchip-ayufan-220 #1 SMP Tue May 15 22:37:55 UTC 2018 aarch64 aarch64 aarch64 GNU/Linux |
I have the same problem on a rock64 board. |
@aut0 spl-dkms and zfs-dkms fail to install for me too on rock64, both failing on
Have you found any solution to the broken headers package? I think something is missing but no idea what. Furthermore, when installed from packages all seems like ends fine:
and:
however the modules can not be loaded since they are actually missing from |
No, I sold the board.
…On Mon, Jul 30, 2018, 20:45 Igor Cicimov ***@***.***> wrote:
@aut0 <https://github.com/aut0> spl-dkms and zfs-dkms fail to install for
me too on rock64, both failing on ./configure with:
checking kernel source version... 4.4.132-1075-rockchip-ayufan-ga83beded8524
checking kernel file name for module symbols... Module.symvers
checking whether modules can be built... no
configure: error: *** Unable to build an empty module.
Have you found any solution to the broken headers package? I think
something is missing but no idea what.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#653 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AGx1QMvrP4SL5hNf7wtQWBIV-dqUAobVks5uLv_agaJpZM4PrbBY>
.
|
Follow the instructions in the Armbian post above. It shows you how to fix the headers package also. All of those steps will fix the issue for now. Using two 8x raidz2 here on a rock64 and rockpro64. |
@digitalsanity thanks, that's what I did already but I get:
That thread was actually the reason I bought this board in the first place since though installing zfs might be doable. Which image do you have installed and what kernel version is this working on? |
Using the ayufan bionic release--I think you might be missing a build
package?
…On Tue, Jul 31, 2018 at 4:26 AM Igor Cicimov ***@***.***> wrote:
@digitalsanity <https://github.com/digitalsanity> thanks, that's what I
did already but I get:
***@***.***:/usr/src/linux-headers-4.4.132-1075-rockchip-ayufan-ga83beded8524# make scripts
CC scripts/mod/empty.o
gcc: error: unrecognized command line option '-mgeneral-regs-only'
scripts/Makefile.build:277: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 1
scripts/Makefile.build:484: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
Makefile:582: recipe for target 'scripts' failed
make: *** [scripts] Error 2
That thread was actually the reason I bought this board in the first place
since though installing zfs might be doable. Which image do you have
installed and what kernel version is this working on?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#653 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AHwNdxKstp6ICfsMX7y7JWBpgT5YJJ05ks5uMD76gaJpZM4PrbBY>
.
|
@digitalsanity first thanks for trying to help. I'm pretty sure I have everything needed installed I double checked the packages need on zfsonlinux site too. Here is part of the config.log for the ./configure command when trying to build spl from source:
|
My guess is something related to the arch
at least that's what I think this error tells me:
Is the bionic one maybe |
There are additional issues for systems using an arm64 kernel and armhf userspace. You will need to follow the armhf/32-bit instructions here to setup cross-compiling: https://github.com/ayufan-rock64/linux-build/blob/master/recipes/dkms.md |
There is an issue with arch/arm/include not being packaged with linux header debs for arm64 kernels. arch/arm64/include/asm/opcodes.h tries to include arch/arm/include/asm/opcodes.h, which doesn't exist (because it is an arm64 kernel afterall..) See more: |
Running on arm64 Ubuntu 16.04 LTS with a 4.4.77 aarch64 kernel (Linux rock64 4.4.77-rockchip-ayufan-133 #1 SMP Thu Sep 28 10:51:45 UTC 2017 aarch64 aarch64 aarch64 GNU/Linux) and ./configure reports:
checking whether kuid_t/kgid_t is available... no
and subsequently fails building.
If I manually edit and force define HAVE_KUIDGID_T, I can compile without trouble.
The text was updated successfully, but these errors were encountered: