Bug 59721 - "The system cannot find the path specified." when building apr-util using nmake on Windows
Summary: "The system cannot find the path specified." when building apr-util using nma...
Status: NEW
Alias: None
Product: APR
Classification: Unclassified
Component: APR-util (show other bugs)
Version: HEAD
Hardware: PC Windows NT
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache Portable Runtime bugs mailinglist
URL:
Keywords: PatchAvailable
Depends on:
Blocks:
 
Reported: 2016-06-19 11:47 UTC by Stefan
Modified: 2016-06-26 23:01 UTC (History)
1 user (show)



Attachments
patch to correct makefile.win (13.27 KB, text/plain)
2016-06-19 11:47 UTC, Stefan
Details
patch to correct makefile.win (437 bytes, patch)
2016-06-19 11:50 UTC, Stefan
Details | Diff
patch to correct test/makefile.win (446 bytes, patch)
2016-06-26 22:37 UTC, Stefan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan 2016-06-19 11:47:25 UTC
Created attachment 33961 [details]
patch to correct makefile.win

In principle this is the same issue as bug 59698 but applies to APR-util (1.5.4 / also checked to still be an issue in APR-util 1.5.x branch):

running nmake -f Makefile.win (OS: Win10 64-bit, VS 2015 CE Update 2) raises the following error:
"The system cannot find the path specified."

and incorrectly sets the ARCH to Win32 Release instead of x64 Release.

Attached patch resolves the problem by correcting the case of SystemRoot in Makefile.win.
Comment 1 Stefan 2016-06-19 11:50:11 UTC
Created attachment 33962 [details]
patch to correct makefile.win
Comment 2 Stefan 2016-06-26 22:35:46 UTC
There's a second part of the issue. test/Makefile.win suffers the same bug. However, other than resulting in the error and creating the test files in the wrong/unintended directory, that second part doesn't cause any other issue.

I've attached a second patch file (patch to correct test/makefile.win) which fixes that second part.
Comment 3 Stefan 2016-06-26 22:37:17 UTC
Created attachment 33987 [details]
patch to correct test/makefile.win
Comment 4 Stefan 2016-06-26 23:01:17 UTC
(In reply to Stefan from comment #2)
> There's a second part of the issue. test/Makefile.win suffers the same bug.
> However, other than resulting in the error and creating the test files in
> the wrong/unintended directory, that second part doesn't cause any other
> issue.
> 
> I've attached a second patch file (patch to correct test/makefile.win) which
> fixes that second part.

Have to correct myself. It will cause a problem, if only the first patch is applied and then the test-makefile is invoked directly, since then the OUTDIR would point to the incorrect lib-folder and building the test applications would fail.