[Build-common-hackers] Bug#450901: Bug#450901: cmake class probably broken: CMAKE_C_COMPILER/CMAKE_CXX_COMPILER error

Jiri Palecek jpalecek at web.de
Fri Jan 4 16:14:01 UTC 2008


On Tuesday 27 November 2007 13:10:58 Peter Eisentraut wrote:
> Am Samstag, 24. November 2007 schrieb Daniel Leidert:
> > > > CMake Error: your C compiler:
> > > > "/tmp/buildd/avogadro-0.2.0/obj-i486-linux-gnu/cc" was not found.
> > > > Please set CMAKE_C_COMPILER to a valid compiler path or name.
> > > > CMake Error: your CXX compiler:
> > > > "/tmp/buildd/avogadro-0.2.0/obj-i486-linux-gnu/g++" was not found.
> > > > Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
>
> I think this is a bug internal to cmake or the tests it uses.  Earlier in
> the output it claims
>
> -- Check for working C compiler: cc
> -- Check for working C compiler: cc -- works
> -- Check size of void*
> -- Check size of void* - done
> -- Check for working CXX compiler: g++
> -- Check for working CXX compiler: g++ -- works
>
> So it says the compilers work, and in order to check the size of void* it
> would also have to actually run the compiler successfully.
>
> Furthermore, it asks to set CMAKE_CXX_COMPILER to a valid compiler path or
> *name*, which interpret such that a base name is sufficient.
>
> So at the moment I believe that the behavior implemented in cdbs is correct
> and the problem is somewhere else.

Hello,

I have filed a bug report against cmake about this, see bug #459207. For now, 
you can work around this bug by setting -DCMAKE_CXX_COMPILER:STRING=g++ 
or -DCMAKE_CXX_COMPILER:FILEPATH=g++.

Regards
    Jiei Palecek






More information about the Build-common-hackers mailing list