[CMake] CMakeFiles/cmTryCompileExec.dir/usr/share/cmake-2.4/Modules/TestBigEndian.o : Permission denied

Mathieu Malaterre mathieu.malaterre at gmail.com
Wed Sep 17 05:35:18 EDT 2008


Weird... this does not happen anymore with cmake 2.6

It would be nice if I had a solution for the default cmake installation tough.

Thanks!

On Wed, Sep 17, 2008 at 11:27 AM, Mathieu Malaterre
<mathieu.malaterre at gmail.com> wrote:
> I am getting this weird behavior on my linux debian stable:
>
> ...
> CMake Error: TestBigEndian Failed to run with output: /usr/bin/make -f
> CMakeFiles/cmTryCompileExec.dir/build.make
> CMakeFiles/cmTryCompileExec.dir/build
> make[1]: Entering directory
> `/backup/mathieu/GDCM2/gdcm-gcc43/CMakeFiles/CMakeTmp'
> /usr/bin/cmake -E cmake_progress_report
> /backup/mathieu/GDCM2/gdcm-gcc43/CMakeFiles/CMakeTmp/CMakeFiles 1
> Building C object
> CMakeFiles/cmTryCompileExec.dir/usr/share/cmake-2.4/Modules/TestBigEndian.o
> /usr/bin/gcc-4.3  -Wall -W      -o
> CMakeFiles/cmTryCompileExec.dir/usr/share/cmake-2.4/Modules/TestBigEndian.o
>  -c /usr/share/cmake-2.4/Modules/TestBigEndian.c
> Linking C executable cmTryCompileExec
> /usr/bin/cmake -P CMakeFiles/cmTryCompileExec.dir/cmake_clean_target.cmake
> /usr/bin/gcc-4.3   -Wall -W     -fPIC
> "CMakeFiles/cmTryCompileExec.dir/usr/share/cmake-2.4/Modules/TestBigEndian.o"
>  -o cmTryCompileExec -rdynamic
> make[1]: Leaving directory
> `/backup/mathieu/GDCM2/gdcm-gcc43/CMakeFiles/CMakeTmp'
> Permission denied
> -- Check if the system is big endian
> -- Check if the system is big endian - big endian
> ...
>
> I have plenty of disk space, but it looks like
> CMakeFiles/cmTryCompileExec.dir/usr/share/cmake-2.4/Modules/TestBigEndian.o
> does not get cleanup properly and thus the second time the compilation
> happen gcc is not given the right to write the output file.
>
> Anyone seen that before ?
>
> cmake 2.4.5 (default debian package)
>
> Thanks,
> --
> Mathieu
> Ps: my system is little endian
>



-- 
Mathieu


More information about the CMake mailing list