Re: How to add comma to a list?

2005-07-12 Thread Ted Stern
On 12 Jul 2005 at 10:14 UTC-0700, Ted Stern wrote: > Hi all, > > What is the proper way to insert commas into each word of a GNU Make > variable? > > I want to change FOO something like this: > > FOO := a b c d e > FOO := $(patsubst %,-Wl,-y,%_,$(FOO)) > &

How to add comma to a list?

2005-07-12 Thread Ted Stern
Hi all, What is the proper way to insert commas into each word of a GNU Make variable? I want to change FOO something like this: FOO := a b c d e FOO := $(patsubst %,-Wl,-y,%_,$(FOO)) to get -Wl,-y,a_ -Wl,-y,b_ -Wl,-y,c_ -Wl,-y,d_ -Wl,-y,e_ Somehow I need to comment the comma s

Re: Missing feature

2005-06-21 Thread Ted Stern
e. Your dummy target will be built first. When it comes time to run the .o rules, those files will already be updated and their rules won't be run. SRCS := a.cc b.cc c.cc OBJS := $(SRCS:.cc=.o) .PHONY: dummy dummy: $(SRCS) $(C

Re: gmake on Cray X1

2005-05-06 Thread Ted Stern
I do is that I go the opposite direction: I give a list of directories (which you could extract via a $(shell) command to find piped through sed, etc.), then I include the makefiles under those directories. Ted -- Ted Stern Applications Group Cray Inc.

Re: gmake on Cray X1

2005-05-06 Thread Ted Stern
On 5 May 2005 at 14:25 UTC-0700, Kate Hedstrom wrote: On Thu, May 05, 2005 at 01:06:28PM -0700, Ted Stern wrote: > On 3 May 2005 at 17:05 UTC-0700, Kate Hedstrom wrote: >> > I have managed to build gnu make on a Cray X1, but I ran into a >> > couple snags. Here's th

Re: gmake on Cray X1

2005-05-06 Thread Ted Stern
ware module (module load open). Is 'open' not available on your machine? Ted -- Ted Stern Applications Group Cray Inc. office: 206-701-2182 411 First Avenue South, Suite 600 cell: 206-383-1049 S

Re: make handling of prerequisites that interlock?

2005-04-05 Thread Ted Stern
#x27;. > Finished prerequisites of target file `a'. > Prerequisite `c' is newer than target `a'. > Prerequisite `b' is older than target `a'. > No need to remake target `a'. Very strange. I would have expected b to have b

Re: rm

2004-10-13 Thread Ted Stern
SHELL = /bin/ksh RM= /bin/rm : $(RM) -f *.o Make sure you have a leading tab before the $(RM) command. Ted -- Ted Stern Applications Group Cray Inc. office: 206-701-2182 411 First Avenue South, Suite 600

confusion over eval and warning

2004-06-21 Thread Ted Stern
oesn't show the output I want. I'm sure I'm misunderstanding something, but I don't see what it is. Thanks for your time, -- Ted Stern Applications Group Cray Inc. office: 206-701-2182 411 First Avenue South,

Re: wish: multiple target patterns in a static pattern rule

2004-04-13 Thread Ted Stern
iles never forks a shell -- check for yourself using make -d. I think of this style as a "primary file + byproduct file(s)" rule. You can reduce potential compilation cascades even further by ensuring that your *.gob processor compares previously existing output files against th

Re: GNU make 3.81beta1 released

2004-03-11 Thread Ted Stern
+ crosspost to bug-make] Hi Paul, thanks for the update! Two comments: - The backslash in your post made a simple click on the link non-trivial to follow. - In my Cray UNICOS build (on an SV1ex), I get a failure of the parallelism test. Is there a simple

Re: filter-out, very slow?

2004-01-30 Thread Ted Stern
On 30 Jan 2004 at 11:03 PST, Ted Stern wrote: > > On 30 Jan 2004 at 09:55 PST, Daniel Shane wrote: >> I see, >> >> In that case, could we add a new text function that would work like >> filter-out, but simply faster? We could call it comm. The reason is quite

Re: filter-out, very slow?

2004-01-30 Thread Ted Stern
akeLongList.mk libfoo.a: $(AR_OBJS) $(call MAKE_LONG_LIST,$(AR_LIST),$(AR_OBJS)) $(XARGS) $(AR) $(ARFLAGS) $@ < $(AR_LIST) This is pretty fast, incidentally. Ted -- Ted Stern Applications Group Cray Inc. office: 206-7

Re: Enhancement request regarding make variable names

2004-01-09 Thread Ted Stern
ooking something like this: Actually, I use slashes (strokes for our British readers) in my variable names. There are times when I find this convenient. If you want to prohibit them, it might be better to use an option to turn it off. Ted -- Ted Stern

Re: look at this "bug"...

2003-12-09 Thread Ted Stern
ig news in the Linux world last week. Most cvs access to many GNU projects is on hold at the moment. It may take a few more days (weeks?) to clear this up. Ted -- Ted Stern Applications Group Cray Inc. office: 206-701-2182 411 Firs

Re: Bug or is it me?

2003-12-08 Thread Ted Stern
r "make" with no arguments. But I can't really explain why! Maybe Paul can do better ... Ted -- Ted Stern Applications Group Cray Inc. office: 206-701-2182 411 First Avenue South, Suite 600 cell: 206-383-1049

Re: ifneq gnumake bug

2003-11-19 Thread Ted Stern
his doesn't seem empty to me: $^") Apologies if I get the syntax wrong, but I think you get the idea. -- Ted Stern Applications Group Cray Inc. office: 206-701-2182 411 First Avenue South, Suite 600 cell: 206-383-

Re: Bug#218367: make: strange behavior with multi-target rules

2003-11-11 Thread Ted Stern
em, try running make with the -d flag. Ted -- Ted Stern Applications Group Cray Inc. office: 206-701-2182 411 First Avenue South, Suite 600 cell: 206-383-1049 Seattle, WA 98104-2860 FAX: 206-701-2500

Re: make check for 3.80

2003-07-16 Thread Ted Stern
On 16 Jul 2003, Christian Krackowizer wrote: > > Hi, > > I have 1 error in 'make check' on I get the same error on UNICOS (Cray SV1) using recent CVS source. Oddly enough, parallelism seems to work just fine. Could there be a timing issue her

Re: problems with $(eval include...)

2003-06-26 Thread Ted Stern
hanged whenever the source file is touched and recompiled, this can lead to unnecessary cascades of recompilation, even when the interface has not changed. If you ever run into a situation like this, see http://www.theochem.uwa.edu.au/fortran/recompile/ Ted -- Ted

Re: make: *** virtual memory exhausted. Stop.

2003-06-23 Thread Ted Stern
On 23 Jun 2003, Paul D. Smith wrote: > %% Ted Stern <[EMAIL PROTECTED]> writes: > > ts> My version of the "make: *** virtual memory exhausted. Stop." bug > ts> occurs from trying to include 1000's of files. It doesn't matter > ts> how large

Re: make: *** virtual memory exhausted. Stop.

2003-06-22 Thread Ted Stern
I have verified that the bug has not been fixed in current CVS. Sure would be nice if somebody with access to purify could run it on GNU make ... Ted -- Ted Stern Applications Group Cray Inc. office: 206-701-2182 411 First

Re: Canned command sequences

2003-06-20 Thread Ted Stern
are applied only to the first shell, so the second line of $(rule_up) is echoed. Paul, did I get that right? Ted -- Ted Stern Applications Group Cray Inc. office: 206-701-2182 411 First Avenue South, Suite 600 cell: 206-383-1049

Re: EINTR causing useless recompilation?

2003-01-24 Thread Ted Stern
ll that can return EINTR > must respect the SA_RESTART flag. This seems to be grounds for a bug report to Sun. Since they get a lot of benefit from GNU software being available for their systems, it seems to me that they might make some effort to try and fix it, if you bring the matter to their

Re: Use of $* in computed dependencies

2003-01-23 Thread Ted Stern
te that if the byproduct files are out of date with respect to the object file, you'll still go into the %.byproduct rule, but if the byproduct file exists, the rule exits and files that depend on it won't get recompiled in a compilation cascade. Ted -- Ted Stern

Re: Problem with shell commands on Digital UNIX V4.0F.

2002-12-20 Thread Ted Stern
On Thu, 19 Dec 2002, Matt Hodges wrote: >>>>>> Ted Stern writes: > > > Interesting. For the bash test, try > > > SHELL := /bin/bash --noprofile --norc > > > If that doesn't work, try adding --posix. > > The --norc option makes

Re: Problem with shell commands on Digital UNIX V4.0F.

2002-12-18 Thread Ted Stern
On Wed, 18 Dec 2002, Matt Hodges wrote: >>>>>> Ted Stern writes: > > > > I'm having problems building a program on Digital UNIX V4.0F, and > > > it seems to boil down to the following observed behaviour on this > > > platform. The results

Re: Problem with shell commands on Digital UNIX V4.0F.

2002-12-18 Thread Ted Stern
SHELL := /bin/ksh ? Ted -- Ted Stern Engineering Applications Cray Inc. office: 206-701-2182 411 First Avenue South, Suite 600 cell: 206-383-1049 Seattle, WA 98104-2860 FAX: 206-701-2500 Debuggers

Re: possible bug in Cray port -- "virtual memory exhausted"

2002-12-18 Thread Ted Stern
BB_5/_9/_8.mk' (search path) (no ~ expansion)... Reading makefile `/ptmp/stern/testmake/_4/_5/_9/_9.mk' (search path) (no ~ expansion)... make: *** virtual memory exhausted. Stop. As you can see, the memory is exhausted when 5

Re: possible bug in Cray port -- "virtual memory exhausted"

2002-12-17 Thread Ted Stern
GNU utilities (and who knows what else) I was unsuccessful. Ted -- Ted Stern Engineering Applications Cray Inc. office: 206-701-2182 411 First Avenue South, Suite 600 cell: 206-383-1049 Seattle, WA 98104-2860

possible bug in Cray port -- "virtual memory exhausted"

2002-12-17 Thread Ted Stern
close to the 4300 limit. I've changed my auto-dependency generation commands to delete the deps files if they're empty, which eliminates the problem for now, but I was wondering if some inefficient memory operations have crept into v3.80's include file logic. Or perhaps the ev

Re: Strange GNU make behavior with -include ?

2002-12-04 Thread Ted Stern
gt; I tested this myself with 3.80. If you add .INTERMEDIATE: fake.c to the second example, it then has the same behavior as the first. I'll let Paul explain why, as I would probably make a botch of it. ;-) Ted -- Ted Stern Engineering Applications Cr