[Buildroot] glibc instead of ulibc ?
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Fri Aug 3 13:03:31 UTC 2012
Hello,
Le Fri, 3 Aug 2012 05:59:26 -0700 (PDT),
Zoran Djordjevic <djdjdjole at yahoo.com> a écrit :
> Regarding problem "undefined refernece to c", I found,
> using "nm" command that this function does not exist in uClibc, and
> it does in glibc (although for i386, but I expect also in ARM
> case).Seems to me obvious that some file in my GUI project (as error
> report declares) - ask for __libc_start_main function and certainly
> not find it in libc.so (ie uClibc).
This most likely means that you haven't built your program with the
right compiler. If you had built it with the compiler generated by
Buildroot, which generates programs linked against uClibc, you most
likely wouldn't have this problem.
Please double check how you're building your program.
> So I intend to build root file
> system with glibc and want to ask you if it is OK to choose
> (menuconfig): Toolchain type (CrosstoolNG- toolchain) and immediately
> below: CrosstoolNG- C library (glibc) ? The other adjustments I would
> not change.
Sounds good.
> What confuses me is that my compiler asked at some moment
> for "ld-uClibc.so" library and I don't know what would happened if
> I build with glibc.
"at some moment" is way too vague to have any sort of useful technical
discussion, unfortunately.
> And at last - do I have to rebuild all if I change toolchain the way
> I described ?
You have to rebuild everything.
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
More information about the buildroot
mailing list