Compiling linux 1.2.13 kernel with gcc 2.7.2

Compiling linux 1.2.13 kernel with gcc 2.7.2

Post by Goce Naumos » Tue, 07 May 1996 04:00:00



Hi everyone,

I was trying to (re)compile the linux kernel, version 1.2.13
with gcc version 2.7.2.

I got two problems:
        First, I did make to start the compilation process. File init/main.c
        uses include/asm/io.h for which I got the following errors:

/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'

        The problem are the macros IN and OUT from io.h. I've solved this problem
        by first preprocessing (option -E), and the compiling the preprocessed
        file.
        Doing it this way, I managed to come to arch/i386/kernel, where I got the
        Second problem:

        When compiling file process.c, I got the following error:

process.c:153: fixed or forbidden register was spilled.
This may be due to a compiler bug or to impossible asm
statements or clauses.

        I was not able to "trick" this one.

Could somebody help me (or at least give me a hint how) to solve the
above problems, or how to easily compile the kernel?

Thank you,
Goce.

 
 
 

Compiling linux 1.2.13 kernel with gcc 2.7.2

Post by Andrew M. Sarang » Sun, 12 May 1996 04:00:00



>Hi everyone,

>I was trying to (re)compile the linux kernel, version 1.2.13
>with gcc version 2.7.2.

>I got two problems:
>    First, I did make to start the compilation process. File init/main.c
>    uses include/asm/io.h for which I got the following errors:

>/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'

>    The problem are the macros IN and OUT from io.h. I've solved this problem
>    by first preprocessing (option -E), and the compiling the preprocessed
>    file.
>    Doing it this way, I managed to come to arch/i386/kernel, where I got the
>    Second problem:

>    When compiling file process.c, I got the following error:

>process.c:153: fixed or forbidden register was spilled.
>This may be due to a compiler bug or to impossible asm
>statements or clauses.

>    I was not able to "trick" this one.

>Could somebody help me (or at least give me a hint how) to solve the
>above problems, or how to easily compile the kernel?

>Thank you,

I solved these problems by copying the io.h file from linux-1.3.76
into linux-1.2.13.

--
Andrew Sarangan


 
 
 

Compiling linux 1.2.13 kernel with gcc 2.7.2

Post by Chris Ca » Mon, 13 May 1996 04:00:00



: >I was trying to (re)compile the linux kernel, version 1.2.13
: >with gcc version 2.7.2.

: >I got two problems:

[big snip]

: I solved these problems by copying the io.h file from linux-1.3.76
: into linux-1.2.13.

Ugh! Not a wise move. Why not grab the linux-1.3.99.tar.gz source from
ftp.sunsite.unc.edu and compile a new kernel with it?

Yes ok so it's a 5Mb tar file but hey, you'll have to upgrade sometime!

Alternatively use the latest source from whatever distribution you use (I
think Slackware 3.0 comes with 1.3.45) and just ftp the patches from
there up to wherever you want to go. I'm running 1.3.98 at the moment,
which is perhaps a bit new to be pronounced flawless, but I was running
1.3.70 solidly for the last two months without a hitch (yes it depends on
your hardware etc.).

Mis-matching bits of different kernels is a *bad* idea unless you really
know what you're doing code-wise.

Cheers,

Chris
------------------------------------------------------------------------------
I'm trying to find myself.
If I should return before I come back,
please ask me to wait.                                        - William McHarg

 
 
 

Compiling linux 1.2.13 kernel with gcc 2.7.2

Post by Tony Nugen » Thu, 16 May 1996 04:00:00



>I was trying to (re)compile the linux kernel, version 1.2.13
>with gcc version 2.7.2.
>I got two problems:
>    First, I did make to start the compilation process. File init/main.c
>    uses include/asm/io.h for which I got the following errors:
>/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'

Get the io.h patch (and others for linux-1.2.13) from here:

http://trishul.sci.gu.edu.au/~tony/linux/patches.html#io.h-patch

Quote:>    When compiling file process.c, I got the following error:
>process.c:153: fixed or forbidden register was spilled.
>This may be due to a compiler bug or to impossible asm
>statements or clauses.

>    I was not able to "trick" this one.

Never seen or heard of this one.

Cheers
Tony
_______________________________________________________________________________
\ Tony Nugent  Griffith University, Brisbane, Queensland, Australia           /

\                                                                             /
/           ** This Message Was Printed On 100% Recycled Electronics **       \

Quote:>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<

\ for a in past present future; do                                            /
/       for b in clients employers associates relatives neighbours pets; do   \
\ echo The opinions in this article in no way reflect the opinions of my $a $b/
/ done;done                                                                   \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 
 

1. Troubles compiling Linux kernel 1.2.13 with GCC 2.7.2

   I have a problem which I can't stop from hapenning:
When I try to compile a Linux Kernel the compile aborts when compiling main.c
with the message:

   main.c[82]: copro_timeout
   io.h: inconsistent operand constraints in an asm

and aborts.
  That's not the only message, it gives me more or less a half a dozen ones
exactly in the same file and in the same source line of io.h.
  What seams to be the problem? Configuration of GCC?
  Please help me. I really need to re-compile the kernel.
  Thanks in advance.

P.S.: Please reply by mail as I don't read the news very much.

2. lockd problems with 101945-34 ??

3. Compiling Linux kernel 1.2.13 and gcc-2.5.8

4. memory monitoring

5. Compiling 1.2.13 kernel with RedHat 3.0.3/gcc 2.7.2

6. NIS 'ypcat hosts'

7. SOLVED: 1.2.13 kernel w/GCC 2.7.0 compile

8. To Build a Honeypot

9. Kernel 1.2.13 and gcc 2.7.0 wont compile

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

11. Problem compiling 1.2.13 kernel w/gcc 2.7.2

12. Compiling kernel 1.2.13 under ELF GCC

13. Compiling 1.2.13 Kernel with GCC-2.7.2