X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=oGP/SlmxdsLM9ppn
	Lm9qnU3crin2heuthf6FqJG0ttKXQlasO6gkdxNwGKjm6IqbpwTphtTjGvo0sxFX
	D43L3oLalznd3U3wCDM8z8AeCg+mOLKMuVnXMTFeSzb26+dI+EMJH8/TgUgHY8BS
	wwWB6DLfUEl7Cuk531i+SKHDEzQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=vk9K3fd6XjKMyGNZWRbodC
	k4c3M=; b=PwSv7497wlXygYUnW4hkUjloiiwrQvd5t3x5Tc04E2aH4c72wX5vmp
	WNxguP8m/01A31mY3PrXBGhysinGlgXqS7bPPtnDsUX2oE+ilsKlNYZPBRxYzSbC
	Z/Yfg1qKHnOrnEvj3X2HEhgQ8mCndQNxBEBzDpkrYgi1aDda+2vf4=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=Hx-languages-length:1644, shen, sk:newlib
X-HELO: m0.truegem.net
Subject: Re: needed : building instruction of newlib under window 10 cygwin32 or cygwin64ls
To: cygwin@cygwin.com
References: <B242BB0F12C2544BB4FEB0B1B67AAF8E15BCC413@NDMSMBX402.ndc.nasa.gov>
From: Mark Geisert <mark@maxrnd.com>
Message-ID: <0ff02a77-4a12-0f39-bd92-6963adff6100@maxrnd.com>
Date: Fri, 27 Jul 2018 09:51:27 -0700
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46
MIME-Version: 1.0
In-Reply-To: <B242BB0F12C2544BB4FEB0B1B67AAF8E15BCC413@NDMSMBX402.ndc.nasa.gov>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Note-from-DJ: This may be spam

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

