public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Mark Geisert <mark@maxrnd.com>
To: cygwin@cygwin.com
Subject: Re: needed : building instruction of newlib under window 10 cygwin32 or cygwin64ls
Date: Fri, 27 Jul 2018 22:29:00 -0000	[thread overview]
Message-ID: <0ff02a77-4a12-0f39-bd92-6963adff6100@maxrnd.com> (raw)
In-Reply-To: <B242BB0F12C2544BB4FEB0B1B67AAF8E15BCC413@NDMSMBX402.ndc.nasa.gov>

Shen, Chang (MSFC-EV43) wrote:
> 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

You're on the right track, but didn't follow the FAQ entry exactly.  You can't 
build in the source directory or anywhere under the source directory.  The 
easiest way to set up to build is to have directories laid out like this:
     XXX/build
     XXX/install
     XXX/src
where XXX is whatever you like.  In the FAQ its "/oss" but anything works.

Have XXX/src contain the source tree, as a git clone or symlink elsewhere.  Then 
cd to XXX/build and do configure there, but reference XXX/src/configure.

The FAQ 6.21 really does explain the steps needed, but you must have the 
directories set up correctly, be in the correct directory, and have all the 
required packages needed for the platform you're building on.
HTH,

..mark


--
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

  reply	other threads:[~2018-07-27 16:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-27 19:10 Shen, Chang (MSFC-EV43)
2018-07-27 22:29 ` Mark Geisert [this message]
2018-07-27 23:11   ` Mark Geisert
2018-07-28 20:44 Shen, Chang (MSFC-EV43)
2018-07-30  1:52 ` Mark Geisert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0ff02a77-4a12-0f39-bd92-6963adff6100@maxrnd.com \
    --to=mark@maxrnd.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).