View previous topic :: View next topic |
Author |
Message |
HikariNee n00b

Joined: 22 Oct 2022 Posts: 4
|
Posted: Sat Oct 22, 2022 12:50 pm Post subject: OpenZFS on kernel 6 |
|
|
Hello this is my first post here!
o while setting up my new gentoo install, i made a mistake. The ZFS-Kmod does not seem to support kernel 6.0, but the GitHub issues say that you can build it by editing the META file.
Are there any prequisitries i might need, or should I just use gentoo-kernel-bin as an alternative kernel? |
|
Back to top |
|
 |
alamahant Advocate

Joined: 23 Mar 2019 Posts: 3961
|
Posted: Sat Oct 22, 2022 1:06 pm Post subject: |
|
|
Hi
Welcome to Gentoo!
Code: |
sys-fs/zfs-kmod-9999
|
builds fine with kernel 6-xxxxx.
You know how to install it?
Code: |
echo -e "sys-fs/zfs-kmod **\nsys-fs/zfs **" >> /etc/portage/package.accept_keywords
emerge -av zfs
|
Quote: |
Are there any prequisitries i might need, or should I just use gentoo-kernel-bin as an alternative kernel?
|
Its up to you. _________________
 |
|
Back to top |
|
 |
HikariNee n00b

Joined: 22 Oct 2022 Posts: 4
|
Posted: Sat Oct 22, 2022 1:33 pm Post subject: |
|
|
Hello, thank you!
For me, it does not seem to compile (i am using clang profile). I get an error, which i can't currently paste but is along the lines of.
/var/tmp/portage/sys-fs/zfs-kmod-9999/work/include/os/linux/spl/sys/wait.h:51:9: error: unknown type name wait_queue_t
51 typedef wait_queue_t spl_wait_queue_t; |
|
Back to top |
|
 |
alamahant Advocate

Joined: 23 Mar 2019 Posts: 3961
|
Posted: Sat Oct 22, 2022 1:34 pm Post subject: |
|
|
In my case it compiles fine with GCC _________________
 |
|
Back to top |
|
 |
HikariNee n00b

Joined: 22 Oct 2022 Posts: 4
|
Posted: Sat Oct 22, 2022 1:35 pm Post subject: |
|
|
So will i have to force it to build it with gcc? |
|
Back to top |
|
 |
alamahant Advocate

Joined: 23 Mar 2019 Posts: 3961
|
Posted: Sat Oct 22, 2022 1:39 pm Post subject: |
|
|
Try it.
You know how to do it?
plz include the following
Code: |
CC="gcc"
CXX="g++"
COMMON_FLAGS="-march=native -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
|
in
Code: |
/etc/portage/env/gcc.conf
|
then make an entry in
Code: |
/etc/portage/package.env
|
like
Code: |
sys-fs/zfs gcc.conf
sys-fs/zfs-kmod gcc.conf
|
_________________
 |
|
Back to top |
|
 |
HikariNee n00b

Joined: 22 Oct 2022 Posts: 4
|
Posted: Sat Oct 22, 2022 3:38 pm Post subject: |
|
|
it fails to compile with gcc too, i set to profile back to gcc since clang seemed to cause problems but that did not fix it either., it seems to be a problem with my kernel. (6.0.3), because in gentoo-kernel.bin. it compiles flawlessly. |
|
Back to top |
|
 |
|