delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_YG |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4D826382.2090000@gmail.com> |
Date: | Thu, 17 Mar 2011 19:39:46 +0000 |
From: | Dave Korn <dave DOT korn DOT cygwin AT gmail DOT com> |
User-Agent: | Thunderbird 2.0.0.17 (Windows/20080914) |
MIME-Version: | 1.0 |
To: | Cygwin Mailing List <cygwin AT cygwin DOT com> |
Subject: | Cygport woes: CHOST not defined. |
X-IsSubscribed: | yes |
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 |
Hi list, Attempting to rebuild gcc4-4.3.4-3 from source, I got a bunch of error messages during the install stage of cygport: > Fixing libtool modules: > /usr/lib/cygport/src_postinst.cygpart: line 763: test: i686-pc-cygwin: unary operator expected [ ... snip several more ... ] > Stripping executables: > /usr/lib/cygport/syntax.cygpart: line 191: test: i686-pc-cygwin: unary operator expected > /usr/lib/cygport/syntax.cygpart: line 191: test: !=: unary operator expected > usr/bin/c++-4.exe > /usr/lib/cygport/syntax.cygpart: line 191: test: i686-pc-cygwin: unary operator expected > /usr/lib/cygport/syntax.cygpart: line 191: test: !=: unary operator expected [ ... snip several more ... ] Looking at the context, I infer that CHOST must be undefined: > 760 # would otherwise be CHOST, but gcc ships $target libraries > 761 case ${CTARGET} in > 762 *-*-cygwin*|*-*-mingw*) > 763 if test ${CTARGET} != ${CHOST} # cross-compiler, use sysroot > 764 then > 765 dodir /usr/${CTARGET}/sys-root/$(__target_prefix)/bin > 766 mv ${ltlibdir}/${dlname} ${D}/usr/${CTARGET}/sys-root/$(__target_prefix)/bin/ > 767 else > 768 origdlname=${dlname} ... and quite likely CBUILD as well: > 190 __cross_compiling() { > 191 return $(test ${CBUILD} != ${CHOST} || test ${CHOST} != ${CTARGET}) > 192 } This is basically a clean build - I renumbered the -3 extensions to -4, but the cygport script is unchanged(*) so maybe there's something wrong in my src_install override, to do with cygport's new cross-compiling features? I'll be grepping away trying to find out where these variables are supposed to come from, but any hints that could speed up my debugging would be appreciated! cheers, DaveK -- (*) - http://www.mirrorservice.org/sites/sourceware.org/pub/cygwin/release/gcc4/gcc4-4.3.4-1-src.tar.bz2/gcc4-4.3.4-1.cygport?extract=true -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |