delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/07/27/12:51:48

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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 AT cygwin DOT com
References: <B242BB0F12C2544BB4FEB0B1B67AAF8E15BCC413 AT NDMSMBX402 DOT ndc DOT nasa DOT gov>
From: Mark Geisert <mark AT maxrnd DOT 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>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019