About lockdep: failed to build

"Joel Soete" <[email protected]>
Newsgroups gmane.linux.ports.hppa
Message-ID <[email protected]>
Hi all,

Just giving a try of new lock dep, I got following build failure:

mkdir -p arch/parisc/kernel/
  hppa64-linux-gnu-gcc -Wp,-MD,arch/parisc/kernel/.asm-offsets.s.d  -nostdinc
-isystem /usr/lib/gcc/hppa64-linux-gnu/4.1.2/include -
D__KERNEL__ -Iinclude -Iinclude2 -I/CAD/linux-2.6.19-lockdep-20061207/include
-include include/linux/autoconf.h -I/CAD/linux-2.6.19-
lockdep-20061207/. -I. -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs
-fno-strict-aliasing -fno-common -O2 -pipe -mno-space-regs -
mfast-indirect-calls -mdisable-fpregs -ffunction-sections -march=2.0
-mschedule=8000 -fomit-frame-pointer -fno-stack-protector -Wdec
laration-after-statement -Wno-pointer-sign  -D"KBUILD_STR(s)=#s"
-D"KBUILD_BASENAME=KBUILD_STR(asm_offsets)"  -D"KBUILD_MODNAME=KBUI
LD_STR(asm_offsets)" -fverbose-asm -S -o arch/parisc/kernel/asm-offsets.s
/CAD/linux-2.6.19-lockdep-20061207/arch/parisc/kernel/asm-
offsets.c
In file included from include2/asm/bitops.h:7,
                 from /CAD/linux-2.6.19-lockdep-20061207/include/linux/bitops.h:9,
                 from
/CAD/linux-2.6.19-lockdep-20061207/include/linux/thread_info.h:20,
                 from
/CAD/linux-2.6.19-lockdep-20061207/include/linux/preempt.h:9,
                 from
/CAD/linux-2.6.19-lockdep-20061207/include/linux/spinlock.h:49,
                 from
/CAD/linux-2.6.19-lockdep-20061207/include/linux/capability.h:45,
                 from /CAD/linux-2.6.19-lockdep-20061207/include/linux/sched.h:46,
                 from
/CAD/linux-2.6.19-lockdep-20061207/arch/parisc/kernel/asm-offsets.c:31:
include2/asm/atomic.h: In function '__atomic_add_return':
include2/asm/atomic.h:143: error: too many arguments to function
'__raw_local_irq_save'
include2/asm/atomic.h:147: warning: implicit declaration of function
'__raw_local_irq_restore'
include2/asm/atomic.h: In function 'atomic_set':
include2/asm/atomic.h:154: error: too many arguments to function
'__raw_local_irq_save'
include2/asm/atomic.h: In function '__atomic64_add_return':
include2/asm/atomic.h:233: error: too many arguments to function
'__raw_local_irq_save'
include2/asm/atomic.h: In function 'atomic64_set':
include2/asm/atomic.h:245: error: too many arguments to function
'__raw_local_irq_save'
In file included from /CAD/linux-2.6.19-lockdep-20061207/include/linux/bitops.h:9,
                 from
/CAD/linux-2.6.19-lockdep-20061207/include/linux/thread_info.h:20,
                 from
/CAD/linux-2.6.19-lockdep-20061207/include/linux/preempt.h:9,
                 from
/CAD/linux-2.6.19-lockdep-20061207/include/linux/spinlock.h:49,
                 from
/CAD/linux-2.6.19-lockdep-20061207/include/linux/capability.h:45,
                 from /CAD/linux-2.6.19-lockdep-20061207/include/linux/sched.h:46,
                 from
/CAD/linux-2.6.19-lockdep-20061207/arch/parisc/kernel/asm-offsets.c:31:
include2/asm/bitops.h: In function 'set_bit':
include2/asm/bitops.h:33: error: too many arguments to function
'__raw_local_irq_save'
include2/asm/bitops.h: In function 'clear_bit':
include2/asm/bitops.h:44: error: too many arguments to function
'__raw_local_irq_save'
include2/asm/bitops.h: In function 'change_bit':
include2/asm/bitops.h:55: error: too many arguments to function
'__raw_local_irq_save'
include2/asm/bitops.h: In function 'test_and_set_bit':
include2/asm/bitops.h:67: error: too many arguments to function
'__raw_local_irq_save'
include2/asm/bitops.h: In function 'test_and_clear_bit':
include2/asm/bitops.h:82: error: too many arguments to function
'__raw_local_irq_save'
include2/asm/bitops.h: In function 'test_and_change_bit':
include2/asm/bitops.h:97: error: too many arguments to function
'__raw_local_irq_save'
make[2]: *** [arch/parisc/kernel/asm-offsets.s] Error 1
make[1]: *** [prepare0] Error 2
make: *** [vmlinux] Error 2

A quick look at the first pb into precompile stuff:
asm-offsets.i
[snip]
static __inline__ __attribute__((always_inline)) int __atomic_add_return(int
i, atomic_t *v)
{
 int ret;
 unsigned long flags;
 do { raw_spinlock_t *s = (&(__atomic_hash[ (((unsigned long) v)/64) & (4 -1)
])); __raw_local_irq_save(flags); __raw_spin_lock_flag
s(s, 0); } while(0);

 ret = (v->counter += i);
[snip]

May be did I missed something in my git download:
As it's on another system I first clone git tree:
    # git-clone http://www.parisc-linux.org/git/linux-2.6.git parisc-2.6
(no other protocle available)
    # cd parisc-2.6
    # git-pull origin lockdep:lockdep

(a quick check seems that
<http://git.parisc-linux.org/?p=linux-2.6.git;a=commitdiff;h=424ecd8b73ae27bd97bf2f8e987239d3d2ee2d08>
is well in this local tree?)

Hth,
    Joel

PS: Just quick and dirty test, unfortunately I don't have any more much more
time to investigate in more details, sorry.---
Scarlet One - Combinez l'ADSL avec la telephonie fixe illimitee et epargnez 400 euros
http://www.scarlet.be
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.