# configuration written to .config # scripts/kconfig/conf --silentoldconfig arch/x86/Kconfig make: ngcc: Command not found CHK include/linux/version.h UPD include/linux/version.h CHK include/generated/utsrelease.h UPD 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 # emerge --info Portage 2.2.0_alpha3 (default/linux/amd64/10.0/desktop, gcc-4.4.5, glibc-2.12.1-r3, 2.6.35-gentoo-r8 x86_64) ================================================================= System uname: Linux-2.6.35-gentoo-r8-x86_64-AMD_Phenom-tm-_9950_Quad-Core_Processor-with-gentoo-2.0.1 Timestamp of tree: Sun, 14 Nov 2010 00:00:01 +0000 app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r2 dev-lang/python: 2.6.6-r1, 3.1.2-r4 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 2.0.1-r1 sys-apps/openrc: 0.6.3 sys-apps/sandbox: 2.3-r1 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.3.5, 4.4.5 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.4 sys-devel/make: 3.82 virtual/os-headers: 2.6.35 (sys-kernel/linux-headers) Repositories: gentoo kde-sunset usr-local-portage ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps y --keep-going" FEATURES="assume-digests binpkg-logs buildsyspkg distlocks fixlafiles fixpackages news nostrip notitles parallel-fetch preserve-libs protect-owned sandbox sfperms unknown-features-warn unmerge-logs unmerge-orphans" GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk ftp://mirrors.blueyonder.co.uk/mirrors/gentoo http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ " LANG="en_GB" LC_ALL="en_GB" LDFLAGS="-Wl,-O1" LINGUAS="en_GB en" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages/x86" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/kde-sunset /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3ds 64bit X a52 aac acpi alsa amd64 bash-completion berkdb binary-drivers bittorrent branding bzip2 cairo cdda cddb cdparanoia cdr clamav cli consolekit cups cxx dbase dbus dri dts dv dvd dvdnav dvdr emboss encode examples exif fat ffmpeg firefox flac fuse gdbm gif gimp gpm iconv java jpeg lcms ldap libnotify lm_sensors mad maildir mbox mikmod mmx mng modules moznocompose moznoirc mp3 mp4 mpeg mudflap multilib mysql ncurses nls nptl nptlonly nsplugin ogg opengl openmp pango pcre pdf perl png ppds pppd python qt3 qt3support qt4 readline samba scanner sdl session spell sse sse2 ssl startup-notification svg sysfs tcpd tiff tk transcode truetype udev unicode usb utils vcd vdr videos vim-with-x vorbis wmf x264 xcb xine xml xorg xulrunner xv xvid zlib" ALSA_CARDS="snd_hda_intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="konica minolta" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Did you hit n during the configuration process by accident? Check your config file and also environment variables.
No, definitely not. This happened with 2.6.36 and 2.6.36-r1 on two separate occasions.
This also happens on my other machine, an x86. Here is the culprit: scripts/kconfig/qconf arch/x86/Kconfig /usr/src/linux-2.6.36-gentoo-r1/scripts/gcc-version.sh: line 25: ngcc: command not found /usr/src/linux-2.6.36-gentoo-r1/scripts/gcc-version.sh: line 26: ngcc: command not found make: ngcc: Command not found
Hi all, thanks to my friend oon for this solution : grep CROSS /usr/src/linux/.config replace CONFIG_CROSS_COMPILE="n" to CONFIG_CROSS_COMPILE="" cp /usr/src/linux/.config /usr/src/config_bak cd /usr/src/linux/; make mrproper ; cp ../config_bak .config ; make oldconfig Source : http://www.linuxquestions.org/questions/linux-general-1/error-building-kernel-2-6-36-a-841855/
Re Comment #4: Thanks for the fix - it built fine after that. I had to unmask the latest nvidia-drivers for this kernel.
*** Bug 344711 has been marked as a duplicate of this bug. ***
CONFIG_CROSS_COMPILE expects a toolchain prefix of the sort: "hppa2.0-unknown-linux-gnu-", including the dash. It does not work with a y or n. You can set it as a make command line variable as well: make -j2 CROSS_COMPILE="hppa2.0-unknown-linux-gnu-" and it should then work fine.