View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015030CMakeCMakepublic2014-07-20 13:162016-06-10 14:31
ReporterChristopher Yeleighton 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
Platformx86_64OSopenSUSEOS Version13.1
Product VersionCMake 2.8.11.2 
Target VersionFixed in Version 
Summary0015030: Error messages from configure_file do not show the root of the problem
DescriptionIn 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.
Steps To Reproducemkdir -p b/cmake_uninstall.cmake/kde4_cmake_uninstall.cmake.in &&
cd b &&
cmake ../libkexiv2-4.13.1
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0036420)
David Cole (manager)
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 (manager)
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 (administrator)
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.

 Issue History
Date Modified Username Field Change
2014-07-20 13:16 Christopher Yeleighton New Issue
2014-07-21 09:56 David Cole Note Added: 0036420
2014-07-21 10:06 Brad King Note Added: 0036421
2016-06-10 14:29 Kitware Robot Note Added: 0042587
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team