torch / torch7

http://torch.ch
Other
8.97k stars 2.38k forks source link

CMake error while installation #1107

Open DonkeyPeanuts opened 6 years ago

DonkeyPeanuts commented 6 years ago

Hi, all I have been trying to install torch and am getting an error while test compiling. I used the instructions on http://torch.ch/docs/getting-started.html#_. I am using 64bit Arch linux. Begging you to help me out, tell me why.

CMake Error at /usr/share/cmake-3.10/Modules/CMakeTestCCompiler.cmake:52 (message)
The C compiler

    "/usr/bin/gcc-5"

is not able to compile a simple test program.

It fails with the following output:

    Change Dir: /home2/suehiro/torch/build/CMakeFiles/CMakeTmp

    Run Build Command:"/usr/bin/make" "cmTC_47c6a/fast"
    /usr/bin/make -f CMakeFiles/cmTC_47c6a.dir/build.make CMakeFiles/cmTC_47c6a.dir/build
    make[1]: ディレクトリ '/home2/suehiro/torch/build/CMakeFiles/CMakeTmp' に入ります
    Building C object CMakeFiles/cmTC_47c6a.dir/testCCompiler.c.o
    /usr/bin/gcc-5   -I/opt/cuda/include FLAGS    -o CMakeFiles/cmTC_47c6a.dir/testCCompiler.c.o   -c /home2/suehiro/torch/build/CMakeFiles/CMakeTmp/testCCompiler.c
    gcc-5: error: FLAGS: No such file or directory
    make[1]: *** [CMakeFiles/cmTC_47c6a.dir/build.make:66: CMakeFiles/cmTC_47c6a.dir/test CCompiler.c.o] error 1
    make[1]: ディレクトリ '/home2/suehiro/torch/build/CMakeFiles/CMakeTmp' から出ます
    make: *** [Makefile:126: cmTC_47c6a/fast] error 2

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

thanks everyone.

tastyminerals commented 6 years ago

Are you following the official installation instructions? (I use Arch/Manjaro)

DonkeyPeanuts commented 6 years ago

@tastyminerals After reboot, it seems like a bug was fixed. I don't know why. Thank you for your help!