ComputationalRadiationPhysics / cuda_memtest

Fork of CUDA GPU memtest :eyeglasses:
http://sourceforge.net/projects/cudagpumemtest
114 stars 32 forks source link

"Missing separator . Stop." in generated Makefiles #27

Closed superbob closed 4 years ago

superbob commented 4 years ago

I'm on Windows 10, using Windows win64-x64 CMake (cmake-3.17.1-win64-x64.msi), GnuWin make and Visual Studio 2019 Build Tools (C++ compiler only). I'm having issues in generated Makefiles:

Main Makefile

>"C:\Program Files (x86)\GnuWin32\bin\make.exe"
makefile:40: *** missing sepator . Stop.

CMakeFiles/Makefile2

>"C:\Program Files (x86)\GnuWin32\bin\make.exe"
CMakeFiles\Makefile2:36: *** missing sepator . Stop.
make: *** [all] Error 2

In both cases, the problem occurs at these lines:

!IF "$(OS)" == "Windows_NT"
NULL=
!ELSE
NULL=nul
!ENDIF

The error occurs at the !ELSE line. I've commented all the lines but the NULL= and the compilation continues, but I have other errors. I don't know if it is related. I'm opening another issue for the other error I'm encountering now.

superbob commented 4 years ago

Ok, I've tried to regenerate the project, and it doesn't generate Makefile anymore, it generate a MS Solution now :/. There are CUDA_memtest.sln and .vcxprojfiles generated now. The issue can be closed now as I don't reproduce the problem now.

psychocoderHPC commented 4 years ago

Please post all command you used so that we can reproduce the issue.

Update: I missed that you solved the issue already

Am 11. April 2020 12:25:57 MESZ schrieb Florian Morgan notifications@github.com:

I'm on Windows 10, using Windows win64-x64 CMake (cmake-3.17.1-win64-x64.msi), GnuWin make and Visual Studio 2019 Build Tools (C++ compiler only). I'm having issues in generated Makefiles:

Main Makefile

>"C:\Program Files (x86)\GnuWin32\bin\make.exe"
makefile:40: *** missing sepator . Stop.

CMakeFiles/Makefile2

>"C:\Program Files (x86)\GnuWin32\bin\make.exe"
CMakeFiles\Makefile2:36: *** missing sepator . Stop.
make: *** [all] Error 2

In both cases, the problem occurs at these lines:

!IF "$(OS)" == "Windows_NT"
NULL=
!ELSE
NULL=nul
!ENDIF

The error occurs at the !ELSE line. I've commented all the lines but the NULL= and the compilation continues, but I have other errors. I don't know if it is related. I'm opening another issue for the other error I'm encountering now.

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/ComputationalRadiationPhysics/cuda_memtest/issues/27

superbob commented 4 years ago

Just for the record, I gave up compiling on Windows it is too difficult. What I tried:

  1. Compile using MS toolchain (Visual Studio Build Tools, free SDK). => Install CMake for Windows and run cmake on the Visual Studio Tools command line shell. Doesn't work because of missing POSIX headers (at least, pthread, sys/date)
  2. Compile using MSYS2 (Cygwin/MinGW) toolchain. => Install CMake, GNU tools through package manager (pacman) and run cmake on the MSYS2 command line shell. Doesn't work because CUDA SDK doesn't work on Windows with Cygwin/MinGW toolchain)

I don't have enough time to spend on this so I'm giving up, but it could have been nice to be able to build on Windows.