devsisters / goquic

QUIC support for Go
http://devsisters.github.io/goquic/
BSD 3-Clause "New" or "Revised" License
944 stars 100 forks source link

build issue on Ubuntu 14.04 #22

Closed liudanking closed 8 years ago

liudanking commented 8 years ago

I try to build gobuic on ubuntu 14.04 x64. cmake and ninja are installed. When build binaries with ./build_libs.sh, come up with the following error:

./build_libs.sh
GOARCH: amd64
GOOS: linux
OPTION:
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler using: Ninja
-- Check for working C compiler using: Ninja -- broken
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
  The C compiler "/usr/bin/cc" is not able to compile a simple test program.

  It fails with the following output:

   Change Dir: /go/src/github.com/devsisters/goquic/libquic/build/CMakeFiles/CMakeTmp

  Run Build Command:/usr/sbin/ninja cmTryCompileExec758890250

  die: error: unable to read configuration filelog: reading configuration
  file: cmTryCompileExec758890250

  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 "/go/src/github.com/devsisters/goquic/libquic/build/CMakeFiles/CMakeOutput.log".
See also "/go/src/github.com/devsisters/goquic/libquic/build/CMakeFiles/CMakeError.log".
liudanking commented 8 years ago

The issue is caused by ninja installed by apt-get install ninja. Change to the latest version 1.6 (https://github.com/ninja-build/ninja/releases), the problem is gone.

serialx commented 8 years ago

Thank you for resolving the issue. :+1: