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?


Hi Andreas,

Thanks for the quick reply

2010/3/30 Andreas Schwab <schwab@linux-m68k.org>:
>> My libs should be under /usr/arm-linux-gnueabi/lib, why is rpath
>> pointing other directory (*-rpath
>> /usr/x86_64-unknown-linux-gnu/arm-linux-gnueabi/lib*)?
>
> That's the correct place for the host libraries as used by cross
> binutils.
>
>> How should I instruct binutils to use /usr/arm-linux-gnueabi/lib?
>
> Not at all. ?Nothing should be installed there by bintuils. ?It is used
> for target libraries, and binutils does not contain any such library.

Clear then, I was worried about it as for native builds it looks like
rpath usually points to /usr/lib.


>> 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.

configure:2850: $? = 1
configure:2870: checking for C compiler default output file name
configure:2892: gcc -g -O2    conftest.c  >&5
as: symbol lookup error: as: undefined symbol: concat
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/upstream/binutils-2.20.1/builddir-arm-linux-gnueabi/opcodes':
configure:2943: error: C compiler cannot create executables
See `config.log' for more details.


Attached opcodes/config.log

-- 
 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/upstream/binutils-2.20.1/opcodes/configure --cache-file=./config.cache --with-gnu-as --with-gnu-ld --prefix=/usr --datadir=/usr/share/binutils-data/arm-softfloat-linux-gnu/2.20 --infodir=/usr/share/binutils-data/arm-softfloat-linux-gnu/2.20/info --mandir=/usr/share/binutils-data/arm-softfloat-linux-gnu/2.20/man --bindir=/usr/arm-softfloat-linux-gnu/binutils-bin/2.20 --libdir=/usr/lib/binutils/arm-softfloat-linux-gnu/2.20 --libexecdir=/usr/lib/binutils/arm-softfloat-linux-gnu/2.20 --includedir=/usr/lib/binutils/arm-softfloat-linux-gnu/2.20/include --enable-64-bit-bfd --enable-shared --disable-werror --without-included-gettext --with-sysroot=/usr/arm-softfloat-linux-gnu --enable-secureplt --program-transform-name=s&^&arm-softfloat-linux-gnueabi-& --disable-option-checking --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=arm-softfloat-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: i686-pc-linux-gnu
configure:2454: checking host system type
configure:2467: result: i686-pc-linux-gnu
configure:2487: checking target system type
configure:2500: result: arm-softfloat-linux-gnueabi
configure:2534: checking for i686-pc-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
as: symbol lookup error: as: undefined symbol: concat
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/upstream/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=i686-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=i686-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=i686-pc-linux-gnu
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=arm-softfloat-linux-gnueabi
ac_cv_host=i686-pc-linux-gnu
ac_cv_prog_CC=gcc
ac_cv_target=arm-softfloat-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='/usr/arm-softfloat-linux-gnu/binutils-bin/2.20'
build='i686-pc-linux-gnu'
build_alias='i686-pc-linux-gnu'
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
cgendir=''
datadir='/usr/share/binutils-data/arm-softfloat-linux-gnu/2.20'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host='i686-pc-linux-gnu'
host_alias='i686-pc-linux-gnu'
host_cpu='i686'
host_noncanonical=''
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='/usr/lib/binutils/arm-softfloat-linux-gnu/2.20/include'
infodir='/usr/share/binutils-data/arm-softfloat-linux-gnu/2.20/info'
install_sh=''
libdir='/usr/lib/binutils/arm-softfloat-linux-gnu/2.20'
libexecdir='/usr/lib/binutils/arm-softfloat-linux-gnu/2.20'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
lt_ECHO='echo'
mandir='/usr/share/binutils-data/arm-softfloat-linux-gnu/2.20/man'
mkdir_p=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s&^&arm-softfloat-linux-gnueabi-&'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='arm-softfloat-linux-gnueabi'
target_alias='arm-softfloat-linux-gnueabi'
target_cpu='arm'
target_noncanonical=''
target_os='linux-gnueabi'
target_vendor='softfloat'

## ----------- ##
## 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]