[CMake] cmake for GHS

Deepan Muthusamy (RBEI/ESP-IS44) Muthusamy.Deepan at in.bosch.com
Thu Aug 29 01:51:35 EDT 2019


I want to compile c and c++ code in GHS compiler for renesas controller.

For Mingw compiler, My code is compiling successfully. But I want to compile for GHS.

I have compiler available at this path  "C:/ghs/comp_201255_RH850".

When generate, I gave option as "specify native compiler".
C compiler : C:/ghs/comp_201255_RH850/ccrh850.exe
C++ compiler: C:/ghs/comp_201255_RH850/cxrh850.exe


I am getting the following error.



Green Hills MULTI: -A <arch> not specified; defaulting to "arm"
Green Hills MULTI: GHS_TARGET_PLATFORM not specified; defaulting to "integrity"
Green Hills MULTI: -T <toolset> not specified; defaulting to "C:/ghs/comp_201255_RH850"
The C compiler identification is GHS
The CXX compiler identification is GHS
Check for working C compiler: C:/ghs/comp_201255_RH850/ccrh850.exe
Check for working C compiler: C:/ghs/comp_201255_RH850/ccrh850.exe -- broken
CMake Error at D:/e-bike/cmake-3.14.3-win64-x64/share/cmake-3.14/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler

"C:/ghs/comp_201255_RH850/ccrh850.exe"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: D:/e-bike/EbikeSource/src/Crc16/build/CMakeFiles/CMakeTmp

Run Build Command(s):C:/ghs/comp_201255_RH850/gbuild.exe -top CMAKE_TRY_COMPILE.top.gpj cmTC_d9171.gpj
Error: Could not read target file: arm_integrity.tgt

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:6 (project)
Configuring incomplete, errors occurred!
See also "D:/e-bike/EbikeSource/src/Crc16/build/CMakeFiles/CMakeOutput.log".
See also "D:/e-bike/EbikeSource/src/Crc16/build/CMakeFiles/CMakeError.log".



So How to configure GHS for CMAKE build. Please advice me in this, Thanks in advace





Best regards,

Muthusamy Deepan
RBEI/ESP6


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190829/fd6f062d/attachment.html>


More information about the CMake mailing list