facebook / hhvm

A virtual machine for executing programs written in Hack.
https://hhvm.com
Other
18.15k stars 2.99k forks source link

When I compile from source, I get the error -- -latomic is required to link hhvm. #9506

Open web-hacker-team opened 2 months ago

web-hacker-team commented 2 months ago

-- 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

lexidor commented 2 months ago

Hi, this is your first issue on GitHub. Welcome :)

Building hhvm at master using the public build system is very difficult. It has fallen into disrepair. If you checkout HHVM-4.168.4 you should be able to build that tag just fine.

If you want a newer version, this will require you to advance through the mainline commits until your build breaks, then revert until the last working commit, fix the breakage and fast forward.

Keith Adams tried to get an hhvm build going late last year. His fixes can be found here. https://github.com/kmapb/hhvm/commit/c17d6a2f7ce7cfbae54ec9a0d5bbc5afe7291f71