[Buildroot] glibc instead of ulibc ?

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed Aug 1 21:16:35 UTC 2012


Le Wed, 1 Aug 2012 14:01:10 -0700 (PDT),
Zoran Djordjevic <djdjdjole at yahoo.com> a écrit :

> I've built root file system for ARM board and now try to cross
> compile simple (graphical) program, using Lazarus.
> Althouth I'm pretty sure that I correctly configured Lazarus, some
> errors emerged (eg. libX11.so: undefined reference to strcpy, ... fclose; fseek ...).

These functions are very basic stuff in uClibc, so your problem is
most likely not uClibc here.

> Seems to me that at least part of the problem lies in having uclibc,
> instead of glibc. 
> So my question is - how (if possible) can I build root file system 
> with glibc instead of uclibc.

You have two choices:

 * Use the external toolchain backend, which allows you to use a
   pre-built CodeSourcery or Linaro toolchain for ARM, or build your
   own toolchain with Crosstool-NG, and then use it into Buildroot as
   an external toolchain.

 * Use the Crosstool-NG backend, which will tell Buildroot to use
   Crosstool-NG to build the toolchain.

Both of those solutions will allow you to use the glibc C library.

Best regards,

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