Closed tuziben closed 8 years ago
I got it down by cmake changed to cmake3.0
Thanks, I had the same problem and installing cmake 3.0 worked for me (brew install homebrew/versions/cmake30
, pretty sure this is specific to OSX)
... or build from latest 0.10 branch (See #1920)
@sathieu Tried that, didn't work:
~/Workspace/go/src/github.com/mozilla-services/heka/build (versions/0.10)$ source build.sh
-- GeoIP.h was not found, GeoIP functionality will not be included in this build.
-- Docker plugins enabled.
-- sphinx-build was not found, the documentation will not be generated.
CMake Warning (dev) at cmake/ExternalProject.cmake:202 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
Quoted keywords like "COMMAND" will no longer be interpreted as keywords
when the policy is set to NEW. Since the policy is not set the OLD
behavior will be used.
Call Stack (most recent call first):
cmake/ExternalProject.cmake:1524 (_ep_parse_arguments)
cmake/externals.cmake:19 (externalproject_add)
CMakeLists.txt:105 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/ExternalProject.cmake:701 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
Quoted keywords like "TEST" will no longer be interpreted as keywords when
the policy is set to NEW. Since the policy is not set the OLD behavior
will be used.
Call Stack (most recent call first):
cmake/ExternalProject.cmake:1432 (_ep_get_build_command)
cmake/ExternalProject.cmake:1562 (_ep_add_build_command)
cmake/externals.cmake:19 (externalproject_add)
CMakeLists.txt:105 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/ExternalProject.cmake:701 (if):
Policy CMP0064 is not set: Support new TEST if() operator. Run "cmake
--help-policy CMP0064" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
TEST will be interpreted as an operator when the policy is set to NEW.
Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
cmake/ExternalProject.cmake:1432 (_ep_get_build_command)
cmake/ExternalProject.cmake:1562 (_ep_add_build_command)
cmake/externals.cmake:19 (externalproject_add)
CMakeLists.txt:105 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/ExternalProject.cmake:701 (if):
Policy CMP0064 is not set: Support new TEST if() operator. Run "cmake
--help-policy CMP0064" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
TEST will be interpreted as an operator when the policy is set to NEW.
Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
cmake/ExternalProject.cmake:1458 (_ep_get_build_command)
cmake/ExternalProject.cmake:1563 (_ep_add_install_command)
cmake/externals.cmake:19 (externalproject_add)
CMakeLists.txt:105 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/cbroglie/Workspace/go/src/github.com/mozilla-services/heka/build
[ 0%] Performing build step for 'lua_sandbox'
[ 1%] Performing update step for 'lua_sax'
[ 2%] Performing configure step for 'lua_sax'
Not searching for unused variables given on the command line.
CMake Error at /usr/local/Cellar/cmake/3.5.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find Lua (missing: LUA_LIBRARIES)
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.5.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
cmake/FindLua.cmake:126 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:56 (find_package)
-- Configuring incomplete, errors occurred!
See also "/Users/cbroglie/Workspace/go/src/github.com/mozilla-services/heka/build/ep_base/Build/lua_sandbox/ep_base/Build/lua_sax/CMakeFiles/CMakeOutput.log".
make[5]: *** [ep_base/Stamp/lua_sax/lua_sax-configure] Error 1
make[4]: *** [CMakeFiles/lua_sax.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [ep_base/Stamp/lua_sandbox/lua_sandbox-build] Error 2
make[1]: *** [CMakeFiles/lua_sandbox.dir/all] Error 2
make: *** [all] Error 2
~/Workspace/go/src/github.com/mozilla-services/heka/build (versions/0.10)$
Current branch:
~/Workspace/go/src/github.com/mozilla-services/heka/build (versions/0.10)$ git branch
dev
* versions/0.10
~/Workspace/go/src/github.com/mozilla-services/heka/build (versions/0.10)$
~/Workspace/go/src/github.com/mozilla-services/heka/build (versions/0.10)$ git log -1
commit c12752d96a80f1caf44f1ca590db8a8af6720cc2
Author: Mike Trinkala <trink@acm.org>
Date: Thu Apr 28 10:35:34 2016 -0700
Pull in the lua_sandbox cmake 3.5 fix
~/Workspace/go/src/github.com/mozilla-services/heka/build (versions/0.10)$
cmake version:
~/Workspace/go/src/github.com/mozilla-services/heka/build (versions/0.10)$ cmake --version
cmake version 3.5.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
~/Workspace/go/src/github.com/mozilla-services/heka/build (versions/0.10)$
Building with cmake 3.0.2 succeeds.
When I tried to build heka, but got failed. The log said as below:
The golang version 1.6
The lua version