Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94619 - grub 0.96-r1 configure error: cannot create executables
Summary: grub 0.96-r1 configure error: cannot create executables
Status: RESOLVED DUPLICATE of bug 90846
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-31 06:51 UTC by Tiago Freire
Modified: 2005-07-05 00:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tiago Freire 2005-05-31 06:51:09 UTC
After the error first popped, during an emerge -uD world, I ran commented out my
CFLAGS and tried again. same error. ran revdep-rebuild twice, just to be sure.
there were a couple libreries which were rebuilt. still got the same error.
Which is weird, since other things compile nicely on my machine, e.g. KDE 3.4
which I just emerged. 

Reproducible: Always
Steps to Reproduce:
1. emerge grub
2. !!!error
3.

Actual Results:  
configure failed

Expected Results:  
grub should have compiled succesfully

Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3-vanilla,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, May 13 2005, 13:07:29)]
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo
http://ftp.heanet.ie/pub/gentoo/ http://gentoo.seren.com/gentoo
ftp://mirror.nutsmaas.nl/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 3dnowex X aac aalib acl acpi alsa apache2 arts artswrappersuid avi
berkdb bidi bitmap-fonts bzlib calendar canna caps cdparanoia cdr cjk crypt cups
curl curlwrappers dba dga doc dts dv dvb dvd dvdr dvdread encode esd ethereal
evo fam fbcon ffmpeg flac font-server foomaticdb fortran ftp gd gdbm gif gmp
gnutls gpm gstreamer gtk gtk2 hardenedphp i8x0 iconv imagemagick imap imlib
innodb interbase ipv6 java jp2 jpeg jpeg2k junit kde kdeenablefinal kdexdeltas
lcms ldap libwww lm_sensors lzw lzw-tiff mad maildir mailwrapper mbox mcal mhash
mime mmap mng motif mozdevelop mozilla mozsvg mp3 mpeg mppe-mppc mysql mysqli
nas ncurses nls nptl nvidia oav odbc offensive ogg oggvorbis openal opengl oss
pam pcntl pcre pda perl php pic plotutils png posix postgres ppds prelude
profile python qt quicktime rdesktop readline samba sasl scanner sdl session
shared sharedmem slang sndfile snmp soap sockets sox speex spell spl sqlite ssl
svg symlink tcpd theora threads tidy tiff tokenizer truetype truetype-fonts
type1-fonts unicode usb userlocales utf8 vhosts vorbis wddx wifi win32 wmf xine
xml2 xmlrpc xmms xpm xprint xrandr xsl xv xvid yahoo zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2005-05-31 08:12:16 UTC
you probably dont have 32bit sandbox/toolchain setup properly ...

you should post the config.log so we know the exact error
Comment 2 Tiago Freire 2005-05-31 11:38:33 UTC
This file contains any messages produced by compilers while 
running configure, to aid debugging if configure makes a mistake. 
 
It was created by GRUB configure 0.96, which was 
generated by GNU Autoconf 2.59.  Invocation command line was 
 
  $ ./configure --prefix=/usr --host=x86_64-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 
 
## --------- ## 
## Platform. ## 
## --------- ## 
 
hostname = xiru 
uname -m = x86_64 
uname -r = 2.6.11-gentoo-r7 
uname -s = Linux 
uname -v = #1 Wed May 18 11:27:20 BRT 2005 
 
/usr/bin/uname -p = AMD Athlon(tm) 64 Processor 3000+ 
/bin/uname -X     = unknown 
 
/bin/arch              = x86_64 
/usr/bin/arch -k       = unknown 
/usr/convex/getsysinfo = unknown 
hostinfo               = unknown 
/bin/machine           = unknown 
/usr/bin/oslevel       = unknown 
/bin/universe          = unknown 
 
PATH: /sbin 
PATH: /usr/sbin 
PATH: /usr/lib/portage/bin 
PATH: /bin 
PATH: /usr/bin 
PATH: /usr/local/bin 
PATH: /opt/bin 
PATH: /usr/x86_64-pc-linux-gnu/gcc-bin/3.4.3 
PATH: /opt/blackdown-jdk-1.4.2.01/bin 
PATH: /opt/blackdown-jdk-1.4.2.01/jre/bin 
PATH: /usr/qt/3/bin 
PATH: /usr/kde/3.4/sbin 
PATH: /usr/kde/3.4/bin 
PATH: /usr/kde/3.3/sbin 
PATH: /usr/kde/3.3/bin 
PATH: /opt/vmware/bin 
 
## ----------- ## 
## Core tests. ## 
## ----------- ## 
 
configure:1435: checking for a BSD-compatible install 
configure:1490: result: /bin/install -c 
configure:1501: checking whether build environment is sane 
configure:1544: result: yes 
configure:1601: checking for gawk 
configure:1617: found /bin/gawk 
configure:1627: result: gawk 
configure:1637: checking whether make sets $(MAKE) 
configure:1657: result: yes 
configure:1736: checking for x86_64-pc-linux-gnu-strip 
configure:1752: found /usr/bin/x86_64-pc-linux-gnu-strip 
configure:1762: result: x86_64-pc-linux-gnu-strip 
configure:1828: checking build system type 
configure:1846: result: x86_64-unknown-linux-gnu 
configure:1854: checking host system type 
configure:1868: result: x86_64-pc-linux-gnu 
configure:1892: checking whether to enable maintainer-specific portions of 
Makefiles 
configure:1901: result: no 
configure:1979: checking for x86_64-pc-linux-gnu-gcc 
configure:1995: found /usr/bin/x86_64-pc-linux-gnu-gcc 
configure:2005: result: x86_64-pc-linux-gnu-gcc 
configure:2063: checking for x86_64-pc-linux-gnu-gcc 
configure:2089: result: x86_64-pc-linux-gnu-gcc 
configure:2371: checking for C compiler version 
configure:2374: x86_64-pc-linux-gnu-gcc --version </dev/null >&5 
x86_64-pc-linux-gnu-gcc (GCC) 3.4.3 20041125 (Gentoo Hardened Linux 3.4.3-r1, 
ssp-3.4.3-0, pie-8.7.7) 
Copyright (C) 2004 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. 
 
configure:2377: $? = 0 
configure:2379: x86_64-pc-linux-gnu-gcc -v </dev/null >&5 
Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/specs 
Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/vanilla.specs 
Configured with: /var/tmp/portage/gcc-3.4.3-r1/work/gcc-3.4.3/configure 
--enable-version-specific-runtime-libs --prefix=/usr 
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.3 
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include 
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3 
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3/man 
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3/info 
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include/g++-v3 
--host=x86_64-pc-linux-gnu --disable-altivec --enable-nls 
--without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu 
--with-system-zlib --disable-checking --disable-werror 
--disable-libunwind-exceptions --enable-shared --enable-threads=posix 
--enable-multilib --disable-libgcj --enable-languages=c,c++,f77 
Thread model: posix 
gcc version 3.4.3 20041125 (Gentoo Hardened Linux 3.4.3-r1, ssp-3.4.3-0, 
pie-8.7.7) 
configure:2382: $? = 0 
configure:2384: x86_64-pc-linux-gnu-gcc -V </dev/null >&5 
x86_64-pc-linux-gnu-gcc: `-V' must come at the start of the command line 
configure:2387: $? = 1 
configure:2410: checking for C compiler default output file name 
configure:2413: x86_64-pc-linux-gnu-gcc -m32    conftest.c  >&5 
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: 
cannot find /emul/linux/x86/lib/libc.so.6 
collect2: ld returned 1 exit status 
configure:2416: $? = 1 
configure: failed program was: 
| /* confdefs.h.  */ 
| 
| #define PACKAGE_NAME "GRUB" 
| #define PACKAGE_TARNAME "grub" 
| #define PACKAGE_VERSION "0.96" 
| #define PACKAGE_STRING "GRUB 0.96" 
| #define PACKAGE_BUGREPORT "bug-grub@gnu.org" 
| #define PACKAGE "grub" 
| #define VERSION "0.96" 
| /* end confdefs.h.  */ 
| 
| int 
| main () 
| { 
| 
|   ; 
|   return 0; 
| } 
configure:2455: error: C compiler cannot create executables 
See `config.log' for more details. 
 
## ---------------- ## 
## Cache variables. ## 
## ---------------- ## 
 
ac_cv_build=x86_64-unknown-linux-gnu 
ac_cv_build_alias=x86_64-unknown-linux-gnu 
ac_cv_env_CC_set= 
ac_cv_env_CC_value= 
ac_cv_env_CFLAGS_set= 
ac_cv_env_CFLAGS_value= 
ac_cv_env_CPPFLAGS_set= 
ac_cv_env_CPPFLAGS_value= 
ac_cv_env_CPP_set= 
ac_cv_env_CPP_value= 
ac_cv_env_LDFLAGS_set= 
ac_cv_env_LDFLAGS_value= 
ac_cv_env_build_alias_set= 
ac_cv_env_build_alias_value= 
ac_cv_env_host_alias_set=set 
ac_cv_env_host_alias_value=x86_64-pc-linux-gnu 
ac_cv_env_target_alias_set= 
ac_cv_env_target_alias_value= 
ac_cv_host=x86_64-pc-linux-gnu 
ac_cv_host_alias=x86_64-pc-linux-gnu 
ac_cv_path_install='/bin/install -c' 
ac_cv_prog_AWK=gawk 
ac_cv_prog_CC=x86_64-pc-linux-gnu-gcc 
ac_cv_prog_STRIP=x86_64-pc-linux-gnu-strip 
ac_cv_prog_make_make_set=yes 
grub_cv_prog_objcopy_absolute=yes 
 
## ----------------- ## 
## Output variables. ## 
## ----------------- ## 
 
ACLOCAL='${SHELL} /var/tmp/portage/grub-0.96-r1/work/grub-0.96/missing --run 
aclocal-1.8' 
AMDEPBACKSLASH='' 
AMDEP_FALSE='' 
AMDEP_TRUE='' 
AMTAR='${SHELL} /var/tmp/portage/grub-0.96-r1/work/grub-0.96/missing --run 
tar' 
AUTOCONF='${SHELL} /var/tmp/portage/grub-0.96-r1/work/grub-0.96/missing --run 
autoconf' 
AUTOHEADER='${SHELL} /var/tmp/portage/grub-0.96-r1/work/grub-0.96/missing 
--run autoheader' 
AUTOMAKE='${SHELL} /var/tmp/portage/grub-0.96-r1/work/grub-0.96/missing --run 
automake-1.8' 
AWK='gawk' 
BUILD_EXAMPLE_KERNEL_FALSE='' 
BUILD_EXAMPLE_KERNEL_TRUE='' 
CC='x86_64-pc-linux-gnu-gcc' 
CCAS='' 
CCASFLAGS='' 
CCDEPMODE='' 
CFLAGS='-m32 ' 
CPP='' 
CPPFLAGS='' 
CYGPATH_W='echo' 
DEFS='' 
DEPDIR='' 
DISKLESS_SUPPORT_FALSE='' 
DISKLESS_SUPPORT_TRUE='' 
ECHO_C='' 
ECHO_N='-n' 
ECHO_T='' 
EGREP='' 
EXEEXT='' 
FSYS_CFLAGS='' 
GRAPHICS_SUPPORT_FALSE='' 
GRAPHICS_SUPPORT_TRUE='' 
GRUB_CFLAGS='' 
GRUB_LIBS='' 
HERCULES_SUPPORT_FALSE='' 
HERCULES_SUPPORT_TRUE='' 
INSTALL_DATA='${INSTALL} -m 644' 
INSTALL_PROGRAM='${INSTALL}' 
INSTALL_SCRIPT='${INSTALL}' 
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s' 
LDFLAGS='' 
LIBOBJS='' 
LIBS='' 
LTLIBOBJS='' 
MAINT='#' 
MAINTAINER_MODE_FALSE='' 
MAINTAINER_MODE_TRUE='#' 
MAKEINFO='${SHELL} /var/tmp/portage/grub-0.96-r1/work/grub-0.96/missing --run 
makeinfo' 
NETBOOT_DRIVERS='' 
NETBOOT_SUPPORT_FALSE='' 
NETBOOT_SUPPORT_TRUE='' 
NET_CFLAGS='' 
NET_EXTRAFLAGS='' 
OBJCOPY='' 
OBJEXT='' 
PACKAGE='grub' 
PACKAGE_BUGREPORT='bug-grub@gnu.org' 
PACKAGE_NAME='GRUB' 
PACKAGE_STRING='GRUB 0.96' 
PACKAGE_TARNAME='grub' 
PACKAGE_VERSION='0.96' 
PATH_SEPARATOR=':' 
PERL='' 
RANLIB='' 
SERIAL_SPEED_SIMULATION_FALSE='' 
SERIAL_SPEED_SIMULATION_TRUE='' 
SERIAL_SUPPORT_FALSE='' 
SERIAL_SUPPORT_TRUE='' 
SET_MAKE='' 
SHELL='/bin/sh' 
STAGE1_CFLAGS='' 
STAGE2_CFLAGS='' 
STRIP='x86_64-pc-linux-gnu-strip' 
VERSION='0.96' 
ac_ct_CC='' 
ac_ct_OBJCOPY='' 
ac_ct_RANLIB='' 
ac_ct_STRIP='' 
am__fastdepCC_FALSE='' 
am__fastdepCC_TRUE='' 
am__include='' 
am__leading_dot='.' 
am__quote='' 
bindir='${exec_prefix}/bin' 
build='x86_64-unknown-linux-gnu' 
build_alias='' 
build_cpu='x86_64' 
build_os='linux-gnu' 
build_vendor='unknown' 
datadir='/usr/lib/grub' 
exec_prefix='/' 
host='x86_64-pc-linux-gnu' 
host_alias='x86_64-pc-linux-gnu' 
host_cpu='x86_64' 
host_os='linux-gnu' 
host_vendor='pc' 
includedir='${prefix}/include' 
infodir='/usr/share/info' 
install_sh='/var/tmp/portage/grub-0.96-r1/work/grub-0.96/install-sh' 
libdir='/lib' 
libexecdir='${exec_prefix}/libexec' 
localstatedir='/var/lib' 
mandir='/usr/share/man' 
mkdir_p='mkdir -p -- .' 
oldincludedir='/usr/include' 
prefix='/usr' 
program_transform_name='s,x,x,' 
sbindir='${exec_prefix}/sbin' 
sharedstatedir='${prefix}/com' 
sysconfdir='/etc' 
target_alias='' 
 
## ----------- ## 
## confdefs.h. ## 
## ----------- ## 
 
#define PACKAGE "grub" 
#define PACKAGE_BUGREPORT "bug-grub@gnu.org" 
#define PACKAGE_NAME "GRUB" 
#define PACKAGE_STRING "GRUB 0.96" 
#define PACKAGE_TARNAME "grub" 
#define PACKAGE_VERSION "0.96" 
#define VERSION "0.96" 
 
configure: exit 77 
 
Comment 3 Tiago Freire 2005-05-31 11:41:46 UTC
Recently, I have upgraded my profile from 2004.3 to 2005.0. Is there a simple 
testcase for me to find out if the 32 bit 'stuff' is broken? And, if I am not 
asking too much, point me the instructions on how to fix it (if it is indeed 
broken)? Thanks 
Comment 4 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-06-01 08:30:44 UTC
This looks more like a .la problem, with the /emul paths hardcoded.  Try this:

find / -name "*.la" -exec grep -H "/emul/linux/x86/lib/libc.so.6" {} \;

That should print out any .la files explicitly referencing that library.
Comment 5 Tiago Freire 2005-06-02 10:40:49 UTC
alas, the magic line printed nothing, yet it does not compile. 
Comment 6 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-06-02 13:41:54 UTC
The way to test would be to compile some test file 32-bit using

gcc -m32 -o test test.c

test.c could be as simple as a hello-world program, something like this:

#include <stdio.h>
int main(int argc, char**argv)
{
   printf("hello world\n");
   return (0);
}

The error message from that might be helpful.
Comment 7 Jeremy Huddleston (RETIRED) gentoo-dev 2005-07-04 21:27:55 UTC

*** This bug has been marked as a duplicate of 93769 ***
Comment 8 Jeremy Huddleston (RETIRED) gentoo-dev 2005-07-05 00:05:06 UTC
I'm on crack... it's not a dupe

How did you upgrade to 2005.0?  You've still got leftover emul-glibc stuff... 
You don't seem to have emerged glibc under 2005.0.
Comment 9 Jeremy Huddleston (RETIRED) gentoo-dev 2005-07-05 00:44:01 UTC
Looks like this is a dupe of #90846.  Try rm -rf /emul and re-emerge the emul
packages.  If that doesn't work, then please reopen...

*** This bug has been marked as a duplicate of 90846 ***