Skip to content

LLVM  #76798

@jrp2014

Description

@jrp2014

brew gist-logs <formula> link OR brew config AND brew doctor output

❯ brew config
HOMEBREW_VERSION: 3.1.5-101-gd3013fc
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: d3013fcbc1c2424ae5deafd36d4f0bd79065984c
Last commit: 6 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 1572af22de4242031f95608da8a65905fec13abb
Core tap last commit: 3 hours ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 12
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: dodeca-core 64-bit ivybridge
Clang: 12.0 build 1205
Git: 2.30.1 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 11.3.1-x86_64
CLT: 12.5.0.22.9
Xcode: 12.5
❯ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
  ilmbase

Warning: Homebrew's "sbin" was not found in your PATH but you have installed
formulae that put executables in /usr/local/sbin.
Consider setting your PATH for example like so:
  echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.zshrc

  • I ran brew update and am still able to reproduce my issue.
  • I have resolved all warnings from brew doctor and that did not fix my problem.

What were you trying to do (and why)?

Use llvm-config to get the llvm config settings.

What happened (include all command output)?

> /usr/local/Cellar/llvm/12.0.0/bin/llvm-config --libs --link-shared 
llvm-config: error: libLLVM-12.dylib is missing

> ❯ ls /usr/local/Cellar/llvm/12.0.0/lib/libLLVM.dylib 
/usr/local/Cellar/llvm/12.0.0/lib/libLLVM.dylib

What did you expect to happen?

I expected llvm-config to pick up that libLLVM.dylib is installed, but it seems to be looking for libLLVM-12.dylib which is presumably the same file, but with a version suffix.

Step-by-step reproduction instructions (by running brew commands)

`brew install llvm` (installs llvm-12) and then run `usr/local/Cellar/llvm/12.0.0/bin/llvm-config --libs --link-shared` after setting LDFLAGS as the formula suggests (although that is not essential).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugReproducible Homebrew/homebrew-core bugoutdatedPR was locked due to ageupstream issueAn upstream issue report is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions