You are not logged in.

#1 2011-03-13 22:43:19

TomB17
Member
Registered: 2009-09-02
Posts: 102

I'm having trouble with ABS kernel build

I built a kernel, as per https://wiki.archlinux.org/index.php/Cu … n_with_ABS .  It seemed pretty straight forward.

The goal was to set CONFIG_PREEMPT=n so I could compile and native install ZFS.  I managed to get the kernel compiled and installed with the modification.

Now, when I run configure on the SPL, I get the following error:

checking kernel source version... Not found
configure: error: *** Cannot find UTS_RELEASE definition.

It looks like I've done something wrong on the kernel build but I don't know what.

Offline

#2 2011-03-14 13:02:12

oliver
Member
Registered: 2007-12-12
Posts: 448

Re: I'm having trouble with ABS kernel build

not sure what SPL is, but you might want to try moving your kernel source to /usr/src/kernel-your-version and then symlinking /usr/src/linux to it too

# cd /usr/src
# mv /path/to/your/abs/kernel26/src/linux* ./linux-your-version
# ln -s linux-your-version linux

I had a similar problem with a custom kernel and getting the virtualbox modules to compile

Offline

#3 2011-03-14 15:54:39

TomB17
Member
Registered: 2009-09-02
Posts: 102

Re: I'm having trouble with ABS kernel build

Thanks, oliver.  smile

I believe SPL stands for Sun Portability Library.  It needs to be built and installed to install ZFS.

Moving the source to /usr/src was already done by ABS.  It shows up as "/usr/src/linux-2.6.37-zfs".  I added the symbolic link you suggest but it didn't help.  It was worth a try, though.

I'd really like to get zfs working.  It's in the AUR but that version isn't complete and can't mount.  I don't know how it is useful beyond being a technology demonstration without being able to mount.  The latest version can mount, though.  I guess I can hope someone who understand the intricacies of Arch packaging puts an updated package in the AUR.

Offline

#4 2011-05-30 23:47:55

Legendin
Member
Registered: 2007-04-19
Posts: 10

Re: I'm having trouble with ABS kernel build

I'm sorry I didn't see this before, but anyway I'm leaving this here in case someone else finds this through a search.

I encountered this error while configuring spl as well, though I had not built my own kernel. The definitions are provided by the kernel26-headers package.


For those interested in trying out zfs, there is as of 2011-05-31 an issue with zfs-0.6.0-rc4 + the Archlinux kernel (2.6.37 and 2.6.38 confirmed), that causes a deadlock when writing to a zfs pool, effectively making zfs unusable. There seems to be a way of configuring oneself out of this by recompiling the kernel. I shall update if I manage to get it to work.
More info here: https://github.com/behlendorf/zfs/issues/167

Offline

Board footer

Powered by FluxBB