Please help me build the CopperSpice library!
Posted: Fri Apr 24 2020 3:10 pm
Hare Krishna, All!
1. Windows 10 64 bit
2. CMake 3.17.1 in C:\CMake
3. MinGW64 in C:\msys64\mingw64
4. Clone https://github.com/copperspice/copperspice into C:\copperspice
5. Install Ninja into C:\Ninja
6. Add C:\CMake and C:\Ninja into Path
7. In CMakeLists.txt I add this rows
set(CMAKE_CXX_FLAGS "-std=c++2a")
set(CMAKE_INSTALL_PREFIX "C:/copperspice")
set(CMAKE_C_COMPILER "C:/msys64/mingw64/bin/gcc.exe")
set(CMAKE_CXX_COMPILER "C:/msys64/mingw64/bin/g++.exe")
after rows
# support using rpath on Mac OS X
cmake_policy(SET CMP0042 NEW)
7. I try do:
cd C:\copperspice
cmake CMakeLists.txt
Result : *********************************************************
C:\copperspice>cmake CMakeLists.txt
-- Building for: NMake Makefiles
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: C:/msys64/mingw64/bin/gcc.exe
CMake Error: Generator: execution of make failed. Make command was: nmake /nologo cmTC_3c880\fast &&
-- Check for working C compiler: C:/msys64/mingw64/bin/gcc.exe - broken
CMake Error at C:/CMake/share/cmake-3.17/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler
"C:/msys64/mingw64/bin/gcc.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/copperspice/CMakeFiles/CMakeTmp
Run Build Command(s):nmake /nologo cmTC_3c880\fast && Не удается найти указанный файл
Generator: execution of make failed. Make command was: nmake /nologo cmTC_3c880\fast &&
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:18 (project)
-- Configuring incomplete, errors occurred!
See also "C:/copperspice/CMakeFiles/CMakeOutput.log".
See also "C:/copperspice/CMakeFiles/CMakeError.log".
end result *****************************************************
See also "C:/copperspice/CMakeFiles/CMakeError.log"
*****************************************************************
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/msys64/mingw64/bin/gcc.exe
Build flags:
Id flags:
The output was:
1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/msys64/mingw64/bin/gcc.exe
Build flags:
Id flags: -c
The output was:
1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/msys64/mingw64/bin/gcc.exe
Build flags:
Id flags: -Aa
The output was:
1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/msys64/mingw64/bin/gcc.exe
Build flags:
Id flags: -D__CLASSIC_C__
The output was:
1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/msys64/mingw64/bin/gcc.exe
Build flags:
Id flags: --target=arm-arm-none-eabi;-mcpu=cortex-m3
The output was:
1
gcc.exe: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
gcc.exe: error: unrecognized command line option '--target=arm-arm-none-eabi'
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/msys64/mingw64/bin/gcc.exe
Build flags:
Id flags:
The output was:
1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/msys64/mingw64/bin/gcc.exe
Build flags:
Id flags: -c
The output was:
1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/msys64/mingw64/bin/gcc.exe
Build flags:
Id flags: -Aa
The output was:
1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/msys64/mingw64/bin/gcc.exe
Build flags:
Id flags: -D__CLASSIC_C__
The output was:
1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/msys64/mingw64/bin/gcc.exe
Build flags:
Id flags: --target=arm-arm-none-eabi;-mcpu=cortex-m3
The output was:
1
gcc.exe: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
gcc.exe: error: unrecognized command line option '--target=arm-arm-none-eabi'
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
gcc.exe: fatal error: no input files
compilation terminated.
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
gcc.exe: fatal error: no input files
compilation terminated.
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/msys64/mingw64/bin/g++.exe
Build flags: -std=c++2a
Id flags:
The output was:
1
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/msys64/mingw64/bin/g++.exe
Build flags: -std=c++2a
Id flags: -c
The output was:
1
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/msys64/mingw64/bin/g++.exe
Build flags: -std=c++2a
Id flags: --c++
The output was:
1
g++.exe: error: unrecognized command line option '--c++'
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/msys64/mingw64/bin/g++.exe
Build flags: -std=c++2a
Id flags: --ec++
The output was:
1
g++.exe: error: unrecognized command line option '--ec++'; did you mean '-Weffc++'?
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/msys64/mingw64/bin/g++.exe
Build flags: -std=c++2a
Id flags: --target=arm-arm-none-eabi;-mcpu=cortex-m3
The output was:
1
g++.exe: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++.exe: error: unrecognized command line option '--target=arm-arm-none-eabi'
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/msys64/mingw64/bin/g++.exe
Build flags:
Id flags:
The output was:
1
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/msys64/mingw64/bin/g++.exe
Build flags:
Id flags: -c
The output was:
1
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/msys64/mingw64/bin/g++.exe
Build flags:
Id flags: --c++
The output was:
1
g++.exe: error: unrecognized command line option '--c++'
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/msys64/mingw64/bin/g++.exe
Build flags:
Id flags: --ec++
The output was:
1
g++.exe: error: unrecognized command line option '--ec++'; did you mean '-Weffc++'?
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/msys64/mingw64/bin/g++.exe
Build flags:
Id flags: --target=arm-arm-none-eabi;-mcpu=cortex-m3
The output was:
1
g++.exe: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++.exe: error: unrecognized command line option '--target=arm-arm-none-eabi'
Checking whether the CXX compiler is IAR using "" did not match "IAR .+ Compiler":
g++.exe: fatal error: no input files
compilation terminated.
Checking whether the CXX compiler is IAR using "" did not match "IAR .+ Compiler":
g++.exe: fatal error: no input files
compilation terminated.
Determining if the C compiler works failed with the following output:
Change Dir: C:/copperspice/CMakeFiles/CMakeTmp
Run Build Command(s):nmake /nologo cmTC_3c880\fast && Не удается найти указанный файл
Generator: execution of make failed. Make command was: nmake /nologo cmTC_3c880\fast &&
****************************************************************
Please help me build the CopperSpice library!
Hare Krishna!
Thank you!
With best regards, Navadvipa Chandra das.
1. Windows 10 64 bit
2. CMake 3.17.1 in C:\CMake
3. MinGW64 in C:\msys64\mingw64
4. Clone https://github.com/copperspice/copperspice into C:\copperspice
5. Install Ninja into C:\Ninja
6. Add C:\CMake and C:\Ninja into Path
7. In CMakeLists.txt I add this rows
set(CMAKE_CXX_FLAGS "-std=c++2a")
set(CMAKE_INSTALL_PREFIX "C:/copperspice")
set(CMAKE_C_COMPILER "C:/msys64/mingw64/bin/gcc.exe")
set(CMAKE_CXX_COMPILER "C:/msys64/mingw64/bin/g++.exe")
after rows
# support using rpath on Mac OS X
cmake_policy(SET CMP0042 NEW)
7. I try do:
cd C:\copperspice
cmake CMakeLists.txt
Result : *********************************************************
C:\copperspice>cmake CMakeLists.txt
-- Building for: NMake Makefiles
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: C:/msys64/mingw64/bin/gcc.exe
CMake Error: Generator: execution of make failed. Make command was: nmake /nologo cmTC_3c880\fast &&
-- Check for working C compiler: C:/msys64/mingw64/bin/gcc.exe - broken
CMake Error at C:/CMake/share/cmake-3.17/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler
"C:/msys64/mingw64/bin/gcc.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/copperspice/CMakeFiles/CMakeTmp
Run Build Command(s):nmake /nologo cmTC_3c880\fast && Не удается найти указанный файл
Generator: execution of make failed. Make command was: nmake /nologo cmTC_3c880\fast &&
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:18 (project)
-- Configuring incomplete, errors occurred!
See also "C:/copperspice/CMakeFiles/CMakeOutput.log".
See also "C:/copperspice/CMakeFiles/CMakeError.log".
end result *****************************************************
See also "C:/copperspice/CMakeFiles/CMakeError.log"
*****************************************************************
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/msys64/mingw64/bin/gcc.exe
Build flags:
Id flags:
The output was:
1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/msys64/mingw64/bin/gcc.exe
Build flags:
Id flags: -c
The output was:
1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/msys64/mingw64/bin/gcc.exe
Build flags:
Id flags: -Aa
The output was:
1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/msys64/mingw64/bin/gcc.exe
Build flags:
Id flags: -D__CLASSIC_C__
The output was:
1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/msys64/mingw64/bin/gcc.exe
Build flags:
Id flags: --target=arm-arm-none-eabi;-mcpu=cortex-m3
The output was:
1
gcc.exe: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
gcc.exe: error: unrecognized command line option '--target=arm-arm-none-eabi'
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/msys64/mingw64/bin/gcc.exe
Build flags:
Id flags:
The output was:
1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/msys64/mingw64/bin/gcc.exe
Build flags:
Id flags: -c
The output was:
1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/msys64/mingw64/bin/gcc.exe
Build flags:
Id flags: -Aa
The output was:
1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/msys64/mingw64/bin/gcc.exe
Build flags:
Id flags: -D__CLASSIC_C__
The output was:
1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/msys64/mingw64/bin/gcc.exe
Build flags:
Id flags: --target=arm-arm-none-eabi;-mcpu=cortex-m3
The output was:
1
gcc.exe: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
gcc.exe: error: unrecognized command line option '--target=arm-arm-none-eabi'
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
gcc.exe: fatal error: no input files
compilation terminated.
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
gcc.exe: fatal error: no input files
compilation terminated.
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/msys64/mingw64/bin/g++.exe
Build flags: -std=c++2a
Id flags:
The output was:
1
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/msys64/mingw64/bin/g++.exe
Build flags: -std=c++2a
Id flags: -c
The output was:
1
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/msys64/mingw64/bin/g++.exe
Build flags: -std=c++2a
Id flags: --c++
The output was:
1
g++.exe: error: unrecognized command line option '--c++'
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/msys64/mingw64/bin/g++.exe
Build flags: -std=c++2a
Id flags: --ec++
The output was:
1
g++.exe: error: unrecognized command line option '--ec++'; did you mean '-Weffc++'?
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/msys64/mingw64/bin/g++.exe
Build flags: -std=c++2a
Id flags: --target=arm-arm-none-eabi;-mcpu=cortex-m3
The output was:
1
g++.exe: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++.exe: error: unrecognized command line option '--target=arm-arm-none-eabi'
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/msys64/mingw64/bin/g++.exe
Build flags:
Id flags:
The output was:
1
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/msys64/mingw64/bin/g++.exe
Build flags:
Id flags: -c
The output was:
1
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/msys64/mingw64/bin/g++.exe
Build flags:
Id flags: --c++
The output was:
1
g++.exe: error: unrecognized command line option '--c++'
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/msys64/mingw64/bin/g++.exe
Build flags:
Id flags: --ec++
The output was:
1
g++.exe: error: unrecognized command line option '--ec++'; did you mean '-Weffc++'?
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/msys64/mingw64/bin/g++.exe
Build flags:
Id flags: --target=arm-arm-none-eabi;-mcpu=cortex-m3
The output was:
1
g++.exe: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++.exe: error: unrecognized command line option '--target=arm-arm-none-eabi'
Checking whether the CXX compiler is IAR using "" did not match "IAR .+ Compiler":
g++.exe: fatal error: no input files
compilation terminated.
Checking whether the CXX compiler is IAR using "" did not match "IAR .+ Compiler":
g++.exe: fatal error: no input files
compilation terminated.
Determining if the C compiler works failed with the following output:
Change Dir: C:/copperspice/CMakeFiles/CMakeTmp
Run Build Command(s):nmake /nologo cmTC_3c880\fast && Не удается найти указанный файл
Generator: execution of make failed. Make command was: nmake /nologo cmTC_3c880\fast &&
****************************************************************
Please help me build the CopperSpice library!
Hare Krishna!
Thank you!
With best regards, Navadvipa Chandra das.