LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   kernel 2.4.18-14 -> 2.4.20 problems (https://www.linuxquestions.org/questions/linux-software-2/kernel-2-4-18-14-2-4-20-problems-48987/)

dmarkow 03-09-2003 02:45 PM

kernel 2.4.18-14 -> 2.4.20 problems
 
i'm trying to build the 2.4.20 kernel in RH 8.0 and i keep having the same problem. the make dep, make bzImage commands both work fine. But during the make modules i get the following error:

gcc -E -D__KERNEL__ -I/usr/src/linux-2.4.20/include -traditional -DCHIP=710 fake7.c | grep -v '^#' | perl -s script_asm.pl -ncr710
script_asm.pl : Illegal combination of registers in line 72 : MOVE CTEST7 & 0xef TO CTEST7
Either source and destination registers must be the same,
or either source or destination register must be SFBR.
make[2]: *** [sim710_d.h] Error 255
make[2]: Leaving directory `/usr/src/linux-2.4.20/drivers/scsi'
make[1]: *** [_modsubdir_scsi] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20/drivers'
make: *** [_mod_drivers] Error 2


I've tried it with the stock RH gcc version 3.2-7, with 3.2.1, and with the 2.95.3, which the kernel's readme specifically says to use, but i get the problem every time. Any ideas?

watashiwaotaku7 03-09-2003 03:31 PM

for some reason it is not able to compile a module for the scsi drivers go through config again and try taking out any scsi modules that you are sure you dont need and try it again

senthil 04-14-2003 12:15 AM

Hello,

I have the same problem on RH compiling 2.4.20. I read somewhere that it is due to gcc incompatibility. Not sure how to fix other than trying to install the older gcc (ver?)

Cheers,
Senthil

pythagras 04-14-2003 01:06 AM

What version of gcc are you running?

senthil 04-14-2003 09:58 AM

I am running gcc-3.2.7. Kernel 2.4.18-14 that comes with RH 8 compiles fine. rpm -qa | grep gcc yielded the following -

gcc-gnat-3.2-7
compat-gcc-objc-7.3-2.96.110
compat-gcc-c++-7.3-2.96.110
libgcc-3.2-7
gcc-g77-3.2-7
gcc-java-3.2-7
gcc-c++-3.2-7
compat-gcc-7.3-2.96.110
compat-gcc-java-7.3-2.96.110
gcc-3.2-7
compat-gcc-g77-7.3-2.96.110
gcc-objc-3.2-7

grymoire 07-01-2003 10:14 AM

I fixed this by modifying drivers/scsi/script_asm.pl

on line 585, change
$dst_reg = "\U$1\E";
$rest = $2;

to
$dst_reg = $1;
$rest = $2;
$dst_reg =~ tr/a-z/A-Z/;

I had to do "make mrproper; "etc. to rebuild the kernel

- Bruce Barnett


All times are GMT -5. The time now is 06:12 AM.