[CMake] Bootstrap error porting cmake to AmigaOS

Davide Calaminici amiblit at gmail.com
Sat Nov 19 13:04:18 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/20161119/09c5990c/attachment.html>


More information about the CMake mailing list