hhvm icon indicating copy to clipboard operation
hhvm copied to clipboard

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

Open web-hacker-team opened this issue 1 year ago • 1 comments

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

web-hacker-team avatar Jul 22 '24 15:07 web-hacker-team

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

lexidor avatar Jul 22 '24 18:07 lexidor

This is all extremely disappointing from Meta. I regret selecting Hack as a language for several of my projects. It felt like a good migration from PHP at the time but that decision has aged poorly.

JKJameson avatar Nov 28 '24 12:11 JKJameson

This issue was fixed by #9564

lexidor avatar Jun 10 '25 18:06 lexidor