public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: needed : building instruction of newlib under window 10 cygwin32 or cygwin64ls
@ 2018-07-28 20:44 Shen, Chang (MSFC-EV43)
  2018-07-30  1:52 ` Mark Geisert
  0 siblings, 1 reply; 5+ messages in thread
From: Shen, Chang (MSFC-EV43) @ 2018-07-28 20:44 UTC (permalink / raw)
  To: cygwin, mark

Hi Mark:

Great!

It works now.  Only after I did below to filter out anything from windows path.  I guess something was used other than cygwin's tools.

export path=/usr/local/bin:/bin:/usr/bin:

In your replay, you did not run make in cygwin.  Instead going to newlib to run make.  Is this because we already has cygwin?
I went up one level to in src folder and run make.  It builds.  But this step is not needed, right?

Thanks
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

^ permalink raw reply	[flat|nested] 5+ messages in thread
* needed : building instruction of newlib under window 10 cygwin32 or cygwin64ls
@ 2018-07-27 19:10 Shen, Chang (MSFC-EV43)
  2018-07-27 22:29 ` Mark Geisert
  0 siblings, 1 reply; 5+ messages in thread
From: Shen, Chang (MSFC-EV43) @ 2018-07-27 19:10 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-07-27 23:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-28 20:44 needed : building instruction of newlib under window 10 cygwin32 or cygwin64ls Shen, Chang (MSFC-EV43)
2018-07-30  1:52 ` Mark Geisert
  -- strict thread matches above, loose matches on Subject: below --
2018-07-27 19:10 Shen, Chang (MSFC-EV43)
2018-07-27 22:29 ` Mark Geisert
2018-07-27 23:11   ` Mark Geisert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).