Need some help with uClibc build
Can somebody, please, help me.
I seem to be missing something trivial like the fact that gcc-4.3.1+ would not work with uClibc-0.9.29, or something like this.
I'm trying to build buildroot with
binutils-2.19
uClibc-0.9.29
gcc-4.3.1I managed to configure and build everything including the compiler. But then, uClibc build did not go through :
CC libc/sysdeps/linux/common/chdir.os
In file included from ./include/sys/param.h:22,
from libc/sysdeps/linux/common/chdir.c:13:./include/limits.h:124:26: error: limits.h: No such file or directory make[2]: *** [libc/sysdeps/linux/common/chdir.os] Error 1 make[1]: *** [lib/libc.so.0] Error 2
I figured that using extra GCC flag "-D_GCC_LIMITS_H_" would help. It did. But then, another problem raised up :
CC libc/sysdeps/linux/common/nice.oslibc/sysdeps/linux/common/nice.c: In function 'int_add_no_wrap':libc/sysdeps/linux/common/nice.c:33: error: 'INT_MIN' undeclared (first use in this function)libc/sysdeps/linux/common/nice.c:33: error: (Each undeclared identifier is reported only oncelibc/sysdeps/linux/common/nice.c:33: error: for each function it appears in.)libc/sysdeps/linux/common/nice.c:35: error: 'INT_MAX' undeclared (first use in this function)
make[2]: *** [libc/sysdeps/linux/common/nice.os] Error 1
I guess I might be missing some trivial knowledge about how things work with each other.
If you can share with me this knowledge I would really appreciate it.
Thanks in advance for any of your help,
-- Maxim Grigoriev
Tensilica Inc.
408-566-1770
P.S. Some background on my project. Xtensa GNU/Linux is successfully building with
binutils-2.18
uClibc-0.9.29
gcc-4.2.1
with relatively recent buildroot update.I'm trying to upgrade the compiler, which is important for our projects.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Maxim" == Maxim Grigoriev <[email protected]> writes:
Maxim> Can somebody, please, help me.
Maxim> I seem to be missing something trivial like the fact that Maxim> gcc-4.3.1+ would not work with uClibc-0.9.29, or something Maxim> like this.
That could very well be - uClibc 0.9.29 is old, and gcc 4.3.x is pretty new.
Maxim> I'm trying to build buildroot with
Maxim> binutils-2.19 Maxim> uClibc-0.9.29 Maxim> gcc-4.3.1
Why would you want to use those versions instead of the stable and recommended ones? (uclibc 0.9.30, gcc 4.3.2)?
Signature · 1 line
Bye, Peter Korsgaard
Thanks for your advice, Peter.
You suggest to keep it simple - the latest versions of the tools and libraries are the best to try.
I will switch to uclibc 0.9.30 and gcc 4.3.2.
-- Maxim
Quoted 19 lines · Peter Korsgaard
Maxim> Can somebody, please, help me.
Maxim> I seem to be missing something trivial like the fact that Maxim> gcc-4.3.1+ would not work with uClibc-0.9.29, or something Maxim> like this.That could very well be - uClibc 0.9.29 is old, and gcc 4.3.x is pretty new.
Maxim> I'm trying to build buildroot with
Maxim> binutils-2.19 Maxim> uClibc-0.9.29 Maxim> gcc-4.3.1Why would you want to use those versions instead of the stable and recommended ones? (uclibc 0.9.30, gcc 4.3.2)?