delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/23/17:23:25

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <3E306BB5.6050404@techsol.ca>
Date: Thu, 23 Jan 2003 14:24:53 -0800
From: John McLean <john AT techsol DOT ca>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: gnu make under cygwin

Hi, I'm having some problems with GNU make under cygwin.  Everything 
works fine under linux, but it breaks under cygwin.

Below is the relevant snippit from my Makefile.

<snip>
#############################################################
#
# gcc1: uncompress and patch
#
#############################################################
.gcc1:
        rm -f .gcc1
        rm -rf ${GCC_PATH}
        bzcat ${BASEDIR}/sources/${GCC_SOURCE} | tar ${VERBOSE_TAR} -x
        # Apply all gcc patches in the source directory, named gcc-*.patch
        for p in ${BASEDIR}/sources/gcc-*.patch ; do \
                cat $$p | patch ${VERBOSE_PATCH} -p1 -d ${GCC_PATH} ; \
        done
        (cd ${GCC_PATH}; set -e; export LIST=`grep -lr ":gcrt1.o%s}" *`; \
                if [ -n "$$LIST" ] ; then \
                perl -i.orig -p -e "s,:gcrt1.o%s},:crt0.o%s},g;" \
                $$LIST; fi);
</snip>

It runs fine under linux, but under cygwin I get

<snip>
gcc-3.2.1/GNATS
gcc-3.2.1/.brik
# Apply all gcc patches in the source directory, named gcc-*.patch
for p in /home/david/tsi-tools-source/sources/gcc-*.patch ; do \
        cat $p | patch  -p1 -d 
"/home/david/tsi-tools-source/gcc-"3.2.1"" ; \
done
cat: /home/david/tsi-tools-source/sources/gcc-*.patch: No such file or 
directory

(cd "/home/david/tsi-tools-source/gcc-"3.2.1""; set -e; export 
LIST=`grep -lr "
:gcrt1.o%s}" *`; \
        if [ -n "$LIST" ] ; then \
        perl -i.orig -p -e "s,:gcrt1.o%s},:crt0.o%s},g;" \
        $LIST; fi);
export: gcc/config/arm/linux-elf.h: bad variable name
make: *** [.gcc1] Error 2
</snip>


Now the wierd thing is if I copy this output and type it on the command 
line everything works fine.

FYI: gcc/config/arm/linux-elf.h is the second file it finds.  And I'm 
trying to make a cross compiler for an embedded target.

All of the cygwin programs are from downloading them today Jan.23

Make is version 3.79.1
~                                                                                                                                                                                
~                                                        


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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