MantisBT - CMake
View Issue Details
0008716CMakeCMakepublic2009-03-10 22:062016-06-10 14:30
mwoehlke 
Brad King 
normalminoralways
closedmoved 
CMake-2-6 
 
0008716: AIX 5.1 xlC 6 build failure (CMake 2.6.3)
...fails the bootstrap at Source/cmMakefile.cxx:2571.

This construct:
  return cmsys::auto_ptr<cmFunctionBlocker>(b);
...is rejected (and the similar construct a few lines below).

I had to replace it with:
  cmsys::auto_ptr<cmFunctionBlocker> r(b); return r;
- and -
  cmsys::auto_ptr<cmFunctionBlocker> r; return r;
xlC -I/home/install/gnu/build/AIX/cmake-2.6.3/Source -I/home/install/gnu/build/AIX/cmake-2.6.3/Bootstrap.cmk -c /home/install/gnu/build/AIX/cmake-2.6.3/Source/cmMakefile.cxx-o cmMakefile.o
"/home/install/gnu/build/AIX/cmake-2.6.3/Source/cmMakefile.cxx", line 2571.14: 1540-0296 (S) A return value of type "cmsys::auto_ptr<cmFunctionBlocker>" cannot be initialized with an rvalueof type "cmsys::auto_ptr<cmFunctionBlocker>".
"/home/install/gnu/build/AIX/cmake-2.6.3/Source/cmMakefile.cxx", line 2571.14: 1540-0218 (I) The call does not match any parameter list for "auto_ptr<cmFunctionBlocker>::auto_ptr<cmFunctionBlocker>".
"/home/install/gnu/build/AIX/cmake-2.6.3/Bootstrap.cmk/cmsys/auto_ptr.hxx", line 81.3: 1540-1283 (I) "cmsys::auto_ptr<class cmFunctionBlocker>::auto_ptr(auto_ptr<cmFunctionBlocker> &)" is not a viable candidate.
"/home/install/gnu/build/AIX/cmake-2.6.3/Source/cmMakefile.cxx", line 2571.14: 1540-0295 (I) A parameter of type "cmsys::auto_ptr<cmFunctionBlocker> &" cannot be initialized with an rvalue of type "cmsys::auto_ptr<cmFunctionBlocker>".
"/home/install/gnu/build/AIX/cmake-2.6.3/Source/cmMakefile.cxx", line 2571.14: 1540-1290 (I) An rvalue cannot be converted to a reference to a non-const type.
"/home/install/gnu/build/AIX/cmake-2.6.3/Bootstrap.cmk/cmsys/auto_ptr.hxx", line 108.3: 1540-1283 (I) "cmsys::auto_ptr<class cmFunctionBlocker>::auto_ptr(auto_ptr<cmFunctionBlocker> &)" is not a viable candidate.
"/home/install/gnu/build/AIX/cmake-2.6.3/Source/cmMakefile.cxx", line 2571.14: 1540-0295 (I) A parameter of type "cmsys::auto_ptr<cmFunctionBlocker> &" cannot be initialized with an rvalue of type "cmsys::auto_ptr<cmFunctionBlocker>".
"/home/install/gnu/build/AIX/cmake-2.6.3/Source/cmMakefile.cxx", line 2571.14: 1540-1290 (I) An rvalue cannot be converted to a reference to a non-const type.
"/home/install/gnu/build/AIX/cmake-2.6.3/Bootstrap.cmk/cmsys/auto_ptr.hxx", line 178.3: 1540-1283 (I) "cmsys::auto_ptr<class cmFunctionBlocker>::auto_ptr(detail::auto_ptr_ref<cmFunctionBlocker>)" is not a viable candidate.
"/home/install/gnu/build/AIX/cmake-2.6.3/Source/cmMakefile.cxx", line 2571.14: 1540-0295 (I) A parameter of type "cmsys::detail::auto_ptr_ref<cmFunctionBlocker>" cannot be initialized with an rvalue of type "cmsys::auto_ptr<cmFunctionBlocker>".
"/home/install/gnu/build/AIX/cmake-2.6.3/Bootstrap.cmk/cmsys/auto_ptr.hxx", line 81.3: 1540-1283 (I) "cmsys::auto_ptr<class cmFunctionBlocker>::auto_ptr(auto_ptr<cmFunctionBlocker> &)" is not a viable candidate.
gmake: *** [cmMakefile.o] Error 1
No tags attached.
Issue History
2009-03-10 22:06mwoehlkeNew Issue
2009-03-10 22:24mwoehlkeNote Added: 0015640
2009-03-11 10:37Bill HoffmanStatusnew => assigned
2009-03-11 10:37Bill HoffmanAssigned To => Brad King
2012-08-13 10:37Brad KingStatusassigned => backlog
2012-08-13 10:37Brad KingNote Added: 0030540
2016-06-10 14:27Kitware RobotNote Added: 0041514
2016-06-10 14:27Kitware RobotStatusbacklog => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:30Kitware RobotStatusresolved => closed

Notes
(0015640)
mwoehlke   
2009-03-10 22:24   
Source/kwsys/testAutoPtr.cxx has the same problem, but I am not sure how to fix it. I applied the same change to generate_auto_ptr_A and generate_auto_ptr_B which works around some errors, but I get the same error regarding function_call and am unsure how to work around it, so I had to disable (#if 0) those parts of the test.
(0030540)
Brad King   
2012-08-13 10:37   
Sending issues I'm not actively working on to the backlog to await someone with time for them.

If an issue you care about is sent to the backlog when you feel it should have been addressed in a different manner, please bring it up on the CMake mailing list for discussion. Sign up for the mailing list here, if you're not already on it:

 http://www.cmake.org/mailman/listinfo/cmake [^]

It's easy to re-activate a bug here if you can find a CMake developer or contributor who has the bandwidth to take it on.
(0041514)
Kitware Robot   
2016-06-10 14:27   
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.