[CMake] Error bootstrapping cmake

Davide Calaminici amiblit at gmail.com
Fri Nov 18 05:26:07 EST 2016


Hello everyone,

i'm trying to port the latest cmake version (3.7.0) to AmigaOS4.
I've setup the CC and CXX variable pointing to my gnu compilers.
Btw i receive this error as you can see in the bootstrap log file:
________________________________________________________________
Try: AmigaOS:SDK/SDK/gcc/bin/gcc
Line: AmigaOS:SDK/SDK/gcc/bin/gcc  cmake_bootstrap_1586378720_test.c -o
cmake_bootstrap_1586378720_test
----------  file   -----------------------

#ifdef __cplusplus
# error "The CMAKE_C_COMPILER is set to a C++ compiler"
#endif

#include<stdio.h>

#if defined(__CLASSIC_C__)
int main(argc, argv)
  int argc;
  char* argv[];
#else
int main(int argc, char* argv[])
#endif
{
  printf("%d%c", (argv != 0), (char)0x0a);
  return argc-1;
}

------------------------------------------
gcc: fatal error: input file 'cmake_bootstrap_1586378720_test' is the same
as output file
compilation terminated.
Test failed to compile
________________________________________________________________________

Any hint on this?

Thank  you very much
KR
Davide
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20161118/68825fb4/attachment-0001.html>


More information about the CMake mailing list