When using portage to emerge grub it fails to find ncurses support. If built by hand it finds curses support and links fine. Robbat asked that this be assigned to him. from emerge -u grub 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 from ./configure run by hand with same options checking if _end is defined by the compiler... yes checking for opendisk in -lutil... no checking for wgetch in -lncurses... yes checking for wgetch in -lcurses... yes something is changing the enviroment the question is what!!! Portage 2.1.5_rc2 (default-linux/amd64/2007.0, gcc-4.2.3, glibc-2.7-r2, 2.6.25-rc8-wl x86_64) ================================================================= System uname: 2.6.25-rc8-wl x86_64 AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55 Timestamp of tree: Sun, 06 Apr 2008 19:33:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p33 dev-lang/python: 2.5.1-r5 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.12 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.24 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=athlon64 -msse3 -ffast-math -ftracer -fprefetch-loop-arrays -pipe -fforce-addr -ftree-vectorize" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=athlon64 -msse3 -ffast-math -ftracer -fprefetch-loop-arrays -pipe -fforce-addr -ftree-vectorize" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer nodoc noinfo parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="C" LC_ALL="en_US.utf8" LDFLAGS="-Wl,-O2 -Wl,--as-needed -Wl,--enable-new-dtags -Wl,--sort-common -Wl,-zcombreloc -Wl,--hash-style=both" PKGDIR="/usr/portage/packages" 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="/home/gentoo" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 aac acpi alsa amd64 audit berkdb bitmap-fonts branding bzip2 cdr cpudetection cracklib crypt cups dbus dri dvd dvdr dvdread encode ffmpeg firefox gdm gif gnome gtk hal iconv ipv6 jpeg laptop libssh2 mad midi mmx mmxext moznopango mp3 mudflap ncurses network-cron networkmanager nptl nptlonly nsplugin nss ogg opengl pam pcre perl pic png python readline sdl session spell sse sse2 ssl static svg tcpd tiff truetype-fonts type1-fonts unicode vorbis wifi x264 xinerama xorg xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw copy dshare dsnoop extplug file hooks ladspa lfloat linear meter mulaw multi null rate route share shm asym dmix empty iec958 ioplug plug 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 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" ELIBC="glibc" INPUT_DEVICES="mouse keyboard synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nv nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
jory: 1. please attach the config.log from the side that doesn't detect ncurses. 2. tell me if you have app-emulation/emul-linux-x86-baselibs installed. vapier: I know his CFLAGS are bogus, don't close this please.
the flags shouldnt really affect capability detection. but only the config.log can tell us for sure.
configure:5170: checking for wgetch in -lncurses configure:5205: x86_64-pc-linux-gnu-gcc -o conftest -m32 -g -Wall -Wmissing-prototypes -Wunused -Wshadow -Wpointer-arith -falign-jumps=1 -falign-loops=1 -falign-functions=1 -Wundef -Wl,-O2 -Wl,--as-needed -Wl,--enable-new-dtags -Wl,--sort-common -Wl,-zcombreloc -Wl,--hash-style=both -static conftest.c -lncurses >&5 /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.3/../../../libncurses.a when searching for -lncurses /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libncurses.a when searching for -lncurses /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lncurses collect2: ld returned 1 exit status Of course this is invalid as it is looking for a 32bit and not the 64bit.
jory: I asked for the config.log file, not an extract thereof. 1. Please attach the entire file 2. Confirm that you have app-emulation/emul-linux-x86-baselibs installed (so that /lib32/libncurses.so.5.6 exists).
Created attachment 149067 [details] config.log Yes I have the emulation package installed.
jory: also please attach your /etc/ld.so.conf
jory: Please try: USE=-static emerge grub
this is how it works. we provide the shared libraries for your convenience for multilib, but if you want to build a static 32bit on an amd64 system, then you'll need to provide for that yourself.
(In reply to comment #7) > jory: > Please try: > USE=-static emerge grub > That will work just fine Robin. Thank you