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]

cross-build fails, target host:powerpc, build host:x86_64


Hello,

  While trying to cross build binutils for a target host powerpc, on a
build host x86_64 it fails (for me) when configuring opcodes. When the
build host is a x86_32, it does not fail and it works correctly.

mkdir -p -- ./opcodes
Configuring in ./opcodes
configure: creating cache ./config.cache
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... powerpc-unknown-linux-gnu
checking for x86_64-linux-gnu-gcc... gcc
checking for C compiler default output file name...
configure: error: in
`/home/zumbi/buildcross/trunk/powerpc/binutils-2.19.91.20090923-1/builddir-powerpc-linux-gnu/opcodes':
configure: error: C compiler cannot create executables
See `config.log' for more details.
make[2]: *** [configure-opcodes] Error 1

Is this a binutils or autoconf bug? or maybe a bug in my toolchain?

EXTRA
Binutils Configuration
=============


Build host toolchain information:
===================
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian
4.3.4-3' --with-bugurl=file:///usr/share/doc/gcc-4.3/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 --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--enable-mpfr --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.3.4 (Debian 4.3.4-3)


Attachment config.log

-- 
 Héctor Orón
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

  $ /home/zumbi/buildcross/trunk/powerpc/binutils-2.19.91.20090923/opcodes/configure --cache-file=./config.cache --with-gnu-as --with-gnu-ld --enable-targets=powerpc64-linux-gnu --enable-shared --prefix=/usr --with-pkgversion=GNU Binutils for Debian --program-transform-name=s&^&powerpc-linux-gnu-& --disable-option-checking --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=powerpc-linux-gnu --srcdir=../../opcodes

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

hostname = ant
uname -m = x86_64
uname -r = 2.6.30-1-amd64
uname -s = Linux
uname -v = #1 SMP Sat Aug 15 18:09:19 UTC 2009

/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: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/X11R6/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: powerpc-unknown-linux-gnu
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 (Debian 4.3.4-3) 4.3.4
Copyright (C) 2008 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.3.4-3' --with-bugurl=file:///usr/share/doc/gcc-4.3/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 --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --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.3.4 (Debian 4.3.4-3) 
configure:2850: $? = 0
configure:2839: gcc -V >&5
gcc: '-V' option must have argument
configure:2850: $? = 1
configure:2839: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: 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 `/home/zumbi/buildcross/trunk/powerpc/binutils-2.19.91.20090923/builddir-powerpc-linux-gnu/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=powerpc-linux-gnu
ac_cv_host=x86_64-pc-linux-gnu
ac_cv_prog_CC=gcc
ac_cv_target=powerpc-unknown-linux-gnu

## ----------------- ##
## 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&^&powerpc-linux-gnu-&'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='powerpc-unknown-linux-gnu'
target_alias='powerpc-linux-gnu'
target_cpu='powerpc'
target_noncanonical=''
target_os='linux-gnu'
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]