Linux - GeneralThis 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
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 tried to build linux-2.6.36 but I got this
error message
Code:
/usr/src/linux-2.6.36/scripts/gcc-version.sh: line 25: ngcc: command not found
/usr/src/linux-2.6.36/scripts/gcc-version.sh: line 26: ngcc: command not found
make: ngcc: Command not found
/bin/sh: ngcc: command not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
Has anybody encountered the same problem?
I looked into gcc-version.sh but the problem is located
somewhere else
I thought at first one of the files might have been corrupted
and I downloaded the archive again.
I must also say that this happened in different versions
of slackware (the distro I use): 12.0, 12.1, 12.2, 13.0, 13.1
I have never seen nor heard of this problem before your thread. I have been running 2.6.36 for a couple weeks now, on Slackware64-current. I started with Slack 11.0.
Also I just grepped the kernel source tree for "ngcc" and came up empty, so not sure where that's coming from. Somewhere in your environment?
Not a solution, but: to eliminate the possibility of corrupted files in the kernel archive, you should be using the GPG and/or md5 checksum on your kernel archives when you download them.
Good luck with this - I'll be interested to learn where that's coming from.
Glad to see it worked.
I guess that you still get the error because you didn't clean your sources. Make a backup of .config and run "make mrpropper". After that put .config back and see if it compiles without the error.
I guess that you still get the error because you didn't clean your sources. Make a backup of .config and run "make mrpropper".
That must be it.
Because I first started building on slax with a fresh source tree.
That's when I did the building on slackware that I noticed the
message.
I want to thank you guys for this discussion. I was at work trying to kick of 2.6.36.2 compilation when I encountered the exact same error:
Code:
make: ngcc: Command not found
Bathory's solution allowed me to successfully compile w/o error.
Out of curiosity, isn't setting
Code:
CONFIG_CROSS_COMPILE="N"
technically the correct way to define this option? Setting this option to N is what triggered this error in the first place. What gives?
By the way, running mrproper did not fix the above error, it simply removes the .config file. Leaving the cross_compile option empty is the way to go.
Hi;
1st posting here;
Compiling 2.6.37 (vanilla kernel.org sources) i received same exact error as original poster[1] -- the 'n' comes from the "string" entry n that's at the CONFIG_CROSS_COMPILE= option, (General Setup >) in make menuconfig; hence the "ngcc" in the error message, so...
Clearing that string makes all go well -- it's not a Yes/No/Module option, it's a string entered value, should one want to enter one -- no idea why it defaulted to =n, as i ran make oldconfig from a 2.6.32 .config.
Make sure you copy your .config, once altered to /somewhere/safe/ (Backup) .. *then* run make mrproper, and re-copy back the .config into src/ build dir.
Hope this helps
[1]
Actually, exact errors were;$ make
Code:
Build/linux-2.6.37/linux-2.6.37/scripts/gcc-version.sh: line 25: ngcc: command not found
/Build/linux-2.6.37/linux-2.6.37/scripts/gcc-version.sh: line 26: ngcc: command not found
/Build/linux-2.6.37/linux-2.6.37/arch/x86/Makefile:81: stack protector enabled but no compiler support
make: ngcc: Command not found
CHK include/linux/version.h
CHK include/generated/utsrelease.h
CC kernel/bounds.s
/bin/sh: ngcc: command not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
That stack protector error doesn't seem to be an issue either now, however i haven't looked into the cause, and kernel is compiling ok for now
Last edited by enouf; 02-05-2011 at 07:12 AM.
Reason: alteration, additional info
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.