Stefan,
Thanks for your reply, I did use the headers from upstream from
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
I solved this problem by commenting some commands out in uclibc makefile.
Right now I'm stuck at the below error
libc/sysdeps/linux/common/posix_fadvise.c:52:28: error: conflicting types
for 'posix_fadvise64'
strong_alias(posix_fadvise,posix_fadvise64)
^
./include/libc-symbols.h:190:26: note: in definition of macro
'_strong_alias'
extern __typeof (name) aliasname __attribute__ ((alias (#name)));
^
libc/sysdeps/linux/common/posix_fadvise.c:52:1: note: in expansion of macro
'strong_alias'
strong_alias(posix_fadvise,posix_fadvise64)
^
In file included from libc/sysdeps/linux/common/posix_fadvise.c:21:0:
./include/fcntl.h:214:12: note: previous declaration of 'posix_fadvise64'
was here
extern int posix_fadvise64 (int __fd, __off64_t __offset, __off64_t __len,
^
make: *** [libc/sysdeps/linux/common/posix_fadvise.os] Error 1
2015-01-19 17:39 GMT-05:00 Stefan Kristiansson <
[email protected]>:
> On Mon, Jan 19, 2015 at 7:29 PM, Ziqiang Patrick Huang <
> [email protected]> wrote:
>
>> Hi I'm trying to build uClibc toolchain by following the instructions on
>> http://opencores.org/or1k/OpenRISC_GNU_tool_chain#Linux_.28uClibc.29_toolchain_.28or1k-linux-uclibc.29
>>
>> When building uClibc-or1k, I got stuck at the error\
>>
>> libc/sysdeps/linux/common/fstat.c:48:21: error: storage size of 'kbuf'
>> isn't known
>> struct kernel_stat kbuf;
>>
>> Anyone had the same problem before ?
>>
>>
>>
> I bet you are using the wrong kernel headers, the instructions says to use
> the headers from upstream, did you do that?
>
--
*Ziqiang Huang*
*Electrical and Computer Engineering*
*Hudson 213c, Duke University*
*Tel: 919-491-3677 <919-491-3677>*
*Email: [email protected] <[email protected]>*
_______________________________________________
OpenRISC mailing list
[email protected]
http://lists.openrisc.net/listinfo/openrisc