Homebrew / brew

🍺 The missing package manager for macOS (or Linux)
https://brew.sh
BSD 2-Clause "Simplified" License
40.77k stars 9.57k forks source link

brew install using llvm_clang but link with wrong lib #13282

Closed xlla closed 2 years ago

xlla commented 2 years ago

brew config output

HOMEBREW_VERSION: 3.3.9-17-gd3474d0-dirty
ORIGIN: https://mirrors.ustc.edu.cn/brew.git
HEAD: d3474d03e700b05fd54670a45b21061afbf53da7
Last commit: 5 months ago
Core tap ORIGIN: https://mirrors.ustc.edu.cn/homebrew-core.git
Core tap HEAD: aa67fdf53026bf9d6216a877682356c3387aab0b
Core tap last commit: 5 months ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_BOTTLE_DOMAIN: https://mirrors.ustc.edu.cn/homebrew-bottles
HOMEBREW_CASK_OPTS: []
HOMEBREW_CORE_GIT_REMOTE: https://github.com/Homebrew/homebrew-core
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.5BNHHcazVp/org.xquartz:0
HOMEBREW_MAKE_JOBS: 8
HOMEBREW_NO_AUTO_UPDATE: set
HOMEBREW_NO_INSTALL_CLEANUP: set
Homebrew Ruby: 2.6.8 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.8/bin/ruby
CPU: octa-core 64-bit kabylake
Clang: 10.0.1 build 1001
Git: 2.25.0 => /usr/local/bin/git
Curl: 7.54.0 => /usr/bin/curl
macOS: 10.13.6-x86_64
CLT: 10.1.0.0.1.1539992718
Xcode: 10.2.1

brew doctor output

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: Suspicious https://github.com/Homebrew/brew git origin remote found.
The current git origin is:
  https://mirrors.ustc.edu.cn/brew.git

With a non-standard origin, Homebrew won't update properly.
You can solve this by setting the origin remote:
  git -C "/usr/local/Homebrew" remote set-url origin https://github.com/Homebrew/brew

Warning: Unknown support status

Warning: Suspicious https://github.com/Homebrew/homebrew-core git origin remote found.
The current git origin is:
  https://mirrors.ustc.edu.cn/homebrew-core.git

With a non-standard origin, Homebrew won't update properly.
You can solve this by setting the origin remote:
  git -C "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core" remote set-url origin https://github.com/Homebrew/homebrew-core

Warning: Some installed kegs have no formulae!
This means they were either deleted or installed with `brew diy`.
You should find replacements for the following formulae:
  python@2.7.17
  mongodb
  unrar
  protobuf@3.1

Warning: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
  boost-python
  docker-machine
  ext4fuse
  ilmbase
  libav
  libelf
  lua@5.1
  polipo
  proj@7
  protobuf@3.9
  py2cairo
  sdl
  sdl_image
  sdl_mixer
  sdl_ttf
  sshfs

Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and which additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew-provided
script of the same name. We found the following "config" scripts:
  /opt/local/bin/pkg-config
  /opt/local/bin/icu-config
  /opt/local/bin/krb5-config
  /opt/local/bin/python3m-config
  /opt/local/bin/freetype-config
  /opt/local/bin/xslt-config
  /opt/local/bin/libpng16-config
  /opt/local/bin/python2.7-config
  /opt/local/bin/libpng-config
  /opt/local/bin/netpbm-config
  /opt/local/bin/libusb-config
  /opt/local/bin/croco-0.6-config
  /opt/local/bin/xml2-config
  /opt/local/bin/python3.9-config
  /opt/local/bin/python-config
  /opt/local/bin/gsl-config
  /opt/local/bin/python3-config
  /opt/local/bin/curl-config
  /opt/local/bin/ncursesw6-config
  /opt/local/bin/apr-1-config
  /opt/local/bin/pcre2-config
  /opt/local/bin/uuid-config
  /opt/local/bin/log4cpp-config
  /opt/local/bin/apu-1-config
  /opt/local/bin/pcre-config
  /opt/local/bin/nspr-config
  /opt/local/bin/sdl-config
  /opt/local/bin/ncurses6-config
  /opt/local/bin/gts-config
  /opt/local/bin/python3.8-config
  /opt/local/bin/nss-config
  /opt/local/bin/sdl2-config
  /opt/local/bin/pcap-config
  /usr/local/CrossPack-AVR/bin/libusb-config

Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
  /usr/local/lib/libSoapySDR.0.7.0.dylib
  /usr/local/lib/libair_modes.0.0.dylib
  /usr/local/lib/libconsole_bridge.1.0.dylib
  /usr/local/lib/libgpuarray.3.0.dylib
  /usr/local/lib/libnccl.dylib

Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected header files:
  /usr/local/include/SoapySDR/Config.h
  /usr/local/include/SoapySDR/Constants.h
  /usr/local/include/SoapySDR/Device.h
  /usr/local/include/SoapySDR/Errors.h
  /usr/local/include/SoapySDR/Formats.h
  /usr/local/include/SoapySDR/Logger.h
  /usr/local/include/SoapySDR/Modules.h
  /usr/local/include/SoapySDR/Time.h
  /usr/local/include/SoapySDR/Types.h
  /usr/local/include/SoapySDR/Version.h
  /usr/local/include/gmock/gmock-actions.h
  /usr/local/include/gmock/gmock-cardinalities.h
  /usr/local/include/gmock/gmock-function-mocker.h
  /usr/local/include/gmock/gmock-matchers.h
  /usr/local/include/gmock/gmock-more-actions.h
  /usr/local/include/gmock/gmock-more-matchers.h
  /usr/local/include/gmock/gmock-nice-strict.h
  /usr/local/include/gmock/gmock-spec-builders.h
  /usr/local/include/gmock/gmock.h
  /usr/local/include/gmock/internal/custom/gmock-generated-actions.h
  /usr/local/include/gmock/internal/custom/gmock-matchers.h
  /usr/local/include/gmock/internal/custom/gmock-port.h
  /usr/local/include/gmock/internal/gmock-internal-utils.h
  /usr/local/include/gmock/internal/gmock-port.h
  /usr/local/include/gmock/internal/gmock-pp.h
  /usr/local/include/gpuarray/abi_version.h
  /usr/local/include/gpuarray/array.h
  /usr/local/include/gpuarray/blas.h
  /usr/local/include/gpuarray/buffer.h
  /usr/local/include/gpuarray/buffer_blas.h
  /usr/local/include/gpuarray/buffer_collectives.h
  /usr/local/include/gpuarray/collectives.h
  /usr/local/include/gpuarray/config.h
  /usr/local/include/gpuarray/elemwise.h
  /usr/local/include/gpuarray/error.h
  /usr/local/include/gpuarray/ext_cuda.h
  /usr/local/include/gpuarray/extension.h
  /usr/local/include/gpuarray/kernel.h
  /usr/local/include/gpuarray/types.h
  /usr/local/include/gpuarray/util.h
  /usr/local/include/gr_air_modes/api.h
  /usr/local/include/gr_air_modes/preamble.h
  /usr/local/include/gr_air_modes/slicer.h
  /usr/local/include/gr_air_modes/types.h
  /usr/local/include/gtest/gtest-assertion-result.h
  /usr/local/include/gtest/gtest-death-test.h
  /usr/local/include/gtest/gtest-matchers.h
  /usr/local/include/gtest/gtest-message.h
  /usr/local/include/gtest/gtest-param-test.h
  /usr/local/include/gtest/gtest-printers.h
  /usr/local/include/gtest/gtest-spi.h
  /usr/local/include/gtest/gtest-test-part.h
  /usr/local/include/gtest/gtest-typed-test.h
  /usr/local/include/gtest/gtest.h
  /usr/local/include/gtest/gtest_pred_impl.h
  /usr/local/include/gtest/gtest_prod.h
  /usr/local/include/gtest/internal/custom/gtest-port.h
  /usr/local/include/gtest/internal/custom/gtest-printers.h
  /usr/local/include/gtest/internal/custom/gtest.h
  /usr/local/include/gtest/internal/gtest-death-test-internal.h
  /usr/local/include/gtest/internal/gtest-filepath.h
  /usr/local/include/gtest/internal/gtest-internal.h
  /usr/local/include/gtest/internal/gtest-param-util.h
  /usr/local/include/gtest/internal/gtest-port-arch.h
  /usr/local/include/gtest/internal/gtest-port.h
  /usr/local/include/gtest/internal/gtest-string.h
  /usr/local/include/gtest/internal/gtest-type-util.h
  /usr/local/include/nccl.h
  /usr/local/include/nccl_net.h
  /usr/local/include/node/android-ifaddrs.h
  /usr/local/include/node/openssl/archs/BSD-x86/opensslconf.h
  /usr/local/include/node/openssl/archs/BSD-x86_64/opensslconf.h
  /usr/local/include/node/openssl/archs/VC-WIN32/opensslconf.h
  /usr/local/include/node/openssl/archs/VC-WIN64A/opensslconf.h
  /usr/local/include/node/openssl/archs/aix-gcc/opensslconf.h
  /usr/local/include/node/openssl/archs/aix64-gcc/opensslconf.h
  /usr/local/include/node/openssl/archs/darwin-i386-cc/opensslconf.h
  /usr/local/include/node/openssl/archs/darwin64-x86_64-cc/opensslconf.h
  /usr/local/include/node/openssl/archs/linux-aarch64/opensslconf.h
  /usr/local/include/node/openssl/archs/linux-armv4/opensslconf.h
  /usr/local/include/node/openssl/archs/linux-elf/opensslconf.h
  /usr/local/include/node/openssl/archs/linux-ppc/opensslconf.h
  /usr/local/include/node/openssl/archs/linux-ppc64/opensslconf.h
  /usr/local/include/node/openssl/archs/linux-x32/opensslconf.h
  /usr/local/include/node/openssl/archs/linux-x86_64/opensslconf.h
  /usr/local/include/node/openssl/archs/linux32-s390x/opensslconf.h
  /usr/local/include/node/openssl/archs/linux64-s390x/opensslconf.h
  /usr/local/include/node/openssl/archs/solaris-x86-gcc/opensslconf.h
  /usr/local/include/node/openssl/archs/solaris64-x86_64-gcc/opensslconf.h
  /usr/local/include/node/openssl/des_old.h
  /usr/local/include/node/openssl/dso.h
  /usr/local/include/node/openssl/krb5_asn.h
  /usr/local/include/node/openssl/kssl.h
  /usr/local/include/node/openssl/pqueue.h
  /usr/local/include/node/openssl/ssl23.h
  /usr/local/include/node/openssl/ui_compat.h
  /usr/local/include/node/pthread-barrier.h
  /usr/local/include/node/pthread-fixes.h
  /usr/local/include/node/stdint-msvc2008.h
  /usr/local/include/node/tree.h
  /usr/local/include/node/uv-aix.h
  /usr/local/include/node/uv-bsd.h
  /usr/local/include/node/uv-darwin.h
  /usr/local/include/node/uv-errno.h
  /usr/local/include/node/uv-linux.h
  /usr/local/include/node/uv-os390.h
  /usr/local/include/node/uv-posix.h
  /usr/local/include/node/uv-sunos.h
  /usr/local/include/node/uv-threadpool.h
  /usr/local/include/node/uv-unix.h
  /usr/local/include/node/uv-version.h
  /usr/local/include/node/uv-win.h
  /usr/local/include/node/v8-inspector-protocol.h
  /usr/local/include/node/v8-inspector.h
  /usr/local/include/openblas/cblas.h
  /usr/local/include/openblas/openblas_config.h
  /usr/local/include/python3.7m/pygame/_camera.h
  /usr/local/include/python3.7m/pygame/_pygame.h
  /usr/local/include/python3.7m/pygame/_surface.h
  /usr/local/include/python3.7m/pygame/bitmask.h
  /usr/local/include/python3.7m/pygame/camera.h
  /usr/local/include/python3.7m/pygame/fastevents.h
  /usr/local/include/python3.7m/pygame/font.h
  /usr/local/include/python3.7m/pygame/freetype.h
  /usr/local/include/python3.7m/pygame/mask.h
  /usr/local/include/python3.7m/pygame/mixer.h
  /usr/local/include/python3.7m/pygame/palette.h
  /usr/local/include/python3.7m/pygame/pgarrinter.h
  /usr/local/include/python3.7m/pygame/pgbufferproxy.h
  /usr/local/include/python3.7m/pygame/pgcompat.h
  /usr/local/include/python3.7m/pygame/pgopengl.h
  /usr/local/include/python3.7m/pygame/pygame.h
  /usr/local/include/python3.7m/pygame/scrap.h
  /usr/local/include/python3.7m/pygame/surface.h
  /usr/local/include/python3.9/pygame/_camera.h
  /usr/local/include/python3.9/pygame/_pygame.h
  /usr/local/include/python3.9/pygame/_surface.h
  /usr/local/include/python3.9/pygame/camera.h
  /usr/local/include/python3.9/pygame/font.h
  /usr/local/include/python3.9/pygame/freetype.h
  /usr/local/include/python3.9/pygame/include/_pygame.h
  /usr/local/include/python3.9/pygame/include/bitmask.h
  /usr/local/include/python3.9/pygame/include/pgcompat.h
  /usr/local/include/python3.9/pygame/include/pgimport.h
  /usr/local/include/python3.9/pygame/include/pgplatform.h
  /usr/local/include/python3.9/pygame/include/pygame.h
  /usr/local/include/python3.9/pygame/include/pygame_bufferproxy.h
  /usr/local/include/python3.9/pygame/include/pygame_font.h
  /usr/local/include/python3.9/pygame/include/pygame_freetype.h
  /usr/local/include/python3.9/pygame/include/pygame_mask.h
  /usr/local/include/python3.9/pygame/include/pygame_mixer.h
  /usr/local/include/python3.9/pygame/include/sse2neon.h
  /usr/local/include/python3.9/pygame/mask.h
  /usr/local/include/python3.9/pygame/mixer.h
  /usr/local/include/python3.9/pygame/palette.h
  /usr/local/include/python3.9/pygame/pgarrinter.h
  /usr/local/include/python3.9/pygame/pgbufferproxy.h
  /usr/local/include/python3.9/pygame/pgcompat.h
  /usr/local/include/python3.9/pygame/pgopengl.h
  /usr/local/include/python3.9/pygame/pgplatform.h
  /usr/local/include/python3.9/pygame/pygame.h
  /usr/local/include/python3.9/pygame/scrap.h
  /usr/local/include/python3.9/pygame/surface.h

Warning: Unbrewed '.la' files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected '.la' files:
  /usr/local/lib/libasprintf.la
  /usr/local/lib/libgettextlib.la
  /usr/local/lib/libgettextpo.la
  /usr/local/lib/libgettextsrc.la
  /usr/local/lib/libintl.la
  /usr/local/lib/libtesseract.la
  /usr/local/lib/libtextstyle.la

Warning: Unbrewed '.pc' files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected '.pc' files:
  /usr/local/lib/pkgconfig/SoapySDR.pc
  /usr/local/lib/pkgconfig/console_bridge.pc
  /usr/local/lib/pkgconfig/gmock.pc
  /usr/local/lib/pkgconfig/gmock_main.pc
  /usr/local/lib/pkgconfig/gtest.pc
  /usr/local/lib/pkgconfig/gtest_main.pc
  /usr/local/lib/pkgconfig/nccl.pc
  /usr/local/lib/pkgconfig/openblas.pc

Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected static libraries:
  /usr/local/lib/libgmock.a
  /usr/local/lib/libgmock_main.a
  /usr/local/lib/libgpuarray-static.a
  /usr/local/lib/libgtest_main.a
  /usr/local/lib/libnccl_static.a
  /usr/local/lib/libopenblas.a

Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause formulae that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  jsoncpp
  docutils
  imath
  ignition-math6
  protobuf-c
  qt
  sshfs
  eigen
  double-conversion
  gtest
  bazel
  googletest
  protobuf@3.1
  gcc@9
  six
  gcc-arm-none-eabi
  ignition-tools
  sdformat3
  pyqt
  python@3.9

Warning: Some installed formulae are not readable:
  mongodb: unknown or unsupported macOS version: :mountain_lion

  protobuf@3.1: "cxx11" is not a recognized standard

Warning: You are using macOS 10.13.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
old version.

Warning: You have uncommitted modifications to Homebrew/brew.
If this is a surprise to you, then you should stash these modifications.
Stashing returns Homebrew to a pristine state but can be undone
should you later need to do so for some reason.
  cd /usr/local/Homebrew && git stash && git clean -d -f

Uncommitted files:
   M Library/Homebrew/shims/super/cc
  ?? Library/Homebrew/shims/super/xcrun
  ?? Library/Homebrew/sorbet/rbi/gems/bootsnap@1.9.1.rbi
  ?? Library/Homebrew/sorbet/rbi/gems/mime-types-data@3.2021.0901.rbi
  ?? Library/Homebrew/sorbet/rbi/gems/rbi@0.0.6.rbi
  ?? Library/Homebrew/sorbet/rbi/gems/rubocop-ast@1.12.0.rbi
  ?? Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@2.5.0.rbi
  ?? Library/Homebrew/sorbet/rbi/gems/rubocop@1.22.0.rbi
  ?? Library/Homebrew/sorbet/rbi/gems/spoom@1.1.5.rbi
  ?? Library/Homebrew/sorbet/rbi/gems/tapioca@0.5.4.rbi
  ?? Library/Homebrew/sorbet/rbi/gems/unparser@0.6.0.rbi
  ?? Library/Homebrew/sorbet/rbi/gems/yard@0.9.26.rbi

You have uncommitted modifications to Homebrew/homebrew-core.
If this is a surprise to you, then you should stash these modifications.
Stashing returns Homebrew to a pristine state but can be undone
should you later need to do so for some reason.
  cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core && git stash && git clean -d -f

Uncommitted files:
   M Formula/binutils.rb
   M Formula/guile.rb
   M Formula/mpv.rb
   M Formula/netcdf.rb
   M Formula/opencv.rb
   M Formula/pybind11.rb
   M Formula/sdl2.rb
  ?? Aliases/solr@8.10
  ?? Aliases/v8@9.5
  ?? Formula/.open-scene-graph.rb.swp
  ?? Formula/protobuf@3.9.rb

You have uncommitted modifications to Homebrew/homebrew-cask.
If this is a surprise to you, then you should stash these modifications.
Stashing returns Homebrew to a pristine state but can be undone
should you later need to do so for some reason.
  cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask && git stash && git clean -d -f

Uncommitted files:
  ?? Casks/actual.rb
  ?? Casks/adguard-vpn.rb
  ?? Casks/almighty.rb
  ?? Casks/ankama.rb
  ?? Casks/avtouchbar.rb
  ?? Casks/azirevpn.rb
  ?? Casks/bespoke.rb
  ?? Casks/betterdummy.rb
  ?? Casks/biglybt.rb
  ?? Casks/billings-pro.rb
  ?? Casks/blender-benchmark.rb
  ?? Casks/breitbandmessung.rb
  ?? Casks/bugdom.rb
  ?? Casks/cirrus.rb
  ?? Casks/cloudash.rb
  ?? Casks/coarchi.rb
  ?? Casks/codeql.rb
  ?? Casks/coffitivity-offline.rb
  ?? Casks/deepnest.rb
  ?? Casks/djl-bench.rb
  ?? Casks/dockview.rb
  ?? Casks/dropbox-capture.rb
  ?? Casks/enigma.rb
  ?? Casks/epilogue-operator.rb
  ?? Casks/far2l.rb
  ?? Casks/fig.rb
  ?? Casks/firmaec.rb
  ?? Casks/flacon.rb
  ?? Casks/fmail.rb
  ?? Casks/fotokasten.rb
  ?? Casks/gcs.rb
  ?? Casks/gitdock.rb
  ?? Casks/google-assistant.rb
  ?? Casks/google-chat-electron.rb
  ?? Casks/hydrus-network.rb
  ?? Casks/immersed.rb
  ?? Casks/informant.rb
  ?? Casks/inso.rb
  ?? Casks/jupyterlab.rb
  ?? Casks/keycombiner.rb
  ?? Casks/keyman.rb
  ?? Casks/letter-opener.rb
  ?? Casks/live-home-3d.rb
  ?? Casks/lycheeslicer.rb
  ?? Casks/macmorpheus.rb
  ?? Casks/mathcha-notebook.rb
  ?? Casks/mds.rb
  ?? Casks/megazeux.rb
  ?? Casks/mightymike.rb
  ?? Casks/monterey-cache-cleaner.rb
  ?? Casks/mural.rb
  ?? Casks/nanosaur.rb
  ?? Casks/nimblenote.rb
  ?? Casks/notunes.rb
  ?? Casks/nudge.rb
  ?? Casks/otto-matic.rb
  ?? Casks/pdfify.rb
  ?? Casks/pensela.rb
  ?? Casks/pichon.rb
  ?? Casks/playcover.rb
  ?? Casks/plistedplus.rb
  ?? Casks/ppsspp.rb
  ?? Casks/pure-writer.rb
  ?? Casks/rancher.rb
  ?? Casks/remarkable.rb
  ?? Casks/remix-ide.rb
  ?? Casks/remotion.rb
  ?? Casks/replacicon.rb
  ?? Casks/ricochet-refresh.rb
  ?? Casks/scatter.rb
  ?? Casks/sdm.rb
  ?? Casks/semeru-jdk-open.rb
  ?? Casks/sigmaos.rb
  ?? Casks/smplayer.rb
  ?? Casks/sonic3air.rb
  ?? Casks/sqlcl.rb
  ?? Casks/swiftplantumlapp.rb
  ?? Casks/tev.rb
  ?? Casks/thetimemachinemechanic.rb
  ?? Casks/threema.rb
  ?? Casks/tic80.rb
  ?? Casks/tidelift.rb
  ?? Casks/todoist.rb
  ?? Casks/topnotch.rb
  ?? Casks/trackerzapper.rb
  ?? Casks/ultracopier.rb
  ?? Casks/unipro-ugene.rb
  ?? Casks/universal-gcode-platform.rb
  ?? Casks/uvtools.rb
  ?? Casks/wondershare-edrawmax.rb
  ?? audit_exceptions/secure_connection_audit_skiplist.json

You have uncommitted modifications to Homebrew/homebrew-cask-versions.
If this is a surprise to you, then you should stash these modifications.
Stashing returns Homebrew to a pristine state but can be undone
should you later need to do so for some reason.
  cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-versions && git stash && git clean -d -f

Uncommitted files:
  ?? Casks/inso-alpha.rb

Warning: Broken symlinks were found. Remove them with `brew cleanup`:
  /usr/local/bin/2to3
  /usr/local/bin/2to3-3.10
  /usr/local/bin/2to3-3.8
  /usr/local/bin/2to3-3.9
  /usr/local/bin/easy_install-3.8
  /usr/local/bin/idle3
  /usr/local/bin/idle3.10
  /usr/local/bin/idle3.8
  /usr/local/bin/idle3.9
  /usr/local/bin/pip3.10
  /usr/local/bin/pip3.8
  /usr/local/bin/pip3.9
  /usr/local/bin/pydoc3
  /usr/local/bin/pydoc3.10
  /usr/local/bin/pydoc3.8
  /usr/local/bin/pydoc3.9
  /usr/local/bin/python3.10
  /usr/local/bin/python3.10-config
  /usr/local/bin/python3.10-intel64
  /usr/local/bin/python3.8
  /usr/local/bin/python3.8-config
  /usr/local/lib/vapoursynth/libeedi3.dylib
  /usr/local/lib/vapoursynth/libmiscfilters.dylib
  /usr/local/lib/vapoursynth/libmorpho.dylib
  /usr/local/lib/vapoursynth/libremovegrain.dylib
  /usr/local/lib/vapoursynth/libvinverse.dylib
  /usr/local/lib/vapoursynth/libvivtc.dylib
  /usr/local/share/man/man5/package-locks.5
  /usr/local/share/man/man5/shrinkwrap-json.5
  /usr/local/share/man/man7/semver.7

Verification

What were you trying to do (and why)?

I want to install a package that using c++17 features {filesystem} it does not exist on my computer osx 10.13. So I use brew install llvm@13 and use it to build that package.

What happened (include all command output)?

$ brew install ignition-common5 --cc llvm_clang 
Warning: You passed `--cc=llvm_clang`.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
unsupported configuration.

Warning: You are using macOS 10.13.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
old version.

==> Cloning https://github.com/ignitionrobotics/ign-common.git
Updating /Users/xlla/Library/Caches/Homebrew/ignition-common5--git
==> Checking out branch main
Already on 'main'
Your branch is up to date with 'origin/main'.
HEAD is now at d5f1c97 Fix console bug when IGN_HOMEDIR is unset (#346)
==> Installing ignition-common5 from osrf/simulation
==> cmake . -DBUILD_TESTING=Off -DCMAKE_INSTALL_RPATH=@loader_path/../lib
==> make install
🍺  /usr/local/Cellar/ignition-common5/4.999.999~0~20211217: 297 files, 2.5MB, built in 34 seconds

after build, I found it was link to wrong lib,

$ otool -L /usr/local/Cellar/ignition-common5/4.999.999~0~20211217/lib/libignition-common5.5.0.0~pre1.dylib 
/usr/local/Cellar/ignition-common5/4.999.999~0~20211217/lib/libignition-common5.5.0.0~pre1.dylib:
    /usr/local/opt/ignition-common5/lib/libignition-common5.5.dylib (compatibility version 5.0.0, current version 5.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.0.0)
    /usr/local/opt/ignition-utils2/lib/libignition-utils2.2.dylib (compatibility version 2.0.0, current version 2.0.0)
    /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 400.9.0)

If I build some example to link with that package's output lib, it will failure to run.

-- Configuring done
-- Generating done
-- Build files have been written to: /Users/xlla/git/gz-rendering/examples/simple_demo/build
slim:build xlla$ make
Consolidate compiler generated dependencies of target simple_demo
[ 33%] Linking CXX executable simple_demo
[100%] Built target simple_demo
slim:build xlla$ ./simple_demo 
dyld: Symbol not found: __ZTINSt3__14__fs10filesystem16filesystem_errorE
  Referenced from: /usr/local/opt/ignition-common5/lib/libignition-common5.5.dylib
  Expected in: flat namespace
 in /usr/local/opt/ignition-common5/lib/libignition-common5.5.dylib
Abort trap: 6
slim:build xlla$ ls -al /usr/local/opt/ignition-common5/lib/libignition-common5.5.dylib
lrwxr-xr-x  1 xlla  admin  36 16 May 21:00 /usr/local/opt/ignition-common5/lib/libignition-common5.5.dylib -> libignition-common5.5.0.0~pre1.dylib

this Symblol exist in /usr/local/opt/llvm/lib/libc++.1.dylib

What did you expect to happen?

I expect the lib be link to /usr/local/opt/llvm/lib/libc++.1.dylib instead of /usr/lib/libc++.1.dylib

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

brew install llvm@13
brew install ignition-common5 --cc llvm_clang 
otool -L /usr/local/opt/ignition-common5/lib/libignition-common5.5.dylib
MikeMcQuaid commented 2 years ago
  • [x] I have resolved all warnings from brew doctor and that did not fix my problem.

Warning: You passed --cc=llvm_clang. You will encounter build failures with some formulae. Please create pull requests instead of asking for help on Homebrew's GitHub, Twitter or any other official channels. You are responsible for resolving any issues you experience while you are running this unsupported configuration.

We (and Apple) do not provide support for this old version. You will encounter build failures with some formulae. Please create pull requests instead of asking for help on Homebrew's GitHub, Twitter or any other official channels. You are responsible for resolving any issues you experience while you are running this old version.