LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-09-2003, 02:45 PM   #1
dmarkow
LQ Newbie
 
Registered: Mar 2003
Posts: 8

Rep: Reputation: 0
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?
 
Old 03-09-2003, 03:31 PM   #2
watashiwaotaku7
Member
 
Registered: Oct 2002
Location: wisconsin -- The Badger state
Distribution: gentoo
Posts: 654

Rep: Reputation: 30
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
 
Old 04-14-2003, 12:15 AM   #3
senthil
Member
 
Registered: Apr 2003
Posts: 43

Rep: Reputation: 15
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
 
Old 04-14-2003, 01:06 AM   #4
pythagras
LQ Newbie
 
Registered: Mar 2003
Posts: 6

Rep: Reputation: 0
What version of gcc are you running?
 
Old 04-14-2003, 09:58 AM   #5
senthil
Member
 
Registered: Apr 2003
Posts: 43

Rep: Reputation: 15
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
 
Old 07-01-2003, 10:14 AM   #6
grymoire
LQ Newbie
 
Registered: Jul 2003
Posts: 1

Rep: Reputation: 0
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel compilation problems, distorted video and kernel panic shamrock_uk Linux - Laptop and Netbook 5 08-12-2005 10:53 PM
problems occured after upgrading kernel and kernel-utils parv Fedora 0 05-02-2005 06:21 PM
kernel 2.4 -> kernel 2.6 problems with Maxtor SATA Bultot Linux - Hardware 2 01-19-2005 01:58 AM
Problems building a simple kernel module for kernel 2.6.7 atticman Linux - Software 2 12-13-2004 03:35 PM
Kernel Problems. Howto Compile a new kernel from 4.2 with backwards compatibility ? ShoCkwave Linux - General 2 06-19-2004 06:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration