Skip to content

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

Closed

Description

@web-hacker-team

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

Activity

  1. lexidor commented on Jul 22, 2024

    @lexidor
    Contributor

    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

  2. JKJameson commented on Nov 28, 2024

    @JKJameson

    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.

  3. lexidor commented on Jun 10, 2025

    @lexidor
    Contributor

    This issue was fixed by #9564

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions