Created attachment 379960 [details] emerge --info '=app-editors/vim-7.4.273::gentoo' Vim fails to build while running the configure script. The configure script fails to find ncurses (Which is installed, I assure you.) This behaviour occurs when I enable the ruby USE flag for Vim. It was suggested that I should emerge ncurses without the tininfo USE flag to alleviate the problem, but I did not have that USE flag enabled in the first place. Build output below: [32;01m * [39;49;00mPackage: app-editors/vim-7.4.273 [32;01m * [39;49;00mRepository: gentoo [32;01m * [39;49;00mMaintainer: vim@gentoo.org [32;01m * [39;49;00mUSE: X abi_x86_64 acl amd64 elibc_glibc gpm kernel_linux nls python python_single_target_python3_3 python_targets_python2_7 python_targets_python3_3 ruby userland_GNU vim-pager [32;01m * [39;49;00mFEATURES: preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking vim-7.4.tar.bz2 to /var/tmp/portage/app-editors/vim-7.4.273/work >>> Unpacking vim-patches-7.4.273.patch.bz2 to /var/tmp/portage/app-editors/vim-7.4.273/work >>> Source unpacked in /var/tmp/portage/app-editors/vim-7.4.273/work >>> Preparing source in /var/tmp/portage/app-editors/vim-7.4.273/work/vim74 ... [32;01m*[0m Applying vim-patches-7.4.273.patch ... [A[111C [34;01m[ [32;01mok[34;01m ][0m >>> Source prepared. >>> Configuring source in /var/tmp/portage/app-editors/vim-7.4.273/work/vim74 ... make -j7 -j1 -C src autoconf make: Entering directory `/var/tmp/portage/app-editors/vim-7.4.273/work/vim74/src' if test ! -f configure.save; then mv configure configure.save; fi autoconf sed -e 's+>config.log+>auto/config.log+' -e 's+\./config.log+auto/config.log+' configure > auto/configure chmod 755 auto/configure mv -f configure.save configure rm -rf autom4te.cache rm -f auto/config.status auto/config.cache make: Leaving directory `/var/tmp/portage/app-editors/vim-7.4.273/work/vim74/src' ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --with-modified-by=Gentoo-7.4.273 --with-features=huge --enable-multibyte --enable-acl --disable-cscope --enable-gpm --disable-luainterp --without-luajit --enable-nls --disable-perlinterp --disable-mzschemeinterp --enable-rubyinterp --disable-selinux --disable-tclinterp --enable-python3interp --enable-gui=no --disable-darwin --with-x configure: creating cache auto/config.cache checking whether make sets $(MAKE)... yes checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc 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-gnu-gcc accepts -g... yes checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for library containing strerror... none required checking for gawk... gawk checking for strip... (cached) /bin/true faking strip checking for ANSI C header files... yes checking for sys/wait.h that is POSIX.1 compatible... yes checking --enable-fail-if-missing argument... no checking for recent clang version... no configure: checking for buggy tools... - sh is 'GNU bash, version 4.2.45(1)-release (x86_64-pc-linux-gnu) Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software; you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.' - probably OK. - sed is 'GNU sed version 4.2.1 Copyright (C) 2009 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, to the extent permitted by law. GNU sed home page: <http://www.gnu.org/software/sed/>. General help using GNU software: <http://www.gnu.org/gethelp/>. E-mail bug reports to: <bug-gnu-utils@gnu.org>. Be sure to include the word ``sed'' somewhere in the ``Subject:'' field.'. checking for BeOS... no checking for QNX... no checking for Darwin (Mac OS X)... no checking AvailabilityMacros.h usability... no checking AvailabilityMacros.h presence... no checking for AvailabilityMacros.h... no checking --with-local-dir argument... Defaulting to /usr/local checking --with-vim-name argument... Defaulting to vim checking --with-ex-name argument... Defaulting to ex checking --with-view-name argument... Defaulting to view checking --with-global-runtime argument... no checking --with-modified-by argument... Gentoo-7.4.273 checking if character set is EBCDIC... no checking --disable-smack argument... no checking linux/xattr.h usability... yes checking linux/xattr.h presence... yes checking for linux/xattr.h... yes checking attr/xattr.h usability... yes checking attr/xattr.h presence... yes checking for attr/xattr.h... yes checking for XATTR_NAME_SMACKEXEC in linux/xattr.h... no checking --disable-selinux argument... yes checking --with-features argument... huge checking --with-compiledby argument... no checking --disable-xsmp argument... no checking --disable-xsmp-interact argument... no checking --enable-luainterp argument... no checking --enable-mzschemeinterp argument... no checking --enable-perlinterp argument... no checking --enable-pythoninterp argument... no checking --enable-python3interp argument... yes checking for python3... /usr/bin/python3.3 checking Python version... 3.3 checking Python is 3.0 or better... yep checking Python's abiflags... checking Python's install prefix... /usr checking Python's execution prefix... /usr checking Python's configuration directory... /usr/lib64/python3.3/config-3.3 checking if -pthread should be used... yes checking if compile and link flags for Python 3 are sane... yes checking if -fPIE can be added for Python3... yes checking --enable-tclinterp argument... no checking --enable-rubyinterp argument... yes checking --with-ruby-command argument... defaulting to ruby checking for ruby... /usr/bin/ruby checking Ruby version... OK checking Ruby rbconfig... RbConfig checking Ruby header files... /usr/include/ruby-1.9.1 checking --enable-cscope argument... no checking --enable-workshop argument... no checking --disable-netbeans argument... no checking for socket in -lsocket... no checking for gethostbyname in -lnsl... no checking whether compiling netbeans integration is possible... no checking --enable-sniff argument... no checking --enable-multibyte argument... yes checking --enable-hangulinput argument... no checking --enable-xim argument... defaulting to auto checking --enable-fontset argument... no checking for xmkmf... no checking for X... libraries /usr/lib, headers checking whether -R must be followed by a space... neither works checking for dnet_ntoa in -ldnet... no checking for dnet_ntoa in -ldnet_stub... no checking for gethostbyname... no checking for gethostbyname in -lnsl... (cached) no checking for gethostbyname in -lbsd... no checking for connect... no checking for connect in -lsocket... no checking for remove... no checking for remove in -lposix... no checking for shmat... no checking for shmat in -lipc... no checking for IceConnectionNumber in -lICE... no Corrected X includes to /usr/include checking if X11 header files can be found... yes checking for _XdmcpAuthDoIt in -lXdmcp... no checking for IceOpenConnection in -lICE... no checking for XpmCreatePixmapFromData in -lXpm... no checking if X11 header files implicitly declare return values... no checking size of wchar_t is 2 bytes... yes checking --enable-gui argument... no GUI support checking X11/SM/SMlib.h usability... yes checking X11/SM/SMlib.h presence... yes checking for X11/SM/SMlib.h... yes checking for CYGWIN environment... no checking whether toupper is broken... no checking whether __DATE__ and __TIME__ work... yes checking whether __attribute__((unused)) is allowed... yes checking elf.h usability... yes checking elf.h presence... yes checking for elf.h... yes checking for main in -lelf... no checking for dirent.h that defines DIR... yes checking for library containing opendir... no checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking stdint.h usability... yes checking stdint.h presence... yes checking for stdint.h... yes checking stdlib.h usability... yes checking stdlib.h presence... yes checking for stdlib.h... yes checking string.h usability... yes checking string.h presence... yes checking for string.h... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking sys/utsname.h usability... yes checking sys/utsname.h presence... yes checking for sys/utsname.h... yes checking termcap.h usability... yes checking termcap.h presence... yes checking for termcap.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking sgtty.h usability... yes checking sgtty.h presence... yes checking for sgtty.h... yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/types.h usability... yes checking sys/types.h presence... yes checking for sys/types.h... yes checking termio.h usability... yes checking termio.h presence... yes checking for termio.h... yes checking iconv.h usability... yes checking iconv.h presence... yes checking for iconv.h... yes checking inttypes.h usability... yes checking inttypes.h presence... yes checking for inttypes.h... yes checking langinfo.h usability... yes checking langinfo.h presence... yes checking for langinfo.h... yes checking math.h usability... yes checking math.h presence... yes checking for math.h... yes checking unistd.h usability... yes checking unistd.h presence... yes checking for unistd.h... yes checking stropts.h usability... yes checking stropts.h presence... yes checking for stropts.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking sys/resource.h usability... yes checking sys/resource.h presence... yes checking for sys/resource.h... yes checking sys/systeminfo.h usability... no checking sys/systeminfo.h presence... no checking for sys/systeminfo.h... no checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking sys/stream.h usability... no checking sys/stream.h presence... no checking for sys/stream.h... no checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking libc.h usability... no checking libc.h presence... no checking for libc.h... no checking sys/statfs.h usability... yes checking sys/statfs.h presence... yes checking for sys/statfs.h... yes checking poll.h usability... yes checking poll.h presence... yes checking for poll.h... yes checking sys/poll.h usability... yes checking sys/poll.h presence... yes checking for sys/poll.h... yes checking pwd.h usability... yes checking pwd.h presence... yes checking for pwd.h... yes checking utime.h usability... yes checking utime.h presence... yes checking for utime.h... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking libintl.h usability... yes checking libintl.h presence... yes checking for libintl.h... yes checking libgen.h usability... yes checking libgen.h presence... yes checking for libgen.h... yes checking util/debug.h usability... no checking util/debug.h presence... no checking for util/debug.h... no checking util/msg18n.h usability... no checking util/msg18n.h presence... no checking for util/msg18n.h... no checking frame.h usability... no checking frame.h presence... no checking for frame.h... no checking sys/acl.h usability... yes checking sys/acl.h presence... yes checking for sys/acl.h... yes checking sys/access.h usability... no checking sys/access.h presence... no checking for sys/access.h... no checking sys/sysinfo.h usability... yes checking sys/sysinfo.h presence... yes checking for sys/sysinfo.h... yes checking wchar.h usability... yes checking wchar.h presence... yes checking for wchar.h... yes checking wctype.h usability... yes checking wctype.h presence... yes checking for wctype.h... yes checking for sys/ptem.h... no checking for sys/sysctl.h... yes checking for pthread_np.h... no checking strings.h usability... yes checking strings.h presence... yes checking for strings.h... yes checking if strings.h can be included after string.h... yes checking whether x86_64-pc-linux-gnu-gcc needs -traditional... no checking for an ANSI C-conforming const... yes checking for working volatile... yes checking for mode_t... yes checking for off_t... yes checking for pid_t... yes checking for size_t... yes checking for uid_t in sys/types.h... yes checking for uint32_t... yes checking whether time.h and sys/time.h may both be included... yes checking for ino_t... yes checking for dev_t... yes checking whether byte ordering is bigendian... no checking for rlim_t... yes checking for stack_t... yes checking whether stack_t has an ss_base field... no checking --with-tlib argument... empty: automatic terminal library selection checking for tgetent in -ltinfo... no checking for tgetent in -lncurses... no checking for tgetent in -ltermlib... no checking for tgetent in -ltermcap... no checking for tgetent in -lcurses... no no terminal library found checking for tgetent()... configure: error: NOT FOUND! You need to install a terminal library; for example ncurses. Or specify the name of the library with --with-tlib. [31;01m*[0m ERROR: app-editors/vim-7.4.273::gentoo failed (configure phase): [31;01m*[0m econf failed [31;01m*[0m [31;01m*[0m Call stack: [31;01m*[0m ebuild.sh, line 93: Called src_configure [31;01m*[0m environment, line 3203: Called econf '--with-modified-by=Gentoo-7.4.273' '--with-features=huge' '--enable-multibyte' '--enable-acl' '--disable-cscope' '--enable-gpm' '--disable-luainterp' '--without-luajit' '--enable-nls' '--disable-perlinterp' '--disable-mzschemeinterp' '--enable-rubyinterp' '--disable-selinux' '--disable-tclinterp' '--enable-python3interp' '--enable-gui=no' '--disable-darwin' '--with-x' [31;01m*[0m phase-helpers.sh, line 584: Called die [31;01m*[0m The specific snippet of code: [31;01m*[0m die "econf failed" [31;01m*[0m [31;01m*[0m If you need support, post the output of `emerge --info '=app-editors/vim-7.4.273::gentoo'`, [31;01m*[0m the complete build log and the output of `emerge -pqv '=app-editors/vim-7.4.273::gentoo'`. [31;01m*[0m The complete build log is located at '/var/tmp/portage/app-editors/vim-7.4.273/temp/build.log'. [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/app-editors/vim-7.4.273/temp/environment'. [31;01m*[0m Working directory: '/var/tmp/portage/app-editors/vim-7.4.273/work/vim74' [31;01m*[0m S: '/var/tmp/portage/app-editors/vim-7.4.273/work/vim74'
I should mention gvim is similarly afflicted.
Just tested vim-7.4.326 and it has the same problem for me.
Please attach the config.log file to this bug report.
Created attachment 380014 [details] /var/tmp/portage/app-editors/vim-7.4.273/work/vim74/src/auto/config.log My apologies. It seems this bug is invalid. I had no idea that configure scripts compile small C programs to test for available features. I have link-time optimization enabled globally and selectively disabled for packages which fail to emerge with a linking error. I previously believed this problem was unrelated to my use of link-time optimization. However, when I read the config.log I noticed that one of the aforementioned C programs failed to compile with a linking error. I just now disabled link-time optimization for Vim, and it emerged completely with the ruby USE flag. Thanks for the help.