Just a follow-up for those who run into problems building slimserver on
their NSLU2 down the road...

Turns out that I ran into this identical problem myself yesterday after
attempting to build from the latest source.  The root problem was that
'gcc' was a zero-byte executable file!  Apparently, one of the packages
that I installed on my NSLU2 since I first built slimserver stomped on
it.

Normally, when invoking gcc you should see something like this:


Code:
--------------------
    [EMAIL PROTECTED] public]$ gcc
  gcc: no input files
--------------------

However, what it was doing was this:


Code:
--------------------
    [EMAIL PROTECTED] public]$ gcc
  <nothing>
--------------------

To resolve my problem I download the gcc cross-compiler binary from
http://peter.korsgaard.com/articles/debian-nslu2.php and copied gcc
from that tarball to /opt/armeb/armv5b-softfloat-linux/bin/gcc. 
Problem resolved.


Code:
--------------------
    [EMAIL PROTECTED] ls -la /opt/bin/gcc
  lrwxrwxrwx  1 root root 41 Jul  5 04:34 /opt/bin/gcc -> 
/opt/armeb/bin/armv5b-softfloat-linux-gcc
  [EMAIL PROTECTED] ls -la /opt/armeb/bin/armv5b-softfloat-linux-gcc
  lrwxrwxrwx  1 root root 41 Jul  5 04:35 
/opt/armeb/bin/armv5b-softfloat-linux-gcc -> 
/opt/armeb/armv5b-softfloat-linux/bin/gcc
  [EMAIL PROTECTED] ls -la /opt/armeb/armv5b-softfloat-linux/bin/gcc
  -rwx------  1 root root 303190 Oct 12 22:55 
/opt/armeb/armv5b-softfloat-linux/bin/gcc
--------------------

Note the file size of '/opt/armeb/armv5b-softfloat-linux/bin/gcc'. 
Prior to copying that binary the size was 0.

Cheers, mac.


-- 
mac
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix

Reply via email to