Complie uCLibc with ARM

Peter S. Mazinger ps.m at gmx.net
Thu Jan 19 09:23:43 UTC 2006


On Thu, 19 Jan 2006, yanjun lu wrote:

>  Hi guys
>       In Fedora Core 3 OS/Linux, Is there complie uClibc with ARM avaiable? As for me , I never to do this successfully, It thousand petty for me. well I post my steps as below, BTW the kernel is 2.6.6 from offical in /usr/src/:
>   1>tar the lastest version of uCLibc from offical 
>   2>make menuconfig
>   3>Do nothing expect for select ARM as target,then save and exit.
>   4>make
>   5>I receive this error message:
>  
>  [root at root uClibc-0.9.26]# make menuconfig
>  rm -f -r include/bits
>  install -d include/bits
>  #
>  # using defaults found in .config
>  #
>  
>  
>  *** End of uClibc configuration.
>  *** Check the top-level Makefile for additional configuration options.
>  
>  [root at root uClibc-0.9.26]# make
>  + ./extra/scripts/fix_includes.sh -k /usr/src/linux -t arm
>  Current kernel version is 2.6.6
>  
>  
>  Using kernel headers from 2.6.6 for architecture 'arm'
>          provided in directory /usr/src/linux
>  
>  
>  
>  
>  The symlink /usr/src/linux/include/asm is missing\!
>  Perhaps you forgot to configure your kernel source?
>  You really should configure your kernel source tree so I
>  do not have to try and guess about this sort of thing.

configure first as it says your kernel sources for your preferred arm

>  
>  Attempting to guess a usable value....
>  
>  
>  + ln -fs /usr/src/linux/include/asm-arm include/asm
>  + set +x
>  + TOPDIR=.
>  + CC=gcc
>  + /bin/sh extra/scripts/gen_bits_syscall_h.sh
>  In file included from ./include/linux/config.h:4,
>                   from ./include/linux/linkage.h:4,
>                   from ./include/asm/unistd.h:16:
>  /usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in user space
>  In file included from ./include/linux/config.h:4,
>                   from ./include/linux/linkage.h:4,
>                   from ./include/asm/unistd.h:16,
>                   from <stdin>:1:
>  /usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in user space
>  + cmp include/bits/sysnum.h include/bits/sysnum.h.new
>  + mv -f include/bits/sysnum.h.new include/bits/sysnum.h
>  make -C libc/sysdeps/linux/common headers
>  make[1]: Entering directory `/home/uClibc-0.9.26/libc/sysdeps/linux/common'
>  ln -fs ../libc/sysdeps/linux/common/fpu_control.h ../../../..//include/
>  make[1]: Leaving directory `/home/uClibc-0.9.26/libc/sysdeps/linux/common'
>  make -C libc/sysdeps/linux/arm headers
>  make[1]: Entering directory `/home/uClibc-0.9.26/libc/sysdeps/linux/arm'
>  ln -fs ../libc/sysdeps/linux/arm/fpu_control.h ../../../..//include/
>  make[1]: Leaving directory `/home/uClibc-0.9.26/libc/sysdeps/linux/arm'
>  make -C  ldso
>  make[1]: Entering directory `/home/uClibc-0.9.26/ldso'
>  ln -fs ../../include/elf.h include/
>  ln -fs ../ldso/arm/boot1_arch.h include/
>  ln -fs ../ldso/arm/ld_syscalls.h include/
>  ln -fs ../ldso/arm/ld_sysdep.h include/
>  make -C ldso;
>  make[2]: Entering directory `/home/uClibc-0.9.26/ldso/ldso'
>  echo "const char *_dl_progname=\""ld-uClibc.so.0"\";" > _dl_progname.h
>  echo "#include \"arm/elfinterp.c\"" >> _dl_progname.h
>  gcc  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing  -fstrict-ali asing -Os    -mlittle-endian -mtune=arm710 -march=armv3 -fPIC -DUCLIBC_RUNTIME_P REFIX=\"/usr/arm-linux-uclibc/\" -fno-builtin -nostdinc -I../../ldso/include -I.  -I../../include -I/usr/lib/gcc/i386-redhat-linux/3.4.2/include -I../libdl -c ar m/resolve.S -o arm/resolve.o
>  cc1: error: invalid option `little-endian'

update your compiler/your toolchain is not properly set up (use buildroot 
if in doubt)

Peter

>  arm/resolve.S:0: error: bad value (armv3) for -march= switch
>  arm/resolve.S:0: error: bad value (arm710) for -mtune= switch
>  make[2]: *** [arm/resolve.o] Error 1
>  make[2]: Leaving directory `/home/uClibc-0.9.26/ldso/ldso'
>  make[1]: *** [all] Error 2
>  make[1]: Leaving directory `/home/uClibc-0.9.26/ldso'
>  make: *** [_dir_ldso] Error 2
>  [root at root uClibc-0.9.26]#
>  
>  
>  
> 
> __________________________________________________
> ¸Ï¿ì×¢²áÑÅ»¢³¬´óÈÝÁ¿Ãâ·ÑÓÊÏä?
> http://cn.mail.yahoo.com

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2




More information about the uClibc mailing list