You are not logged in.

#1 2010-11-10 00:51:37

fredre
Member
Registered: 2009-12-18
Posts: 45

trouble building BLCR on archlinux,"no UTS_RELEASE could be extracted"

I'm trying to compile Berkeley Lab Checkpoint/Restart using this guide, but I haven't been able to get the configure script to run without errors. Here is everything I've tried along with the associated error messages:

$ tar xzvf blcr-0.8.2.tar.gz
$ cd blcr-0.8.2
$ mkdir builddir
$ cd builddir
$ ../configure --prefix=/usr
[...]
checking for Linux kernel build in /lib/modules/2.6.35-ARCH/build... not found
checking for Linux kernel build in /usr/src/linux-2.6.35-ARCH-obj... not found
checking for Linux kernel build in /usr/src/linux-2.6.35-ARCH... include/linux/version.h missing
checking for Linux kernel build in /usr/src/kernels/2.6.35-ARCH... not found
configure: error: Could not find a directory containing a Linux kernel 2.6.35-ARCH build.  Perhaps try --with-linux=FULL_PATH_TO_KERNEL_BUILD
$ sudo pacman -S kernel26-headers
$ ../configure --prefix=/usr --with-linux=/usr/src/linux-2.6.35-ARCH
[...]
checking for Linux kernel build in /usr/src/linux-2.6.35-ARCH... no UTS_RELEASE could be extracted
configure: error: Directory /usr/src/linux-2.6.35-ARCH does not appear to contain a Linux kernel build

I'm not very computer savvy so I may be wrong in assuming this, but it seems the arch kernel is missing UTS_RELEASE, which should be in /usr/include/linux/version.h and that is causing this error.

Does anyone have any advice on how to build this?

Edit: fixed typo

Last edited by fredre (2010-11-11 06:22:12)

Offline

#2 2011-12-31 19:28:23

onny
Member
From: Europe
Registered: 2010-08-07
Posts: 46
Website

Re: trouble building BLCR on archlinux,"no UTS_RELEASE could be extracted"

It just looks for me that the kernel-version of ArchLinux is too new for blcr. I already asked a developer of this software if it's possible to disable the version checks somehow. Waiting for a replay...
I really want to use this software on ArchLinux :,(

Offline

#3 2011-12-31 21:18:13

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: trouble building BLCR on archlinux,"no UTS_RELEASE could be extracted"

It builds against the lts kernel - see how that goes for you.

Offline

#4 2012-01-01 12:29:58

onny
Member
From: Europe
Registered: 2010-08-07
Posts: 46
Website

Re: trouble building BLCR on archlinux,"no UTS_RELEASE could be extracted"

thank you tomk, that was the right hint! I was able to write a PKGBUILD for that: https://aur.archlinux.org/packages.php?ID=55468

Offline

#5 2012-01-01 12:46:56

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: trouble building BLCR on archlinux,"no UTS_RELEASE could be extracted"

No problem. However, I'd suggest something a bit simpler than that curl|grep|awk|cut extravaganza - to be more precise, this:

pacman -Q kernel26-lts | cut -d " " -f 2

Apart from being simpler, this way also ensures that you're building against the installed lts version - your method doesn't handle the situation where the installed version differs from the repo version.

Also, you might consider separate packages for the kernel modules and the user space utilities - this is common practice around here.

Offline

#6 2012-01-01 14:51:02

onny
Member
From: Europe
Registered: 2010-08-07
Posts: 46
Website

Re: trouble building BLCR on archlinux,"no UTS_RELEASE could be extracted"

allright, thank you for your support! as soon as I understand blcr and how to build a seperate kernel module, I'll update the package smile

Offline

Board footer

Powered by FluxBB