NSLU2-Linux
view · edit · print · history

HowTo.SlugOSNativeCompileEnvironment History

Hide minor edits - Show changes to markup

January 03, 2008, at 11:17 AM by dolphs -- package request monotone-5 and native compiler
Changed line 13 from:
  1. ipkg install monotone-5
to:
  1. ipkg install monotone-5 (this package is not yet available for 4.8beta)
January 02, 2008, at 05:25 PM by dolphs -- missing package
Changed line 9 from:
  1. ipkg install slugos-native
to:
  1. ipkg install slugos-native (this package is not yet available for 4.8beta)
December 30, 2007, at 02:03 PM by Fabio --
Added lines 73-74:

With this fix for me is possible to compile.

December 30, 2007, at 02:02 PM by Fabio --
Changed line 72 from:
 # ln -s armeb-linux-ar ar
to:
 # ln -s arm-linux-ar ar
October 09, 2007, at 09:49 PM by Sebastien --
Changed line 68 from:

Fix with ar !!

to:

Fix with ar

October 09, 2007, at 09:49 PM by Sebastien --
Added lines 67-72:

Fix with ar !!

The following steps were also required to replace the busybox ar utility with a one enabling building your own libraries:

 # cd /usr/bin
 # rm ar
 # ln -s armeb-linux-ar ar
May 26, 2007, at 02:51 PM by dawookie -- New makefile breaks monotone
Added lines 62-63:

This is due to the master makefile now requiring montone 0.28 for which there is no package and so far I have been unable to compile it natively. I found a forum (sorry, can't remember where) which acknowledges this and stated that fixing it "wasn't a high priority". So basically, don't bother with native compliation as it's fatally bust and those cross compilers that broke it couldn't be bothered to update this page. If only I'd discovered that BEFORE I totally rebuilt my slug...

March 11, 2007, at 10:51 AM by jysue -- Fix for ldconfig: not found
Added lines 61-64:

Fix for ldconfig: not found

If you log in as a regular user, then su to root, the PATH does not include /sbin, which is why ldconfig could not be found. Log in as root, and PATH will include /sbin, and ldconfig will be found.

February 19, 2007, at 10:25 PM by krim -- monotone fails
Changed lines 52-60 from:

- touch bitbake.conf

to:

- touch bitbake.conf

And more notes

Running wget http://www.nslu2-linux.org/Makefile && make setup fails cant find monotone so i linked monotone to mtn And I end up with this error

monotone: error: failure extracting schema from sqlite_master

July 29, 2006, at 05:57 PM by Harvy --
Added line 1:

further info is here

July 29, 2006, at 05:53 PM by Harvy --
Added lines 1-3:

http://www.nslu2-linux.org/wiki/SlugOS/NativeBuildForopenslug

July 15, 2006, at 01:47 PM by die amme --
Changed lines 44-45 from:

- touch bitbake.conf

to:
Added line 48:

- touch bitbake.conf

July 15, 2006, at 01:42 PM by die amme --
Added lines 38-48:

More notes:

My modifiations:
- ipkg install python-distutils
- ipkg install libc6-dev (because crt1.o missing)
- correct in bitbake.conf the following
- touch bitbake.conf

  ASSUME_PROVIDED = 
to
ASSUME_PROVIDED += \\
July 10, 2006, at 10:14 AM by eFfeM --
Changed lines 22-24 from:
to:

Alternately you can get rid of the error by compiling with the -mthumb-interwork flag. E.g.:
gcc -o hello -mthumb-interwork hello.c

July 10, 2006, at 10:12 AM by eFfeM --
Added line 10:
  1. ipkg --force-overwrite install ipkg-utils
Added line 13:
  1. At this point you need to create .../openslug/conf/topdir.conf. It should contain the path to your openslug dir (e.g. for me TOPDIR='/home/slug/OpenSlugHead/openslug'
Changed lines 15-16 from:
  1. Now you can run make to build everything supposed to be built nativly, or use bb to build specific packages:
    bb -b openembedded/packages/perl/perl-5.8.7.bb
to:
  1. Now you can run make to build everything supposed to be built natively (and be prepared to wait a loooong time), or use bb to build specific packages:
    bb -b openembedded/packages/setpwc/setpwc_1.1.bb
Changed lines 18-19 from:

Note: remainder need to be checked. Also I had to make topdir.conf the next problem is configuring libthread-db1

to:

During the bb process you may get notifications like:
NOTE: Couldn't find shared library provider for libncurses.so.5
NOTE: Couldn't find shared library provider for libc.so.6
These can be ignored.

Other notes

compiling programs with gcc.
gcc -o hello hello.c will give you a warning like Warning: /tmp/ccJ12GPL.o does not support interworking, whereas hello does but will produce a working executable.

configuring libthread-db1:\\

Changed lines 35-59 from:

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

the ipk seems to work but some of the libs are missing....?

to:
July 08, 2006, at 11:48 AM by eFfeM --
Changed line 16 from:
to:

Note: remainder need to be checked. Also I had to make topdir.conf

July 08, 2006, at 11:34 AM by eFfeM -- draft, intermediate save to be sure not to loose my work
Added lines 1-47:

Compiling natively is quite possible provided you have plenty of time, swap and diskspace. Below are some instructions to get you going. These should work on SlugOS 3.10 (and probably higher)

  1. Make sure you have lots of swap
  2. Add a normal user, 'slug' is recommended
  3. ipkg install slugos-native
  4. ipkg install libc6-dev (not needed after 3.10)
  5. ipkg install boost-dev
  6. ipkg install libz-dev
  7. ipkg install monotone-5
  8. Login as the normal user
  9. Run wget http://www.nslu2-linux.org/Makefile && make setup (this will take a while)
  10. Run bash, then cd openslug && source setup-env
  11. Now you can run make to build everything supposed to be built nativly, or use bb to build specific packages:
    bb -b openembedded/packages/perl/perl-5.8.7.bb

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

the ipk seems to work but some of the libs are missing....?

view · edit · print · history · Last edited by dolphs.
Based on work by dolphs, Fabio, Sebastien, dawookie, jysue, krim, Harvy, die amme, and eFfeM.
Originally by eFfeM.
Page last modified on January 03, 2008, at 11:17 AM