linux 内核编译错误总结

 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.

你可能感兴趣的:(linux 内核编译错误总结)