现在的位置: 首页 > 综合 > 正文

linux 内核编译错误总结

2013年09月21日 ⁄ 综合 ⁄ 共 493字 ⁄ 字号 评论关闭

 linux 内核编译错误总结

1. include/linux/time.h:174: undefined reference to `__aeabi_uldivmod'
此问题是由于arm-2008q3的Gcc 4.3版,进行了代码优化导致。
 

-
-
-
include
/
linux/
time
.
h 2008-
10-
09 19:
47:
23.
000000000 +
0200
+
+
+
include
/
linux/
time
.
h.
new
2008-
10-
09 19:
47:
54.
000000000 +
0200
@@ -
173,
6 +
173,
10 @@
 {

        ns +
=
a-
>
tv_nsec;

        while
(
unlikely(
ns >
=
NSEC_PER_SEC)
)
{

+
/* The following asm() prevents the compiler from
+ * optimising this loop into a modulo operation. */


+
asm
(
""
:
"+r"
(
ns)
)
;

+

                ns -
=
NSEC_PER_SEC;

                a-
>
tv_sec+
+
;

        }

 

2.

抱歉!评论已关闭.