Skip to content
This repository was archived by the owner on Aug 25, 2022. It is now read-only.
This repository was archived by the owner on Aug 25, 2022. It is now read-only.

Install Build Errors on MacOSX12 M1 chip #148

@thelizzyld

Description

@thelizzyld

Description

Attempting to install via brew on a brand new macbook pro so environment is pretty clean. Installed homebrew and directly tried running this got something wrong with zstd's linking if I understand correctly? Not sure what's wrong or how to fix it though

Context and Logs

Sharing the most relevant part of the logs starting with the last line it ran before erroring out. Here is the full script output in paste form: Full script output: https://paste-bin.xyz/40735
All logs are attached in a zip as well.

dune build src/hh_server.exe src/hh_client.exe src/hh_single_type_check.exe src/hackfmt.exe src/hh_parse.exe src/generate_full_fidelity.exe src/hh_fanout/hh_fanout.exe
          sh src/version/build_banner/build-id,src/version/build_banner/build-id.c,src/version/build_banner/generate-build-id.sh
Not under source control--trying to hash source files instead
    ocamlopt src/hh_parse.exe (exit 2)
## (cd /tmp/hhvm-4.150-20220226-89470-1eziiau/hhvm-4.150.0/hphp/hack/_build/default & ....  snipped for readibility ...
## src/.hh_parse.eobjs/native/dune__exe__Hh_parse.cmx -ccopt -lpthread -ccopt -Wl,-keep_dwarf_unwind)
Undefined symbols for architecture x86_64:
  "_ZSTD_compress", referenced from:
      _hh_serialize_raw in libheap_libc_stubs.a(hh_shared.o)
      _write_at in libheap_libc_stubs.a(hh_shared.o)
  "_ZSTD_compressBound", referenced from:
      _hh_serialize_raw in libheap_libc_stubs.a(hh_shared.o)
      _write_at in libheap_libc_stubs.a(hh_shared.o)
  "_ZSTD_decompress", referenced from:
      _hh_deserialize in libheap_libc_stubs.a(hh_shared.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
File "caml_startup", line 1:
Error: Error during linking (exit code 1)
make[4]: *** [build-hack] Error 1
make[3]: *** [hphp/hack/CMakeFiles/hack_dune] Error 2
make[2]: *** [hphp/hack/CMakeFiles/hack_dune.dir/all] Error 2
make[1]: *** [hphp/hack/CMakeFiles/hack.dir/rule] Error 2
make: *** [hack] Error 2
Parameter Value
OS X Version: Monterey 12.2
Homebrew Version: 3.3.16
Xcode Version: N/A

Output of clang -v:

Apple clang version 13.0.0 (clang-1300.0.29.30)
Target: arm64-apple-darwin21.3.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

Build logs: Link to public gist created with brew gist-logs hhvm
hhvm-4.150.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions