[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: arm-linux cross compiler



William Xu wrote:
> Harald Krammer <Harald.Krammer@hkr.at> writes:
> 
> 
>>bad news, but buildroot is not possible for you ? I used it with
>>success on my power-pc.
> 
> 
> Oh, i don't know much about uclibc. What're the differences?

The footprint is much smaller with uclibc.
look here for more deatils:
http://www.uclibc.org/FAQ.html

> 
> 
>>Can you show us your problem with  Kegels scrips ?
> 
> 
> This is the case when i use gcc-4.0. I've also tried some other version
> like gcc-3.4, but that complains some internal compiler error, god..
> 

That problems are interesting and if you get problems with gcc you
should report them to the gcc-team to improve gcc.

> BTW, i find it quite annoying that every repeat would start again from
> scratch(download all sources, compiler..), which is quite
> time-consuming..

That is right, but isn't possible to make a generic cross-toolchain for
ARM. The reason is we have a lot of different requremts on ARM.

e.g. compiler version gcc 2.95/3.2/3.3.x/3.4.x/4.0.x
     ( with or without c++/java/pascal/...)
     binutils 2.14 / 2.15 /  2.16 / ...
     libc     glibc 2.2.x/ glibc 2.3.2 / glibc 2.3.5 / uclibc 0.27 /
	      uclibc 0.28 / dietlibc 0.xx
+ patches

You can select on ARM if you need a little end or big endian arch and
last but not least you have to decide if you need a softfloat support or
not.
What is your requirement ?


> 
> williamxu:~/studio/my_repo/crosstool-0.38$ gcc --version
> gcc (GCC) 4.0.3 20051023 (prerelease) (Debian 4.0.2-3)
> Copyright (C) 2005 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.
> 
> ---------------------------------8<------------------------------------- 
> ....
> crosstool: binutils built ok
> + echo 'Install glibc headers needed to build bootstrap compiler -- but only if gcc-3.x'
> Install glibc headers needed to build bootstrap compiler -- but only if gcc-3.x
> + grep -q 'gcc-[34]' /home/william/studio/my_repo/crosstool-0.38/build/arm-unknown-linux-gnu/gcc-4.1-20050709-glibc-2.3.2/gcc-3.3.6/ChangeLog
> + test '!' -f /home/william/share/cross/gcc-4.1-20050709-glibc-2.3.2/arm-unknown-linux-gnu/arm-unknown-linux-gnu/include/features.h
> + mkdir -p build-glibc-headers
> + cd build-glibc-headers
> + test '!' -f Makefile
> + libc_cv_ppc_machine=yes
> + CC=gcc
> + /home/william/studio/my_repo/crosstool-0.38/build/arm-unknown-linux-gnu/gcc-4.1-20050709-glibc-2.3.2/glibc-2.3.2/configure --prefix=/usr --build=powerpc-unknown-linux-gnu --host=arm-unknown-linux-gnu --without-cvs --disable-sanity-checks --with-headers=/home/william/share/cross/gcc-4.1-20050709-glibc-2.3.2/arm-unknown-linux-gnu/arm-unknown-linux-gnu/include --enable-hacker-mode
> checking build system type... powerpc-unknown-linux-gnu
> checking host system type... arm-unknown-linux-gnu
> checking sysdep dirs... sysdeps/arm/elf sysdeps/unix/sysv/linux/arm sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv sysdeps/unix/arm sysdeps/unix sysdeps/posix sysdeps/arm/fpu 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 pwd... /bin/pwd
> checking for arm-unknown-linux-gnu-gcc... gcc
> checking version of gcc... 4.0.3, bad
> checking for gnumake... no
> checking for gmake... no
> checking for make... make
> checking version of make... 3.80, ok
> configure: error:
> *** These critical programs are missing or too old: gcc
> *** Check the INSTALL file for required versions.
> williamxu:~/studio/my_repo/crosstool-0.38$
> ---------------------------------8<------------------------------------- 
> 
I never used Kegels scripts, so I am not sure, if it an option to remove
 the condition. I think you will get more troubles. Try it it with
gcc-3.3 or gcc-3.4.


Nice greetings,
Harald
-- 

Harald Krammer
Brucknerstrasse 33
A - 4020  Linz
AUSTRIA

Mobil +43.(0) 664. 130 59 58
Mail: Harald.Krammer (at) hkr.at



Reply to: