[Clfs-dev] Error at cross compiler final stage at Cross-Compiled Linux From Scratch - Sysroot - Version SVN-0.0.1-20090726-ARM

zxx zxx zxxkevin at gmail.com
Mon May 7 19:43:05 PDT 2012


Hi all,
I am a newbie for cfs and want to build linux system for my arm board.
Because I haven't find arm with eglibc in clfs1.2. So I have to choose
Cross-Compiled Linux From Scratch - Sysroot - Version
SVN-0.0.1-20090726-ARM book to build my arm linux system.

I meet a problem when I build gcc-4.4.1 cross compiler final according to
"5.12 gcc-4.4.1-cross compiler final" , here is a error log:

-------------------------------------------------------------------------------------------------------------------------------------
checking for arm-unknown-linux-gnu-strip...
/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/bin/strip
checking for arm-unknown-linux-gnu-gcc...
/home/zxx/sysroot/build/gcc-build/./gcc/xgcc
-B/home/zxx/sysroot/build/gcc-build/./gcc/
-B/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/bin/
-B/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/lib/ -isystem
/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/include -isystem
/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/sys-include
checking for C compiler default output file name... configure: error: in
`/home/zxx/sysroot/build/gcc-build/arm-unknown-linux-gnu/libgomp':
configure: error: C compiler cannot create executables
See `config.log' for more details.
make[1]: *** [configure-target-libgomp] Error 1
make[1]: Leaving directory `/home/zxx/sysroot/build/gcc-build'
make: *** [all] Error 2
exit
-------------------------------------------------------------------------------------------------------------------------------------


and there is libgomp config.log:


--------------------------------------------------------------------------------------------------------------------------------------
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by GNU OpenMP Runtime Library configure 1.0, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ /home/zxx/sysroot/build/gcc-4.4.1/libgomp/configure
--cache-file=./config.cache --with-cross-host=i486-cross-linux-gnu
--prefix=/home/zxx/sysroot/clfs/cross-tools --disable-multilib
--with-sysroot=/home/zxx/sysroot/clfs --disable-nls --enable-shared
--enable-__cxa_atexit --with-mpfr=/home/zxx/sysroot/clfs/cross-tools
--with-gmp=/home/zxx/sysroot/clfs/cross-tools
--with-ppl=/home/zxx/sysroot/clfs/cross-tools
--with-cloog=/home/zxx/sysroot/clfs/cross-tools --enable-c99
--enable-long-long --enable-threads=posix --enable-languages=c,c++
--program-transform-name=s,^,arm-unknown-linux-gnu-,
--with-target-subdir=arm-unknown-linux-gnu --build=i486-cross-linux-gnu
--host=arm-unknown-linux-gnu --target=arm-unknown-linux-gnu
--srcdir=../../../gcc-4.4.1/libgomp

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

hostname = zxx
uname -m = i686
uname -r = 2.6.24-26-generic
uname -s = Linux
uname -v = #1 SMP Tue Dec 1 18:37:31 UTC 2009

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

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

PATH: /home/zxx/sysroot/clfs/cross-tools/bin
PATH: /bin
PATH: /usr/bin


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

configure:1399: loading cache ./config.cache
configure:1516: checking for --enable-version-specific-runtime-libs
configure:1533: result: no
configure:1541: checking for --enable-generated-files-in-srcdir
configure:1558: result: no
configure:1621: checking build system type
configure:1639: result: i486-cross-linux-gnu
configure:1647: checking host system type
configure:1661: result: arm-unknown-linux-gnu
configure:1669: checking target system type
configure:1683: result: arm-unknown-linux-gnu
configure:1725: checking for a BSD-compatible install
configure:1791: result: /usr/bin/install -c
configure:1802: checking whether build environment is sane
configure:1845: result: yes
configure:1910: checking for gawk
configure:1926: found /usr/bin/gawk
configure:1936: result: gawk
configure:1946: checking whether make sets $(MAKE)
configure:1966: result: yes
configure:2042: checking for arm-unknown-linux-gnu-strip
configure:2068: result:
/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/bin/strip
configure:2220: checking for arm-unknown-linux-gnu-gcc
configure:2246: result: /home/zxx/sysroot/build/gcc-build/./gcc/xgcc
-B/home/zxx/sysroot/build/gcc-build/./gcc/
-B/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/bin/
-B/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/lib/ -isystem
/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/include -isystem
/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/sys-include
configure:2530: checking for C compiler version
configure:2533: /home/zxx/sysroot/build/gcc-build/./gcc/xgcc
-B/home/zxx/sysroot/build/gcc-build/./gcc/
-B/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/bin/
-B/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/lib/ -isystem
/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/include -isystem
/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/sys-include
--version </dev/null >&5
xgcc (GCC for Cross-LFS 4.4.1.20090722) 4.4.1
Copyright (C) 2009 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:2536: $? = 0
configure:2538: /home/zxx/sysroot/build/gcc-build/./gcc/xgcc
-B/home/zxx/sysroot/build/gcc-build/./gcc/
-B/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/bin/
-B/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/lib/ -isystem
/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/include -isystem
/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/sys-include -v
</dev/null >&5
Reading specs from /home/zxx/sysroot/build/gcc-build/./gcc/specs
Target: arm-unknown-linux-gnu
Configured with: ../gcc-4.4.1/configure
--prefix=/home/zxx/sysroot/clfs/cross-tools --build=i486-cross-linux-gnu
--host=i486-cross-linux-gnu --target=arm-unknown-linux-gnu
--disable-multilib --with-sysroot=/home/zxx/sysroot/clfs --disable-nls
--enable-shared --enable-languages=c,c++ --enable-__cxa_atexit
--with-mpfr=/home/zxx/sysroot/clfs/cross-tools
--with-gmp=/home/zxx/sysroot/clfs/cross-tools
--with-ppl=/home/zxx/sysroot/clfs/cross-tools
--with-cloog=/home/zxx/sysroot/clfs/cross-tools --enable-c99
--enable-long-long --enable-threads=posix
Thread model: posix
gcc version 4.4.1 (GCC for Cross-LFS 4.4.1.20090722)
configure:2541: $? = 0
configure:2543: /home/zxx/sysroot/build/gcc-build/./gcc/xgcc
-B/home/zxx/sysroot/build/gcc-build/./gcc/
-B/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/bin/
-B/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/lib/ -isystem
/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/include -isystem
/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/sys-include -V
</dev/null >&5
xgcc: '-V' must come at the start of the command line
configure:2546: $? = 1
configure:2569: checking for C compiler default output file name
configure:2572: /home/zxx/sysroot/build/gcc-build/./gcc/xgcc
-B/home/zxx/sysroot/build/gcc-build/./gcc/
-B/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/bin/
-B/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/lib/ -isystem
/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/include -isystem
/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/sys-include -g
-O2     conftest.c  >&5
/home/zxx/sysroot/build/gcc-build/./gcc/cc1: error while loading shared
libraries: /home/zxx/sysroot/build/gcc-build/./gcc/libgcc_s.so.1: ELF file
OS ABI invalid
configure:2575: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "GNU OpenMP Runtime Library"
| #define PACKAGE_TARNAME "libgomp"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU OpenMP Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libgomp"
| #define VERSION "1.0"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2613: error: in
`/home/zxx/sysroot/build/gcc-build/arm-unknown-linux-gnu/libgomp':
configure:2616: error: C compiler cannot create executables
See `config.log' for more details.

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

ac_cv_build=i486-cross-linux-gnu
ac_cv_build_alias=i486-cross-linux-gnu
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_FCFLAGS_set=
ac_cv_env_FCFLAGS_value=
ac_cv_env_FC_set=
ac_cv_env_FC_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i486-cross-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=arm-unknown-linux-gnu
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=arm-unknown-linux-gnu
ac_cv_host=arm-unknown-linux-gnu
ac_cv_host_alias=arm-unknown-linux-gnu
ac_cv_prog_AWK=gawk
ac_cv_prog_CC='/home/zxx/sysroot/build/gcc-build/./gcc/xgcc
-B/home/zxx/sysroot/build/gcc-build/./gcc/
-B/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/bin/
-B/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/lib/ -isystem
/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/include -isystem
/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/sys-include'
ac_cv_prog_STRIP=/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/bin/strip
ac_cv_prog_make_make_set=yes
ac_cv_target=arm-unknown-linux-gnu
ac_cv_target_alias=arm-unknown-linux-gnu

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

ACLOCAL='${SHELL} /home/zxx/sysroot/build/gcc-4.4.1/missing --run
aclocal-1.9'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /home/zxx/sysroot/build/gcc-4.4.1/missing --run tar'
AR='/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/bin/ar'
AUTOCONF='${SHELL} /home/zxx/sysroot/build/gcc-4.4.1/missing --run autoconf'
AUTOHEADER='${SHELL} /home/zxx/sysroot/build/gcc-4.4.1/missing --run
autoheader'
AUTOMAKE='${SHELL} /home/zxx/sysroot/build/gcc-4.4.1/missing --run
automake-1.9'
AWK='gawk'
BUILD_INFO_FALSE=''
BUILD_INFO_TRUE=''
CC='/home/zxx/sysroot/build/gcc-build/./gcc/xgcc
-B/home/zxx/sysroot/build/gcc-build/./gcc/
-B/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/bin/
-B/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/lib/ -isystem
/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/include -isystem
/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/sys-include'
CCDEPMODE=''
CFLAGS='-g -O2  '
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FC=''
FCFLAGS=''
FGREP=''
GENINSRC_FALSE=''
GENINSRC_TRUE='#'
GREP=''
INSTALL_DATA='/usr/bin/install -c -m 644'
INSTALL_PROGRAM='/usr/bin/install -c'
INSTALL_SCRIPT='/usr/bin/install -c'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LD='/home/zxx/sysroot/build/gcc-build/./gcc/collect-ld'
LDFLAGS=''
LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=''
LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO='arm-unknown-linux-gnu-lipo'
LN_S=''
LTLIBOBJS=''
MAINT=''
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE=''
MAKEINFO='makeinfo --split-size=5000000'
NM='/home/zxx/sysroot/build/gcc-build/./gcc/nm'
NMEDIT=''
OBJDUMP='/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/bin/objdump'
OBJEXT=''
OMP_LOCK_25_ALIGN=''
OMP_LOCK_25_KIND=''
OMP_LOCK_25_SIZE=''
OMP_LOCK_ALIGN=''
OMP_LOCK_KIND=''
OMP_LOCK_SIZE=''
OMP_NEST_LOCK_25_ALIGN=''
OMP_NEST_LOCK_25_KIND=''
OMP_NEST_LOCK_25_SIZE=''
OMP_NEST_LOCK_ALIGN=''
OMP_NEST_LOCK_KIND=''
OMP_NEST_LOCK_SIZE=''
OPT_LDFLAGS=''
OTOOL64=''
OTOOL=''
PACKAGE='libgomp'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='GNU OpenMP Runtime Library'
PACKAGE_STRING='GNU OpenMP Runtime Library 1.0'
PACKAGE_TARNAME='libgomp'
PACKAGE_VERSION='1.0'
PATH_SEPARATOR=':'
PERL=''
RANLIB='/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/bin/ranlib'
SECTION_LDFLAGS=''
SED=''
SET_MAKE=''
SHELL='/bin/bash'
STRIP='/home/zxx/sysroot/clfs/cross-tools/arm-unknown-linux-gnu/bin/strip'
USE_FORTRAN_FALSE=''
USE_FORTRAN_TRUE=''
VERSION='1.0'
XCFLAGS=''
XLDFLAGS=''
ac_ct_AR=''
ac_ct_CC=''
ac_ct_DSYMUTIL=''
ac_ct_DUMPBIN=''
ac_ct_FC=''
ac_ct_LIPO=''
ac_ct_NMEDIT=''
ac_ct_OBJDUMP=''
ac_ct_OTOOL64=''
ac_ct_OTOOL=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i486-cross-linux-gnu'
build_alias='i486-cross-linux-gnu'
build_cpu='i486'
build_os='linux-gnu'
build_vendor='cross'
config_path=''
datadir='${prefix}/share'
enable_shared='yes'
enable_static=''
exec_prefix='NONE'
host='arm-unknown-linux-gnu'
host_alias='arm-unknown-linux-gnu'
host_cpu='arm'
host_os='linux-gnu'
host_vendor='unknown'
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/home/zxx/sysroot/build/gcc-4.4.1/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
libtool_VERSION=''
link_gomp=''
localstatedir='${prefix}/var'
lt_ECHO='echo'
mandir='${prefix}/man'
mkdir_p='mkdir -p --'
multi_basedir='../../../gcc-4.4.1/libgomp/..'
oldincludedir='/usr/include'
prefix='/home/zxx/sysroot/clfs/cross-tools'
program_transform_name='s,^,arm-unknown-linux-gnu-,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='arm-unknown-linux-gnu'
target_alias='arm-unknown-linux-gnu'
target_cpu='arm'
target_os='linux-gnu'
target_vendor='unknown'
toolexecdir='$(exec_prefix)/$(target_alias)'
toolexeclibdir='$(toolexecdir)/lib'

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

#define PACKAGE "libgomp"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "GNU OpenMP Runtime Library"
#define PACKAGE_STRING "GNU OpenMP Runtime Library 1.0"
#define PACKAGE_TARNAME "libgomp"
#define PACKAGE_VERSION "1.0"
#define VERSION "1.0"

configure: exit 77

--------------------------------------------------------------------------------------------------------------------------------------



I search this error with google and find this guy have the same error with
me:

http://comments.gmane.org/gmane.linux.lfs.clfs.devel/1442

According thie url, I find the there are 3 solution to solve this problem:

1. using 64bit linux to compile
2. change the configure of gcc (--enable-shared --> --disble-shared)
3. patch the gcc4.4.1

I think the best solution is patch gcc4.4.1, but this "
http://quandary.cross-lfs.org/~animeloe/" is not exist.

Could you give me this patch or some advice to solve this problem?

thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clfs.org/pipermail/clfs-dev-clfs.org/attachments/20120508/a854f2c7/attachment.html>


More information about the Clfs-dev mailing list