Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
OpenZFS on kernel 6
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
HikariNee
n00b
n00b


Joined: 22 Oct 2022
Posts: 4

PostPosted: Sat Oct 22, 2022 12:50 pm    Post subject: OpenZFS on kernel 6 Reply with quote

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
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3961

PostPosted: Sat Oct 22, 2022 1:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
HikariNee
n00b
n00b


Joined: 22 Oct 2022
Posts: 4

PostPosted: Sat Oct 22, 2022 1:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3961

PostPosted: Sat Oct 22, 2022 1:34 pm    Post subject: Reply with quote

In my case it compiles fine with GCC
_________________
:)
Back to top
View user's profile Send private message
HikariNee
n00b
n00b


Joined: 22 Oct 2022
Posts: 4

PostPosted: Sat Oct 22, 2022 1:35 pm    Post subject: Reply with quote

So will i have to force it to build it with gcc?
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3961

PostPosted: Sat Oct 22, 2022 1:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
HikariNee
n00b
n00b


Joined: 22 Oct 2022
Posts: 4

PostPosted: Sat Oct 22, 2022 3:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum