Gentoo Archives: gentoo-dev

From: Dan Naumov <jago@×××××××××××.com>
To: gentoo-dev@g.o
Subject: [gentoo-dev] Why is preempt-kernel *required* for building a kernel using gentoo-sources ?
Date: Sun, 02 Jun 2002 10:12:26
Message-Id: 20020602180953.6e494551.jago@telefragged.com
1 Hey.
2
3 I just stubled across a very weird problem. I was told that using preempt slows down SETI so I decided to do some benchmarking to see whether it's true. I loaded my kernel config, disabled preempt and ran "make dep clean bzImage modules modules_install", the build failed with:
4
5 fs/fs.o: In function `dput':
6 fs/fs.o(.text+0x11ff5): undefined reference to `atomic_dec_and_lock'
7 make: *** [vmlinux] Error 1
8
9 I go back to menuconfig, add preempt kernel back, save config, recompile again and it works...how come ? Changing the compile optimisations doesn not seem to have any effect on this... According to a thread on Gentoo Forums (http://forums.gentoo.org/viewtopic.php?t=3915), I am not the only have having the problem either.
10
11 Sincerely,
12 Dan Naumov

Replies