【发布时间】:2013-08-21 16:49:14
【问题描述】:
我正在尝试使用 CodeSourcery Arm 编译器交叉编译代码并收到此错误: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'
您知道如何解决此错误吗? 我使用的是 Ubuntu 12.04 操作系统。
这是我的 Makefile : http://paste.ubuntu.com/6010932/ 这就是我在“make”命令之后所拥有的: http://paste.ubuntu.com/6010923/
【问题讨论】:
-
也许你需要
#define为有符号长类型。你的工具链没有这个定义。 -
你是在编译 x64 还是 x32。我认为你需要编译 32 位。
-
看看这个帖子mailing lists sourceware
-
@Dayalrai 我以前做过同样的事情没有任何问题,但由于某些原因我不得不格式化我的 Ubuntu。现在我已经安装了 CodeSourcery,它不像以前那样工作了。
-
基本上,您的部分或全部标头与您尝试编译的目标拱门不匹配。
标签: c ubuntu makefile arm cross-compiling