Trouble compiling 1.2.13 kernel with gcc 2.7.2

Trouble compiling 1.2.13 kernel with gcc 2.7.2

Post by Nick van Stig » Thu, 25 Jul 1996 04:00:00



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 *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.

 
 
 

Trouble compiling 1.2.13 kernel with gcc 2.7.2

Post by Pieter Rijke » Thu, 25 Jul 1996 04:00:00



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

> But... you guessed it, I can't compile the 1.2.13 kernel.  I have re-loaded the
> Has anyone else had this problem and know of a an easy fix?  (apart from going
> to a V2 kernel)

Yes I've had the very same problem when I upgraded my c-compiler
from 2.6.3 to 2.7.2. Unfortunately ipgrading the kernel to 2.0.x seems
to be the solution!

Pieter

 
 
 

Trouble compiling 1.2.13 kernel with gcc 2.7.2

Post by Stev » Wed, 31 Jul 1996 04:00:00



.....

Quote:>I just finished switching my aout Linux box over to ELF, following the ELF
>HOWTO very closely.
.....
>But... you guessed it, I can't compile the 1.2.13 kernel.  I have re-loaded

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

asm'
.....

I've seen the same errors. I have reverted to GCC 2.7.0 which cured this
problem temporally. I've read that GCC 2.7.0 has an optimisation bug with -O2,
so this is not an ideal fix. I'd be interested to know what's really going on
here too.

Regards,
Steve.

 
 
 

Trouble compiling 1.2.13 kernel with gcc 2.7.2

Post by Larry Min » Wed, 31 Jul 1996 04:00:00



: .....
: >I just finished switching my aout Linux box over to ELF, following the ELF
: >HOWTO very closely.
: .....
: >But... you guessed it, I can't compile the 1.2.13 kernel.  I have re-loaded
: the
: .....
: >In function copro_timeout
: >/linux-1.2.13/include/asm/io.h:82  'inconsistant operand constraints in an
: asm'
: .....

: I've seen the same errors. I have reverted to GCC 2.7.0 which cured this
: problem temporally. I've read that GCC 2.7.0 has an optimisation bug with -O2,
: so this is not an ideal fix. I'd be interested to know what's really going on
: here too.

There is a *patch* to io.h for GCC 2.7.2 that you need to apply.

Larry

 
 
 

1. Trouble compiling kernel 1.2.13 with gcc 2.7.2

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        

2. dhcpcd works but starts two processes

3. Trouble compiling 1.2.13 kernel w/ GCC-2.7.2

4. Five Years Later: Is LINUX obsolete?

5. Troubles compiling Linux kernel 1.2.13 with GCC 2.7.2

6. libfl.so????????? ld library

7. gcc has trouble with compiling 1.2.13 kernel

8. Installing Linux over Token Ring??

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