Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
web-hacker-team opened this issue Jul 22, 2024 · 1 comment
Labels

Comments

@web-hacker-team
Copy link

-- 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
Copy link
Collaborator

lexidor commented Jul 22, 2024

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. kmapb@c17d6a2

@lexidor lexidor added the build label Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants