[uClibc] compile error in buildroot

오광만 okman at netcodec.com
Thu Aug 5 14:12:36 UTC 2004


Hi,
I am trying to compile arm-toolchains using buildroot.

target system:          Intel X-scale, linux
host system:             RedHat 9.0
buildroot version:      buildroot-20040803.tar.bz2
linux kernel version : 2.4.18
uclibc version         : 0.9.26
gcc version            : gcc-3.3.4
binutils version       : 2.14.90.0.6

problem is as follows.

/usr/local/arm-toolchains/buildroot/toolchain_build_arm/gcc-3.3.4/gcc/config/arm/unknown-elf.h:94:1: warning: this is the location of the previous definition
gcc  -DUSE_UCLIBC -g -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H  -o g++ \
  gcc.o g++spec.o intl.o prefix.o version.o     ../libiberty/libiberty.a
rm -f g++-cross
cp g++ g++-cross
make[2]: Leaving directory `/usr/local/arm-toolchains/buildroot/toolchain_build_arm/gcc-3.3-final/gcc'
Configuring in arm-linux-uclibc/libiberty
creating cache ../config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... makeinfo
checking for perl... perl
checking host system type... arm-unknown-linux-uclibc
checking build system type... i386-pc-linux-gnu
checking for arm-linux-uclibc-ar... arm-linux-uclibc-ar
checking for arm-linux-uclibc-ranlib... arm-linux-uclibc-ranlib
checking for gcc...  /usr/local/arm-toolchains/buildroot/toolchain_build_arm/gcc-3.3-final/gcc/xgcc -B/usr/local/arm-toolchains/buildroot/toolchain_build_arm/gcc-3.3-final/gcc/ -B/usr/local/arm-toolchains/buildroot/build_arm/staging_dir/arm-linux-uclibc/bin/ -B/usr/local/arm-toolchains/buildroot/build_arm/staging_dir/arm-linux-uclibc/lib/ -isystem /usr/local/arm-toolchains/buildroot/build_arm/staging_dir/arm-linux-uclibc/include
checking whether we are using GNU C... yes
checking whether  /usr/local/arm-toolchains/buildroot/toolchain_build_arm/gcc-3.3-final/gcc/xgcc -B/usr/local/arm-toolchains/buildroot/toolchain_build_arm/gcc-3.3-final/gcc/ -B/usr/local/arm-toolchains/buildroot/build_arm/staging_dir/arm-linux-uclibc/bin/ -B/usr/local/arm-toolchains/buildroot/build_arm/staging_dir/arm-linux-uclibc/lib/ -isystem /usr/local/arm-toolchains/buildroot/build_arm/staging_dir/arm-linux-uclibc/include accepts -g... yes
checking whether  /usr/local/arm-toolchains/buildroot/toolchain_build_arm/gcc-3.3-final/gcc/xgcc -B/usr/local/arm-toolchains/buildroot/toolchain_build_arm/gcc-3.3-final/gcc/ -B/usr/local/arm-toolchains/buildroot/build_arm/staging_dir/arm-linux-uclibc/bin/ -B/usr/local/arm-toolchains/buildroot/build_arm/staging_dir/arm-linux-uclibc/lib/ -isystem /usr/local/arm-toolchains/buildroot/build_arm/staging_dir/arm-linux-uclibc/include and cc understand -c and -o together... yes
checking for POSIXized ISC... no
checking for working const... yes
checking for inline... inline
checking for a BSD compatible install... /usr/bin/install -c
Appending /usr/local/arm-toolchains/buildroot/toolchain_build_arm/gcc-3.3.4/libiberty/../config/mh-armpic to xhost-mkfrag
checking how to run the C preprocessor...  /usr/local/arm-toolchains/buildroot/toolchain_build_arm/gcc-3.3-final/gcc/xgcc -B/usr/local/arm-toolchains/buildroot/toolchain_build_arm/gcc-3.3-final/gcc/ -B/usr/local/arm-toolchains/buildroot/build_arm/staging_dir/arm-linux-uclibc/bin/ -B/usr/local/arm-toolchains/buildroot/build_arm/staging_dir/arm-linux-uclibc/lib/ -isystem /usr/local/arm-toolchains/buildroot/build_arm/staging_dir/arm-linux-uclibc/include -E
checking for sys/file.h... yes
checking for sys/param.h... yes
checking for limits.h... yes
checking for stdlib.h... yes
checking for malloc.h... yes
checking for string.h... yes
checking for unistd.h... yes
checking for strings.h... yes
checking for sys/time.h... yes
checking for time.h... yes
checking for sys/resource.h... yes
checking for sys/stat.h... yes
checking for sys/mman.h... yes
checking for fcntl.h... yes
checking for alloca.h... yes
checking for sys/pstat.h... no
checking for sys/sysmp.h... no
checking for sys/sysinfo.h... yes
checking for machine/hal_sysinfo.h... no
checking for sys/table.h... no
checking for sys/sysctl.h... yes
checking for sys/systemcfg.h... no
checking for sys/wait.h that is POSIX.1 compatible... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether errno must be declared... no
checking for ANSI C header files... no
checking for uintptr_t... no
checking for pid_t... yes
checking whether the C compiler ( /usr/local/arm-toolchains/buildroot/toolchain_build_arm/gcc-3.3-final/gcc/xgcc -B/usr/local/arm-toolchains/buildroot/toolchain_build_arm/gcc-3.3-final/gcc/ -B/usr/local/arm-toolchains/buildroot/build_arm/staging_dir/arm-linux-uclibc/bin/ -B/usr/local/arm-toolchains/buildroot/build_arm/staging_dir/arm-linux-uclibc/lib/ -isystem /usr/local/arm-toolchains/buildroot/build_arm/staging_dir/arm-linux-uclibc/include -g -Os ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
make[1]: *** [configure-target-libiberty] Error 1
make[1]: Leaving directory `/usr/local/arm-toolchains/buildroot/toolchain_build_arm/gcc-3.3-final'
make: *** [/usr/local/arm-toolchains/buildroot/toolchain_build_arm/gcc-3.3-final/.compiled] Error 2



anyone help me how to fix this problem.

thanks 



- okman

netcodec.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/uclibc/attachments/20040805/b7980c09/attachment-0002.htm 


More information about the uClibc mailing list