Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Injected-Via-Gmane: http://gmane.org/ To: cygwin AT cygwin DOT com From: "Ricky Wildman" Subject: Re: problems with make under cygwin Date: Thu, 28 Aug 2003 15:17:00 +0100 Lines: 493 Message-ID: References: X-Complaints-To: usenet AT sea DOT gmane DOT org X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 "Igor Pechtchanski" wrote in message news:Pine DOT GSO DOT 4 DOT 56 DOT 0308280903000 DOT 601 AT slinky DOT cs DOT nyu DOT edu... > On Thu, 28 Aug 2003, Ricky Wildman wrote: > > > Hi, > > > > I have recently installed cygwin and make components onto a PC. > > I have a working makefile for a set of Fortran programs that works > > fine with Solaris machine, but when I try these under cygwin I get > > the following error: > > > > Target pattern contains no '%' > > > > I'm a bit confused because I can't see any difference in the syntax > > required yet I get an error on one platform but not on the other. Perhaps > > there is a difference between gnumake and sun make? > > > > The relevant text in the makefile is > > ----makefile--- > > [snip] > > ---makefile end--- > > > > Cheers for any help > > Ricky > > There are most definitely differences between GNU make and sun make. > However, I don't know if they manifest in your particular Makefile. The > bit you posted was not enough to test anything with GNU make -- many > variable definitions were missing, plus you might want to attach the > Makefile next time, as line endings and tabs were screwed up by your > mailer. > > One thing I'd suggest, if you aren't already running GNU make on the Sun > machine ('make' is GNU make on our Solaris machine, for example) is try to > use 'gmake' or 'gnumake' on your Makefile and see if it works. In any > case, note the versions of both make's, and compare the GNU one with the > one you have on Cygwin. > > Another thing is line endings. CRLF line endings sometimes affect make > adversely, so if your Makefile contains them, try to run make with the > Makefile on a text mount, or filter out the CRs (by using d2u or "sed > 's/\r$//'"). > > And a general advice on reporting Cygwin problems: read > and follow the recommendations there. > In particular, we know nothing about your environment (i.e., what your > PATH is, what version of Cygwin make you have installed, what MAKE_MODE is > set to, what your mounts are, etc, etc). The output of "cygcheck -svr", > which the above document suggests you attach to your e-mail (as an > uncompressed text *attachment*) will contain most of this information. > Igor > -- > http://cs.nyu.edu/~pechtcha/ > |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu > ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com > |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. > '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! > > "I have since come to realize that being between your mentor and his route > to the bathroom is a major career booster." -- Patrick Naughton > ty, see attached files, makefile and cygcheck.txt The makefile is *intended* to compile a set of fortran programmes structured as follows: management_programs -pept_diff_new -Fortran -obj -bin -other directories library -general -Fortran -obj -bin -pept -Fortran -obj -bin -other directories It was originally written before I came along and updated in parts as I needed. When it works it compiles the code in say, pept_diff_new/Fortran and links with libraries generated by separate makefiles in library/general library/pept and so on (which are generated if they do not exist). I am no expert in this, and what i did know has gone particularly rusty, but I am told that the syntax has now changed. However, I cannot quite find an close example to get my head around what I want it to do. begin 666 makefile.dat M(R D260Z(&UA:V5F:6QE+'8@,2XQ+C$N,2 Q.3DW+S$R+S$P(#$V.C4R.C Y M(&UC'1R87,@/2 M;&8W-VEO("UL;F%G#0H-"B-P97!T M7V1I9F9?;F5W('!R;V=R86T-"G!E<'1?9&EF9E]N970T*#0HC3&EB2!F M:6QE0T*(TEN8VQU9&4 AT 9FEL97,@0T*24Y# M1$E2(#T@+BXO2!F:6QE2<@.R!<#0H)9FD AT DOT PT*#0H-"@T*(R M+2TM+2TM M+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM M+2TM+2TM+2TM+2TM+2TM+2TM+2TM+0T*(R!#6=W:6X AT 5VEN DOT 34O3E0@0V]N9FEG=7)A=&EO;B!$:6%G;F]S=&EC7-T96TS,@T*"6,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