cannot install grub on a brand new installation. I keeps asking for ncurses and ncurses is PLENTY installed. config.status: creating netboot/Makefile config.status: creating util/grub-image config.status: creating util/grub-install config.status: creating util/grub-md5-crypt config.status: creating util/grub-terminfo config.status: creating util/grub-set-default config.status: creating config.h config.status: executing depfiles commands * ERROR: sys-boot/grub-0.97-r12 failed (compile phase): * USE=ncurses but curses not found * * Call stack: * ebuild.sh, line 93: Called src_compile * environment, line 4099: Called die * The specific snippet of code: * use ncurses && ! grep -qs "HAVE_LIBCURSES.*1" config.h && die "USE=ncurses but curses not found"; * * If you need support, post the output of `emerge --info '=sys-boot/grub-0.97-r12'`, * the complete build log and the output of `emerge -pqv '=sys-boot/grub-0.97-r12'`. * The complete build log is located at '/var/tmp/portage/sys-boot/grub-0.97-r12/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-boot/grub-0.97-r12/temp/environment'. * Working directory: '/var/tmp/portage/sys-boot/grub-0.97-r12/work/grub-0.97' * S: '/var/tmp/portage/sys-boot/grub-0.97-r12/work/grub-0.97' >>> Failed to emerge sys-boot/grub-0.97-r12, Log file: >>> '/var/tmp/portage/sys-boot/grub-0.97-r12/temp/build.log' * Messages for package sys-boot/grub-0.97-r12: * ERROR: sys-boot/grub-0.97-r12 failed (compile phase): * USE=ncurses but curses not found * * Call stack: * ebuild.sh, line 93: Called src_compile * environment, line 4099: Called die * The specific snippet of code: * use ncurses && ! grep -qs "HAVE_LIBCURSES.*1" config.h && die "USE=ncurses but curses not found"; * * If you need support, post the output of `emerge --info '=sys-boot/grub-0.97-r12'`, * the complete build log and the output of `emerge -pqv '=sys-boot/grub-0.97-r12'`. * The complete build log is located at '/var/tmp/portage/sys-boot/grub-0.97-r12/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-boot/grub-0.97-r12/temp/environment'. * Working directory: '/var/tmp/portage/sys-boot/grub-0.97-r12/work/grub-0.97' * S: '/var/tmp/portage/sys-boot/grub-0.97-r12/work/grub-0.97'
livecd conf.d # emerge --info Portage 2.1.11.31 (default/linux/amd64/10.0/x32, gcc-4.7.1, glibc-2.16.0, 3.5.7-gentoo x86_64) ================================================================= System uname: Linux-3.5.7-gentoo-x86_64-Intel-R-_Atom-TM-_CPU_D525_@_1.80GHz-with-gentoo-2.1 Timestamp of tree: Sat, 12 Jan 2013 23:00:01 +0000 ld GNU ld (GNU Binutils) 2.22 app-shells/bash: 4.2_p37 dev-lang/python: 2.7.3-r2, 3.2.3 dev-util/pkgconfig: 0.27.1 sys-apps/baselayout: 2.1-r1 sys-apps/openrc: 0.11.8 sys-apps/sandbox: 2.6 sys-devel/autoconf: 2.68 sys-devel/automake: 1.11.6 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 4.7.1 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 3.6 (virtual/os-headers) sys-libs/glibc: 2.16.0 Repositories: gentoo ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnux32" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnux32" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--as-needed" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acl amd64 berkdb bindist bzip2 cli cracklib crypt cups cxx dri fortran gdbm gpm iconv ipv6 mmx modules mudflap multilib ncurses nls nptl openmp pam pcre pppd readline session sse sse2 ssl tcpd unicode zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
livecd portage # cat /var/tmp/portage/sys-boot/grub-0.97-r12/temp/build.log * Package: sys-boot/grub-0.97-r12 * Repository: gentoo * Maintainer: base-system@gentoo.org floppym@gentoo.org * USE: amd64 elibc_glibc kernel_linux multilib ncurses userland_GNU * FEATURES: sandbox * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found kernel object directory: * /lib/modules/3.6.11-gentoo/build * Found sources for kernel version: * 3.6.11-gentoo * Checking for suitable kernel configuration options... [ ok ] >>> Unpacking source... >>> Unpacking grub-0.97.tar.gz to /var/tmp/portage/sys-boot/grub-0.97-r12/work >>> Unpacking splash.xpm.gz to /var/tmp/portage/sys-boot/grub-0.97-r12/work >>> Unpacking grub-0.97-patches-1.14.tar.bz2 to /var/tmp/portage/sys-boot/grub-0.97-r12/work * Grub will support the default maximum kernel size of 9 Mb (GRUB_MAX_KERNEL_SIZE) * Applying various patches (bugfixes/updates) ... * 001_all_grub-0.95.20040823-splash.patch ... [ ok ] * 002_all_grub-0.97-splashimage-safety.patch ... [ ok ] * 003_all_grub-0.97-example-rescue-shell.patch ... [ ok ] * 005_all_grub-0.96-PIC.patch ... [ ok ] * 008_all_grub-0.97-AM_PROG_AS.patch ... [ ok ] * 010_all_grub-0.96-bounced-checks.patch ... [ ok ] * 011_all_grub-0.97-varargs.patch ... [ ok ] * 012_all_grub-0.97-gcc46.patch ... [ ok ] * 015_all_grub-0.96-unsigned-addresses.patch ... [ ok ] * 016_all_grub-0.97-multiboot-memory-amount.patch ... [ ok ] * 018_all_grub-0.97-config-file-chk.patch ... [ ok ] * 040_all_grub-0.96-nxstack.patch ... [ ok ] * 060_all_grub-0.96-netboot-pic.patch ... [ ok ] * 070_all_grub-0.97-initrd_max_address.patch ... [ ok ] * 090_all_grub-0.97-intelmac.patch ... [ ok ] * 100_all_grub-0.97-splashimage-example.patch ... [ ok ] * 110_all_grub-0.97-ptable-fix.patch ... [ ok ] * 300_all_grub-0.97-pie-safety.patch ... [ ok ] * 410_all_grub-0.97-dhcp-vendorclass.patch ... [ ok ] * 420_all_grub-0.97-chainload-logical.patch ... [ ok ] * 550_all_grub-0.97-long-commandline.patch ... [ ok ] * 600_all_grub-0.97-gpt-partition-table.patch ... [ ok ] * 700_all_grub-0.97-grub-install_addsyncs.patch ... [ ok ] * 710_all_grub-0.97-grub-install_regexp.patch ... [ ok ] * 720_all_grub-0.97-grub-install_aoe_support.patch ... [ ok ] * 800_all_grub-0.97-crossreference_manpages.patch ... [ ok ] * 810_all_grub-0.97-ext3_256byte_inode.patch ... [ ok ] * 820_all_grub-0.97-cvs-sync.patch ... [ ok ] * 821_all_grub-0.97-grub-special_device_names.patch ... [ ok ] * 822_all_grub-0.97-geometry-26kernel.patch ... [ ok ] * 825_all_grub-0.97-automake-pkglib.patch ... [ ok ] * 830_all_grub-0.97-raid_cciss.patch ... [ ok ] * 840_all_grub-0.97_kvm_vda.patch ... [ ok ] * 850_all_grub-0.97_ext4.patch ... [ ok ] * 860_all_grub-0.97-pie.patch ... [ ok ] * 900_all_grub-0.97-no-strict-aliasing.patch ... [ ok ] * 901_all_grub-0.97-fix-gcc46-reboot-issue.patch ... [ ok ] * 908_all_grub-0.97-no-sse.patch ... [ ok ] * Done with patching * Running eautoreconf in '/var/tmp/portage/sys-boot/grub-0.97-r12/work/grub-0.97' ... * Running aclocal ... [ ok ] * Running autoconf ... [ ok ] * Running autoheader ... [ ok ] * Running automake --add-missing --copy ... [ ok ] >>> Source unpacked in /var/tmp/portage/sys-boot/grub-0.97-r12/work >>> Compiling source in /var/tmp/portage/sys-boot/grub-0.97-r12/work/grub-0.97 ... * econf: updating grub-0.97/config.sub with /usr/share/gnuconfig/config.sub * econf: updating grub-0.97/config.guess with /usr/share/gnuconfig/config.guess ./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/lib --datadir=/usr/lib/grub --exec-prefix=/ --disable-auto-linux-mem-opt --with-curses checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking whether to enable maintainer-specific portions of Makefiles... no checking for i686-pc-linux-gnu-gcc... x86_64-pc-linux-gnux32-gcc -m32 checking for i686-pc-linux-gnu-gcc... (cached) x86_64-pc-linux-gnux32-gcc -m32 checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-pc-linux-gnux32-gcc -m32 accepts -g... yes checking for x86_64-pc-linux-gnux32-gcc -m32 option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of x86_64-pc-linux-gnux32-gcc -m32... gcc3 checking dependency style of x86_64-pc-linux-gnux32-gcc -m32... gcc3 checking for i686-pc-linux-gnu-ranlib... no checking for ranlib... ranlib checking whether optimization for size works... yes checking whether gcc has -fno-stack-protector... yes checking whether gcc has -fPIE on as default... no checking whether -Wundef works... yes checking whether -falign-loops works... yes checking whether linker accepts `--build-id=none'... yes checking for i686-pc-linux-gnu-objcopy... no checking for objcopy... objcopy checking if C symbols get an underscore after compilation... no checking whether objcopy works for absolute addresses... (cached) yes checking whether addr32 must be in the same line as the instruction... yes checking for .code16 addr32 assembler support... yes checking whether an absolute indirect call/jump must not be prefixed with an asterisk... no checking if start is defined by the compiler... no checking if _start is defined by the compiler... yes checking if __bss_start is defined by the compiler... yes checking if _edata is defined by the compiler... yes checking if edata is defined by the compiler... yes checking if end is defined by the compiler... yes checking if _end is defined by the compiler... yes checking for opendisk in -lutil... no checking for wgetch in -lncurses... no checking for wgetch in -lcurses... no checking how to run the C preprocessor... x86_64-pc-linux-gnux32-gcc -m32 -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking ncurses/curses.h usability... no checking ncurses/curses.h presence... no checking for ncurses/curses.h... no checking ncurses.h usability... yes checking ncurses.h presence... yes checking for ncurses.h... yes checking curses.h usability... yes checking curses.h presence... yes checking for curses.h... yes configure: creating ./config.status config.status: creating Makefile config.status: creating stage1/Makefile config.status: creating stage2/Makefile config.status: creating docs/Makefile config.status: creating lib/Makefile config.status: creating util/Makefile config.status: creating grub/Makefile config.status: creating netboot/Makefile config.status: creating util/grub-image config.status: creating util/grub-install config.status: creating util/grub-md5-crypt config.status: creating util/grub-terminfo config.status: creating util/grub-set-default config.status: creating config.h config.status: executing depfiles commands * ERROR: sys-boot/grub-0.97-r12 failed (compile phase): * USE=ncurses but curses not found * * Call stack: * ebuild.sh, line 93: Called src_compile * environment, line 4099: Called die * The specific snippet of code: * use ncurses && ! grep -qs "HAVE_LIBCURSES.*1" config.h && die "USE=ncurses but curses not found"; * * If you need support, post the output of `emerge --info '=sys-boot/grub-0.97-r12'`, * the complete build log and the output of `emerge -pqv '=sys-boot/grub-0.97-r12'`. * The complete build log is located at '/var/tmp/portage/sys-boot/grub-0.97-r12/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-boot/grub-0.97-r12/temp/environment'. * Working directory: '/var/tmp/portage/sys-boot/grub-0.97-r12/work/grub-0.97' * S: '/var/tmp/portage/sys-boot/grub-0.97-r12/work/grub-0.97'
Resolving with the user on chat; he was using an experimental x32 profile which masks dependency versions he needs, he has thus changed to plain amd64.