Web lists-archives.com

needed : building instruction of newlib under window 10 cygwin32 or cygwin64ls




Hi All

Can anyone provide me with a step-by-step instruction to build newlib under window10 cygwin32 or cygwin64?
Such as tool chain and environment settings.  I googled and could not find it.

I followed the instruction in here:  https://cygwin.com/faq/faq.html#faq.programming.building-cygwin  section 6.21

I fire up a cygwin shell and I try to build it but got a lot of errors.
Under the folder `/c/cygwin/home/src' there is a folder 'newlib' where I run git to get the source of newlib

Those are the command I used:

$git clone git://sourceware.org/git/newlib-cygwin.git newlib

$ gcc --version
gcc (GCC) 7.3.0

$ gcc --version
gcc (GCC) 7.3.0

$ autoconf --version
autoconf (GNU Autoconf) 2.69


$mkdir build
$cd build
$../newlib/configure --prefix=/home/src/install -v
....
---lots of messages print out from configure script.  No error.
....

$ make
make[1]: Entering directory `/c/cygwin/home/src/build'
mkdir -p -- ./etc
Configuring in ./etc
configure: creating cache ./config.cache
checking for a BSD-compatible install... /usr/bin/install -c
/usr/bin/sed: -e expression #1, char 1: unknown command: `C'
configure: updating cache ./config.cache
configure: creating ./config.status
/usr/bin/sed: -e expression #1, char 138: unterminated `s' command
config.status: creating Makefile
/usr/bin/sed: -e expression #1, char 1: unknown command: `C'
make[2]: Entering directory `/c/cygwin/home/src/build/etc'
make[2]: *** No rule to make target `@MAINT@', needed by `../../newlib/etc/configure'.  Stop.
make[2]: Leaving directory `/c/cygwin/home/src/build/etc'
make[1]: *** [all-etc] Error 2
make[1]: Leaving directory `/c/cygwin/home/src/build'
make: *** [all] Error 2


Thanks and Best Wish


Chang

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple