Hello,
Here are some added explanation of my situation.
The file causing error, ./libpthread/linuxthreads.old/sysdeps/or32/pt-machine.h
includes
<features.h> and <sys/syscall.h> and the only place I can find those files is
~/openrisc/toolchain/uClibc which is the directory I'm compiling uClibc at.
I previously installed linux headers with INSTALL_HDR_PATH=${SYSROOT}/usr
but there I can't find features.h or sys/syscall.h under ${SYSROOT}/usr.
1. am I supposed to use the linux header in ${SYSROOT}/usr ?
I see some header files under ${SYSROOT}/usr/include. (from there under linux,
asm, asm-generic, uapi, video,...)
But I can't see any file features.h and sys/syscall.h .. what's gone wrong?
2. or should I use files under uClibc/include?
Any help will be greatly appreciated. I don't know what's wrong..
Thanks!
Chan
보낸 사람 : "Chan Kim" <[email protected]>
보낸 날짜 : 2014-07-07 17:58:53 ( +09:00 )
받는 사람 : [email protected] <[email protected]>
참조 :
제목 : trying to compile uClibc for openrisc or32
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
_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc