[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Pb compiling Kernel



Hello,

I install the last Debian dist on my old A2000 and I have some problems
to compile the 2.2 kernels either 2.2.1 or 2.2.5
The compile fails with errors,
For the first error I try to correct an assignment semaphore.h but another
error
happens in another module.
I try to compile an older version of the kernel (2.2.1) with the same
results.

So I think about an install problem

Have anybody an idea about my problem ?

Regards

-- 
        Jean-Paul Pozzi
\\\        ____________
 \\\      / A2000
  \\\    /  A4000
   \\\  /
    \\\/
     \/


PS : files attached :
kernel.crd.01 = first try
kernel.crd    = second try after correcting semaphore.h

System A2000/040 Ram = 64M

PS: 
The same 2.2.5 source compile well on a PII/500

gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include scripts/split-include.c
scripts/split-include include/linux/autoconf.h include/config
gcc -D__KERNEL__ -I/usr/src/linux-2.2.5/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -ffixed-a2 -m68040  -c -o init/main.o init/main.c
/usr/src/linux-2.2.5/include/asm/semaphore.h: In function `waking_non_zero':
In file included from /usr/src/linux-2.2.5/include/linux/fs.h:161,
                 from /usr/src/linux-2.2.5/include/linux/capability.h:13,
                 from /usr/src/linux-2.2.5/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.2.5/include/linux/sched.h:8,
                 from /usr/src/linux-2.2.5/include/linux/mm.h:4,
                 from /usr/src/linux-2.2.5/include/linux/slab.h:14,
                 from /usr/src/linux-2.2.5/include/linux/malloc.h:4,
                 from /usr/src/linux-2.2.5/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/usr/src/linux-2.2.5/include/asm/semaphore.h:61: `owner_depth' undeclared (first use this function)
/usr/src/linux-2.2.5/include/asm/semaphore.h:61: (Each undeclared identifier is reported only once
/usr/src/linux-2.2.5/include/asm/semaphore.h:61: for each function it appears in.)
make: *** [init/main.o] Error 1
gcc -D__KERNEL__ -I/usr/src/linux-2.2.5/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -ffixed-a2 -m68040  -c -o init/main.o init/main.c
gcc -D__KERNEL__ -I/usr/src/linux-2.2.5/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -ffixed-a2 -m68040 -DUTS_MACHINE='"m68k"' -c -o init/version.o init/version.c
make -C  kernel
make[1]: Entering directory `/usr/src/linux-2.2.5/kernel'
make all_targets
make[2]: Entering directory `/usr/src/linux-2.2.5/kernel'
gcc -D__KERNEL__ -I/usr/src/linux-2.2.5/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -ffixed-a2 -m68040   -DEXPORT_SYMTAB -c signal.c
gcc -D__KERNEL__ -I/usr/src/linux-2.2.5/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -ffixed-a2 -m68040   -DEXPORT_SYMTAB -c ksyms.c
ksyms.c:376: `__down_trylock' undeclared here (not in a function)
ksyms.c:376: initializer element for `__ksymtab___down_trylock.value' is not constant
make[2]: *** [ksyms.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.2.5/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.2.5/kernel'
make: *** [_dir_kernel] Error 2

Reply to: