LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-08-2001, 08:35 PM   #1
duncan
LQ Newbie
 
Registered: Mar 2001
Location: San Francisco
Posts: 7

Rep: Reputation: 0
Yet another kernel compiling problem...


...just finished reading one of the recent threads.."In middle of compiling my kernel..."
I've got a problem of my own... in the thread, jharris mentioned something about RedHat's "broken" compiler... maybe that is my problem?
I'm actually compiling a kernel for my laptop, and doing the actual compiling on my desktop:
Celeron 300a - 64MB
RedHat 7.0 Dual boot Win98.
...made sure my source was installed.
...cd /usr/src/linux
...make mrproper
...make menuconfig
...make dep
...make clean
everything seems to go along fine after doing
make bzImage ,then:
the process suddenly stops, the last few lines say:
tdfx_drv.c:132: parse error before string constant
tdfx_drv.c:132: warning: type defaults to 'int' in declaration of '__setup'
tdfx_drv.c:132: warning: function declaration isn't a prototype
tdfx_drv.c:132: warning: data definition has no type or storage class
tdfx_drv.c:132: warning: 'tdfx_options' defined but not used
make[4]: *** [tdfx_drv.o] Error 1
make[4]: Leaving directory '/usr/src/linux-2.2.16/drivers/char/drm'
make[3]: *** [first_rule] Error 2
make[3]: Leaving directory '/usr/src/linux-2.2.16/drivers/char/drm'
make[2]: *** [_subdir_drm] Error 2
make[2]: Leaving directory '/usr/src/linux-2.2.16/drivers/char'
make[1]: *** [_subdir_char] Error2
make[1]: Leaving directory '/usr/src/linux-2.2.16/drivers'
make: *** [_dir_drivers] Error 2

are there some corrupt files somewhere?...or am i way off? maybe got a package missing?
any help appreciated.
duncan
 
Old 07-08-2001, 09:21 PM   #2
GonzoJohn
Member
 
Registered: Jun 2001
Location: Louisville, KY USA
Distribution: RedHat and Debian
Posts: 89

Rep: Reputation: 15
2 things.

One, RH 7.0 was notorius for having an early implementation of a new gcc version that was fscked up. Upgrading gcc might help.

Two, don't compile a kernel in /usr/src/linux. Kernel headers for the boot kernel can sometimes be located there, and this confuses the compiler. Compile anywhere else but here.
 
Old 07-09-2001, 06:04 AM   #3
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
...hate to repeat someone else's advice, but i'm bored.

http://gcc.gnu.org/ - here's where you can download the new gcc. i haven't heard too much about the testing on the new 3.0, but 2.95.3 is very stable.

also, if you go into the /usr/src/linux-2.2.16/ directory to compile, that's usually enough to make the compiler stop complaining. the reason that this sometimes creates a problem is that there can be different kernel version sources, and the /usr/src/linux/ directory isn't specific on which version of headers, if any, that it might contain. sometimes, it's just a link to the current version, and not really a directory. just depends on the distro.
 
Old 07-09-2001, 06:47 AM   #4
cinnix
Member
 
Registered: Jun 2001
Location: Northern Ohio
Distribution: RedHat, Engarde and LFS
Posts: 237

Rep: Reputation: 30
just a note, the README in the 2.4 Kernel source states that you should not use the gcc compiler that comes included with redhat 7.0. (I am sure the same also applies to any version of the kernel.) If you apply the updates from redhat, you shouldn't have any more problems.

I just wanted to point that out for any would-be 2.4 kernel compilers.
 
Old 07-09-2001, 02:43 PM   #5
duncan
LQ Newbie
 
Registered: Mar 2001
Location: San Francisco
Posts: 7

Original Poster
Rep: Reputation: 0
kernel rebuilt!
thanks a bunch everyone...your knowlege
came to the rescue...
...there's only so much documentation you
can read before your head starts to spin..
you guys are great...
duncan
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel compiling problem. Jakalx Debian 5 08-20-2005 10:42 AM
problem compiling kernel. Rarrum Debian 3 03-21-2005 07:57 PM
problem compiling kernel :( djh Slackware 13 11-14-2004 07:45 PM
problem for compiling kernel bush Linux - General 3 05-16-2003 07:06 AM
Problem after compiling the kernel niac Linux - General 3 10-14-2002 12:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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