Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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
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).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.