Hi,

I am still concerned with the different behaviour I get between working with a 
local shell and ssh. I compile using mingw cmake in a MinGW-shell.

So in order to get a msys2/MinGW environment
I do exactly these steps both in the local shell and ssh:

set MSYSTEM=MINGW32
C:\msys\usr\bin\bash.exe --login -i

in both cases echo $PATH will return /mingw32/bin as the first entry in the 
path and cd-ing with unix syntax works

Yet when I run cmake (using MSYS generator), the cmake itself and the compiler 
will be found in the local shell, but not in ssh. So in the local shell I get:

Rainer@lg-msys MINGW32 ~/Projects/sc/sc3-plugins/buildMSYS32Debug
$ cmake -G "MSYS Makefiles" .. -L
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: C:/msys/mingw32/bin/gcc.exe
-- Check for working C compiler: C:/msys/mingw32/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/msys/mingw32/bin/g++.exe
-- Check for working CXX compiler: C:/msys/mingw32/bin/g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
...

Whereas in ssh:
$ cmake -G "MSYS Makefiles" .. -L
CMake Error: CMake was unable to find a build program corresponding to "MSYS Mak
efiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a differen
t build tool.
CMake Error: CMake was unable to find a build program corresponding to "MSYS Mak
efiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a differen
t build tool.
CMake Error: Error required internal CMake variable not set, cmake may be not be
 built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be
 built correctly.
Missing variable is:
CMAKE_C_COMPILER
CMake Error: Could not find cmake module file: C:/Users/Rainer/Projects/sc/sc3-p
lugins/buildMSYS32Debug/CMakeFiles/3.2.2/CMakeCCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not be
 built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be
 built correctly.
Missing variable is:
CMAKE_CXX_COMPILER
CMake Error: Could not find cmake module file: C:/Users/Rainer/Projects/sc/sc3-p
lugins/buildMSYS32Debug/CMakeFiles/3.2.2/CMakeCXXCompiler.cmake
CMake Error at CMakeLists.txt:2 (project):
  No CMAKE_C_COMPILER could be found.

  Tell CMake where to find the compiler by setting the CMake cache entry
  CMAKE_C_COMPILER to the full path to the compiler, or to the compiler name
  if it is in the PATH.


CMake Error at CMakeLists.txt:2 (project):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting the CMake cache entry
  CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler
  name if it is in the PATH.


CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_AR was not found, please set to archive program.
-- Configuring incomplete, errors occurred!
-- Cache values

On one hand (the right) cmake is obviously found (which cmake returns the mingw 
one in both cases) - but while cmake runs in ssh, it is apparently not able to 
see the path... Any ideas?

Best
.r.
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to