[parisc-linux] Current Debian still broken?

Helge Deller deller@gmx.de
Sun, 11 Nov 2001 00:19:10 +0100


On Saturday 10 November 2001 23:56, John David Anglin wrote:
> > when trying to compile the new 2.2.14 based parisc tree, i get the
> > following error:
> >
> > gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes
> > -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common
> > -D__linux__ -pipe -fno-strength-reduce -mno-space-regs
> > -mfast-indirect-calls -mdisable-fpregs -ffunction-sections -march=1.1
> > -mschedule=7100    -c -o sd.o sd.c
> > {standard input}: Assembler messages:
> > {standard input}:583: Error: Invalid operands
> > {standard input}:607: Error: Invalid operands
> > make[3]: *** [sd.o] Error 1

This is a kernel problem, where we use the "std" assembler command to store a 
u64 value to user-space:
See at include/asm-parisc/uaccess.h:  macro __put_user:
  case 8: __put_kernel_asm("std",x,ptr); break;       \

Sadly "std" is only available on 64 bit PA CPUs and gcc knows that and give you
the above error in 32bit kernel builds.

Greetings,
Helge.