public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Problem with make
@ 2013-06-05  7:00 Lange, Jan-Erik
  2013-06-05  7:31 ` Corinna Vinschen
  0 siblings, 1 reply; 30+ messages in thread
From: Lange, Jan-Erik @ 2013-06-05  7:00 UTC (permalink / raw)
  To: cygwin

Hello all,

I tried to make a binary of a softcore processor called J1: http://excamera.com/sphinx/fpga-j1.html

I installed the latest cygwin version available and all the devel packages. 

Doing "make j1.bin" I get:

3 [main] gforth 4824 dtable::stdio_init: couldn't make stderr distinct from stdout

I'm executing the cygwin terminal directly on my computer. I already searched for a solution in the archive, but only found hints, that it could be an incompatibility issue when updating parts of cygwin (I installed it completely new) or I you execute the bash from a telnet client.

I use Windows 7 Ultimate service pack 1. Do you have an idea how to solve this problem?

Regards,
Jan
--
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

^ permalink raw reply	[flat|nested] 30+ messages in thread
* problem with make
@ 2002-04-22  0:50 Jason Morgan
  0 siblings, 0 replies; 30+ messages in thread
From: Jason Morgan @ 2002-04-22  0:50 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

Hi,


I'm having a problem using Cygwin as a platform for gcc running as a cross
compiler.

When doing make dep on a kernel tree, the following happens.

On the make line dep-files, the make file reads

dep-files:
	scripts/mkdep archdep include/linux/version.h
	scripts/mkdep -- init/*.c > .depend
	scripts/mkdep -- `find $(FINDHPATH) -name SCCS -prune -o -follow
-name \*.h ! -name modversions.h -print` > .hdepend
	$(MAKE) $(patsubst %,_sfdep_%,$(SUBDIRS))
_FASTDEP_ALL_SUB_DIRS="$(SUBD
ifdef CONFIG_MODVERSIONS
	$(MAKE) update-modverfile
endif


Its the third line causing the problem where the result of find
scripts/mkdep is a result of a find.

The error is:
scripts/mkdep: error 22

This error seems to come from the shell (bash)

The 'find' works OK on its own, and the previous two 'mkdep's' do as well.
So the only conslusion is the resulting
command line from the find is upsetting the shell when it passes the
parameters into mkdep.

Isolating this one line into a shell script seem to support this theory.

Bash in my cygwin is version 2.05a.0(3)



Any help appreciated,

Jason.

--
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/

^ permalink raw reply	[flat|nested] 30+ messages in thread
[parent not found: <200103150254.SAA09865@cygnus.com>]
* Problem with make
@ 2001-03-14 18:54 Mark Paulus
  0 siblings, 0 replies; 30+ messages in thread
From: Mark Paulus @ 2001-03-14 18:54 UTC (permalink / raw)
  To: cygwin

I have noticed a problem with make.  Here goes:

I have a small program, hello.cc:

-------------------[ code ]-------------------------------------------
#include <iostream.h>
#include <stdio.h>

void main (void)
{
    cout << "Hello World!!" << endl;
}
-------------------[ end code ]-------------------------------------

Now, when I do a 'make hello', 
under debian everything works fine, and I get an
executable called hello. which I can run.
Under cygwin, I do not see the same behaviour.
Instead, what I see is:

gcc     hello.cc   -o hello
/cygdrive/c/WINDOWS/TEMP/ccYbTAo7.o(.text+0x1f):hello.cc: undefined reference to
 `endl(ostream &)'
/cygdrive/c/WINDOWS/TEMP/ccYbTAo7.o(.text+0x2c):hello.cc: undefined reference to
 `cout'
/cygdrive/c/WINDOWS/TEMP/ccYbTAo7.o(.text+0x31):hello.cc: undefined reference to
 `ostream::operator<<(char const *)'
collect2: ld returned 1 exit status
make: *** [hello] Error 1

After further investigation, what is going on is that under linux, make is calling g++ by default
for files with a .cc extension, but under cygwin, make is calling gcc by default.  Does anyone 
know what the rationale is for this "exceptional" behaviour under cygwin??



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 30+ messages in thread
* RE: problem with make
@ 2000-08-17  9:43 Brian Pollard
  2000-08-17 23:26 ` Lassi A. Tuura
  0 siblings, 1 reply; 30+ messages in thread
From: Brian Pollard @ 2000-08-17  9:43 UTC (permalink / raw)
  To: 'Lassi A. Tuura', 'cygwin@sourceware.cygnus.com'

It preserves the trailing spaces when the quotes are not used and I believe
it shouldn't.  I wrote the email with quotes to emphasize the trailing
zeros.

thanx
	Brian

so
hehe=.                #comment
makes hehe stored as ".               "
when i think it should only store "." as make does in solarias




-----Original Message-----
From: Lassi A. Tuura [ mailto:lassi.tuura@cern.ch ]
Sent: Wednesday, August 16, 2000 11:01 PM
To: Heribert Dahms
Cc: Brian Pollard; cygwin@sourceware.cygnus.com
Subject: Re: problem with make


> I never used trailing comments and $(strip) is also new to me,
> but is it really true that the obvious quoted
> var="value      "
> does NOT preserve trailing spaces?

Well, it does preserve the spaces -- but only because as far as make is
concerned, $(var) is `"value      "', quotes and all.  In other words,
there are no trailing spaces in your example :-)

Cheers and have a great week,
//lat
-- 
C makes it too easy to slice your fingers off, and programmers all
over the world are doing so with great regularity.  --Steven Bellovin

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 30+ messages in thread
* RE: problem with make
@ 2000-08-16 15:58 Noel L Yap
  0 siblings, 0 replies; 30+ messages in thread
From: Noel L Yap @ 2000-08-16 15:58 UTC (permalink / raw)
  To: heribert_dahms; +Cc: Lassi.Tuura, B_Pollard, Cygwin

heribert_dahms@icon-gmbh.de on 2000.08.16 16:09:02
>I never used trailing comments and $(strip) is also new to me,
>but is it really true that the obvious quoted
>var="value      "
>does NOT preserve trailing spaces?

Yes.  The double quotes will be part of $(var) so there are no trailing spaces.

Noel



This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan & Co. Incorporated, its
subsidiaries and affiliates.


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 30+ messages in thread
* Re: problem with make
@ 2000-08-16 15:23 Noel L Yap
  0 siblings, 0 replies; 30+ messages in thread
From: Noel L Yap @ 2000-08-16 15:23 UTC (permalink / raw)
  To: lassi.tuura; +Cc: B_Pollard, Cygwin

lassi.tuura@cern.ch on 2000.08.16 07:34:25
>>         hehe=.           #some comment
>> hehe stores ".            " instead of "./"
>
>This is documented make behaviour -- and in fact the only way to get
>trailing space to a variable value.  As someone else already replied, if
>that's not what you want, just move the comment to another line or use
>$(strip).

Well, ..., actually, you can:
BLANK:=
SPACE:=$(BLANK) $(BLANK)
STUFF:=.$(SPACE)$(SPACE)

Noel



This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan & Co. Incorporated, its
subsidiaries and affiliates.


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 30+ messages in thread
* RE: problem with make
@ 2000-08-16 13:12 Heribert Dahms
  2000-08-16 23:01 ` Lassi A. Tuura
  0 siblings, 1 reply; 30+ messages in thread
From: Heribert Dahms @ 2000-08-16 13:12 UTC (permalink / raw)
  To: 'Lassi A. Tuura', Brian Pollard; +Cc: cygwin

Hi,

I never used trailing comments and $(strip) is also new to me,
but is it really true that the obvious quoted
var="value      "
does NOT preserve trailing spaces?

Bye, Heribert (heribert_dahms@icon-gmbh.de)

> -----Original Message-----
> From:	Lassi A. Tuura [SMTP:lassi.tuura@cern.ch]
> Sent:	Wednesday, August 16, 2000 13:34
> To:	Brian Pollard
> Cc:	cygwin@sourceware.cygnus.com
> Subject:	Re: problem with make
> 
> >         hehe=.           #some comment
> > hehe stores ".            " instead of "./"
> 
> This is documented make behaviour -- and in fact the only way to get
> trailing space to a variable value.  As someone else already replied,
> if
> that's not what you want, just move the comment to another line or use
> $(strip).
> 
> Hope this helps,
> //lat
> -- 
> A new scientific truth does not triumph by convincing its
> opponents and making them see the light, but rather because
> its opponents eventually die, and a new generation grows up
> that is familiar with it.  --Planck, 1949
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 30+ messages in thread
* problem with make
@ 2000-08-15 10:37 Brian Pollard
  2000-08-16  0:01 ` Avraham H. Fraenkel
  2000-08-16  4:34 ` Lassi A. Tuura
  0 siblings, 2 replies; 30+ messages in thread
From: Brian Pollard @ 2000-08-15 10:37 UTC (permalink / raw)
  To: cygwin

when using a make file, assignment statements such as:

	hehe=.           #some comment

hehe stores ".            " instead of "./"

this causes problems when accessing something such as:

	$(hehe)/mine.h

because it is interpreted as ".           /mine.h"


I would guess that the source code needs to be modified, any suggestions???

Thanks,
	Brian

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 30+ messages in thread
* RE: Problem with make
@ 1999-06-10  4:56 Brown, Kim
  1999-06-30 22:10 ` Brown, Kim
  0 siblings, 1 reply; 30+ messages in thread
From: Brown, Kim @ 1999-06-10  4:56 UTC (permalink / raw)
  To: cygwin

My version of GNU make is 3.75 (supplied with b20.1 I think).  I did not
know there was a 3.77 out there.  Looks like I need to upgrade and see if my
problems with makefiles go away.

> -----Original Message-----
> From: N8TM@aol.com [ mailto:N8TM@aol.com ]
> Sent: Thursday, June 10, 1999 2:12 AM
> To: Kim.Brown@wl.com; Dave.Blob@gs.com; cygwin@sourceware.cygnus.com
> Subject: Re: Problem with make
> 
> 
> In a message dated 6/9/99 9:45:12 AM Pacific Daylight Time, 
> Kim.Brown@wl.com 
> writes:
> 
> > I have found GNU make to be buggy with some makefiles, 
> especially those
> >  generated by PERL install packages.  I just use nmake from 
> microsoft 
> without
> >  problems.  Anyone else have problems with GNU make?
> 
> Do you mean gnu make as in b20.1?  It has serious problems 
> with recursive 
> makefiles (e.g. egcs configure and build).  For my purposes, 
> replacing it 
> with make-3.77 has been satisfactory, 

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 30+ messages in thread
* Re: Problem with make
@ 1999-06-09 23:12 N8TM
  1999-06-30 22:10 ` N8TM
  0 siblings, 1 reply; 30+ messages in thread
From: N8TM @ 1999-06-09 23:12 UTC (permalink / raw)
  To: Kim.Brown, Dave.Blob, cygwin

In a message dated 6/9/99 9:45:12 AM Pacific Daylight Time, Kim.Brown@wl.com 
writes:

> I have found GNU make to be buggy with some makefiles, especially those
>  generated by PERL install packages.  I just use nmake from microsoft 
without
>  problems.  Anyone else have problems with GNU make?

Do you mean gnu make as in b20.1?  It has serious problems with recursive 
makefiles (e.g. egcs configure and build).  For my purposes, replacing it 
with make-3.77 has been satisfactory,  at least when running NT or W2K.  We 
have had hints here that a modified make-3.77 will be in the next major 
version of cygwin.

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 30+ messages in thread
* Re: Problem with make
@ 1999-06-09 12:17 Phil Edwards
  1999-06-30 22:10 ` Phil Edwards
  0 siblings, 1 reply; 30+ messages in thread
From: Phil Edwards @ 1999-06-09 12:17 UTC (permalink / raw)
  To: cygwin; +Cc: Dave.Blob

> Anyhow, Turns out that in the directory where jikes.exe is, he had a
> directory named jikes also - make was trying to execute it, but bash wasn't.

Bash knows better, is all.  It seems to add ".exe" to program calls just
fine.  Make isn't aware that it's running under Lose32, so when it looks
for "jikes" that's what it finds.

> So obviously, this is a bug in make - it must be looking for a program named
> jikes before jikes.exe - I guess.  Either that, or it's not checking to make
> sure it's a directory when it checks.  

It's both of those.  The first is not really a bug per se (I bet that if your
makefile called jikes.exe instead, both you and your coworker would be okay).
The second should probably be tweaked, although that would usually just be
unnecessary overhead.

I am not knowledgeble about the ways of Cygwin.  Perhaps there is a better
way when building GNU make to change that behavior.  I have "solved" a
number of GNU make problems by just running it inside bash.exe than from
cmd.exe directly.


phil


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 30+ messages in thread
* RE: Problem with make
@ 1999-06-09  9:43 Brown, Kim
  1999-06-09 12:26 ` Don Sharp
  1999-06-30 22:10 ` Brown, Kim
  0 siblings, 2 replies; 30+ messages in thread
From: Brown, Kim @ 1999-06-09  9:43 UTC (permalink / raw)
  To: 'Blob, Dave', 'cygwin@sourceware.cygnus.com'

I have found GNU make to be buggy with some makefiles, especially those
generated by PERL install packages.  I just use nmake from microsoft without
problems.  Anyone else have problems with GNU make?

> 
> Ok, this is a wierd one, so bear with me.
> 
> I've been using cygwin to do some java development with a 
> coworker.  For a
> while, we were just doing "jikes *.java", and had no problems.  As the
> project grew, we split things into packages and added 
> Makefiles to build the
> whole project.  The problem that showed up was that it worked 
> for me, but
> not for him - he'd get an error message each time that said "jikes -
> permission denied".  The same command that make was trying to 
> execute worked
> from the command line though... Perplexing.  We switched to 
> javac - worked
> fine.  
> 
> Anyhow, Turns out that in the directory where jikes.exe is, he had a
> directory named jikes also - make was trying to execute it, 
> but bash wasn't.
> 
> 
> So obviously, this is a bug in make - it must be looking for 
> a program named
> jikes before jikes.exe - I guess.  Either that, or it's not 
> checking to make
> sure it's a directory when it checks.  I don't mind tracking 
> this one down
> and submitting a bug fix, but I thought I ought to find out 
> if it's been
> heard of or fixed, etc.
 

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 30+ messages in thread
* Problem with make
@ 1999-06-09  9:36 Blob, Dave
  1999-06-30 22:10 ` Blob, Dave
  0 siblings, 1 reply; 30+ messages in thread
From: Blob, Dave @ 1999-06-09  9:36 UTC (permalink / raw)
  To: 'cygwin@sourceware.cygnus.com'

Ok, this is a wierd one, so bear with me.

I've been using cygwin to do some java development with a coworker.  For a
while, we were just doing "jikes *.java", and had no problems.  As the
project grew, we split things into packages and added Makefiles to build the
whole project.  The problem that showed up was that it worked for me, but
not for him - he'd get an error message each time that said "jikes -
permission denied".  The same command that make was trying to execute worked
from the command line though... Perplexing.  We switched to javac - worked
fine.  

Anyhow, Turns out that in the directory where jikes.exe is, he had a
directory named jikes also - make was trying to execute it, but bash wasn't.


So obviously, this is a bug in make - it must be looking for a program named
jikes before jikes.exe - I guess.  Either that, or it's not checking to make
sure it's a directory when it checks.  I don't mind tracking this one down
and submitting a bug fix, but I thought I ought to find out if it's been
heard of or fixed, etc.

Thanks,
Dave

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 30+ messages in thread
* problem with make
@ 1998-08-06 14:36 Stuart
  1998-08-07 10:39 ` Stuart
  0 siblings, 1 reply; 30+ messages in thread
From: Stuart @ 1998-08-06 14:36 UTC (permalink / raw)
  To: gnu-win32

Hi all, I'm a newbie on this list, and to Windoze in general.  Porting
some make stuff over from Unix, I've stumbled across a makefile syntax
problem.  To declare a generic rule, I'd do

%.class : %.java

now, the class file may be in a diff directory.  I am used to

DEPDIR = /home/stu/files/stuff

$(DEPDIR)/%.class : %.java
	build class file from java src

of course on bloody NT, DEPDIR may contain a colon, e.g

DEPDIR = e:\files\stuff

this blows up make since the substituted line reads

e:\files\stuff\%.class : %.java

which has a colon where one is not expected.  I could remove the
depdir from the target name and do a manual move of the class file
after compiling it but I feel that's messy.

I have tried all sorts to escape the colon but nothing works.  The
make error is "missing separator"

Any help gratefully appreciated...


-- 
Stuart Maclean, Research Associate
University of Washington
ITS Research Program, College of Engineering
Box 352500
Seattle, WA 98195-2500
Tel: (206) 543-0637
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2013-06-05  7:31 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <009001c17d8a$9ad87380$9a5f07d5@BRAMSCHE>
2001-12-05  5:26 ` problem with make Earnie Boyd
2013-06-05  7:00 Problem " Lange, Jan-Erik
2013-06-05  7:31 ` Corinna Vinschen
  -- strict thread matches above, loose matches on Subject: below --
2002-04-22  0:50 problem " Jason Morgan
     [not found] <200103150254.SAA09865@cygnus.com>
2001-03-14 19:04 ` Problem " Christopher Faylor
2001-03-14 18:54 Mark Paulus
2000-08-17  9:43 problem " Brian Pollard
2000-08-17 23:26 ` Lassi A. Tuura
2000-08-16 15:58 Noel L Yap
2000-08-16 15:23 Noel L Yap
2000-08-16 13:12 Heribert Dahms
2000-08-16 23:01 ` Lassi A. Tuura
2000-08-15 10:37 Brian Pollard
2000-08-16  0:01 ` Avraham H. Fraenkel
2000-08-16  4:34 ` Lassi A. Tuura
1999-06-10  4:56 Problem " Brown, Kim
1999-06-30 22:10 ` Brown, Kim
1999-06-09 23:12 N8TM
1999-06-30 22:10 ` N8TM
1999-06-09 12:17 Phil Edwards
1999-06-30 22:10 ` Phil Edwards
1999-06-09  9:43 Brown, Kim
1999-06-09 12:26 ` Don Sharp
1999-06-30 22:10   ` Don Sharp
1999-06-30 22:10 ` Brown, Kim
1999-06-09  9:36 Blob, Dave
1999-06-30 22:10 ` Blob, Dave
1998-08-06 14:36 problem " Stuart
1998-08-07 10:39 ` Stuart
1998-08-09 11:19   ` Pete Jordan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).