[CMake] CMake detects suspicious compiler

Don Hinton hintonda at gmail.com
Fri Jan 26 14:48:49 EST 2018


Sounds like it might be a shell cache issue.

https://unix.stackexchange.com/questions/5609/how-do-i-clear-bashs-cache-of-paths-to-executables


On Fri, Jan 26, 2018 at 10:30 AM, christoph at ruediger.engineering <
christoph at ruediger.engineering> wrote:

> Hi,
>
>
>
> I’ve one Linux system here, where cmake always detects a C compiler from a
> cross-toolchain. Doesn’t sound strange up to now, but the real deal is that
> the path to the compiler is totally unknown to the shell. It is not in
> PATH, CC and CXX env variables are empty and CMAKE_C_COMPILER and
> CMAKE_CXX_COMPILER are not set. The build server is used by multiple users
> and all but one can use cmake without issues. So I assume that it is some
> kind of per-user setting.
>
>
>
> Does anyone have a hint for me where to continue digging?
>
>
>
> The detected compiler path looks a bit like cmake is automatically pulling
> a toolchain file, without having any toolchain file specified on the
> command line. Is there some mechanism for specifying a default toolchain
> file, i.e. via environment variable or config file?
>
>
>
> Regards
>
> Christoph
>
>
>
> --
>
> rüdiger.engineering
>
> Christoph Rüdiger
>
> Düsseldorfer Str. 12
>
> 45145 Essen
>
> Germany
>
>
>
> phone: +49 201 458 478 58
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> https://cmake.org/mailman/listinfo/cmake
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20180126/d282c224/attachment.html>


More information about the CMake mailing list