Linux 2.0.25

Ales Pour root na hnipak.sh.cvut.cz
Neděle Listopad 17 10:55:50 CET 1996




> > Cau kolegove,
> > zkouseli jste nekdo linux2.0.25 ??? Nevim jak Vam, ale pri obvyklem postupu
> > (make config, make dep; make clean; make zImage) skonci preklad takto :
> > 
> > gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
> > -fomit-frame-pointer -fno-strength-reduce -pipe -m486 -malign-loops=2
> > -malign-jumps=2 -malign-functions=2 -DCPU=586  -c -o time.o time.c
> > {standard input}: Assembler messages:
> > {standard input}:768: Error: no such 386 instruction: 'rdmsr'
> > {standard input}:770: Error: no such 386 instruction: 'wrmsr'
> > make[1]: *** [time.o] Error 1
> > make[1]: Leaving directory /usr/src/linux/arch/i386/kernel'
> > make: *** [linuxsubdirs] Error 2
> > aida:/usr/src/linux# 
> Jake mate binutilsy? Tipnul bych, ze by pomohl upgrade...
> 

Tohle sem nekde nasel... :

> Jim Willette <jimw na netonecom.net> wrote:
> : While compiling version 2.0.25 using gcc 2.7.0 of linux i get this:
>
> : gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes
-O2
> : -fomit-frame-pointer -fno-strength-reduce -pipe -m486 -malign-loops=2
> : -malign-jumps=2 -malign-functions=2 -DCPU=586  -c -o time.o time.c
> : {standard input}: Assembler messages:
> : {standard input}:768: Error: no such 386 instruction: `rdmsr'
> : {standard input}:770: Error: no such 386 instruction: `wrmsr'
> : make[1]: *** [time.o] Error 1
> : make[1]: Leaving directory `/usr/src/linux/arch/i386/kernel'
>
> : Do I need to upgrade gcc?
>
> it's 'as', in the binutils package.  that line is for K5 processors
> only, so you can comment it out, or you should change that __asm__
> line to the following:
>
>     __asm__ __volatile__ (" movl $0x83,%%ecx \n \
>                             .byte 0x0f,0x32 \n \
>                             orl $1,%%eax \n \
>                             .byte 0x0f,0x30 \n "
>                                                  : : : "ax", "cx", "dx"
);
>


	Ales



Další informace o konferenci Linux