This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to configure cross binutils in a sane state?


Hello,

>> configure: error: in
>> `/tmp/upstream/binutils-2.20.1/builddir-arm-linux-gnueabi/opcodes':
>> configure: error: C compiler cannot create executables
>> See `config.log' for more details.
>
> Please see `config.log' for more details.

Previous config.log I sent was failing in other way. My current build
fails with this:
Assembler messages:
Fatal error: selected target format 'elf64-x86-64' unknown
configure:2896: $? = 1
configure:2933: result:
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2939: error: in
`/tmp/binutils-2.20.1/builddir-arm-linux-gnueabi/opcodes':
configure:2943: error: C compiler cannot create executables
See `config.log' for more details.

Attach new opcodes/config.log

If I set --enable-targets=$build_host, then it builds fine, but I
guess this is a bug somewhere.

Kind Regards,
-- 
 Héctor Orón

"Our Sun unleashes tremendous flares expelling hot gas into the Solar
System, which one day will disconnect us."
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.64.  Invocation command line was

  $ /tmp/binutils-2.20.1/opcodes/configure --cache-file=./config.cache --with-gnu-as --with-gnu-ld --enable-shared --enable-plugins --prefix=/usr --with-pkgversion=GNU Binutils for Debian --program-transform-name=s&^&arm-linux-gnueabi-& --disable-option-checking --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=arm-linux-gnueabi --srcdir=../../opcodes

## --------- ##
## Platform. ##
## --------- ##

hostname = eefk2m5
uname -m = x86_64
uname -r = 2.6.32-trunk-vserver-amd64
uname -s = Linux
uname -v = #1 SMP Sun Jan 10 23:45:41 UTC 2010

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /home/zumbi/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/games
PATH: /home/zumbi/bin
PATH: /usr/sbin/
PATH: /usr/local/sbin/
PATH: /sbin/
PATH: /home/zumbi/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2315: creating cache ./config.cache
configure:2420: checking build system type
configure:2434: result: x86_64-pc-linux-gnu
configure:2454: checking host system type
configure:2467: result: x86_64-pc-linux-gnu
configure:2487: checking target system type
configure:2500: result: arm-unknown-linux-gnueabi
configure:2534: checking for x86_64-linux-gnu-gcc
configure:2561: result: gcc
configure:2830: checking for C compiler version
configure:2839: gcc --version >&5
gcc-4.4.real (Debian 4.4.3-3) 4.4.3
Copyright (C) 2010 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:2850: $? = 0
configure:2839: gcc -v >&5
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.3-3' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.3 (Debian 4.4.3-3) 
configure:2850: $? = 0
configure:2839: gcc -V >&5
gcc-4.4.real: '-V' option must have argument
configure:2850: $? = 1
configure:2839: gcc -qversion >&5
gcc-4.4.real: unrecognized option '-qversion'
gcc-4.4.real: no input files
configure:2850: $? = 1
configure:2870: checking for C compiler default output file name
configure:2892: gcc -g -O2    conftest.c  >&5
Assembler messages:
Fatal error: selected target format 'elf64-x86-64' unknown
configure:2896: $? = 1
configure:2933: result: 
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2939: error: in `/tmp/binutils-2.20.1/builddir-arm-linux-gnueabi/opcodes':
configure:2943: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-pc-linux-gnu
ac_cv_env_CC_set=set
ac_cv_env_CC_value=gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-g -O2'
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=set
ac_cv_env_LDFLAGS_value=' '
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=x86_64-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=x86_64-linux-gnu
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=arm-linux-gnueabi
ac_cv_host=x86_64-pc-linux-gnu
ac_cv_prog_CC=gcc
ac_cv_target=arm-unknown-linux-gnueabi

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR=''
AR='ar'
AUTOCONF=''
AUTOHEADER=''
AUTOMAKE=''
AWK='gawk'
BFD_MACHINES=''
BUILD_LIBS=''
BUILD_LIB_DEPS=''
CATALOGS=''
CATOBJEXT=''
CC='gcc'
CCDEPMODE=''
CC_FOR_BUILD='gcc'
CFLAGS='-g -O2'
CGEN_MAINT_FALSE=''
CGEN_MAINT_TRUE=''
CPP=''
CPPFLAGS=''
CYGPATH_W=''
DATADIRNAME=''
DEFS=''
DEPDIR=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
EXEEXT_FOR_BUILD=''
FGREP=''
GENCAT=''
GMSGFMT=''
GREP=''
HDEFINES=''
INCINTL=''
INSTALL_DATA='/usr/bin/install -c -m 644'
INSTALL_LIBBFD_FALSE=''
INSTALL_LIBBFD_TRUE=''
INSTALL_PROGRAM='/usr/bin/install -c'
INSTALL_SCRIPT='/usr/bin/install -c'
INSTALL_STRIP_PROGRAM=''
INSTOBJEXT=''
LD='ld'
LDFLAGS=' '
LIBINTL=''
LIBINTL_DEP=''
LIBM=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
MAINT=''
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE=''
MAKEINFO='makeinfo --split-size=5000000'
MKDIR_P=''
MKINSTALLDIRS=''
MSGFMT=''
MSGMERGE=''
NM='nm'
NMEDIT=''
NO_WERROR=''
OBJDUMP='objdump'
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
POSUB=''
RANLIB='ranlib'
SED='/bin/sed'
SET_MAKE=''
SHARED_DEPENDENCIES=''
SHARED_LDFLAGS=''
SHARED_LIBADD=''
SHELL='/bin/bash'
STRIP=''
USE_NLS=''
VERSION=''
WARN_CFLAGS=''
XGETTEXT=''
ac_ct_CC=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__isrc=''
am__leading_dot=''
am__quote=''
am__tar=''
am__untar=''
archdefs=''
bfdincludedir=''
bfdlibdir=''
bindir='${exec_prefix}/bin'
build='x86_64-pc-linux-gnu'
build_alias='x86_64-linux-gnu'
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='pc'
cgendir=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-pc-linux-gnu'
host_alias='x86_64-linux-gnu'
host_cpu='x86_64'
host_noncanonical=''
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
lt_ECHO='echo'
mandir='${datarootdir}/man'
mkdir_p=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s&^&arm-linux-gnueabi-&'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='arm-unknown-linux-gnueabi'
target_alias='arm-linux-gnueabi'
target_cpu='arm'
target_noncanonical=''
target_os='linux-gnueabi'
target_vendor='unknown'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""

configure: exit 77

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]