Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


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

kernel compile error in asm in io.h




	I have a CND 1.0 system and want to recompile 
the kernel;  adding RARP support to boot a sun 3/50.
  I get the following error.

========
[root at diamond linux]# make zdisk
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-
frame-pointer -pipe -m486  -c -o init/main.o init/main.c
/usr/src/linux/include/asm/io.h: In function `copro_timeout':
/usr/src/linux/include/asm/io.h:82: inconsistent operand constraints in an `asm'
/usr/src/linux/include/asm/io.h:82: inconsistent operand constraints in an `asm'
/usr/src/linux/include/asm/io.h:82: inconsistent operand constraints in an `asm'
/usr/src/linux/include/asm/io.h:82: inconsistent operand constraints in an `asm'
/usr/src/linux/include/asm/io.h: In function `check_fpu':
/usr/src/linux/include/asm/io.h:78: inconsistent operand constraints in an `asm'
/usr/src/linux/include/asm/io.h:82: inconsistent operand constraints in an `asm'
/usr/src/linux/include/asm/io.h:78: inconsistent operand constraints in an `asm'
/usr/src/linux/include/asm/io.h:82: inconsistent operand constraints in an `asm'
make: *** [init/main.o] Error 1

================

I have successfully done this before, and can't figure out what gives.

Specs for the kernel I'm running -- 
[root at diamond linux]# uname -a
Linux diamond.astex.com 1.2.13 #1 Thu Apr 4 14:18:42 EST 1996 i586
 
[root at diamond linux]# gcc -v
Reading specs from /usr/lib/gcc-lib/i586-unknown-linux/2.7.2.f.1/specs
gcc version 2.7.2.f.1

 ls -l  /usr/lib/gcc-lib/i586-unknown-linux/2.7.2.f.1/specs
-rwxr-xr-x   1 root     root 
         963 Apr  4  1996 /usr/lib/gcc-lib/i586-unknown-linux/2.7.2.f.1/specs

So I'm fairly sure I  did compile this kernel with this gcc. (note same apr 4 date.)

The offending file (io.h) is identical (according to diff)
to that on my home system,
where the compilation works fine.

Only differences are 1) 586 at work, 486 (Cyrix 586, really) at home;
                     2) standard slackware 1.2.13 at home, CND 1.0 at work.

gcc and as are the same, versions home and work, only difference is 486/586.

GNU assembler version cygnus/linux-2.5.2l.15 (i586-unknown-linux), 
using BFD version cygnus/linux-2.5.2l.11
GNU assembler version cygnus/linux-2.5.2l.15 (i486-linux), 
using BFD version cygnus/linux-2.5.2l.11

I've tried several kernels with identical results and am stumped.
Same gcc  version (I compiled each myself for g77 support,
with help from Craig Burley)

     Same file (io.h)

		One works, other doesn't.

			I'd welcome a clue.
					Thanks,
						Steve





BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org