compile errors when porting newlib
Posted: Sat Aug 13, 2016 5:25 pm
I've followed the exact steps described in this tutorial http://wiki.osdev.org/Porting_Newlib
but when I do
to compile newlib, it gives me this error:
Can someone explains what's going on and how to solve this problem? thanks
but when I do
Code: Select all
make all
Code: Select all
mkdir tmp
cd tmp; \
for i in argz/lib.a stdlib/lib.a ctype/lib.a search/lib.a stdio/lib.a string/lib.a signal/lib.a time/lib.a locale/lib.a reent/lib.a errno/lib.a misc/lib.a machine/lib.a sys/lib.a; do \
i686-simpleos-ar x ../$i; \
done; \
i686-simpleos-ar rc ../libc.a *.o
i686-simpleos-ar: ../sys/lib.a: No such file or directory
i686-simpleos-ranlib libc.a
rm -rf tmp
rm -f crt0.o
ln sys/crt0.o crt0.o >/dev/null 2>/dev/null || cp sys/crt0.o crt0.o
cp: cannot stat ‘sys/crt0.o’: No such file or directory
make[5]: *** [crt0.o] Error 1
make[5]: Leaving directory `/home/vagrant/backup/build-newlib/i686-simpleos/newlib/libc'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/vagrant/backup/build-newlib/i686-simpleos/newlib/libc'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/vagrant/backup/build-newlib/i686-simpleos/newlib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/vagrant/backup/build-newlib/i686-simpleos/newlib'
make[1]: *** [all-target-newlib] Error 2
make[1]: Leaving directory `/home/vagrant/backup/build-newlib'
make: *** [all] Error 2