make-w32
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

build issue with bootstrap.bat


From: charlie
Subject: build issue with bootstrap.bat
Date: Fri, 28 Oct 2022 12:22:35 +0400

Hi,

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


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

[Prev in Thread] Current Thread [Next in Thread]