[uClinux-dev] Can't build w/ new distro

Greg Ungerer gerg at snapgear.com
Fri Nov 30 02:21:37 EST 2001


Hi Lance,

Lance Spaulding wrote:
> I'm unable to build a Atmel AT91 system with the latest (20011112)
> distribution.  I'm running 'make menuconfig' in the uClinux-dist/ directory and
> selecting Atmel AT91 as the target and leaving everything else at their
> defaults.  Then I run 'make dep' and 'make.'  The kernel builds fine, but the
> make eventually fails building libc with the following:
> 
> make -C sysdeps
> make[3]: Entering directory `/mnt/lance2/arm/Atmel/lib/libc/sysdeps'
> arm-elf-gcc -O2 -g  -fno-builtin -DEMBED
> -I/mnt/lance2/arm/Atmel/lib/libc/include -I/mnt/lance2/arm/Atmel -Dlinux
> -D__linux__ -D__uClinux__ -Dunix -I/mnt/lance2/arm/Atmel/linux-2.4.x/include
>  -I. -Iarm -c -o arm/clone.o arm/clone.S
> arm-elf-gcc -O2 -g  -fno-builtin -DEMBED
> -I/mnt/lance2/arm/Atmel/lib/libc/include -I/mnt/lance2/arm/Atmel -Dlinux
> -D__linux__ -D__uClinux__ -Dunix -I/mnt/lance2/arm/Atmel/linux-2.4.x/include
>  -I. -Iarm -c -o arm/__longjmp.o arm/__longjmp.S
> arm-elf-gcc -O2 -g  -fno-builtin -DEMBED
> -I/mnt/lance2/arm/Atmel/lib/libc/include -I/mnt/lance2/arm/Atmel -Dlinux
> -D__linux__ -D__uClinux__ -Dunix -I/mnt/lance2/arm/Atmel/linux-2.4.x/include
>  -I. -Iarm -c -o arm/bsd-setjmp.o arm/bsd-setjmp.S
> arm-elf-gcc -O2 -g  -fno-builtin -DEMBED
> -I/mnt/lance2/arm/Atmel/lib/libc/include -I/mnt/lance2/arm/Atmel -Dlinux
> -D__linux__ -D__uClinux__ -Dunix -I/mnt/lance2/arm/Atmel/linux-2.4.x/include
>  -I. -Iarm -c -o arm/bsd-_setjmp.o arm/bsd-_setjmp.S
> arm-elf-gcc -O2 -g  -fno-builtin -DEMBED
> -I/mnt/lance2/arm/Atmel/lib/libc/include -I/mnt/lance2/arm/Atmel -Dlinux
> -D__linux__ -D__uClinux__ -Dunix -I/mnt/lance2/arm/Atmel/linux-2.4.x/include
>  -I. -Iarm   -c -o arm/ptrace.o arm/ptrace.c
> arm/ptrace.c:21: sys/ptrace.h: No such file or directory
> make[3]: *** [arm/ptrace.o] Error 1
> 
> I assume the various vendor/platform combinations in the tarfile should build,
> so I must be missing a configuration step.

Not all vendor/kernel/lib combinations have been tested. It is quite
possible the exact combination you are trying doesn't work.

It looks like you are using linux-2.4.x and uC-libc, is that
right?


>  What do I have to do to get the
> AT91 target to build successfully besides just selecting it in top-level
> config?

My quick 2 second analysis on my build is that it looks like
it is including the standard system "sys/ptrace.h" - which would
be a bad thing. (So you have a /usr/include/sys/ptrace.h file
on your system? - I am guessing not...)

Regards
Greg


------------------------------------------------------------------------
Greg Ungerer  --  Chief Software Wizard        EMAIL:  gerg at snapgear.com
SnapGear                                       PHONE:    +61 7 3435 2888
825 Stanley St,                                  FAX:    +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia              WEB:   www.snapgear.com
This message resent by the uclinux-dev at uclinux.org list server http://www.uClinux.org/



More information about the uClinux-dev mailing list