This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: make[4]: cl: Command not found

When an application is made that was designed for a Unix-like
operating system and the compiler (should, as cmake specifies that it
is telling the compiler such) that it should be building using those
tools, what could the issue be?

The exact error and context are as follows:

$ make
Scanning dependencies of target genrev
[  0%] Building CXX object
Linking CXX executable genrev.exe
[  0%] Built target genrev
Scanning dependencies of target revision.h
[  0%] Built target revision.h
Scanning dependencies of target TBB_Project
[  0%] Creating directories for 'TBB_Project'
[  0%] No download step for 'TBB_Project'
[  0%] No patch step for 'TBB_Project'
[  0%] No update step for 'TBB_Project'
[  0%] No configure step for 'TBB_Project'
[  0%] Performing build step for 'TBB_Project'
make[4]: cl: Command not found
../../build/ recipe for target
`concurrent_hash_map.obj' failed
make[4]: *** [concurrent_hash_map.obj] Error 127
Makefile:40: recipe for target `tbb' failed
make[3]: *** [tbb] Error 2
dep/tbb/CMakeFiles/TBB_Project.dir/build.make:101: recipe for target
make[2]: *** [dep/tbb/TBB_Project-prefix/src/TBB_Project-stamp/TBB_Project-build]
Error 2
CMakeFiles/Makefile2:200: recipe for target
`dep/tbb/CMakeFiles/TBB_Project.dir/all' failed
make[1]: *** [dep/tbb/CMakeFiles/TBB_Project.dir/all] Error 2
Makefile:113: recipe for target `all' failed
make: *** [all] Error 2

The cmake run is:

$ cmake ../ -DPREFIX=/opt/mangos -DPCH=0 -DACE_USE_EXTERNAL=0
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
CMake Warning at
/usr/share/cmake-2.8.4/Modules/Platform/CYGWIN.cmake:15 (message):
  CMake no longer defines WIN32 on Cygwin!

  (1) If you are just trying to build this project, ignore this warning or
  quiet it by setting CMAKE_LEGACY_CYGWIN_WIN32=0 in your environment or in
  the CMake cache.  If later configuration or build errors occur then this
  project may have been written under the assumption that Cygwin is WIN32.
  In that case, set CMAKE_LEGACY_CYGWIN_WIN32=1 instead.

  (2) If you are developing this project, add the line

    set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required

  at the top of your top-level CMakeLists.txt file or set the minimum
  required version of CMake to 2.8.4 or higher.  Then teach your project to
  build on Cygwin without WIN32.
Call Stack (most recent call first):
  CMakeLists.txt:19 (project)

-- Check for working C compiler: /usr/bin/gcc.exe
-- Check for working C compiler: /usr/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++.exe
-- Check for working CXX compiler: /usr/bin/c++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detected 32-bit platform.
-- Found Git: /usr/bin/git.exe

This script builds the application server.
  Options that can be used in order to configure the process:
    PREFIX: Path where the server should be installed to
    PCH: Use precompiled headers
    DEBUG: Debug mode
  To set an option simply type -D<OPTION>=<VALUE> after 'cmake <srcs>'.
  For example: cmake .. -DDEBUG=1 -DPREFIX=/opt/mangos

-- Using mysql-config: /usr/bin/mysql_config
-- Found MySQL library: /usr/lib/libmysqlclient_r.dll.a
-- Found MySQL headers: /usr/include/mysql
-- Found OpenSSL library: /usr/lib/libssl.dll.a
-- Found OpenSSL headers: /usr/include/openssl
-- Found ZLIB: /usr/include (found version "1.2.5")

application-Core revision  : 2e2d6740cdb8756f70d58b77e8dca8063488d391

Install server to     : /opt/application

Use PCH               : No
Build in debug-mode   : No  (default)

-- Configuring done
-- Generating done
-- Build files have been written to:

With the application name changed to "application", and my username
changed to "user".

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]