[CMake] cmake on the BGP

Mathieu Malaterre mathieu.malaterre at gmail.com
Tue Sep 1 08:49:37 EDT 2009


On Tue, Sep 1, 2009 at 2:41 PM, Brad King<brad.king at kitware.com> wrote:
> Mathieu Malaterre wrote:
>> [  4%] Built target cmsys
>> Linking C shared module libcmsysTestDynload.so
>> /usr/lib/gcc/powerpc64-suse-linux/4.1.2/../../../../lib/crt1.o:(.rodata+0x4):
>> undefined reference to `main'
>
> What does "make VERBOSE=1" say?  Clearly this linker
> line is missing the flag to make it a shared library
> instead of an executable.

> make VERBOSE=1
/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk/cmake
-H/home/mmalater/Projects/Dashboards/CMake
-B/home/mmalater/Projects/Dashboards/CMake-gcc --check-build-system
CMakeFiles/Makefile.cmake 0
/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk/cmake -E
cmake_progress_start
/home/mmalater/Projects/Dashboards/CMake-gcc/CMakeFiles
/home/mmalater/Projects/Dashboards/CMake-gcc/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/home/mmalater/Projects/Dashboards/CMake-gcc'
make -f Source/kwsys/CMakeFiles/cmsys.dir/build.make
Source/kwsys/CMakeFiles/cmsys.dir/depend
make[2]: Entering directory `/home/mmalater/Projects/Dashboards/CMake-gcc'
cd /home/mmalater/Projects/Dashboards/CMake-gcc &&
/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk/cmake -E
cmake_depends "Unix Makefiles"
/home/mmalater/Projects/Dashboards/CMake
/home/mmalater/Projects/Dashboards/CMake/Source/kwsys
/home/mmalater/Projects/Dashboards/CMake-gcc
/home/mmalater/Projects/Dashboards/CMake-gcc/Source/kwsys
/home/mmalater/Projects/Dashboards/CMake-gcc/Source/kwsys/CMakeFiles/cmsys.dir/DependInfo.cmake
--color=
make[2]: Leaving directory `/home/mmalater/Projects/Dashboards/CMake-gcc'
make -f Source/kwsys/CMakeFiles/cmsys.dir/build.make
Source/kwsys/CMakeFiles/cmsys.dir/build
make[2]: Entering directory `/home/mmalater/Projects/Dashboards/CMake-gcc'
make[2]: Nothing to be done for `Source/kwsys/CMakeFiles/cmsys.dir/build'.
make[2]: Leaving directory `/home/mmalater/Projects/Dashboards/CMake-gcc'
/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk/cmake -E
cmake_progress_report
/home/mmalater/Projects/Dashboards/CMake-gcc/CMakeFiles  79 80 81 82
[  4%] Built target cmsys
make -f Source/kwsys/CMakeFiles/cmsysTestDynload.dir/build.make
Source/kwsys/CMakeFiles/cmsysTestDynload.dir/depend
make[2]: Entering directory `/home/mmalater/Projects/Dashboards/CMake-gcc'
cd /home/mmalater/Projects/Dashboards/CMake-gcc &&
/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk/cmake -E
cmake_depends "Unix Makefiles"
/home/mmalater/Projects/Dashboards/CMake
/home/mmalater/Projects/Dashboards/CMake/Source/kwsys
/home/mmalater/Projects/Dashboards/CMake-gcc
/home/mmalater/Projects/Dashboards/CMake-gcc/Source/kwsys
/home/mmalater/Projects/Dashboards/CMake-gcc/Source/kwsys/CMakeFiles/cmsysTestDynload.dir/DependInfo.cmake
--color=
make[2]: Leaving directory `/home/mmalater/Projects/Dashboards/CMake-gcc'
make -f Source/kwsys/CMakeFiles/cmsysTestDynload.dir/build.make
Source/kwsys/CMakeFiles/cmsysTestDynload.dir/build
make[2]: Entering directory `/home/mmalater/Projects/Dashboards/CMake-gcc'
Linking C shared module libcmsysTestDynload.so
cd /home/mmalater/Projects/Dashboards/CMake-gcc/Source/kwsys &&
/home/mmalater/Projects/Dashboards/CMake-gcc/Bootstrap.cmk/cmake -E
cmake_link_script CMakeFiles/cmsysTestDynload.dir/link.txt --verbose=1
/opt/ibmcmp/vacpp/9.0/bin/cc     -shared
-Wl,-soname,libcmsysTestDynload.so -o libcmsysTestDynload.so
CMakeFiles/cmsysTestDynload.dir/testDynload.o
/usr/lib/gcc/powerpc64-suse-linux/4.1.2/../../../../lib/crt1.o:(.rodata+0x4):
undefined reference to `main'
make[2]: *** [Source/kwsys/libcmsysTestDynload.so] Error 1
make[2]: Leaving directory `/home/mmalater/Projects/Dashboards/CMake-gcc'
make[1]: *** [Source/kwsys/CMakeFiles/cmsysTestDynload.dir/all] Error 2
make[1]: Leaving directory `/home/mmalater/Projects/Dashboards/CMake-gcc'
make: *** [all] Error 2

Thx
-- 
Mathieu


More information about the CMake mailing list