LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 04-18-2008, 10:50 PM   #1
pwabrahams
Member
 
Registered: Nov 2005
Location: Deerfield MA
Distribution: OpenSuSE, Kubuntu
Posts: 293

Rep: Reputation: 41
"make oldconfig" doesn't work!


I'm running OpenSuSE 12.2, x86_64 version, and some software I'm installing requires that I run make oldconfig on the kernel sources (which I've installed and installed again!). I get a similar error with other "make"s:
Code:
suillus2:/usr/src/linux # make oldconfig
  HOSTCC  scripts/basic/fixdep
gcc: error trying to exec 'cc1': execvp: No such file or directory
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
suillus2:/usr/src/linux # make xconfig
  HOSTCC  scripts/basic/fixdep
gcc: error trying to exec 'cc1': execvp: No such file or directory
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
suillus2:/usr/src/linux # make config
  HOSTCC  scripts/basic/fixdep
gcc: error trying to exec 'cc1': execvp: No such file or directory
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
suillus2:/usr/src/linux #
I also reinstalled gcc to make sure that it was the 64-bit version, but that didn't help either.

What's going on here?
 
Old 04-19-2008, 04:00 AM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
have you tried symlinking cc1 to cc ?
 
Old 04-19-2008, 12:35 PM   #3
pwabrahams
Member
 
Registered: Nov 2005
Location: Deerfield MA
Distribution: OpenSuSE, Kubuntu
Posts: 293

Original Poster
Rep: Reputation: 41
cc1 -> cc doesn't help

I put in the symlink from cc1 to cc and got a long stream of error messages. Here is a sample:
Code:
cc1: fixdep.c: No such file or directory
cc1: fixdep: No such file or directory
cc1: unrecognized option '-quiet'
cc1: unrecognized option '-quiet'
cc1: /tmp/ccC52byb.d: No such file or directory
Maybe cc1 is supposed to be something other than a C compiler.
 
Old 04-19-2008, 02:30 PM   #4
pwabrahams
Member
 
Registered: Nov 2005
Location: Deerfield MA
Distribution: OpenSuSE, Kubuntu
Posts: 293

Original Poster
Rep: Reputation: 41
Problem solved!

It appears that the proximate cause of the problem was that some of my kernel-related and gcc-related packages were the i586 version rather than the x86_64 version. How that came about, I don't know. Tracking down which packages had the problem was pretty laborious. The dependency checking should have caught the problem but didn't.

I also had to do this:

Code:
ln -s /usr/include/asm-x86_64/ /usr/include/asm
After all these machinations, I finally got make oldconfig to work.

I'm surprised that this problem hasn't caught a lot of people. The cc1 problem was reported in some other, older threads, but no one made reference to the 64-bit upgrade.

Last edited by pwabrahams; 04-19-2008 at 06:41 PM. Reason: mistitled post
 
Old 04-24-2008, 01:22 AM   #5
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,634

Rep: Reputation: Disabled
Quote:
Originally Posted by pwabrahams View Post
I'm running OpenSuSE 12.2, x86_64 version...
Whoa, I'm impressed . Novell only recently published the 11.0 beta1, but you're really advanced here already using the 12.2 .

BTW glad you solved it in spite of the temporal glitch...

Last edited by JZL240I-U; 04-24-2008 at 01:42 AM.
 
Old 04-24-2008, 09:08 PM   #6
pwabrahams
Member
 
Registered: Nov 2005
Location: Deerfield MA
Distribution: OpenSuSE, Kubuntu
Posts: 293

Original Poster
Rep: Reputation: 41
It's OpenSuSE 10.3, of course

Sorry for the 12.3 goof. I couldn't remember which version of OpenSuSE I had installed and couldn't quickly think of a way to find out. Neither uname nor KDE application help is of any use on that -- they yield the kernel version and the KDE version, but not the name of the installed system.

Subsequently through Google I found out that the name of the installed system lives in /etc/issue (and possibly elsewhere as well).
 
  


Reply

Tags
config, kernel



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
Does "make oldconfig" work when downgrading? kaz2100 Linux - General 3 10-10-2006 07:58 PM
change kernel configurations when use "make oldconfig" Gijet Red Hat 4 10-09-2006 07:23 PM
BASH problems: "configure, make, make install" commands don't work ditch* Linux - General 3 07-19-2005 04:37 PM
"make oldconfig" not working r00k2oo4 Linux - Newbie 3 10-26-2004 01:43 PM
compiling tar.bz2... "./configure make make install" doesn't work dodo1983 Linux - Newbie 7 08-17-2004 12:34 AM

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

All times are GMT -5. The time now is 03:41 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