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

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:from:to:subject:date:message-id:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=CoW
SjojKmZtPIIn3qBH4m8B42Ugxr93tYrlAU2rTlK4X+y1kh0rBQDcxo/8Zx4J97Qt
uFPVnjC4BVz5JHOIFY/UR0xxmHkMbbmmuvxBjs3Y/SBRh+YzwLG9NwXws/VRaITc
c3Jv0YlxZQrDmXNp9NnB+nIWhxcG1IYjiD8XaYDc=
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:from:to:subject:date:message-id:mime-version
:content-type:content-transfer-encoding; s=default; bh=wcj/aiAz5
l1dVrjyWxbXklhmgFE=; b=YGoJrN4VXbLjDYJArC9KTqtD10pzFvB85U9OGlM7N
VIVxPkLSOM+4asfhwTu7kS3purT9cs9GXCXVU7aRlMtorKcZiMQO+GWCPtxzDjf2
lu/LOuvjpMwotRC1/14TOw7gbZRysyBun5JiY29jV0+Jjw0tjFpMZUL9ABL8UmTH
VU=
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=-0.0 required=5.0 tests=BAYES_20,HTML_MESSAGE,SPF_PASS autolearn=ham version=3.3.2 spammy=Wish, UD:cygwin.com, H*MI:gov, 2.69
X-HELO: ndmsvnpf101.ndc.nasa.gov
X-Comment: SPF check N/A for local connections - client-ip=198.117.0.47; helo=ndmsppt202.ndc.nasa.gov; envelope-from=chang DOT shen-1 AT nasa DOT gov; receiver=cygwin AT cygwin DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 ndmsvnpf101.ndc.nasa.gov BEE8F40059C3
From: "Shen, Chang (MSFC-EV43)" <chang DOT shen-1 AT nasa DOT gov>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: needed : building instruction of newlib under window 10 cygwin32 or cygwin64ls
Date: Fri, 27 Jul 2018 16:31:17 +0000
Message-ID: <B242BB0F12C2544BB4FEB0B1B67AAF8E15BCC413@NDMSMBX402.ndc.nasa.gov>
MIME-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id w6RGVWng016710

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


- Raw text -


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