You are not logged in.
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
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
It builds against the lts kernel - see how that goes for you.
Offline
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
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
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
Offline