xargs etc
Simon Peyton-Jones
simonpj at microsoft.com
Wed Oct 21 12:30:28 EDT 2009
Ian, Simon
Look at the essay (!) by JohnD which he added today:
http://hackage.haskell.org/trac/ghc/wiki/Building/Preparation/Windows
And indeed, the ticket records a fix (by setting XARGS), but the makefiles don't use it! They use 'xargs' in several places (see grep log below).
This looks wrong.
I am not sure whether this would really fix JohnD's problem; he does not say how the problem manifests. I do not know to get his email address to ask him.
Simon
bash-3.2$ find . -name '*mk*' | xargs grep xargs
./_darcs/pristine/mk/config.mk.in:XARGS = xargs -s 30000
./_darcs/pristine/mk/config.mk.in:XARGS = xargs
./_darcs/pristine/ghc.mk: cd $(SRC_DIST_DIR) && "$(FIND)" $(SRC_DIST_DIRS) \( -name _darcs -o -name SRC -o -name "autom4te*" -o -name "*~" -o -name ".cvsignore" -o -name "\#*" -o -name ".\#*" -o -name "log" -o -name "*-SAVE" -o -name "*.orig" -o -name "*.rej" -o -name "*-darcs-backup*" \) -print | xargs "$(RM)" $(RM_OPTS) -r
./mk/config.mk.in:XARGS = xargs -s 30000
./mk/config.mk.in:XARGS = xargs
./ghc.mk: cd $(SRC_DIST_DIR) && "$(FIND)" $(SRC_DIST_DIRS) \( -name _darcs -o -name SRC -o -name "autom4te*" -o -name "*~" -o -name ".cvsignore" -o -name "\#*" -o -name ".\#*" -o -name "log" -o -name "*-SAVE" -o -name "*.orig" -o -name "*.rej" -o -name "*-darcs-backup*" \) -print | xargs "$(RM)" $(RM_OPTS) -r
./nofib/_darcs/pristine/mk/ghc-target.mk:(echo $(STUBOBJS) $(C_OBJS) $(GC_C_OBJS); $(FIND) $(patsubst %.$(way_)o,%_split,$(HS_OBJS)) -name '*.$(way_)o' -print) | xargs $(AR) $@
./nofib/_darcs/pristine/mk/ghc-target.mk: $(FIND) $(patsubst %.$(way_)o,%_split,$(HS_OBJS)) -name '*.$(way_)o' -print -o -name ld.script -print | xargs $(RM) __rm_food
./nofib/mk/ghc-target.mk:(echo $(STUBOBJS) $(C_OBJS) $(GC_C_OBJS); $(FIND) $(patsubst %.$(way_)o,%_split,$(HS_OBJS)) -name '*.$(way_)o' -print) | xargs $(AR) $@
./nofib/mk/ghc-target.mk: $(FIND) $(patsubst %.$(way_)o,%_split,$(HS_OBJS)) -name '*.$(way_)o' -print -o -name ld.script -print | xargs $(RM) __rm_food
bash-3.2$
More information about the Cvs-ghc
mailing list