Skip to content

LLVM-9 fails to build on macOS 13.3.1(a) Ventura #24

Open
@PilchardFriendly

Description

@PilchardFriendly

While trying to install libffi (in order to get Haskell library accelerate to build), I came across the following blocker:

brew reinstall  libffi         
==> Fetching libffi
==> Downloading https://ghcr.io/v2/homebrew/core/libffi/manifests/3.4.4
Already downloaded: /Users/ndrew/Library/Caches/Homebrew/downloads/f5fd52c2060b392cd349c2d45b783adb0e507a5166f125893d6e733d9b7f4afa--libffi-3.4.4.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/libffi/blobs/sha256:a86ed7eb1b02a3d44cd6e75977c910466357a1715743f89be94416d000577133
Already downloaded: /Users/ndrew/Library/Caches/Homebrew/downloads/afa36ba03b1d45c8e38e9ee23d2855b86f5e5d5a03bfc080b20e4f693cb21e90--libffi--3.4.4.ventura.bottle.tar.gz
==> Reinstalling libffi 
==> Pouring libffi--3.4.4.ventura.bottle.tar.gz
🍺  /usr/local/Cellar/libffi/3.4.4: 17 files, 651.3KB
==> Running `brew cleanup libffi`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> No outdated dependents to upgrade!
==> Checking for dependents of upgraded formulae...
Disable this behaviour by setting HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> Reinstalling 1 dependent with broken linkage from source:
llvm-hs/llvm/llvm-9==> Fetching llvm-hs/llvm/llvm-9
==> Downloading https://github.com/llvm/llvm-project/releases/download/llvmorg-9.0.1/clang-9.0.1.src.tar.xz
Already downloaded: /Users/ndrew/Library/Caches/Homebrew/downloads/e8a2edaddaf24a81fa8ff622252158bd0bfaf04bac992ef93e224503aee8a748--clang-9.0.1.src.tar.xz
==> Downloading https://github.com/llvm/llvm-project/releases/download/llvmorg-9.0.1/clang-tools-extra-9.0.1.src.tar.xz
Already downloaded: /Users/ndrew/Library/Caches/Homebrew/downloads/4b1b2138a2217c1c7ecaf5d8757404b6303fb753426b775cf7abc60ebd48cf3f--clang-tools-extra-9.0.1.src.tar.xz
==> Downloading https://github.com/llvm/llvm-project/releases/download/llvmorg-9.0.1/compiler-rt-9.0.1.src.tar.xz
Already downloaded: /Users/ndrew/Library/Caches/Homebrew/downloads/9599e00dd626dcef5ddee1104b05d6e69df0b4571fe8bd33f5d07c93a74d3dcd--compiler-rt-9.0.1.src.tar.xz
==> Downloading https://github.com/llvm/llvm-project/releases/download/llvmorg-9.0.1/polly-9.0.1.src.tar.xz
Already downloaded: /Users/ndrew/Library/Caches/Homebrew/downloads/9b14c0dcf02c03418be2e1c7386c7cc7c799d556dd7a2caa8fc2fd8233bc8362--polly-9.0.1.src.tar.xz
==> Downloading https://github.com/llvm/llvm-project/releases/download/llvmorg-9.0.1/lld-9.0.1.src.tar.xz
Already downloaded: /Users/ndrew/Library/Caches/Homebrew/downloads/92d412e51a862b275f8eda9d915a5a033478fb1aff8ec19695635d5bd197991a--lld-9.0.1.src.tar.xz
==> Downloading https://github.com/llvm/llvm-project/releases/download/llvmorg-9.0.1/openmp-9.0.1.src.tar.xz
Already downloaded: /Users/ndrew/Library/Caches/Homebrew/downloads/5be3689f8465487a702b94c17b9020d608771708845734c32d77d507e46efa31--openmp-9.0.1.src.tar.xz
==> Downloading https://github.com/llvm/llvm-project/releases/download/llvmorg-9.0.1/libcxx-9.0.1.src.tar.xz
Already downloaded: /Users/ndrew/Library/Caches/Homebrew/downloads/d0f1efa59992523387a16aaad2a6983dcd838ac44998aa09e9941058e4b74dc7--libcxx-9.0.1.src.tar.xz
==> Downloading https://github.com/llvm/llvm-project/releases/download/llvmorg-9.0.1/libunwind-9.0.1.src.tar.xz
Already downloaded: /Users/ndrew/Library/Caches/Homebrew/downloads/46ae8860640432482b6d47eda2f0b916d9bb8e5a39141622ca36d0968e170f62--libunwind-9.0.1.src.tar.xz
==> Downloading https://github.com/llvm/llvm-project/releases/download/llvmorg-9.0.1/llvm-9.0.1.src.tar.xz
Already downloaded: /Users/ndrew/Library/Caches/Homebrew/downloads/eb1e98909d558e1cb8038eec452b1a838e85e20bd2470a06ff5697cc4ea3bc39--llvm-9.0.1.src.tar.xz
==> Reinstalling llvm-hs/llvm/llvm-9 
==> cmake -G Unix Makefiles .. -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/llvm-9/9.0.1/lib/llvm-9 -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_OPTIMIZED_TABLEGEN=ON -DLLVM
==> make
Last 15 lines from /Users/ndrew/Library/Logs/Homebrew/llvm-9/02.make:
  "cmake --help-policy CMP0115" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  File:

    /tmp/llvm-9-20230510-99315-jikwkk/llvm-9.0.1.src/projects/compiler-rt/lib/profile/InstrProfilingWriter.c
Call Stack (most recent call first):
  projects/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake:319 (darwin_add_builtin_library)
  projects/compiler-rt/lib/builtins/CMakeLists.txt:577 (darwin_add_builtin_libraries)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done (10.0s)
-- Build files have been written to: /tmp/llvm-9-20230510-99315-jikwkk/llvm-9.0.1.src/build/NATIVE
[ 17%] Built target CONFIGURE_LLVM_NATIVE
make: *** [all] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/llvm-hs/homebrew-llvm/issues

These open issues may also help:
Building llvm 9 fails on macOS 10.15 https://github.com/llvm-hs/homebrew-llvm/issues/17

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