Skip to content

regression compiling cmake on macOS due to __hash_memory link errors #155531

@seanm

Description

@seanm

I have bisected a link error I'm getting to 17d0569.

One commit before that, all is well. Starting with that commit, I get this link error:

Undefined symbols for architecture arm64:
  "std::__1::__hash_memory(void const*, unsigned long)", referenced from:
      unsigned long std::__1::__do_string_hash[abi:se210000]<char const*>(char const*, char const*) in libCMakeLib.a[16](cmBinUtilsLinuxELFLinker.cxx.o)

This occurs using my own build of Clang (on arm64 macOS 26 beta, and x86_64 macOS 13) then using that to build CMake (and other projects too).

This is similar to #133304 which was closed as a duplicate of #79933 but that was close as "not planned" because basically "linux needs to add availability markups to libc++" but my issue is on macOS, where such availability markups do exist IIUC. So I presume this is different.

@philnik777 @ldionne maybe you have some insight here? Thanks.

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