MantisBT - CMake
View Issue Details
0015030CMakeCMakepublic2014-07-20 13:162016-06-10 14:31
Christopher Yeleighton 
Kitware Robot 
normalminoralways
closedmoved 
x86_64openSUSE13.1
CMake 2.8.11.2 
 
0015030: Error messages from configure_file do not show the root of the problem
In general, when a system-level exception happens, the exception should be reported via a system facility like perror. I currently get:

/usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake(1491): configure_file(${kde_cmake_module_dir}/kde4_cmake_uninstall.cmake.in ${CMAKE_BINARY_DIR}/cmake_uninstall.cmake @ONLY )
CMake Error at /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:1491 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindKDE4.cmake:95 (find_package)
  CMakeLists.txt:30 (FIND_PACKAGE)

This is not enough to identify the cause of the failure.
mkdir -p b/cmake_uninstall.cmake/kde4_cmake_uninstall.cmake.in &&
cd b &&
cmake ../libkexiv2-4.13.1
No tags attached.
Issue History
2014-07-20 13:16Christopher YeleightonNew Issue
2014-07-21 09:56David ColeNote Added: 0036420
2014-07-21 10:06Brad KingNote Added: 0036421
2016-06-10 14:29Kitware RobotNote Added: 0042587
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0036420)
David Cole   
2014-07-21 09:56   
In your reproduce case, there is a directory named the same as what the output of configure_file is supposed to be... (which is a file, not a directory)

What error message would you expect to see in such a case?

It is clear to me from the reported error, that there is some sort of problem with either "${kde_cmake_module_dir}/kde4_cmake_uninstall.cmake.in" or "${CMAKE_BINARY_DIR}/cmake_uninstall.cmake" -- upon inspection of those two paths, you should be able to figure *something* out.
(0036421)
Brad King   
2014-07-21 10:06   
Several code paths within the configure_file implementation:

 http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmConfigureFileCommand.cxx;hb=v3.0.0#l113 [^]

already report their own errors which are then followed by the generic 'Problem configuring file' message. There must be some code paths that can fail without producing a more detailed message.
(0042587)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.