[Buildroot] Build Fails with ruby-1.9.2-p0

Peter Korsgaard jacmet at uclibc.org
Thu Jul 7 06:47:50 UTC 2011

>>>>> "Christopher" == Christopher Boumenot <boumenot at gmail.com> writes:


 Christopher> I am trying to create a minimal x86 root image that
 Christopher> includes ruby-1.9.2-p0, but the build fails when compiling
 Christopher> ruby.

 Christopher> "/home/boumenot/src/buildroot-2011.05/output/host/usr/bin/ccache /home/boumenot
 Christopher> /src/buildroot-2011.05/output/host/usr/bin/i686-unknown-linux-uclibc-gcc -o
 Christopher> conftest -I../../.ext/include/i686-linux -I../.././include -I../.././ext/
 Christopher> bigdecimal    -pipe -Os  conftest.c  -L. -L../.. -L.  -rdynamic
 Christopher> -Wl,-export-dynamic     -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static  -lpthread
 Christopher> -lrt -ldl -lcrypt -lm   -lc"
 Christopher> /home/boumenot/src/buildroot-2011.05/output/host/usr/i686-unknown-linux-uclibc/
 Christopher> sysroot/usr/lib/crt1.o: In function `_start':
 Christopher> (.text+0x1d): undefined reference to `__uClibc_main'

So it ends up looking at your host libraries which leads to a linker

 Christopher> This is against buildroot-2011.05.  I am building on
 Christopher> OpenSuSE v11.4 x86_64 targeting x86.  I am using the
 Christopher> default toolchain values for this version of buildroot.  I
 Christopher> am not sure what other information would help.

The entire .config would be good. I just tried on my Debian x86-64
system with the following defconfig (i586, default gcc version):


Which works without problems.

Bye, Peter Korsgaard

More information about the buildroot mailing list