[ET Trac] #2908: Cactus: Fixed arg list too long error.

Roland Haas trac-noreply at einsteintoolkit.org
Fri Jan 23 13:44:59 CST 2026


#2908: Cactus: Fixed arg list too long error.

 Reporter: Max Morris
   Status: open
Milestone: 
  Version: 
     Type: bug
 Priority: major
Component: 

Comment (by Roland Haas):

The key line in the proposed change is

```
OBJS-bytes := $(shell (echo -n $(OBJS) | wc --bytes) 2>/dev/null || echo -1)
```

However making a small dummy Makefile:  

```
# make a long set of arguments >2million
OBJS=$(shell awk 'BEGIN{for(i=0;i<200000;i++) print "01234567890";exit'})

OBJS-bytes := $(shell (echo -n $(OBJS) | wc --bytes) 2>/dev/null || echo -1)

$(info $(OBJS-bytes))
```

and running via

```
make -f Makefile
```

on my Debian based Linux box I get:

```
haengie2: ~/tmp$ make -f Makefile
make: /bin/sh: Argument list too long

make: *** No targets.  Stop.
```

ie not the expected output of either `-1`or the length of `OBJS`.  
So this does not seem to work for me.

--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2908/cactus-fixed-arg-list-too-long-error
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.einsteintoolkit.org/pipermail/trac/attachments/20260123/f89450a7/attachment.htm>


More information about the Trac mailing list