Trouble compiling kernel 1.2.13 with gcc 2.7.2

Trouble compiling kernel 1.2.13 with gcc 2.7.2

Post by Jim Cond » Wed, 10 Jan 1996 04:00:00



Hi,

When I try compiling 1.2.13, I get the included error from gcc. Please note
I'm trying to use the a.out fixes from the elf howto and not the Lu patches.
Do I need some other parameter on gcc?

                                jim condon

------Included Error Message ------
gcc -b i486-linuxaout -D__KERNEL__ -I/usr/src/linux/include -O2 -fomit-frame-poi
nter -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        gcc -b i486-linuxaout -D__KERNEL__ -I/usr/src/linux/include -O2 -fomit-frame-poi
nter -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        

 
 
 

1. Trouble compiling 1.2.13 kernel with gcc 2.7.2

Hi

I just finished switching my aout Linux box over to ELF, following the ELF
HOWTO very closely.

Having finished, I find that I compile and run pretty much anything in either
ELF or aout (including X apps - I also installed the ELF libraries for X312).

But... you guessed it, I can't compile the 1.2.13 kernel.  I have re-loaded the
kernel source tree (several times), tried compiling with/without HJ Lu's patch,
compiling ELF and aout, but I always get the same set of errors, which are as
follows:

In function copro_timeout
/linux-1.2.13/include/asm/io.h:82  'inconsistant operand constraints in an asm'

multiple times.

Then

In function check_fpu

/linux-1.2.13/include/asm/io.h:78  'inconsistant operand constraints in an asm'

again multiple times.

Further investigation of the io.h file shows that the offending lines are

82:  __OUT(b,"b",char)

78:  __IN(b,"b","0" (0))

It should be noted that these 2 functions are the first compiles in the
Makefile, and the compile aborts after attempting these 2 - so I suspect more
functions would crap out if it actually got that far.  

I am using
        gcc 2.7.2
        libc 4.7.5 (aout)
        libc 5.3.9 (ELF)
        binutils 2.6.0

Has anyone else had this problem and know of a an easy fix?  (apart from going
to a V2 kernel)

Many thanks,

Nick
--
Nick van Stigt, Waverley, NS, Canada.

2. SPARC pcfs

3. Trouble compiling 1.2.13 kernel w/ GCC-2.7.2

4. PA-2007 & ASUS SC-200

5. Troubles compiling Linux kernel 1.2.13 with GCC 2.7.2

6. LInux on Connectix Virtual PC

7. gcc has trouble with compiling 1.2.13 kernel

8. Shared memory on another system

9. Compiling 1.2.13 kernel with RedHat 3.0.3/gcc 2.7.2

10. SOLVED: 1.2.13 kernel w/GCC 2.7.0 compile

11. Kernel 1.2.13 and gcc 2.7.0 wont compile

12. Problems compiling 1.2.13 kernel with gcc 2.7.2--PLEASE HELP

13. Problem compiling 1.2.13 kernel w/gcc 2.7.2