Aigor Posted February 19, 2021 #1 Posted February 19, 2021 Hi Friends, when i try to compile some kernel modules fo DS3617xs using latest toolchain and latest kernel sources, i get several errors make ARCH=x86_64 CROSS_COMPILE=/opt/dsm-6.2.3/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu- /home/dude/linux-3.10.x/arch/x86/Makefile:164: CONFIG_RETPOLINE=y, but not supported by the compiler. Toolchain update recommended. make[1]: Nessuna operazione da eseguire per «all». make[1]: Nessuna operazione da eseguire per «relocs». CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h CALL scripts/checksyscalls.sh CC scripts/mod/devicetable-offsets.s GEN scripts/mod/devicetable-offsets.h HOSTCC scripts/mod/file2alias.o HOSTLD scripts/mod/modpost CHK include/generated/compile.h CC init/initramfs.o init/initramfs.c:22:29: fatal error: crypto/hydrogen.h: File o directory non esistente #include <crypto/hydrogen.h> ^ compilation terminated. make[1]: *** [init/initramfs.o] Errore 1 make: *** [init] Errore 2 Do someone has some hint? Many thanks Quote
IG-88 Posted February 19, 2021 #2 Posted February 19, 2021 in theory it should work with this (they did not provide it with 6.2.2 source) https://sourceforge.net/projects/dsgpl/files/Synology NAS GPL Source/25426branch/broadwell-source/libhydrogen.txz/download Quote
Aigor Posted February 20, 2021 Author #3 Posted February 20, 2021 11 hours ago, IG-88 said: in theory it should work with this (they did not provide it with 6.2.2 source) https://sourceforge.net/projects/dsgpl/files/Synology NAS GPL Source/25426branch/broadwell-source/libhydrogen.txz/download Thank you for the link, do i have to copy hydrogen.h into kernels include folder? Quote
IG-88 Posted February 20, 2021 #4 Posted February 20, 2021 (edited) 7 minutes ago, Aigor said: Thank you for the link, do i have to copy hydrogen.h into kernels include folder? i guess so, i tinkered with the original code from git and 6.2.2 but cant remember exactly (and have not changed my build environment to 6.2.3) in the end its not important for compiling modules its just for the kernel itself that you cant use in the end if you keep it to "make ... modules" instead of "make ... all" you should not need libhydrogen Edited February 20, 2021 by IG-88 Quote
Aigor Posted February 20, 2021 Author #5 Posted February 20, 2021 Thank you IG-88 it's' not enough copy hydrogen.h. Yes, you are right, hydrogen not needed for modules Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.