[cmake-developers] [CMake 0013909]: Build fails with exec(): 0509-036 Cannot load program ../bin/ctest
Mantis Bug Tracker
mantis at public.kitware.com
Tue Feb 12 16:23:07 EST 2013
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=13909
======================================================================
Reported By: Ben Lentz
Assigned To:
======================================================================
Project: CMake
Issue ID: 13909
Category: CMake
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2013-02-12 16:23 EST
Last Modified: 2013-02-12 16:23 EST
======================================================================
Summary: Build fails with exec(): 0509-036 Cannot load
program ../bin/ctest
Description:
On AIX 5.3 TL12 SP5 using GCC 4.2.0:
./configure --prefix=/opt/local/cmake; make results in:
[ 95%] Built target cpack
[ 95%] Built target ctest
[ 95%] Generating ../Docs/ctest.txt
exec(): 0509-036 Cannot load program ../bin/ctest because of the following
errors:
0509-150 Dependent module libstdc++.a(libstdc++.so.6) could not be
loaded.
0509-022 Cannot load module libstdc++.a(libstdc++.so.6).
0509-026 System error: A file or directory in the path name does not
exist.
make[2]: *** [Docs/ctest.txt] Error 255
make[1]: *** [Utilities/CMakeFiles/documentation.dir/all] Error 2
make: *** [all] Error 2
There is a copy of this library in the /opt/local/cmake/lib directory...
[blentz at optaix53ts /home/blentz/build/cmake-2.8.10.2]$ ldd bin/ctest
bin/ctest needs:
Cannot find libstdc++.a(libstdc++.so.6)
Cannot find libgcc_s.a(shr.o)
/usr/lib/libc.a(shr.o)
/usr/lib/librtl.a(shr.o)
/unix
/usr/lib/libcrypt.a(shr.o)
[blentz at optaix53ts /home/blentz/build/cmake-2.8.10.2]$
LIBPATH=/opt/local/cmake/lib ldd bin/ctest
bin/ctest needs:
/opt/local/cmake/lib/libstdc++.a(libstdc++.so.6)
/opt/local/cmake/lib/libgcc_s.a(shr.o)
/usr/lib/libc.a(shr.o)
/usr/lib/librtl.a(shr.o)
/unix
/usr/lib/libcrypt.a(shr.o)
I can get past the build and install process by exporting LIBPATH (AIX's version
of LD_LIBRARY_PATH) but of course then the resulting binaries don't run unless
this environment variable is set.
It seems like the linking process is totally broken.
Steps to Reproduce:
1. Attempt to compile cmake 2.8.10.2 on AIX 5.3 TL12 SP5 using gcc-4.2.0 into a
directory with a pre-existing copy of libstdc++.a using ./configure
--prefix=somewhere
2. Watch it fail miserably
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2013-02-12 16:23 Ben Lentz New Issue
======================================================================
More information about the cmake-developers
mailing list