emerge ncurses fails. See makefile tracing of error at the end of report. make[1]: Leaving directory `/var/tmp/portage/ncurses-5.4-r6/work/narrowc/include' cd ncurses && make DESTDIR="" sources make[1]: Entering directory `/var/tmp/portage/ncurses-5.4-r6/work/narrowc/ncurses' sh /var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses/base/MKlib_gen.sh "gcc -E -DHAVE_CONFIG_H -I../ncurses -I/var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses -I/var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses/../include -I. -I../include -D_GNU_SOURCE -DNDEBUG" "gawk" generated <../include/curses.h | \ fgrep undef >../include/nomacros.h gawk -f /var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses/tinfo/MKnames.awk /var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses/../include/Caps cat namehdr boolnames boolfnames numnames numfnames strnames strfnames nameftr >names.c cat namehdr boolcodes numcodes strcodes codeftr >codes.c rm -f namehdr nameftr codeftr boolnames boolfnames boolcodes numnames numfnames numcodes strnames strfnames strcodes gcc -o make_hashno -DHAVE_CONFIG_H -I../ncurses -I/var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses -DHAVE_CONFIG_H -I../ncurses -I/var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses -I/var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses/../include -I. -I../include -D_GNU_SOURCE -DNDEBUG -O3 -march=c3-2 -pipe -DMAIN_PROGRAM /var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses/tinfo/comp_hash.c -Wl,-O1 sh /var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses/tinfo/MKcaptab.awk gawk /var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses/../include/Caps > comp_captab.c /var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses/tinfo/MKcaptab.awk: line 20: ./make_hash: No such file or directory /var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses/tinfo/MKcaptab.awk: line 21: ./make_hash: No such file or directory sh /var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses/tty/MKexpanded.sh "gcc -E" -DHAVE_CONFIG_H -I../ncurses -I/var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses -I/var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses/../include -I. -I../include -D_GNU_SOURCE -DNDEBUG > expanded.c sh /var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses/tinfo/MKfallback.sh /usr/share/terminfo /var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/misc/terminfo.src >fallback.c gcc -o make_keysno -DHAVE_CONFIG_H -I../ncurses -I/var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses -DHAVE_CONFIG_H -I../ncurses -I/var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses -I/var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses/../include -I. -I../include -D_GNU_SOURCE -DNDEBUG -O3 -march=c3-2 -pipe /var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses/tinfo/make_keys.c -Wl,-O1 AWK=gawk sh /var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/ncurses/tinfo/MKkeys_list.sh /var/tmp/portage/ncurses-5.4-r6/work/ncurses-5.4/include/Caps | sort >keys.list ./make_keys keys.list > init_keytry.h /bin/sh: ./make_keys: No such file or directory make[1]: *** [init_keytry.h] Error 127 make[1]: Leaving directory `/var/tmp/portage/ncurses-5.4-r6/work/narrowc/ncurses' make: *** [sources] Error 2 !!! ERROR: sys-libs/ncurses-5.4-r6 failed. !!! Function do_compile, Line 84, Exitcode 2 !!! make sources failed !!! If you need support, post the topmost build error, NOT this status message. Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r6 i686) ================================================================= System uname: 2.6.11-gentoo-r6 i686 VIA Nehemiah Gentoo Base System version 1.6.10 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Apr 16 2005, 13:27:16)] dev-lang/python: 2.3.5 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.9.5, 1.8.5-r3, 1.7.9-r1, 1.5, 1.4_p6, 1.6.3 sys-devel/binutils: 2.15.92.0.2-r8 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.6.11 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=c3-2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=c3-2 -pipe" DISTDIR="/usr/gentoo-distfiles" FEATURES="autoaddcvs autoconfig buildpkg cvs digest distlocks sandbox sfperms strict userpriv" GENTOO_MIRRORS="http://gentoo.ccccom.com http://gentoo.seren.com/gentoo" LDFLAGS="-Wl,-O1" MAKEOPTS="-j2" PKGDIR="/usr/gentoo-packages/x86-c3-2" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="" USE="x86 X aalib acl acpi alsa apache2 apm avi bcmath berkdb bitmap-fonts bluetooth bzlib calendar caps cdb cdr cle266 clearpasswd crypt cscope ctyp curl curlwrappers dio directfb divx4linux dv dvb dvd emboss encode esd exif expat extensions fam fbcon ffmpeg fftw flac foomaticdb ftp gd gdbm ggi gif gmp gpm ieee1394 ipv6 jack joystick jpeg libwww lirc lm_sensors mcal mikmod mmap mmx mng mp3 mpeg mysql nas ncurses nptl opengl pam pcap pcntl pcre perl pic plotutils png pnp posix ppds python qdbm quicktime readline ruby scanner sdl session skey slang slp snmp socks5 spell sse ssl svg svga symlink sysfs szip tcltk theora tiff truetype truetype-fonts type1 type1-fonts ungif usb userlocales v4l v4l2 vcd wifi win32codecs wmf xine xinerama xml xml2 xosd xvid yv12 zlib zvbi" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LINGUAS The source of the error is in /var/tmp/portage/ncurses-5.4-r6/work/narrowc/ncurses/Makefile: ==== init_keytry.h: make_keys$(BUILD_EXEEXT) keys.list ./make_keys keys.list > $@ keys.list : $(tinfo)/MKkeys_list.sh AWK=$(AWK) sh $(tinfo)/MKkeys_list.sh $(TERMINFO_CAPS) | sort >$@ make_keys$(BUILD_EXEEXT) : \ $(tinfo)/make_keys.c \ names.c $(BUILD_CC) -o $@ $(BUILD_CCFLAGS) $(tinfo)/make_keys.c $(BUILD_LDFLAGS) $(BUILD_LIBS) === 'make_keys$(BUILD_EXEEXT)' is built, but 'make_keys' is called.
Do you have an environment variable BUILD_EXEEXT=no ? At least setting that reproduces it. BUILD_EXEEXT should be ".exe" for Windows targets, otherwise empty.
no, but tracing the config.site stuff I was working on, I do see that it's picked up "ac_cv_exeext=${ac_cv_exeext=no}" from somewhere, and the bug goes away when the 'no' is taken out of that line. anyway, such a bug should still be fixed in the sources.
The problem is the upstream provided configure script. The affected macro AC_EXEEXT of Gentoo looks sane to me. We should regenerate configure out of configure.in Was not able to do that, most likely some minor changes in configure.in needed. Or should be updated to autoconf 2.59 level ..
both are valid issues ... the Makefile should actually have $(BUILD_EXEEXT) and it shouldnt matter :) does `env -i PATH=/usr/bin emerge ncurses` work ?
Responding to comment #2, it sounds as if the configure script's been regenerated using a different version of autoconf (which probably would not work).
please post a full build log ... `emerge ncurses >& log`