minikube: Cannot build on Windows using GNUMake

The exact command to reproduce the issue: make windows

** Version of Make**:

PS D:\dev\minikube> make --version                                                                                                                            GNU Make 4.2.1
Built for Windows32
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

The full output of the command that failed:

PS D:\dev\minikube> make windows The syntax of the command is incorrect. process_begin: CreateProcess(NULL, pwd, …) failed. make: Makefile:59: pipe: Bad file descriptor ‘command’ is not recognized as an internal or external command, operable program or batch file. process_begin: CreateProcess(NULL, uname -s, …) failed. make: Makefile:60: pipe: Bad file descriptor Access denied - CMD Access denied - PKG File not found - -TYPE File not found - F File not found - -NAME FIND: Parameter format not correct FIND: Parameter format not correct FIND: Parameter format not correct FIND: Parameter format not correct FIND: Parameter format not correct FIND: Parameter format not correct make: Nothing to be done for ‘windows’.

The operating system version: Windows 10 Enterprise

PS D:\dev\minikube> $PSVersionTable                                                                                                                           
Name                           Value
----                           -----
PSVersion                      5.1.18362.145
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.18362.145
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 17 (9 by maintainers)

Most upvoted comments

yeah make doesn’t currently work in powershell, only in something that can run bash commands, and is documented as such.

Please use Docker, when building on Windows. Only Linux is supported as a build environment.

BUILD_IN_DOCKER=y make

@tstromberg - I think it is the same as above -

PS D:\dev\minikube> make
The syntax of the command is incorrect.
process_begin: CreateProcess(NULL, pwd, ...) failed.
make: Makefile:75: pipe: Bad file descriptor
'command' is not recognized as an internal or external command,
operable program or batch file.
process_begin: CreateProcess(NULL, uname -s, ...) failed.
make: Makefile:76: pipe: Bad file descriptor
Access denied - CMD
Access denied - PKG
File not found - -TYPE
File not found - F
File not found - -NAME
FIND: Parameter format not correct
FIND: Parameter format not correct
FIND: Parameter format not correct
FIND: Parameter format not correct
FIND: Parameter format not correct
cp out/minikube-windows-amd64.exe out/minikube.exe
process_begin: CreateProcess(NULL, cp out/minikube-windows-amd64.exe out/minikube.exe, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [Makefile:134: out/minikube.exe] Error 2