Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Ivan Passos <ivan@cyclades.com>
Subject: Problems with kernels 2.1.x
Date: Fri, 01 Aug 1997 11:18:41 -0700	[thread overview]
Message-ID: <5c1d2fcc9228074432e58bfa0d75d5b6.axp-list@archive.invalid> (raw)

Hi, there,

I'm trying to buid a kernel 2.1.47 under a AlphaPC and I'm having the 
time of my life ...

Well, let's see the environment:

- Alpha PC164 366Mhz
- Linux RedHat 4.2 kernel version 2.0.30

With this current kernel version, it's working just fine. But since 
I need to port a driver to the Linux/Alpha 2.1.x kernel, I downloaded 
the latest 2.1 kernel (2.1.47) and tried to compile it. 
During the 'make boot', I got the following error:

[root@alpha linux]# make dep ; make clean ; make boot
<snip>
rm -f core `find . -type f -name 'core' -print`
rm -f vmlinux System.map
rm -f .tmp* drivers/sound/configure
rm -f `find modules/ -type f -print`
rm -f submenu*
gcc -D__KERNEL__ -I/usr/src/source-2.1.47/include -Wall
-Wstrict-prototypes -O2
-fomit-frame-pointer -D__SMP__ -pipe -mno-fp-regs -ffixed-8  -c -o
init/main.o init/main.c
In file included from init/main.c:17:
/usr/src/source-2.1.47/include/linux/sched.h:107: parse error before 
`tasklist_lock'
/usr/src/source-2.1.47/include/linux/sched.h:107: warning: data 
definition has no type or storage class
In file included from init/main.c:17:
/usr/src/source-2.1.47/include/linux/sched.h:508: parse error before 
`waitqueue_lock'
/usr/src/source-2.1.47/include/linux/sched.h:508: warning: data 
definition has no type or storage class
/usr/src/source-2.1.47/include/linux/sched.h: In function 
`add_wait_queue':
/usr/src/source-2.1.47/include/linux/sched.h:514: warning: implicit 
declaration of function `write_lock_irqsave'
/usr/src/source-2.1.47/include/linux/sched.h:516: warning: implicit 
declaration of function `write_unlock_irqrestore'
make: *** [init/main.o] Error 1
[root@alpha linux]#

Ok, then I checked the /usr/src/linux/include/linux/sched.h file and 
I figured out that the problem was in another file 
(/usr/src/linux/include/asm/spinlock.h) that was (not) being 
conditionally compiled according to the def flag __SMP__ (and exactly 
the typedef for the structure type used by the variables that caused 
the error above - rwlock_t - was inside the ifndef).

So I editted the file /usr/src/linux/Makefile and disabled (commented 
out) the SMP flag. Then the kernel compiles, but the machine doesn't 
even boot with this kernel. It gets stuck just after the bootstrap.

This compilation though is full of warnings as follows:

sched.c: In function `wake_up_process':
sched.c:172: warning: `__r16' might be used uninitialized in this 
function
sched.c:176: warning: `__r16' might be used uninitialized in this 
function
sched.c: In function `process_timeout':
sched.c:172: warning: `__r16' might be used uninitialized in this 
function

I've tried earlier versions of 2.1.x kernels (2.1.46 and 2.1.43) with 
no luck (exactly the same results).

I hope somebody there can give me a hand ...
I thank you all in advance.

Regards,

-- 
*******************************************************************
Cyclades Corporation                   Tel.: (510)770-9727 ext. 202
Ivan Passos                       E-mail : mailto:ivan@cyclades.com
Software Engineer                     WWW : http://www.cyclades.com
*******************************************************************

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

                 reply	other threads:[~1997-08-01 18:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox