This page is deprecated and for historical reference only. See SlugOSNativeCompileEnvironment for the new page.
So you want to compile natively eh ?
At the moment (2006-01-12) it's necessary to download and compile monotone >=0.24 on the slug, because openslug 2.7beta ships with monotone 0.22 and there's no way to use the master Makefile without upgrading to 0.24 or 0.25 by yourself.
This takes even more time. You might get a big cup of coffee. If you haven't de-undeclocked your NSLU2 yet, you'll consider it now... Thinking about setting up a cross-compile environment on your 3 Ghz PC? Yeah, me too. This step will take at least 4 hours on an overclocked slug.
I had to install boost and zlib in order to get monotone to complile
not any more.
stdio.h does not appear to be in /usr/include so install libc6-dev and bind-dev
the next problem is configuring libthread-db1 //usr/lib/ipkg/info/libthread-db1.postinst: 4: ldconfig: not found libthread-db1.postinst returned 127 so run /sbin/ldconfig by hand
test with gcc -o hello hello.c works with a warning
testing with bb -b openembedded/packages/nano/nano_1.3.9.bb
nano fails gcc does not seem to be looking for libs in /lib bb -b openembedded/packages/nano/nano_1.3.9.bb NOTE: package nano-1.3.9: started NOTE: package nano-1.3.9-r0: task do_fetch: started NOTE: package nano-1.3.9-r0: task do_fetch: completed NOTE: package nano-1.3.9-r0: task do_package: started NOTE: Couldn't find shared library provider for libncurses.so.5 NOTE: Couldn't find shared library provider for libc.so.6 NOTE: Couldn't find shared library provider for libncurses.so.5 NOTE: Couldn't find shared library provider for libc.so.6 sh: ipkg-build: not found NOTE: Task failed: ipkg-build execution failed NOTE: package nano-1.3.9-r0: task do_package: failed ERROR: TaskFailed? event exception, aborting
ipkg --force-overwrite install ipkg-utils down load and configure gcc --with-low-memory the ipk seems to work but some of the libs are missing....? download and install binutils 2.1.7 (not ipk but tar.bz2 from gnu)