LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-21-2008, 04:23 PM   #1
boby_jassar
LQ Newbie
 
Registered: Mar 2008
Posts: 4

Rep: Reputation: 0
Smile kernel compilation error with gcc32


Hi everyone

I am compiling kernel on redhatAS 4 gets errors with gcc32


[root@linux1 src]# ls -ld linux
lrwxrwxrwx 1 root root 19 Mar 22 11:35 linux -> kernels/linux-2.6.9

[root@linux1 src]# cd linux

[root@linux1 linux]# pwd
/usr/src/linux

[root@linux1 linux]# ls
arch Documentation init MAINTAINERS README sound
COPYING drivers ipc Makefile REPORTING-BUGS usr
CREDITS fs kernel mm scripts
crypto include lib net security

[root@linux1 linux]# ls .
./ .config .config.old .version
../ .config.cmd .tmp_versions/


[root@linux1 linux]# make
CHK include/linux/version.h
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/linux/compile.h
AS arch/i386/kernel/entry.o
gcc32: installation problem, cannot exec `tradcpp0': No such file or directory
make[1]: *** [arch/i386/kernel/entry.o] Error 1
make: *** [arch/i386/kernel] Error 2

[root@linux1 /]# whereis gcc32
gcc32: /usr/bin/gcc32

[root@linux1 /]# rpm -qf /usr/bin/gcc32
compat-gcc-32-3.2.3-47.3

[root@linux1 /]# rpm -qa compat-gcc*
compat-gcc-32-3.2.3-47.3
compat-gcc-32-c++-3.2.3-47.3
[root@linux1 /]#

any clues

thanks for your time and help in advance
 
Old 03-22-2008, 09:01 AM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,072
Blog Entries: 3

Rep: Reputation: 323Reputation: 323Reputation: 323Reputation: 323
yeap that say,s you do not have a compiler and if you do it is pre 3.2.
open a terminal and type cc the reply should be no input file. then type cc -v and get your version. you really need 3.2 0r better for. and red hat 4 is so old I bet it is using 2.9 gcc.
and you are using a 2.6 kernel your system init is set to load a 2.4 kernel you really need to think this out. there are some very good 2,4 kernels that are very good and have everything you need today the 2.4 is still being kept up 2.4.39 you will like it. my favorite was the 2.4.34.
good luck. again you will need to up grade your gcc. type gcc -v and see what you get.
 
Old 03-24-2008, 06:18 AM   #3
boby_jassar
LQ Newbie
 
Registered: Mar 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Hello Drakeo

I executed the above commands please verify

[root@linux1 ~]# cc
gcc32: no input files
[root@linux1 ~]# cc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --enable-languages=c,c++ --disable-libgcj --host=i386-redhat-linux
Thread model: posix
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-47.3)
 
  


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 error praveen_repelle Linux - Newbie 1 02-12-2008 05:04 PM
Kernel compilation error: Error 15: File not found Niceman2005 Linux - General 9 10-04-2007 04:45 AM
kernel compilation error bond_7942 Linux - Newbie 2 02-02-2005 02:14 PM
kernel compilation error htamayo Linux - Software 3 01-07-2005 05:15 PM
kernel compilation error in 2.4.20-8 cranium2004 Linux - Software 1 11-24-2004 07:04 AM


All times are GMT -5. The time now is 02:33 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration