[parisc-linux] 2.4.20-pa27 64bits smp problem!

Joel Soete jsoe0708@tiscali.be
Mon, 24 Feb 2003 18:42:39 +0100


Hi all,

Having the opportunity to test a N-class (classical), I build a sd with
debian unstable running a kernel 2.4.20-pa27 64bits up and would try now
to rebuild this same kernel with smp support (I am reach of 2cpu  :) ) but
compile failled with following message:

hppa64-linux-gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-pa27-64/include -Wall
-Wst
rict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame
-pointer -D__linux__ -pipe -fno-strength-reduce -mno-space-regs -mfast-indirect-
calls -mdisable-fpregs -ffunction-sections -march=2.0 -mschedule=8000
-nostdin
c -I /usr/lib/gcc-lib/hppa64-linux/3.2.3/include -DKBUILD_BASENAME=sched
 -fno-o
mit-frame-pointer -c -o sched.o sched.c
sched.c:93: initializer element is not constant
sched.c:93: (near initialization for `tasklist_lock')
sched.c:93: initializer element is not constant
make[2]: *** [sched.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.20-pa27-64/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-pa27-64/kernel'
make: *** [_dir_kernel] Error 2

at this 93th line I met:
rwlock_t tasklist_lock __cacheline_aligned = RW_LOCK_UNLOCKED

which is precompile as:
rwlock_t tasklist_lock __attribute__((__aligned__(64))) = (rwlock_t) { (spinlock_t)
{1}, 0 };

What's wrong?

I am using the last I know gcc-hppa64 3.2.3-0.1 (would I have to prefer
previous release?) .

Thanks in advance,
    Joel



---------------------------------
Vous surfez avec une ligne classique ?
Faites des economies avec Tiscali Complete
... Plus d'info sur http://complete.tiscali.be