When I compile from source, I get the error -- -latomic is required to link hhvm. #9506
Description
-- Using third-party bundled LZ4 [14/1912]CMake Deprecation Warning at CMake/HPHPFunctions.cmake:2 (cmake_policy): The OLD behavior for policy CMP0026 will be removed from a future version of CMake. The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD. Call Stack (most recent call first): CMake/HHVMExtensionConfig.cmake:72 (include) hphp/runtime/CMakeLists.txt:1 (include) -- -latomic is required to link hhvm CMake Deprecation Warning at CMake/HPHPFunctions.cmake:2 (cmake_policy):
The OLD behavior for policy CMP0026 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
CMake/HHVMExtensionConfig.cmake:72 (include)
hphp/runtime/ext/CMakeLists.txt:23 (include)
-- -latomic is required to link hhvm
CMake Error at hphp/system/CMakeLists.txt:9 (FILE):
FILE STRINGS file "/home/software/hhvm/hphp/system/php.txt" cannot be read.
-- Found LibNuma: /usr/lib/x86_64-linux-gnu/libnuma.so
CMake Deprecation Warning at CMake/HPHPFunctions.cmake:2 (cmake_policy):
The OLD behavior for policy CMP0026 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
CMake/HHVMExtensionConfig.cmake:72 (include)
hphp/hhvm/CMakeLists.txt:1 (include)
-- Found gold: /usr/bin/gold
-- -latomic is required to link hhvm
CMake Warning (dev) at hphp/hhvm/CMakeLists.txt:47 (target_sources):
Policy CMP0076 is not set: target_sources() command converts relative paths
to absolute. Run "cmake --help-policy CMP0076" for policy details. Use
the cmake_policy command to set the policy and suppress this warning