unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* build failure 2 emacs-26 branch on Mingw64
@ 2018-01-01 13:19 Stephen Leake
  2018-01-01 13:41 ` Richard Copley
  0 siblings, 1 reply; 7+ messages in thread
From: Stephen Leake @ 2018-01-01 13:19 UTC (permalink / raw)
  To: emacs-devel

Building emacs-26 branch on Mingw64, in a fresh checkout, make fails
with:

make[2]: Leaving directory 'C:/Projects/emacs/emacs-26/lisp'
make[1]: *** No rule to make target '../lisp/\n', needed by '../etc/DOC'.  Stop.
make[1]: Leaving directory 'C:/Projects/emacs/emacs-26/src'
make: *** [Makefile:415: src] Error 2

This is due to a bad sed command for building lisp.mk. The current
command is:

	${AM_V_GEN}( printf 'shortlisp = \\\n'; \
	sed -n 's/^[ \t]*(load "\([^"]*\)".*/\1/p' $< | \
	  sed -e 's/$$/.elc \\/' -e 's/\.el\.elc/.el/'; \
	echo "" ) > $@

The escaped backslashes need to be doubled:

	${AM_V_GEN}( printf 'shortlisp = \\\\\n'; \
	sed -n 's/^[ \t]*(load "\([^"]*\)".*/\1/p' $< | \
	  sed -e 's/$$/.elc \\\\/' -e 's/\.el\.elc/.el/'; \
	echo "" ) > $@


There are three executables involved that determine the backslash
quoting required: make, bash, and sed. I have:

$ make --version
GNU Make 4.2.1
Built for x86_64-w64-mingw32
Copyright (C) 1988-2016 Free Software Foundation, Inc.

$ bash --version
GNU bash, version 4.4.12(1)-release (x86_64-pc-msys)
Copyright (C) 2016 Free Software Foundation, Inc.

$ sed --version
sed (GNU sed) 4.4
Copyright (C) 2017 Free Software Foundation, Inc.

all installed by mingw64 pacman fairly recently; the executable files
are all dated Feb 2017.

--
-- Stephe



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

end of thread, other threads:[~2018-01-01 19:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-01 13:19 build failure 2 emacs-26 branch on Mingw64 Stephen Leake
2018-01-01 13:41 ` Richard Copley
2018-01-01 14:05   ` Eli Zaretskii
2018-01-01 17:41     ` Stephen Leake
2018-01-01 17:52       ` Richard Copley
2018-01-01 18:41         ` Stephen Leake
2018-01-01 19:57       ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).