Problem compiling 1.2.13 kernel w/gcc 2.7.2

Problem compiling 1.2.13 kernel w/gcc 2.7.2

Post by Torsten Poulin Niels » Wed, 01 May 1996 04:00:00



When compiling the 1.2.13 kernel with gcc 2.7.2, the process stops
with a message about an inconsistency in include/asm/io.h (from main.c).

It doesn't matter whether the a.out compiler, with the Makefile "patched"
to say

    LD=ld -m i386linux
    CC=gcc -b i486-linuxaout -D__KERNEL__ -I$(TOPDIR)/include

or the ELF compiler (after applying the 1.2.13 source ELF patches, of course)
is used.

The gcc used is the one available from sunsite. It was installed following
the description in the ELF-HOWTO, except for adding -fno-strength-reduce
to specs - but that shouldn't have anything to do with the problem.

Does anybody know a fix, or am I stuck with my old 2.5.8 compiled kernel
until the 1.3 series stabilizes?

-Torsten
--
"Felix qui potuit rerum cognoscere causas" - Virgil
"Den, der tror, at alle ting er lette, vil faa mange vanskeligheder" - Lao Tse

 
 
 

Problem compiling 1.2.13 kernel w/gcc 2.7.2

Post by Leonard N. Zubkof » Thu, 02 May 1996 04:00:00



  When compiling the 1.2.13 kernel with gcc 2.7.2, the process stops
  with a message about an inconsistency in include/asm/io.h (from main.c).

--- linux/include/asm-i386/io.h-        Mon Aug 15 00:56:19 1994

 #define __OUT(s,s1,x) \
 __OUT1(s,x) __OUT2(s,s1,"w") : : "a" (value), "d" (port)); } \
-__OUT1(s##c,x) __OUT2(s,s1,"") : : "a" (value), "i" (port)); } \
+__OUT1(s##c,x) __OUT2(s,s1,"") : : "a" (value), "id" (port)); } \
 __OUT1(s##_p,x) __OUT2(s,s1,"w") : : "a" (value), "d" (port)); SLOW_DOWN_IO; } \
-__OUT1(s##c_p,x) __OUT2(s,s1,"") : : "a" (value), "i" (port)); SLOW_DOWN_IO; }
+__OUT1(s##c_p,x) __OUT2(s,s1,"") : : "a" (value), "id" (port)); SLOW_DOWN_IO; }

 #define __IN1(s) \

 #define __IN(s,s1,i...) \
 __IN1(s) __IN2(s,s1,"w") : "=a" (_v) : "d" (port) ,##i ); return _v; } \
-__IN1(s##c) __IN2(s,s1,"") : "=a" (_v) : "i" (port) ,##i ); return _v; } \
+__IN1(s##c) __IN2(s,s1,"") : "=a" (_v) : "id" (port) ,##i ); return _v; } \
 __IN1(s##_p) __IN2(s,s1,"w") : "=a" (_v) : "d" (port) ,##i ); SLOW_DOWN_IO; return _v; } \
-__IN1(s##c_p) __IN2(s,s1,"") : "=a" (_v) : "i" (port) ,##i ); SLOW_DOWN_IO; return _v; }
+__IN1(s##c_p) __IN2(s,s1,"") : "=a" (_v) : "id" (port) ,##i ); SLOW_DOWN_IO; return _v; }

 #define __INS(s) \
 extern inline void ins##s(unsigned short port, void * addr, unsigned long count) \

 
 
 

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

Everyone,

I was having problems compiling the kernel with gcc 2.7.0 (Kernel 1.2.13)
by getting Internal Compiler Error 11 so I wondered if 2.7.0 was somehow
broken and when installing the newer 2.7.2 version, I get the following
problem...

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

I've done the 'ldconfig' thing but to no avail.  Any ideas?????

Thanks in advance,

Dan

--------------------------------------------------------------------------------
"Who wants to fix his mind on the unity of God and man, or the nothingness
        of this life?  Who wants to be arrested in the daily manifestations
        of his life-activity by such meditations as the goodness of a divine
        being or the everlasting fire of hell?"            --Suzuki on Zen Buddhism

2. mtools 3.6 & 32bit FAT error

3. Compiling 1.2.13 kernel with RedHat 3.0.3/gcc 2.7.2

4. Has Slackware Changed in the last 4 montsh?

5. Compiling ppp-2.2.0c using gcc 2.7.0 (aout) and kernel 1.2.13

6. Problem with Via VT82C686A

7. gcc has trouble with compiling 1.2.13 kernel

8. x86 SOLARIS 2.6 device driver.

9. Compiling Linux kernel 1.2.13 and gcc-2.5.8

10. Compiling 1.2.13 Kernel with GCC-2.7.2

11. Pls HELP: compiling 1.2.13 kernel will gcc 2.7.2

12. Troubles compiling Linux kernel 1.2.13 with GCC 2.7.2

13. Trouble compiling 1.2.13 kernel w/ GCC-2.7.2