I am trying to create a minimal x86 root image that includes ruby-1.9.2-p0, but the build fails when compiling ruby.<div><br></div><div><div>/home/boumenot/src/buildroot-2011.05/output/build/ruby-1.9.2-p0/lib/mkmf.rb:365:in `try_do': The complier failed to generate an executable file. (RuntimeError)</div>

<div>You have to install development tools first.</div><div>        from /home/boumenot/src/buildroot-2011.05/output/build/ruby-1.9.2-p0/lib/mkmf.rb:446:in `try_compile'</div><div>        from /home/boumenot/src/buildroot-2011.05/output/build/ruby-1.9.2-p0/lib/mkmf.rb:496:in `try_static_assert'</div>

<div>        from ../.././ext/bigdecimal/extconf.rb:5</div><div>        from ./ext/extmk.rb:156:in `load'</div><div>        from ./ext/extmk.rb:156:in `extmake'</div><div>        from ./ext/extmk.rb:445</div><div>

        from ./ext/extmk.rb:441:in `each'</div><div>        from ./ext/extmk.rb:441</div><div>make: *** [mkmain.sh] Error 1</div></div><div><br></div><div>Here's the code that the ruby build process was trying to build.</div>

<div><br></div><div><div>boumenot@linux-5fgv:~/src/buildroot-2011.05/output/build/ruby-1.9.2-p0/ext/bigdecimal> cat mkmf.log</div><div>"/home/boumenot/src/buildroot-2011.05/output/host/usr/bin/ccache /home/boumenot/src/buildroot-2011.05/output/host/usr/bin/i686-unknown-linux-uclibc-gcc -o conftest -I../../.ext/include/i686-linux -I../.././include -I../.././ext/bigdecimal    -pipe -Os  conftest.c  -L. -L../.. -L.  -rdynamic -Wl,-export-dynamic     -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby-static  -lpthread -lrt -ldl -lcrypt -lm   -lc"</div>

<div>/home/boumenot/src/buildroot-2011.05/output/host/usr/i686-unknown-linux-uclibc/sysroot/usr/lib/crt1.o: In function `_start':</div><div>(.text+0x1d): undefined reference to `__uClibc_main'</div><div>collect2: ld returned 1 exit status</div>

<div>checked program was:</div><div>/* begin */</div><div>1: #include "ruby.h"</div><div>2:</div><div>3: int main() {return 0;}</div><div>/* end */</div></div><div><br></div><div>This is against buildroot-2011.05.  I am building on OpenSuSE v11.4 x86_64 targeting x86.  I am using the default toolchain values for this version of buildroot.  I am not sure what other information would help.</div>

<div><br></div><div>GCC is 4.3.5.</div><div><br></div><div>These are the data for .config and .defconfig files.</div><div><br></div><div><div>BR2_TARGET_ROOTFS_SQUASHFS=y</div><div>BR2_TARGET_ROOTFS_SQUASHFS4=y</div><div>

BR2_TARGET_ROOTFS_SQUASHFS4_XZ=y</div><div>BR2_LINUX_KERNEL=y</div><div>BR2_LINUX_KERNEL_2_6_38=y</div><div>BR2_LINUX_KERNEL_VERSION="2.6.38.7"</div><div>BR2_LINUX_KERNEL_PATCH=""</div><div>BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y</div>

<div>BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="/usr/src/linux-2.6.38.7/.config"</div><div>BR2_LINUX_KERNEL_BZIMAGE=y</div><div>BR2_HAVE_DOT_CONFIG=y</div><div>BR2_i386=y</div><div>BR2_x86_i686=y</div><div>BR2_ARCH="i686"</div>

<div>BR2_ENDIAN="LITTLE"</div><div>BR2_GCC_TARGET_TUNE="i686"</div><div>BR2_GCC_TARGET_ARCH="i686"</div><div><br></div></div><div>I would like to fix the issue and submit a patch, but I am not sure how or what to fix.  Help is very much appreciated.</div>

<div><br></div><div><br></div><div>Thanks!</div><div>Chris</div><div><br></div>