[uClibc]buildroot compile error

Tony J. White tjw at webteam.net
Wed Jan 22 19:33:41 UTC 2003


I was able to get today's CVS of buildroot to compile on a rather slow
RedHat 7.3 machine.

After the toolchain was built, I tried continuing the build on my much faster
slackware-current machine and all was well up until gcc-target was being built.
At that point, configured died testing my C compiler.  The problem was:

/lib/crt1.o(.text+0x20): In function `_start':
: undefined reference to `__uClibc_start_main'
collect2: ld returned 1 exit status

Yes, my old friends crt*.o

Is it recommended to use gcc 2.96 for making buildroot, or are some people
having success with 3.2.1?

-Tony


More (probably useless) details:

configure:2196: checking whether the C compiler (/home/tjw/src/buildroot/build/g
cc-target/gcc/xgcc -B/home/tjw/src/buildroot/build/gcc-target/gcc/ -B/usr/i386-l
inux/bin/ -B/usr/i386-linux/lib/ -isystem /usr/i386-linux/include -g -Os ) works
configure:2212: /home/tjw/src/buildroot/build/gcc-target/gcc/xgcc -B/home/tjw/sr
c/buildroot/build/gcc-target/gcc/ -B/usr/i386-linux/bin/ -B/usr/i386-linux/lib/
-isystem /usr/i386-linux/include -o conftest -g -Os   conftest.c  1>&5

configure: failed program was:
#line 1501 "configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int main () { int i; for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }






More information about the uClibc mailing list