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

Lance Spaulding lance at hpbs4089.boi.hp.com
Fri Nov 30 11:32:44 EST 2001


On Nov 30,  5:21pm, Greg Ungerer wrote:
> Subject: Re: [uClinux-dev] Can't build w/ new distro
>
> 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.

When I grabbed the distribution, I used the AT91 as a model for implementing my
own target -- looks like I might have picked the wrong one to model after.

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

Yes, the defaults during the menuconfig are 2.4 and uc-libc so I just accepted
them and didn't change anything else.  This is in a newly-created directory
with a freshly unpacked distribution tarball.

>
> >  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...)
>

Actually I do have a /usr/include/sys/ptrace.h so I don't think it's trying to
pick up the system includes.  I don't however, have ptrace.h under
lib/libc/include/sys or even a sys/ directory under linux-2.4.x/include/ which
are the two places I believe it's looking for it.  I do have a ptrace.h under
uClibc/include/sys/ as well as under linux-2.4.x/include/asm-armnommu/.  I'm
not familiar enough with the Linux make process to know how it's supposed to
pick up the correct include files for a given architecture?  Should it create
sym-links or should the Makefiles point to the correct directories?

Thanks for your help,
Lance

> 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/
>-- End of excerpt from Greg Ungerer



-- 
###########################+------------------------------------------------+
########  _/       ########|  O-      L A N C E   S P A U L D I N G      O- |
#####    _/           #####|         Research & Development Engineer        |
####    _/_/_/ _/_/_/  ####|             Hewlett-Packard Company            |
####   _/  _/ _/  _/   ####|        LaserJet Copy Solutions,  M/S 242       |
####  _/  _/ _/_/_/    ####|       11311 Chinden Blvd, Boise, ID  83714     |
#####       _/        #####| EMAIL: lance at boi.hp.com   URL: hpbs2780/~lance |
########   _/      ########| VOICE:(208) 396-3342      FAX: (208) 396-3457  |
###########################+------------------------------------------------+
This message resent by the uclinux-dev at uclinux.org list server http://www.uClinux.org/



More information about the uClinux-dev mailing list