Hi,

The following is an error, which has happened several times but not each 
time when building cmake (using the book instructions):
-----------------
[...]
make[1]: Leaving directory `/sources/cmake/cmake-2.8.7/Bootstrap.cmk'
loading initial cache file 
/sources/cmake/cmake-2.8.7/Bootstrap.cmk/InitialCache
Flags.cmake
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
CMake Error: Generator: execution of make failed. Make command was: 
/bin/make "c
mTryCompileExec/fast"
-- Check for working C compiler: /usr/bin/gcc -- broken
CMake Error at Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
   The C compiler "/usr/bin/gcc" is not able to compile a simple test 
program.

   It fails with the following output:

    Change Dir: /sources/cmake/cmake-2.8.7/CMakeFiles/CMakeTmp



   Run Build Command:/bin/make "cmTryCompileExec/fast"

Permission denied

   Generator: execution of make failed.  Make command was: /bin/make
   "cmTryCompileExec/fast"
[...]
--------------------------------
The problem comes from the fact that make is in /usr/bin. I have not 
been able to see where the error comes
from. This is a convoluted process, since it is a bootstrap, where a 
"small" cmake is first built and then used to configure
the full build.

As a workaround, I use:
echo 'SET(CMAKE_MAKE_PROGRAM /usr/bin/make CACHE STRING "")' > InitCache
and I add --init=InitCache to the ./bootstrap switches.

Maybe I am doing something wrong, but is it in LFS or BLFS (just a few 
packages built)?
Anyway, I wanted to let you know in case somebody gets the same error.

Regards
Pierre
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to