2012-04-12 28 views
0

マウントされたフォルダにあるパッケージでcmakeを実行している問題があります。私はこのマウントされたフォルダに対して完全な権限を持っています。マウントされたディレクトリで実行中にcmakeエラーが発生しました

-- The C compiler identification is unknown 
-- The CXX compiler identification is unknown 
-- Check for working C compiler: /usr/bin/gcc 
-- Check for working C compiler: /usr/bin/gcc -- broken 
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:50 (MESSAGE): 
The C compiler "/usr/bin/gcc" is not able to compile a simple test program. 

It fails with the following output: 

Change Dir: /home/X/win_tmp/cmake/build/CMakeFiles/CMakeTmp 



Run Build Command:/usr/bin/make "cmTryCompileExec/fast" 

/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make 
CMakeFiles/cmTryCompileExec.dir/build 

make: Warning: File `Makefile' has modification time 0.38 s in the future 

make[1]: Entering directory 
`/home/X/win_tmp/cmake/build/CMakeFiles/CMakeTmp' 

make[1]: Warning: File `CMakeFiles/cmTryCompileExec.dir/flags.make' has 
modification time 0.35 s in the future 

/usr/bin/cmake -E cmake_progress_report 
/home/X/win_tmp/cmake/build/CMakeFiles/CMakeTmp/CMakeFiles 1 

Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o 

/usr/bin/gcc -o CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o -c 
/home/X/win_tmp/cmake/build/CMakeFiles/CMakeTmp/testCCompiler.c 

cc1: error: 
/home/X/win_tmp/cmake/build/CMakeFiles/CMakeTmp/testCCompiler.c: 
Value too large for defined data type 

make[1]: *** [CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o] Error 1 

make[1]: Leaving directory 
`/home/X/win_tmp/cmake/build/CMakeFiles/CMakeTmp' 

make: *** [cmTryCompileExec/fast] Error 2 


CMake will not be able to correctly generate this project. 
Call Stack (most recent call first): 
CMakeLists.txt:2 (project) 


-- Configuring incomplete, errors occurred! 

私のLinuxのファイルシステムにパッケージをコピーすると、Cmakeは正常に動作しているようです。

おかげで、 Gudge

+0

今後これらのタイムスタンプは恐ろしく見えます。 [このバグ](https://bugzilla.samba.org/show_bug.cgi?id=3775)でカーネルを実行していますか? – sarnold

答えて

1

this linkによると、エラーValue too large for defined data typegccは、Sambaのマウントされたファイルシステム上stat()の実行に関係しています。返されるinodeは、明らかにそれらのファイルシステムではかなり大きいです。

解決策は、オプションの列にnounix,noserverino/etc/fstabまたは同等のもの)が含まれていることを確認することです。

詳細については、mount.cifsのマニュアルページを参照してください。

+0

@ガッジ、脇に、私はあなたを批判していない、少なくとも直接:-)しかし、私はGoogleの検索の約4分でこれを見つけた。確かに、私は頻繁に私のGoogle-Fuが強いと言われてきましたが、あなたは本当に最初に検索する時間を過ごすべきです。 あなたが検索した場合、私の心からの謝罪。しかし、その場合、あなたは失敗したとあなたに尋ねたはずです。最後の夜は十分な睡眠を取らなかった古いコッダーの怒りに苦しむ必要はありません:-) – paxdiablo

+0

お詫び申し上げます。私は検索をしましたが、注意を払うべきかもしれません。 – gudge

0

マウントされたフォルダのこの問題は、cmakeコマンド "file(GLOB VAR PATTERNS)"が何かを見つけられなかったことを明らかにする可能性があります。私はここにこれを言及することにより、それが4から他の検索時間を削減することをことを願っています

You have called ADD_LIBRARY for library ... without any source files. This typically indicates a problem with your CMakeLists.txt file.

:私の場合は、以降のコマンド「add_libraryは」ノーソースファイルで終わるだろうと次のエラーで失敗します2分。  

関連する問題