[CMake] /usr/bin/gcc -o tcl2c++ -rdynamic \n gcc: fatal error: no input files

YunQiang Su wzssyqa at gmail.com
Sat Nov 12 08:48:55 EST 2011


I do an cmake program, but encount an stranger problem.

1. mkdir tmp; cd tmp
2. tar -zxvf ../cmake-test.tar.gz
3. mkdir build; cd build
4. cmake ..; make

I got an error:
/usr/bin/gcc        -o tcl2c++ -rdynamic
gcc: fatal error: no input files

Then
1. cd ..
1. head -51 CMakeLists.txt >CMakeLists.txt.tmp
2. mv CMakeLists.txt.tmp CMakeLists.txt
3. cd build
4. rm -fr *
5. cmake ..; make

It works now.

Why?

-- 
YunQiang Su
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmake-test.tar.gz
Type: application/x-gzip
Size: 3945 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20111112/9734c767/attachment-0001.bin>


More information about the CMake mailing list