newlib make install ranlib not found
Posted: Mon Aug 22, 2016 1:47 pm
I am following this tutorial http://wiki.osdev.org/Porting_Newlib.
Everything is fine until I do this
Why is it saying i686-pc-simpleos-ranlib: command not found? I can run this i686-pc-simpleos-ranlib anywhere without problems.
Everything is fine until I do this
Code: Select all
make DESTDIR=${SYSROOT} install
Code: Select all
Making install in doc
make[3]: Entering directory `/home/vagrant/test/build-newlib/i686-pc-simpleos/newlib/doc'
make[4]: Entering directory `/home/vagrant/test/build-newlib/i686-pc-simpleos/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/vagrant/test/build-newlib/i686-pc-simpleos/newlib/doc'
make[3]: Leaving directory `/home/vagrant/test/build-newlib/i686-pc-simpleos/newlib/doc'
Making install in .
make[3]: Entering directory `/home/vagrant/test/build-newlib/i686-pc-simpleos/newlib'
make[4]: Entering directory `/home/vagrant/test/build-newlib/i686-pc-simpleos/newlib'
make[4]: Nothing to be done for `install-exec-am'.
/bin/mkdir -p '/home/vagrant/cross//usr/i686-pc-simpleos/lib'
/usr/bin/install -c -m 644 libm.a libc.a '/home/vagrant/cross//usr/i686-pc-simpleos/lib'
( cd '/home/vagrant/cross//usr/i686-pc-simpleos/lib' && i686-pc-simpleos-ranlib libm.a )
/bin/bash: line 5: i686-pc-simpleos-ranlib: command not found
make[4]: *** [install-toollibLIBRARIES] Error 127
make[4]: Leaving directory `/home/vagrant/test/build-newlib/i686-pc-simpleos/newlib'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory `/home/vagrant/test/build-newlib/i686-pc-simpleos/newlib'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/vagrant/test/build-newlib/i686-pc-simpleos/newlib'
make[1]: *** [install-target-newlib] Error 2
make[1]: Leaving directory `/home/vagrant/test/build-newlib'
make: *** [install] Error 2
vagrant@vagrant-ubuntu-trusty-32:~/test/build-newlib$ i686-pc-simpleos-ranlib
Usage: i686-pc-simpleos-ranlib [options] archive
Generate an index to speed access to archives
The options are:
@<file> Read options from <file>
-D Use zero for symbol map timestamp
-U Use actual symbol map timestamp (default)
-t Update the archive's symbol map timestamp
-h --help Print this help message
-v --version Print version information
i686-pc-simpleos-ranlib: supported targets: elf32-i386 elf32-little elf32-big srec symbolsrec verilog tekhex binary ihex