Hello,
I have a problem that I think I could get some answers to from this email list.
Recently I was following http://openrisc.net/toolchain-build.html to build gcc
toolchain for openrisc or32. (to understand gcc build procedure)
I'm doing 'building by hand' flow in the page and had passed
binutils
stage 1 gcc
install linux headers
and was doing 'compile uClibc' where I got an error.
The 'compile uClibc' stage is composed of commands below.
$ git clone git://openrisc.net/jonas/uClibc
$ cd uClibc
$ make ARCH=or32 defconfig
$ make PREFIX=${SYSROOT} <--- here I get error below
$ make PREFIX=${SYSROOT} install
when I run 'make ARCH=or32 defconfig', I get this error.
----------------------------------------------------------------------
CC libpthread/linuxthreads.old/attr.o
In file included from libpthread/linuxthreads.old/internals.h:30:0,
from libpthread/linuxthreads.old/attr.c:26:
./libpthread/linuxthreads.old/sysdeps/or32/pt-machine.h: In function
'testandset':
./libpthread/linuxthreads.old/sysdeps/or32/pt-machine.h:41:8: error:
'__NR_or1k_atomic' undeclared (first use in this function)
./libpthread/linuxthreads.old/sysdeps/or32/pt-machine.h:41:8: note: each
undeclared identifier is reported only once for each function it appears in
In file included from
libpthread/linuxthreads.old/../linuxthreads.old_db/proc_service.h:20:0,
from
libpthread/linuxthreads.old/../linuxthreads.old_db/thread_dbP.h:9,
from libpthread/linuxthreads.old/internals.h:32,
from libpthread/linuxthreads.old/attr.c:26:
./include/sys/procfs.h: At top level:
./include/sys/procfs.h:32:21: fatal error: asm/elf.h: No such file or
directory
compilation terminated.
make: *** [libpthread/linuxthreads.old/attr.o] Error 1
----------------------------------------------------------------------
Has anybody had same problem before? I use CentOS 6.4, and am running the make
command under uClibc directory.
The $SYSROOT value is /home/ckim/openrisc/toolchain/or32-linux/sys-root.
Any help will be appreciated.
Thanks!
Chan Kim
_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc