Skip to content

Error: installing homebrew spirv-llvm-translator on unsupported Mac (12.7.6). #3387

@gigaimage

Description

@gigaimage

Please ask If you need full 02.cmake.log

Note: I had earlier version installed, since this error started showing up (a month ago or so), unbrewed it and tried fresh install, but now I'm stuck without the translator. It is blocking other packages upgrade as it's a hard dependency (mesa, libclc etc).

==> Fetching spirv-llvm-translator
==> Downloading https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/refs/tags/v21.1.1.tar.gz
==> Downloading from https://codeload.github.com/KhronosGroup/SPIRV-LLVM-Translator/tar.gz/refs/tags/v21.1.1
   #=O=- #       #        #                                                                                                                                                                              
==> Downloading https://formulae.brew.sh/api/cask_tap_migrations.jws.json
==> cmake -S . -B build -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_RPATH=@loader_path/../lib -DLLVM_BUILD_TOOLS=ON -DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=/usr/local/opt/spirv-headers
==> cmake --build build
Last 15 lines from ~/Library/Logs/Homebrew/spirv-llvm-translator/02.cmake.log:
INITIALIZE_PASS(SPIRVLowerBitCastToNonStandardTypeLegacy,
^
/usr/local/opt/llvm/include/llvm/PassSupport.h:58:3: note: expanded from macro 'INITIALIZE_PASS'
  INITIALIZE_PASS_END(passName, arg, name, cfg, analysis)
  ^
/usr/local/opt/llvm/include/llvm/PassSupport.h:47:30: note: expanded from macro 'INITIALIZE_PASS_END'
      PassInfo::NormalCtor_t(callDefaultCtor<passName>), cfg, analysis);       \
                             ^
8 errors generated.
gmake[2]: *** [lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/build.make:236: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/SPIRVLowerBitCastToNonStandardType.cpp.o] Error 1
gmake[2]: Leaving directory '/private/tmp/spirv-llvm-translator-20251010-26699-ez7zkk/SPIRV-LLVM-Translator-21.1.1/build'
gmake[1]: *** [CMakeFiles/Makefile2:301: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/all] Error 2
gmake[1]: Leaving directory '/private/tmp/spirv-llvm-translator-20251010-26699-ez7zkk/SPIRV-LLVM-Translator-21.1.1/build'
gmake: *** [Makefile:139: all] Error 2

——————————————————————————————————————————————————————————————————————
PassSupport.h

 37   │ class Pass;
    38   │ 
    39   │ #define INITIALIZE_PASS_BEGIN(passName, arg, name, cfg, analysis)              \
    40   │   static void initialize##passName##PassOnce(PassRegistry &Registry) {
    41   │ 
    42   │ #define INITIALIZE_PASS_DEPENDENCY(depName) initialize##depName##Pass(Registry);
    43   │ 
    44   │ #define INITIALIZE_PASS_END(passName, arg, name, cfg, analysis)                \
    45   │   PassInfo *PI = new PassInfo(                                                 \
    46   │       name, arg, &passName::ID,                                                \
    47   │       PassInfo::NormalCtor_t(callDefaultCtor<passName>), cfg, analysis);       \
    48   │   Registry.registerPass(*PI, true);                                            \
    49   │   }                                                                            \
    50   │   static llvm::once_flag Initialize##passName##PassFlag;                       \
    51   │   void llvm::initialize##passName##Pass(PassRegistry &Registry) {              \
    52   │     llvm::call_once(Initialize##passName##PassFlag,                            \
    53   │                     initialize##passName##PassOnce, std::ref(Registry));       \
    54   │   }
    55   │ 
    56   │ #define INITIALIZE_PASS(passName, arg, name, cfg, analysis)                    \
    57   │   INITIALIZE_PASS_BEGIN(passName, arg, name, cfg, analysis)                    \
    58   │   INITIALIZE_PASS_END(passName, arg, name, cfg, analysis)
    59   │ 
    60   │ #define INITIALIZE_PASS_WITH_OPTIONS_BEGIN(PassName, Arg, Name, Cfg, Analysis) \
    61   │   INITIALIZE_PASS_BEGIN(PassName, Arg, Name, Cfg, Analysis)                    \
    62   │   PassName::registerOptions();
    63   │ 
    64   │ #define INITIALIZE_PASS_WITH_OPTIONS(PassName, Arg, Name, Cfg, Analysis)       \
    65   │   INITIALIZE_PASS_WITH_OPTIONS_BEGIN(PassName, Arg, Name, Cfg, Analysis)       \
    66   │   INITIALIZE_PASS_END(PassName, Arg, Name, Cfg, Analysis)





—————————————————————————————————————

HOMEBREW_VERSION: 4.6.16
ORIGIN: https://github.com/Homebrew/brew
HEAD: 999134536e623073ea9b2a8954eeea5898137239
Last commit: 7 days ago
Branch: stable
Core tap JSON: 10 Oct 15:07 UTC
Core cask tap JSON: 10 Oct 15:07 UTC
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.XDq5eeA2D2/org.xquartz:0
HOMEBREW_FORCE_BREWED_CURL: set
HOMEBREW_MAKE_JOBS: 8
HOMEBREW_NO_BOOTSNAP: set
Homebrew Ruby: 3.4.5 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.4.5/bin/ruby
CPU: octa-core 64-bit haswell
Clang: 14.0.0 build 1400
Git: 2.51.0 => /usr/local/bin/git
Curl: 8.16.0 => /usr/local/opt/curl/bin/curl
macOS: 12.7.6-x86_64
CLT: 14.2.0.0.1.1668646533
Xcode: 14.2

HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j8
CMAKE_PREFIX_PATH: /usr/local/opt/readline:/usr/local/opt/sqlite:/usr/local/opt/expat:/usr/local/opt/llvm:/usr/local
CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
CMAKE_FRAMEWORK_PATH: /usr/local/opt/[email protected]/Frameworks
PKG_CONFIG_PATH: /usr/local/opt/pkgconf/lib/pkgconfig:/usr/local/opt/mpdecimal/lib/pkgconfig:/usr/local/opt/openssl@3/lib/pkgconfig:/usr/local/opt/readline/lib/pkgconfig:/usr/local/opt/sqlite/lib/pkgconfig:/usr/local/opt/xz/lib/pkgconfig:/usr/local/opt/expat/lib/pkgconfig:/usr/local/opt/[email protected]/lib/pkgconfig:/usr/local/opt/z3/lib/pkgconfig:/usr/local/opt/lz4/lib/pkgconfig:/usr/local/opt/zstd/lib/pkgconfig:/usr/local/opt/spirv-headers/share/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/12
HOMEBREW_MAKE_JOBS: 8
HOMEBREW_GIT: git
HOMEBREW_SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/local/opt/cmake/bin:/usr/local/opt/pkgconf/bin:/usr/local/opt/openssl@3/bin:/usr/local/opt/sqlite/bin:/usr/local/opt/xz/bin:/usr/local/opt/expat/bin:/usr/local/opt/[email protected]/bin:/usr/local/opt/z3/bin:/usr/local/opt/lz4/bin:/usr/local/opt/zstd/bin:/usr/local/opt/llvm/bin:/usr/local/opt/[email protected]/libexec/bin:/usr/bin:/bin:/usr/sbin:/sbin

——————————————————————————————————————————

λ system_profiler SPSoftwareDataType

Software:
System Software Overview:

  System Version: macOS 12.7.6 (21H1320)
  Kernel Version: Darwin 21.6.0
  Boot Volume: Macintosh HD
  Boot Mode: Normal
  Secure Virtual Memory: Enabled
  System Integrity Protection: Enabled
  Time since boot: 2:07

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