2.4.0-test2 doesn't compile

From: f5ibh (f5ibh@db0bm.ampr.org)
Date: Sat Jun 24 2000 - 02:42:21 EST


Hi,

Linus wrote :
>...
> So if it doesn't compile for you, you must be doing something wrong.

So I wonder what I'm doing wrong !

here are the messages I got :

make[2]: Entering directory `/usr/src/kernel-sources-2.4.0-test2/kernel'
gcc -D__KERNEL__ -I/usr/src/kernel-sources-2.4.0-test2/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce
-fno-omit-frame-pointer -c -o sched.o sched.c
sched.c:63: parse error before `spinlock_t'
sched.c:64: parse error before `rwlock_t'
sched.c:78: warning: alignment of `aligned_data' is greater than maximum object
file alignment
make[2]: *** [sched.o] Error 1
make[2]: Leaving directory `/usr/src/kernel-sources-2.4.0-test2/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/kernel-sources-2.4.0-test2/kernel'
make: *** [_dir_kernel] Error 2

line # 63 & 64
--------------
__cacheline_aligned spinlock_t runqueue_lock = SPIN_LOCK_UNLOCKED; /* second */
__cacheline_aligned rwlock_t tasklist_lock = RW_LOCK_UNLOCKED; /* third */

As __cacheline_aligned was not present in 2.4.0-test1, I've removed it ...

Here is the patch I applied to compile the kernel :
================================================================================
--- linux/kernel/sched.c~ Sat Jun 24 08:53:37 2000
+++ linux/kernel/sched.c Sat Jun 24 09:14:21 2000
@@ -60,8 +60,8 @@
  * The run-queue lock locks the parts that actually access
  * and change the run-queues, and have to be interrupt-safe.
  */
-__cacheline_aligned spinlock_t runqueue_lock = SPIN_LOCK_UNLOCKED; /* second */
-__cacheline_aligned rwlock_t tasklist_lock = RW_LOCK_UNLOCKED; /* third */
+spinlock_t runqueue_lock = SPIN_LOCK_UNLOCKED; /* second */
+rwlock_t tasklist_lock = RW_LOCK_UNLOCKED; /* third */
 
 static LIST_HEAD(runqueue_head);
==============================================================================

---
Regards

Jean-Luc

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jun 26 2000 - 21:00:04 EST