1.2.13 compile error

1.2.13 compile error

Post by Frank Endri » Fri, 19 Jul 1996 04:00:00



hallo,

i tried to compile 1.2.13, but it didn`t worked. After 'make config'
and 'make dep' a 'make zImage' aborts with the following error:

--------------------cut----------------
gcc -D__KERNEL__ -I/usr/src/linux.1.2.13/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -m486  -c -o init/main.o init/main.c

/usr/src/linux.1.2.13/include/asm/io.h: In function `copro_timeout':
/usr/src/linux.1.2.13/include/asm/io.h:82: inconsistent operand constraints in an `asm'
/usr/src/linux.1.2.13/include/asm/io.h: In function `check_fpu':
/usr/src/linux.1.2.13/include/asm/io.h:78: inconsistent operand constraints in an `asm'
/usr/src/linux.1.2.13/include/asm/io.h:82: inconsistent operand constraints in an `asm'
make: *** [init/main.o] Error 1
-------------------cut--------------

I use gcc 2.7.2. In file io.h the lines 78 to 82 #define some macros
with assemblercode. I can`t figure out wath`s wrong there, to hard
stuff.

It is the first time i try to compile a kernel, so may be this is a bad
beginner-error or a FAQbug, but i didn`t found any information elsewhere.

Can somebody tell me what to do to get the kernel compiled, please?

tnx
--
mfg frank

 
 
 

1.2.13 compile error

Post by Jay Thorn » Fri, 19 Jul 1996 04:00:00



> i tried to compile 1.2.13, but it didn`t worked. After 'make config'
> and 'make dep' a 'make zImage' aborts with the following error:

> --------------------cut----------------
> gcc -D__KERNEL__ -I/usr/src/linux.1.2.13/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -m486  -c -o init/main.o init/main.c
<deleted>

> I use gcc 2.7.2. In file io.h the lines 78 to 82 #define some macros
> with assemblercode. I can`t figure out wath`s wrong there, to hard
> stuff.

I have the same problem. I'm using a slackware 2.3 cd. upgraded to
1.2.13, and to gcc 2.7.2
Everthing I read suggests to just upgrade to 2.0.x but, I'd like to have
a non-2.0 kernel around, in elf format, if 2.0 causes any problems with
my software.

I need some help as well as Frank.  Is there someone who can help us
with these includes so we can just get a compile done? I want to move
up to 2.0 but I tried and lilo couldnt run the new vmlinuz.  It just
hung on boot after the lilo prompt.  

--
Jay Thorne                http://net.result.com/
President, The Net Result Systems * Services  Telephone:(604) 220 2504
WWW & Internet Systems Consultant.

 
 
 

1.2.13 compile error

Post by Helmut Cossman » Sat, 20 Jul 1996 04:00:00




> > i tried to compile 1.2.13, but it didn`t worked. After 'make config'
> > and 'make dep' a 'make zImage' aborts with the following error:

> > --------------------cut----------------
> > gcc -D__KERNEL__ -I/usr/src/linux.1.2.13/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -m486  -c -o init/main.o init/main.c
> <deleted>

> > I use gcc 2.7.2. In file io.h the lines 78 to 82 #define some macros
> > with assemblercode. I can`t figure out wath`s wrong there, to hard
> > stuff.

> I have the same problem. I'm using a slackware 2.3 cd. upgraded to
> 1.2.13, and to gcc 2.7.2
> Everthing I read suggests to just upgrade to 2.0.x but, I'd like to have
> a non-2.0 kernel around, in elf format, if 2.0 causes any problems with
> my software.

> I need some help as well as Frank.  Is there someone who can help us
> with these includes so we can just get a compile done? I want to move
> up to 2.0 but I tried and lilo couldnt run the new vmlinuz.  It just
> hung on boot after the lilo prompt.

> --
> Jay Thorne                http://net.result.com/
> President, The Net Result Systems * Services  Telephone:(604) 220 2504
> WWW & Internet Systems Consultant.

Change

#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##_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; }

to

#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), "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), "id" (port)); SLOW_DOWN_IO; }

and then

#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##_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; }

to

#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) : "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) : "id" (port) ,##i ); SLOW_DOWN_IO; return _v; }

That should do the trick;

helmut

 
 
 

1.2.13 compile error

Post by Tony Nugen » Sat, 27 Jul 1996 04:00:00



>i tried to compile 1.2.13, but it didn`t worked. After 'make config'
>and 'make dep' a 'make zImage' aborts with the following error:
>--------------------cut----------------
>gcc -D__KERNEL__ -I/usr/src/linux.1.2.13/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -m486  -c -o init/main.o init/main.c
>/usr/src/linux.1.2.13/include/asm/io.h: In function `copro_timeout':
>/usr/src/linux.1.2.13/include/asm/io.h:82: inconsistent operand constraints in an `asm'
>/usr/src/linux.1.2.13/include/asm/io.h: In function `check_fpu':
>/usr/src/linux.1.2.13/include/asm/io.h:78: inconsistent operand constraints in an `asm'
>/usr/src/linux.1.2.13/include/asm/io.h:82: inconsistent operand constraints in an `asm'
>make: *** [init/main.o] Error 1
>-------------------cut--------------
>I use gcc 2.7.2. In file io.h the lines 78 to 82 #define some macros
>with assemblercode. I can`t figure out wath`s wrong there, to hard
>stuff.
>It is the first time i try to compile a kernel, so may be this is a bad
>beginner-error or a FAQbug, but i didn`t found any information elsewhere.
>Can somebody tell me what to do to get the kernel compiled, please?

This is a well-known problem, with a known fix...

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

Cheers
Tony

 
 
 

1. strange problems 1.2.13 --> 2.0.0 --> 1.2.13

Hi,

I have some strange problems with the new kernel source tree...

after the installation of the new sysvinit-2.62 the linux-2.0.0 kernel
complains sh:/bin/bash cannot execute...
with 1.99.7 this works fine
and at least I'm totally unable to recompile the 1.2.13 source tree due
some strange asm errors in main occurring in asm/io.h referenced by
bugs.h  (also within the asm tree). Of course I checked the appropriate
links to for the linux source tree /usr/include/linux
                                                asm

Please help....
 Michael

-------------------------------------------------------------------------------
        Michael Rietz                   |       Office: 13

        Werner Heisenberg Institut      |       phone:+49-(0)89-32354-242,
        Foehringer Ring 6               |                             415,411
        D-80805 Muenchen                |       fax:    +49 (0)89 3226704
                                        |
                            is there anybody OUT there...
-------------------------------------------------------------------------------

2. Newsbin Pro?

3. errors compiling 1.2.13 ELF

4. tvtwm working?

5. Error Compiling Kernel 1.2.13 on Slackeware 3.00

6. Problems extracting ppp-2.3.3!

7. Kernel 1.2.13 compile error...

8. Scientific Software Engineer needed

9. Link Error Compiling Kernel 1.2.13 - Please Help!

10. Error in 53c7,8xx.c while compiling 1.2.13 kernel

11. Error Compiling Linux 1.2.13

12. Error Compiling 1.2.13 - Help!

13. Help! Error compiling 1.2.13 kernel