Hi

Attached is the script from Jeff Johnson I have been using to
bootstrap newlib. It needs localizing for the paths.

I posted patches to add i386 and x86_64 fenv.h support. They are
attached. The i386 builds and runs fine. I can't get newlib
bootstrapped where it will descend into the directory. The files
configure.host and libm/machine/configure.in have architecture
specific magic and I got that.

You must use automake 1.11.6 and automake 2.68 to bootstrap.

Help is appreciated so I can move forward to fenv.h support for other
architectures and i386 long double math.

I expect this is something simple I am missing but I have stuck here
over a week.

Thanks.

--joel
#!/bin/sh
#top=/home/jjohnstn/newlib-cygwin/newlib
top=/home/joel/test-gcc/newlib-cygwin/newlib
myecho=

cd $top; echo `pwd`; $myecho aclocal -I . -I ..; $myecho autoconf; $myecho automake Makefile;

cd $top/doc; echo `pwd`; $myecho aclocal -I .. -I ../..; $myecho autoconf; $myecho automake Makefile;

cd $top/iconvdata; echo `pwd`; $myecho aclocal -I .. -I ../..; $myecho autoconf; $myecho automake Makefile;

cd $top/libm; echo `pwd`; $myecho aclocal -I .. -I ../..; $myecho autoconf; $myecho automake Makefile common/Makefile fenv/Makefile math/Makefile mathfp/Makefile;

# libm/fenv
cd $top/libm/fenv; echo `pwd`; $myecho aclocal -I ../.. -I ../../..; $myecho autoconf; $myecho automake Makefile;

# libm/machine
cd $top/libm/machine; echo `pwd`; for x in *; do if test -d $x; then echo $x; cd $x; $myecho aclocal -I ../../.. -I ../../../..; $myecho autoconf; $myecho automake Makefile; cd ..; fi; done

cd $top/libm/machine; echo `pwd`; $myecho aclocal -I ../.. -I ../../..; $myecho autoconf; $myecho automake Makefile;

# libc
cd $top/libc; echo `pwd`; $myecho aclocal -I .. -I ../..; $myecho autoconf; $myecho automake Makefile argz/Makefile ctype/Makefile errno/Makefile iconv/Makefile iconv/ces/Makefile iconv/ccs/Makefile iconv/lib/Makefile iconv/ccs/binary/Makefile locale/Makefile misc/Makefile posix/Makefile reent/Makefile search/Makefile signal/Makefile stdio/Makefile stdio64/Makefile stdlib/Makefile string/Makefile syscalls/Makefile time/Makefile unix/Makefile xdr/Makefile;

cd $top/libc/machine; echo `pwd`; for x in *; do if test -d $x; then echo $x; cd $x; $myecho aclocal -I ../../.. -I ../../../..; $myecho autoconf; $myecho automake Makefile; cd ..; fi; done

cd $top/libc/machine; echo `pwd`; $myecho aclocal -I ../.. -I ../../..; $myecho autoconf; $myecho automake Makefile;

cd $top/libc/sys; echo `pwd`; for x in *; do if test -d $x; then echo $x; cd $x; $myecho aclocal -I ../../..  -I ../../../..; $myecho autoconf; $myecho automake Makefile; cd ..; fi; done

cd $top/libc/sys; echo `pwd`; $myecho aclocal -I ../.. -I ../../..; $myecho autoconf; $myecho automake Makefile;

cd $top/libc/sys/linux; echo `pwd`; $myecho automake argp/Makefile cmath/Makefile dl/Makefile iconv/Makefile intl/Makefile net/Makefile

cd $top/libc/sys/linux/linuxthreads; echo `pwd`; $myecho aclocal -I ../../../.. -I ../../../../..; $myecho autoconf; $myecho automake Makefile

cd $top/libc/sys/linux/linuxthreads/machine; echo `pwd`; $myecho aclocal -I ../../../../.. -I ../../../../../..; $myecho autoconf; $myecho automake Makefile

cd $top/libc/sys/linux/linuxthreads/machine/i386; echo `pwd`; $myecho aclocal -I ../../../../../.. -I ../../../../../../..; $myecho autoconf; $myecho automake Makefile

cd $top/libc/sys/linux/machine; echo `pwd`; $myecho aclocal -I ../../../.. -I ../../../../..; $myecho autoconf; $myecho automake Makefile

cd $top/libc/sys/linux/machine/i386; echo `pwd`; $myecho aclocal -I ../../../../.. -I ../../../../../..; $myecho autoconf; $myecho automake Makefile


Attachment: v5-0000-cover-letter.patch
Description: Binary data

Attachment: v5-0001-Add-i386-and-x86_64-fenv-support-from-Cygwin.patch
Description: Binary data

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to