problems building for cris architecture

Jesse Kipp jtkipp at gmail.com
Sat Feb 24 22:47:55 UTC 2007


Thanks! I ended up using -save-temps. It looks like the definition for
_syscall6 was missing from libc/sysdeps/linux/cris/bits/syscalls.h. A
patch had already been committed, but not made its way into release
yet.

Now during the linking of ldso I've got:

ldso.o: In function `_dl_dprintf':
ldso.c:(.text+0x474): undefined reference to `__errno_location'

(plus in a bunch of other functions)

It looks like maybe there is a file missing during the linking...
Should __errno_location be coming from the pthreads library, or am I
barking up the wrong tree? Just to make sure I compiled for another
architecture (x86) and it was fine, but I can't track down where the
difference in the arch-specific files is.

-- jesse

On 2/23/07, Peter Barada <peterb at logicpd.com> wrote:
> On Fri, 2007-02-23 at 13:46 -0600, Jesse Kipp wrote:
> > hi, I'm trying to use buildroot to compile a uClibc tool chain for the
> > cris architecture, and I'm getting an error in in the dl-syscall.h
> > header. I've looked at the file and don't see what the syntax error
> > could be, and I've searched the mailing list, but can't find anything
> > relevant.
> >
> > I'm using gcc-3.4 for the host system, trying to build for
> > uClibc-0.9.28.1 and kernel version 2.4.31.
> >
> > Does anyone have any advice?
>
> Run the file through the preprocessor (use -E -dD instead of -c) and
> look at the output. From there you should be able to figure out the
> syntax that is causing the error, and backtrack to why it occurs.
>
>



More information about the uClibc mailing list