adoptium / adoptium/openj9-systemtest
Make does not identify paths with spaces properly.
- Dominant language
- Java
- Stars
- 6
- Forks
- 41
- PR merge metrics
- No merged PRs in 30d
Description
While building openj9, if the path passed to the make command has a space in the middle, the make seems to be identifying the portion after the space as a target, causing the build the fail.
Here is a trace :
C:\Users\IBM_ADMIN\Desktop>"c:\Program Files (x86)\Microsoft Visual Studio 10.0\
VC\vcvarsall.bat" amd64 && make -C C:\Users\IBM_ADMIN\git\openj9-systemtest\op
enj9.test.sharedClasses.jvmti/src/native SRCDIR=C:\Users\IBM_ADMIN\git\openj9-sy
stemtest\openj9.test.sharedClasses.jvmti/src/native PLATFORM=win_x86-64 JAVA_HOM
E=C:\Users\IBM_ADMIN\Desktop\Java **Builds\sdk** OUTDIR=C:\Users\IBM_ADMIN\git\openj9
-systemtest\openj9.test.sharedClasses.jvmti/bin/native
Setting environment for using Microsoft Visual Studio 2010 x64 tools.
make: Entering directory `C:/Users/IBM_ADMIN/git/openj9-systemtest/openj9.test.s
haredClasses.jvmti/src/native'
**make: \*\*\* No rule to make target `Builds\sdk'. Stop.**
make: Leaving directory `C:/Users/IBM_ADMIN/git/openj9-systemtest/openj9.test.sharedClasses.jvmti/src/native'
Contributor guide
Research direction
Start by reproducing the shown Windows make invocation with JAVA_HOME set to a path containing spaces, especially `C:\Users\IBM_ADMIN\Desktop\Java Builds\sdk`. Trace how the make command parses that argument and verify that the path is treated as one value rather than as a target; the build should complete without the `No rule to make target` error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100