What does this script error mean?

Hi, I'm running a script to build and install ARM GCC cross-compiler tools under Ubuntu (10.10). It worked fine when I ran it for 'arm-elf' but now I want to set up the tools for 'arm-none-eabi' and I get this error when it is installing newlib:

Making install in doc
make[3]: Entering directory `/home/scott/ArmTools/build/arm-none-eabi/newlib/doc'
make[4]: Entering directory `/home/scott/ArmTools/build/arm-none-eabi/newlib/doc'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/home/scott/ArmTools/build/arm-none-eabi/newlib/doc'
make[3]: Leaving directory `/home/scott/ArmTools/build/arm-none-eabi/newlib/doc'
Making install in .
make[3]: Entering directory `/home/scott/ArmTools/build/arm-none-eabi/newlib'
make[4]: Entering directory `/home/scott/ArmTools/build/arm-none-eabi/newlib'
make[4]: Nothing to be done for `install-exec-am'.
test -z "/home/scott/DevToolBin/arm-none-eabi/lib" || /bin/mkdir -p "/home/scott/DevToolBin/arm-none-eabi/lib"
test -z "/home/scott/DevToolBin/arm-none-eabi/lib" || /bin/mkdir -p "/home/scott/DevToolBin/arm-none-eabi/lib"
test -z "/home/scott/DevToolBin/arm-none-eabi/lib" || /bin/mkdir -p "/home/scott/DevToolBin/arm-none-eabi/lib"
 /usr/bin/install -c -m 644  libm.a libc.a '/home/scott/DevToolBin/arm-none-eabi/lib'
 ( cd '/home/scott/DevToolBin/arm-none-eabi/lib' && arm-none-eabi-ranlib libm.a )
/bin/bash: line 5: arm-none-eabi-ranlib: command not found
make[4]: *** [install-toollibLIBRARIES] Error 127
make[4]: Leaving directory `/home/scott/ArmTools/build/arm-none-eabi/newlib'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory `/home/scott/ArmTools/build/arm-none-eabi/newlib'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/scott/ArmTools/build/arm-none-eabi/newlib'
make[1]: *** [install-target-newlib] Error 2
make[1]: Leaving directory `/home/scott/ArmTools/build'
make: *** [install] Error 2

Can anyone suggest what the error could be? 'arm-none-eabi-ranlib' is available and in the $PATH so I don't know why it should not find it. The bit of sub-script being executed here is, I think, this:

install-toollibLIBRARIES: $(toollib_LIBRARIES)
    @$(NORMAL_INSTALL)
    test -z "$(toollibdir)" || $(MKDIR_P) "$(DESTDIR)$(toollibdir)"
    @list='$(toollib_LIBRARIES)'; test -n "$(toollibdir)" || list=; \
    list2=; for p in $$list; do \
      if test -f $$p; then \
        list2="$$list2 $$p"; \
      else :; fi; \
    done; \
    test -z "$$list2" || { \
      echo " $(INSTALL_DATA) $$list2 '$(DESTDIR)$(toollibdir)'"; \
      $(INSTALL_DATA) $$list2 "$(DESTDIR)$(toollibdir)" || exit $$?; }
    @$(POST_INSTALL)
    @list='$(toollib_LIBRARIES)'; test -n "$(toollibdir)" || list=; \
    for p in $$list; do \
      if test -f $$p; then \
        $(am__strip_dir) \
        echo " ( cd '$(DESTDIR)$(toollibdir)' && $(RANLIB) $$f )"; \
        ( cd "$(DESTDIR)$(toollibdir)" && $(RANLIB) $$f ) || exit $$?; \
      else :; fi; \
    done

Thanks.

-Scott

You could look for the definition of $(RANLIB) in the Makefile (or config.sh, or wherever) and if its set to "arm-non-eabi-ranlib", I would try changing it to the full path to arm-non-eabi-ranlib.

Ok, thanks. I'll try that tonight.

---------- Post updated at 10:05 PM ---------- Previous update was at 12:36 PM ----------

No, not working - any changes I make get overwritten. The Makefile is created by a config script, etc. up several levels. I can't find where $(RANLIB) gets originally defined. More research needed. The script was written for Debian so there must be subtle differences under Ubuntu.

---------- Post updated 01-13-11 at 08:25 AM ---------- Previous update was 01-12-11 at 10:05 PM ----------

The script extracts and processes a downloaded tar.bz2 file. I'll have to edit this.
-Scott