|
在FC6上创建交叉编译环境,binutils-2.17.50.0.18 gcc-4.2.1 linux-2.6.22.6 glibc-2.6.1
前面都没出现什么问题,就是到glibc ,出错了,网上搜了一整天也没找到答案,恳请各位指教阿
[root@localhost build-glibc]# CC=arm-linux-gcc AS=arm-linux-as LD=arm-linux-ld
[root@localhost build-glibc]# ../glibc-2.6.1/configure --host=arm-linux --enable-add-ons --enable-shared --with-headers=$TARGET_PREFIX/include --prefix=$PREFIX/arm-linux
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking build system type... i686-pc-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking add-on glibc-ports-2.6.1 for preconfigure fragments... am33 arm hppa m68k mips
configure: running configure fragment for add-on nptl
checking sysdep dirs... glibc-ports-2.6.1/sysdeps/arm/elf glibc-ports-2.6.1/sysdeps/unix/sysv/linux/arm/nptl glibc-ports-2.6.1/sysdeps/unix/sysv/linux/arm glibc-ports-2.6.1/sysdeps/unix/sysv/linux nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet glibc-ports-2.6.1/sysdeps/unix/sysv nptl/sysdeps/unix/sysv sysdeps/unix/sysv glibc-ports-2.6.1/sysdeps/unix/arm glibc-ports-2.6.1/sysdeps/unix nptl/sysdeps/unix sysdeps/unix sysdeps/posix glibc-ports-2.6.1/sysdeps/arm/fpu glibc-ports-2.6.1/sysdeps/arm/nptl glibc-ports-2.6.1/sysdeps/arm sysdeps/wordsize-32 sysdeps/ieee754/flt-32 sysdeps/ieee754/dbl-64 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for arm-linux-gcc... arm-linux-gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-linux-gcc accepts -g... yes
checking for arm-linux-gcc option to accept ANSI C... none needed
checking for gcc... gcc
checking how to run the C preprocessor... arm-linux-gcc -E
checking for arm-linux-g++... no
checking for arm-linux-c++... no
checking for arm-linux-gpp... no
checking for arm-linux-aCC... no
checking for arm-linux-CC... no
checking for arm-linux-cxx... no
checking for arm-linux-cc++... no
checking for arm-linux-cl... no
checking for arm-linux-FCC... no
checking for arm-linux-KCC... no
checking for arm-linux-RCC... no
checking for arm-linux-xlC_r... no
checking for arm-linux-xlC... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether /home/wh/embedded/tools/lib/gcc/arm-linux/4.2.1/../../../../arm-linux/bin/as is GNU as... yes
checking whether /home/wh/embedded/tools/lib/gcc/arm-linux/4.2.1/../../../../arm-linux/bin/ld is GNU ld... yes
checking for /home/wh/embedded/tools/lib/gcc/arm-linux/4.2.1/../../../../arm-linux/bin/as... /home/wh/embedded/tools/lib/gcc/arm-linux/4.2.1/../../../../arm-linux/bin/as
checking version of /home/wh/embedded/tools/lib/gcc/arm-linux/4.2.1/../../../../arm-linux/bin/as... 2.17.50.0.18.20070731, ok
checking for /home/wh/embedded/tools/lib/gcc/arm-linux/4.2.1/../../../../arm-linux/bin/ld... /home/wh/embedded/tools/lib/gcc/arm-linux/4.2.1/../../../../arm-linux/bin/ld
checking version of /home/wh/embedded/tools/lib/gcc/arm-linux/4.2.1/../../../../arm-linux/bin/ld... 2.17.50.0.18.20070731, ok
checking for pwd... /bin/pwd
checking for arm-linux-gcc... (cached) arm-linux-gcc
checking version of arm-linux-gcc... 4.2.1, ok
checking for gnumake... no
checking for gmake... gmake
checking version of gmake... 3.81, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for msgfmt... msgfmt
checking version of msgfmt... 0.14.6, ok
checking for makeinfo... makeinfo
checking version of makeinfo... 4.9, ok
checking for sed... sed
checking version of sed... 4.1.5, ok
checking for autoconf... autoconf
checking whether autoconf works... yes
checking whether ranlib is necessary... no
checking LD_LIBRARY_PATH variable... ok
checking whether GCC supports -static-libgcc... -static-libgcc
checking for bash... /bin/sh
checking for gawk... gawk
checking for perl... /usr/bin/perl
checking for install-info... /home/wh/embedded/tools/bin/install-info
checking for bison... /usr/bin/bison
checking for signed size_t type... no
checking for libc-friendly stddef.h... yes
checking whether we need to use -P to assemble .S files... no
checking whether .text pseudo-op must be used... yes
checking for assembler global-symbol directive... .globl
checking for .set assembler directive... yes
checking for assembler .type directive prefix... %
checking for .symver assembler directive... yes
checking for ld --version-script... yes
checking for .previous assembler directive... yes
checking for .protected and .hidden assembler directive... yes
checking whether __attribute__((visibility())) is supported... yes
checking for broken __attribute__((visibility()))... no
checking for broken __attribute__((alias()))... no
checking whether to put _rtld_local into .sdata section... no
checking for .preinit_array/.init_array/.fini_array support... yes
checking for libunwind-support in compiler... no
checking whether to link against libgcc_eh... no
checking for -z nodelete option... yes
checking for -z nodlopen option... yes
checking for -z initfirst option... yes
checking for -Bgroup option... yes
checking for libgcc_s suffix...
checking for --as-needed option... no
checking whether --noexecstack is desirable for .S files... no
checking for -z combreloc... yes
checking for -z execstack... yes
checking for -fpie... no
checking for --hash-style option... yes
checking for -fno-toplevel-reorder... yes
checking for -fstack-protector... no
checking for -fgnu89-inline... yes
checking whether cc puts quotes around section names... no
checking for assembler .weak directive... yes
checking whether CFI directives are supported... yes
checking for ld --no-whole-archive... yes
checking for gcc -fexceptions... yes
checking for __builtin_expect... yes
checking for __builtin_memset... no
checking for redirection of built-in functions... yes
checking for __thread... yes
checking for tls_model attribute... yes
checking for libgd... no
checking for is_selinux_enabled in -lselinux... no
checking for egrep... grep -E
checking for ANSI C header files... no
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking for long double... no
checking size of long double... 0
running configure fragment for glibc-ports-2.6.1/sysdeps/arm/elf
checking for ARM TLS support... yes
running configure fragment for nptl/sysdeps/pthread
checking for forced unwind support... no
configure: error: forced unwind support is required |
|