Error while compiling

738 views
Skip to first unread message

fuat

unread,
Jun 26, 2015, 2:45:19 PM6/26/15
to flatb...@googlegroups.com
Hi All,

I am using Fedora 22, I tried compiling cmake, it gives me this error , I don't know what to do. Does anyone have this experience before or know how to deal with this issue?

Thanks,


The C compiler identification is Clang 3.5.0
-- The CXX compiler identification is Clang 3.5.0
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- broken
CMake Error at /home/fuat/Documents/cmake/share/cmake-3.3/Modules/CMakeTestCXXCompiler.cmake:54 (message):
  The C++ compiler "/usr/bin/clang++" is not able to compile a simple test
  program.

  It fails with the following output:

   Change Dir: /home/fuat/git_repo/flatbuffers/CMakeFiles/CMakeTmp

 

  Run Build Command:"/usr/bin/gmake" "cmTC_d9678/fast"

  /usr/bin/gmake -f CMakeFiles/cmTC_d9678.dir/build.make
  CMakeFiles/cmTC_d9678.dir/build

  gmake[1]: Entering directory
  '/home/fuat/git_repo/flatbuffers/CMakeFiles/CMakeTmp'

  Building CXX object CMakeFiles/cmTC_d9678.dir/testCXXCompiler.cxx.o

  /usr/bin/clang++ -o CMakeFiles/cmTC_d9678.dir/testCXXCompiler.cxx.o -c
  /home/fuat/git_repo/flatbuffers/CMakeFiles/CMakeTmp/testCXXCompiler.cxx

  Linking CXX executable cmTC_d9678

  /home/fuat/Documents/cmake/bin/cmake -E cmake_link_script
  CMakeFiles/cmTC_d9678.dir/link.txt --verbose=1

  /usr/bin/clang++ CMakeFiles/cmTC_d9678.dir/testCXXCompiler.cxx.o -o
  cmTC_d9678 -rdynamic

  /usr/bin/ld: cannot find -lstdc++

  clang: error: linker command failed with exit code 1 (use -v to see
  invocation)

  CMakeFiles/cmTC_d9678.dir/build.make:97: recipe for target 'cmTC_d9678'
  failed

  gmake[1]: Leaving directory
  '/home/fuat/git_repo/flatbuffers/CMakeFiles/CMakeTmp'

  Makefile:126: recipe for target 'cmTC_d9678/fast' failed

  gmake[1]: *** [cmTC_d9678] Error 1

  gmake: *** [cmTC_d9678/fast] Error 2

 

 

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


-- Configuring incomplete, errors occurred!
See also "/home/fuat/git_repo/flatbuffers/CMakeFiles/CMakeOutput.log".
See also "/home/fuat/git_repo/flatbuffers/CMakeFiles/CMakeError.log".

Mirolim Mirzakhmedov

unread,
Sep 18, 2015, 7:27:54 PM9/18/15
to FlatBuffers
maybe you need to install gcc-c++

Wouter van Oortmerssen

unread,
Sep 21, 2015, 1:10:07 PM9/21/15
to Mirolim Mirzakhmedov, FlatBuffers

--
You received this message because you are subscribed to the Google Groups "FlatBuffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flatbuffers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages