I aready successful compile binutils and gcc for step one.
I try all the way I could found,but I still cant do the next step well. The top guy who knows how to solve the problem, please to give me some advice,thank you.
gcc-4.3.3
binutils-2.19.1
glibc-2.9
uClibc-0.9.30.1
uClibc-0.9.30
linux: FC9
setenv:
Code:
export PROJECT=arm-linux-prj
export PROJROOT=/home/${PROJECT}
export TARGET=arm-linux
export PRJ_PREFIX=${PROJROOT}/tools
export TARGET_PREFIX=${PRJ_PREFIX}/${TARGET}
export ARCH=arm
export CROSS_COMPILE=${TARGET}-
BUILD_CC=gcc CC=${CROSS_COMPILE}gcc AR=${CROSS_COMPILE}ar RANLIB=${CROSS_COMPILE}ranlib AS=${CROSS_COMPILE}as LD=${CROSS_COMPILE}ld
export PATH=${PRJ_PREFIX}/bin:${PATH}
Part 1 try glibc:
Code:
mv -r glibc-ports-2.7 glibc-2.9/ports
../configure --build=i686-pc-linux-gnu --host=$TARGET --prefix="/usr" --enable-add-ons --with-headers=${TARGET_PREFIX}/include --with-binutils=${PRJ_PREFIX}/bin --cache-file=config.cache --enable-kernel=2.6.16.59
configure: loading cache config.cache
checking build system type... i686-pc-linux-gnu
checking host system type... arm-unknown-linux-gnu
configure: running configure fragment for add-on nptl
checking add-on ports for preconfigure fragments... am33 arm hppa m68k mips
checking sysdep dirs... ports/sysdeps/arm/elf ports/sysdeps/unix/sysv/linux/arm/nptl ports/sysdeps/unix/sysv/linux/arm nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread ports/sysdeps/unix/sysv/linux sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet nptl/sysdeps/unix/sysv ports/sysdeps/unix/sysv sysdeps/unix/sysv ports/sysdeps/unix/arm nptl/sysdeps/unix ports/sysdeps/unix sysdeps/unix sysdeps/posix ports/sysdeps/arm/fpu ports/sysdeps/arm/nptl ports/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... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
config.log:
Using built-in specs.
Target: arm-linux
Configured with: ./gcc-4.3.3/configure --target=arm-linux --prefix=/home/arm-linux-prj/tools --without-headers --with-newlib --enable-languages=c
Thread model: posix
gcc version 4.3.3 (GCC)
configure:3285: $? = 0
configure:3292: arm-linux-gcc -V >&5
arm-linux-gcc: '-V' option must have argument
configure:3295: $? = 1
configure:3299: checking for suffix of object files
configure:3325: arm-linux-gcc -c conftest.c >&5
/tmp/ccvXg8mQ.s: Assembler messages:
/tmp/ccvXg8mQ.s:7: Error: junk at end of line, first unrecognized character is `@'
/tmp/ccvXg8mQ.s:8: Error: junk at end of line, first unrecognized character is `@'
/tmp/ccvXg8mQ.s:9: Error: too many memory references for `mov'
/tmp/ccvXg8mQ.s:10: Error: no such instruction: `stmfd sp!,{fp,ip,lr,pc}'
/tmp/ccvXg8mQ.s:11: Error: too many memory references for `sub'
/tmp/ccvXg8mQ.s:12: Error: expecting operand after ','; got nothing
/tmp/ccvXg8mQ.s:13: Error: too many memory references for `mov'
/tmp/ccvXg8mQ.s:14: Error: no such instruction: `ldmfd sp,{fp,sp,pc}'
configure:3328: $? = 1
part 2 try uClibc:
Code:
[root@localhost uClibc-0.9.30]# make CROSS=arm-linux-
AS lib/crt1.o
as: unrecognized option '-EB'
make: *** [lib/crt1.o] Error 1
where is the '-EB' option?
I cant find the option in makefiles. (makerule,makefile.in,etc.)
Why always assembler error?
Is this have relations with my CPU type ?
my pc hardware:
CPU: AMD64_X2
MEM: KINGSTON 1G DDR2
hard discs: 80G