0

I am trying to cross compile a code with CodeSourcery Arm compiler and I receive this error: CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/../arm-none-linux-gnueabi/libc/usr/include/time.h:123:5: error: unknown type name '__syscall_slong_t'

Do you know how to fix this error? I am using Ubuntu 12.04 OS.

This is my Makefile : http://paste.ubuntu.com/6010932/ and this is what I have after "make" command: http://paste.ubuntu.com/6010923/

4

2 回答 2

1

确保 -m32 进入您的 CFLAGS 条目。

于 2013-08-21T18:14:19.313 回答
0

可能您需要修补 typesizes.h 以匹配最近的核心更改,请查看此线程:http: //sourceware.org/ml/libc-ports/2012-05/msg00095.html

于 2013-08-22T04:01:25.643 回答