LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-18-2002, 08:59 AM   #1
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 622

Rep: Reputation: 30
Question kernel compilation problems


Hi

I justed installed Suse 7.3 sparc platform on a Sun Ultra sparc10 which is working fine. I also have a adaptec 29160N adapter with with a SCSI drive which works fine on another system but under SuSE the kernel does not recognise it.

I there for tried to recomplie the kernel with support for this adapter but I am unable to complie the kernel, these where the steps taken:

cd /usr/src/linux
mrproper
make xconfig
"activate SCSI support for aic7xxxx"
make dep
make clean
make bzImage

My problem is when I try to make bzImage it gives me the following error:" make: *** No Rule to make target ´bzImage´. Stop. "

I then found info on the net stating that I can´t compile 2.4 kernels with gcc-2.95 but needed gcc-2.91.66 for it to compile. Is this true? If so where can I find it so that I may install it on my system? If this is the wrong is there another solution?

Thanking you for all your input

Tony
 
Old 09-18-2002, 11:12 AM   #2
Faecal
Member
 
Registered: Sep 2002
Location: York, UK
Distribution: Debian Sid
Posts: 215

Rep: Reputation: 30
"make clean" is surely going to wipe all the work that "make dep" did? When I compile my kernel, I don't use make clean at all, although some guides advise you to do it before starting. Try without any "make clean" in there.

I believe that mrproper (google for where the name came from :-)) does everything that make clean does anyway, so as long as you're doing mrproper at the start, make clean doesn't have anything to do.

Last edited by Faecal; 09-18-2002 at 11:16 AM.
 
Old 09-18-2002, 12:17 PM   #3
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 622

Original Poster
Rep: Reputation: 30
Unhappy kernel compilation problems

Thanx for the input but tried that already with no success
 
Old 09-20-2002, 11:46 AM   #4
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
I've been using gcc 2.95.3 for quite some time and haven't had a problem
compiling 2.4.x kernels.
Faecal is right, the make clean will get rid of anything make dep creates.

Do you have the kernel tarball? If so, you might copy your .config file from
your /usr/src/linux directory to a safe place (/root?), and then untar your
kernel source again, just to be sure you don't have any strange problems
with the source. So, do:
rm -rf /usr/src/linux (should be a symlink)
tar zxvf linux-2.4.x.tar.gz
If this kernel is new enough, it will untar into linux.2.4.x, and you will have to do:
ln -s /usr/src/linux-2.4.x /usr/src/linux
then do:
cd /usr/src/linux
make mrproper
cp /root/.config /usr/src/linux
make dep
make bzImage
make modules
make modules_install

Good luck!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 after Kernel 2.6.0 compilation ksrjapan Slackware 19 03-31-2005 02:28 PM
Kernel 2.4.22 compilation problems Arcosanti Slackware 3 04-17-2004 12:19 AM
kernel compilation problems h_lina_k Linux - Newbie 0 03-02-2004 02:23 PM
Kernel compilation problems nikhiljosh Linux - General 3 07-29-2001 07:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:51 AM.

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