Hi,

I'm trying to build latest and greatest gnumake from source checked out via

git clone https://git.savannah.gnu.org/git/make.git

My build environment is MSVC 2019. So following README.W32 directions to build.

Running build_w32.bat the first time, and I get an error 

.\WinRel/src\config.h(18): fatal error C1083: Cannot open include file: 
'mkconfig.h': No such file or directory

I figured out that bootstrap.bat should generate mkconfig.h, but running 
bootstrap.bat is not mentioned in the README.W32. 

After making sure I had curl and sed, I ran bootstrap.bat:

M:\github\make>bootstrap.bat
-- Downloading Gnulib modules
-- Configuring the workspace
- Creating Basic.mk
- Creating src\mkconfig.h
- Creating src\gmk-default.h
sed: -e expression #4, char 9: unterminated `s' command
*** Bootstrap failed.
Resolve the issue, or use the configured source in the release tarball

Looks like the error is happening on line 61 of bootstrap.bat. Pulled that line 
out and ran by itself:

M:\github\make>sed --debug -e "s/;.*//" -e "/^[ \t]*$/d" -e "s/\"/\\\\\"/g" -e 
"s/$/ \\\/" src\gmk-default.scm >> src\gmk-default.h
sed: -e expression #4, char 9: unterminated `s' command

I'm no sed expert but it would "appear" that expression #4 needs an extra / at 
the end?

"s/$/ \\\/"

becomes

"s/$/ \\\//"
added ----^

After this mod, bootstrap.bat ran successfully, and now build_w32.bat also 
works. 

VR, Charlie

Reply via email to