Skip to contentSkip to conversation

Problems compiling 2.2.4 Ultrasparc kernel...

DISCUSSION Shawn Hooton 2 participants 3 messages Mar 25, 1999

lore
Share & tools
lore
#0 lore raw

I cannot compile the 2.2.4 linux kernel.

System: Stock 1.1.9 Ultrapenguin dist/Ultra 10/256MB RAM/Creator Kernel obtained from: ftp://ftp.us.kernel.org/pub/linux/kernel/v2.2/

Just to trying to get the kernel to build I followed these steps:

make oldconfig
make dep
make

This is where I run into problems. During the make I get the output listed below (Along with more if needed). Can anyone help me or point me in the right direction?

Thanks.

make -C kernel
make[1]: Entering directory `/usr/src/linux/kernel' make all_targets
make[2]: Entering directory `/usr/src/linux/kernel' egcs -O2 -fomit-frame-pointer -funroll-loops -fno-strength-reduce -DEXPORT_SYMTAB -c signal.c
In file included from /usr/include/asm/uaccess.h:6,

                 from signal.c:15:

/usr/include/asm-sparc/uaccess.h:313: warning: `__copy_to_user' redefined
/usr/include/linux/modules/sparc64_ksyms.ver:200: warning: this is the location of the previous definition /usr/include/asm-sparc/uaccess.h:337: warning: `__copy_from_user' redefined
/usr/include/linux/modules/sparc64_ksyms.ver:202: warning: this is the location of the previous definition /usr/include/asm-sparc/uaccess.h: In function `verify_area':
In file included from /usr/include/asm/uaccess.h:6,

                 from signal.c:15:

/usr/include/asm-sparc/uaccess.h:49: `current' undeclared (first use this function)
/usr/include/asm-sparc/uaccess.h:49: (Each undeclared identifier is reported only once
/usr/include/asm-sparc/uaccess.h:49: for each function it appears in.) /usr/include/asm-sparc/uaccess.h:49: `STACK_TOP' undeclared (first use this function)
/usr/include/asm-sparc/uaccess.h:49: `EFAULT' undeclared (first use this function)
/usr/include/asm-sparc/uaccess.h: At top level:
/usr/include/asm-sparc/uaccess.h:295: parse error before __copy_user' /usr/include/asm-sparc/uaccess.h:295: parse error before __kernel_size_t'
/usr/include/asm-sparc/uaccess.h:295: warning: data definition has no type or storage class
/usr/include/asm-sparc/uaccess.h:344: parse error before __clear_user' /usr/include/asm-sparc/uaccess.h:344: parse error before __kernel_size_t'
/usr/include/asm-sparc/uaccess.h: In function `__clear_user':
/usr/include/asm-sparc/uaccess.h:346: __kernel_size_t' undeclared (first use this function) /usr/include/asm-sparc/uaccess.h:346: parse error before ret' /usr/include/asm-sparc/uaccess.h:357: `ret' undeclared (first use this function)
/usr/include/asm-sparc/uaccess.h:357: `addr' undeclared (first use this function)
/usr/include/asm-sparc/uaccess.h:357: `size' undeclared (first use this function)
/usr/include/asm-sparc/uaccess.h: In function `strlen_user':
/usr/include/asm-sparc/uaccess.h:391: `current' undeclared (first use this function)
/usr/include/asm-sparc/uaccess.h:391: `STACK_TOP' undeclared (first use this function)

#1 lore raw

Date: Thu, 25 Mar 1999 02:01:30 +0000
From: Shawn Hooton <[email protected]>

egcs -O2 -fomit-frame-pointer -funroll-loops -fno-strength-reduce -DEXPORT_SYMTAB -c signal.c

It's using the wrong compiler. Does "uname -a" output "sparc64" as the cpu type?

Later,
David S. Miller
[email protected]

#2 lore raw
In reply to Shawn Hooton

I want to apologize to everyone for being an idiot. I figured that it should be using the sparc64-linux-gcc compiler. I figured it was getting egcs from my $CC so I unset all of my build vars, but I think the damage had already propagated to the makefiles. Sorry.

FYI: uname -a="Linux {hostname} 2.2.0-pre4 #1 Tue Jan 5 17:08:15 CET 1999 sparc64 unknown"

I really appreciate the quick response!!!

Quoted 13 lines · David Miller

Date: Thu, 25 Mar 1999 02:01:30 +0000
From: Shawn Hooton <[email protected]>

egcs -O2 -fomit-frame-pointer -funroll-loops -fno-strength-reduce -DEXPORT_SYMTAB -c signal.c

It's using the wrong compiler. Does "uname -a" output "sparc64" as the cpu type?

Later,
David S. Miller
[email protected]