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

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

Open
PilchardFriendly opened this issue May 11, 2023 · 3 comments
Open

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

PilchardFriendly opened this issue May 11, 2023 · 3 comments

Comments

@PilchardFriendly
Copy link

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
@PilchardFriendly
Copy link
Author

This is an intel MacBook, BTW.

@PilchardFriendly
Copy link
Author

Further info from the make logs:

HOMEBREW_VERSION: 4.0.17
ORIGIN: https://github.com/Homebrew/brew
HEAD: c0f8068573bbf886fdc78d3f9daca54d53e7e49e
Last commit: 2 days ago
Core tap JSON: 10 May 13:05 UTC
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 12
HOMEBREW_NO_BOOTSNAP: set
Homebrew Ruby: 2.6.10 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: dodeca-core 64-bit kabylake
Clang: 14.0.3 build 1403
Git: 2.40.1 => /usr/local/bin/git
Curl: 7.87.0 => /usr/bin/curl
macOS: 13.3.1-x86_64
CLT: N/A
Xcode: 14.3

HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j12
CMAKE_PREFIX_PATH: /usr/local/opt/libffi:/usr/local
CMAKE_INCLUDE_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.sdk/usr/include/apache2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
CMAKE_FRAMEWORK_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.sdk/System/Library/Frameworks
PKG_CONFIG_PATH: /usr/local/opt/libffi/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/13
HOMEBREW_GIT: git
HOMEBREW_SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.sdk
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/local/opt/cmake/bin:/usr/bin:/bin:/usr/sbin:/sbin

@PilchardFriendly
Copy link
Author

cmake version 3.26.3

CMake suite maintained and supported by Kitware (kitware.com/cmake).```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant