build issue with bootstrap.bat
charlie <[email protected]> Fri, 28 Oct 2022 12:22:35 +0400
| Newsgroups | gmane.comp.gnu.make.windows |
|---|---|
| Message-ID | <[email protected]> |
--Apple-Mail=_B147901A-FD09-4898-80F2-3F12C116E8B0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 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=20 .\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.=20 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.=20 VR, Charlie --Apple-Mail=_B147901A-FD09-4898-80F2-3F12C116E8B0 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; = charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><div = class=3D"">Hi,</div><div class=3D""><br class=3D""></div><div = class=3D"">I'm trying to build latest and greatest gnumake from source = checked out via</div><div class=3D""><span style=3D"caret-color: rgb(0, = 0, 0); color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" = class=3D""><br class=3D""></span></div><blockquote style=3D"margin: 0 0 = 0 40px; border: none; padding: 0px;" class=3D""><div class=3D""><span = style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); = background-color: rgb(255, 255, 255);" class=3D"">git clone <a = href=3D"https://git.savannah.gnu.org/git/make.git" = class=3D"">https://git.savannah.gnu.org/git/make.git</a></span></div></blo= ckquote><div class=3D""><br class=3D""></div><div class=3D"">My build = environment is MSVC 2019. So following README.W32 directions to = build.</div><div class=3D""><br class=3D""></div><div class=3D"">Running = build_w32.bat the first time, and I get an error </div><div = class=3D""><br class=3D""></div><blockquote style=3D"margin: 0 0 0 40px; = border: none; padding: 0px;" class=3D""><div = class=3D"">.\WinRel/src\config.h(18): fatal error C1083: Cannot open = include file: 'mkconfig.h': No such file or = directory</div></blockquote><div class=3D""><br class=3D""></div>I = figured out that bootstrap.bat should generate mkconfig.h, but running = bootstrap.bat is not mentioned in the README.W32. <div class=3D""><br= class=3D""></div><div class=3D"">After making sure I had curl and sed, = I ran bootstrap.bat:<div class=3D""><br class=3D""></div><blockquote = style=3D"margin: 0 0 0 40px; border: none; padding: 0px;" class=3D""><div = class=3D""><div class=3D"">M:\github\make>bootstrap.bat</div></div><div= class=3D""><div class=3D"">-- Downloading Gnulib = modules</div></div><div class=3D""><div class=3D"">-- Configuring the = workspace</div></div><div class=3D""><div class=3D"">- Creating = Basic.mk</div></div><div class=3D""><div class=3D"">- Creating = src\mkconfig.h</div></div><div class=3D""><div class=3D"">- Creating = src\gmk-default.h</div></div><div class=3D""><div class=3D"">sed: -e = expression #4, char 9: unterminated `s' command</div></div><div = class=3D""><div class=3D"">*** Bootstrap failed.</div></div><div = class=3D""><div class=3D"">Resolve the issue, or use the configured = source in the release tarball</div></div></blockquote><div class=3D""><br = class=3D""></div><div class=3D"">Looks like the error is happening on = line 61 of bootstrap.bat. Pulled that line out and ran by = itself:</div><div class=3D""><br class=3D""></div><blockquote = style=3D"margin: 0 0 0 40px; border: none; padding: 0px;" class=3D""><div = class=3D""><div class=3D"">M:\github\make>sed --debug -e "s/;.*//" -e = "/^[ \t]*$/d" -e "s/\"/\\\\\"/g" -e "s/$/ \\\/" src\gmk-default.scm = >> src\gmk-default.h</div></div><div class=3D""><div class=3D"">sed:= -e expression #4, char 9: unterminated `s' = command</div></div></blockquote><div class=3D""><br class=3D""></div><div = class=3D"">I'm no sed expert but it would "appear" that expression #4 = needs an extra / at the end?</div><div class=3D""><br = class=3D""></div><blockquote style=3D"margin: 0 0 0 40px; border: none; = padding: 0px;" class=3D""><div class=3D""><span style=3D"caret-color: = rgb(0, 0, 0); color: rgb(0, 0, 0);" class=3D"">"s/$/ = \\\/"</span></div><div class=3D""><br class=3D""></div></blockquote><div = class=3D"">becomes</div><div class=3D""><br class=3D""></div><blockquote = style=3D"margin: 0 0 0 40px; border: none; padding: 0px;" class=3D""><div = class=3D""><div class=3D""><span style=3D"caret-color: rgb(0, 0, 0); = color: rgb(0, 0, 0);" class=3D"">"s/$/ \\\//"</span></div></div><div = class=3D""><span style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, = 0);" class=3D"">added ----^</span></div></blockquote><div class=3D""><span= style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=3D""><br = class=3D""></span></div><div class=3D""><span style=3D"caret-color: = rgb(0, 0, 0); color: rgb(0, 0, 0);" class=3D"">After this mod, = bootstrap.bat ran successfully, and now build_w32.bat also = works. </span></div><div class=3D""><span style=3D"caret-color: = rgb(0, 0, 0); color: rgb(0, 0, 0);" class=3D""><br = class=3D""></span></div><div class=3D""><font color=3D"#000000" = class=3D""><span style=3D"caret-color: rgb(0, 0, 0);" class=3D"">VR, = Charlie</span></font></div><div class=3D""><br = class=3D""></div></div></body></html>= --Apple-Mail=_B147901A-FD09-4898-80F2-3F12C116E8B0--