After running the ./make.exe command (By using GNUWin32), I get the following error:
mkdir -p obj
mkdir -p backup
A subdirectory or file -p already exists.
Error occurred while processing: -p. make: *** [backup] Error 1
After rerunning the command, I get a different error:
mkdir -p results
A subdirectory or file -p already exists.
Error occurred while processing: -p.
make: *** [results] Error 1
Then I get the same error no matter how many times I repeat the make command:
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/gemm.c -o obj/gemm.o
process_begin: CreateProcess(NULL, gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/gemm.c -o obj/gemm.o, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [obj/gemm.o] Error 2
As I am a beginner, can you please provide detailed instructions on how I can fix the problem?
These problems:
are caused by the fact that you have asked Make to execute, on Windows, a makefile that was written to work on Linux or some other Unix-like operating system.
In Unix-like operating systems, the command:
means: Create a directory called
objwith no error if it already exists. In Windows it means: Create a directory called-pand then a directory calledobj.So when
mkdir -p objhas created the directories-pandobj, the command:fails because:
The Unix/Linux makefile has no intention of creating a directory called
-p, but on Windows that is what it does.There is little point in your attempting to fix this specific error. It is just the first of indefinitely many errors that will result from attempting to execute a Unix/Linux makefile on Windows. You need a makefile that was written to run on Windows, or to write one yourself, or to find a way of building the software on Windows that does not use Make.
This problem:
is caused by the fact that you have not installed the GCC C compiler
gccon your computer, or if you have, the directory where it resides is not in yourPATH. So Make cannot find it to perform the essential business of compiling and linking your software.Here is a popular Windows port of GCC