You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HOMEBREW_VERSION: 4.2.18
ORIGIN: https://github.com/Homebrew/brew
HEAD: 9edabf02ce29e54d0b717baa757cff38ad0c0e25
Last commit: 3 days ago
Core tap JSON: 17 Apr 15:53 UTC
Core cask tap JSON: 17 Apr 15:53 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_EDITOR: nano
HOMEBREW_MAKE_JOBS: 16
Homebrew Ruby: 3.1.4 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/bin/ruby
CPU: 16-core 64-bit arm_palma
Clang: 15.0.0 build 1500
Git: 2.44.0 => /opt/homebrew/bin/git
Curl: 8.4.0 => /usr/bin/curl
macOS: 14.4.1-arm64
CLT: 15.3.0.0.1.1708646388
Xcode: 15.3
Rosetta 2: false
Output of 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:[email protected]Warning: You have unlinked kegs in your Cellar.Leaving kegs unlinked can lead to build-trouble and cause formulae that depend onthose kegs to fail to run properly once built. Run `brew link` on these: python-packaging numpyWarning: Homebrew's "sbin" was not found in your PATH but you have installed
formulae that put executables in /opt/homebrew/sbin.
Consider setting your PATH for example like so:
echo'export PATH="/opt/homebrew/sbin:$PATH"'>>~/.zshrc
Description of issue
When enabling HDF5_USE_STATIC_LIBRARIES in cmake, /opt/homebrew/opt/libaec/lib/libsz.2.dylib is chosen instead of /opt/homebrew/opt/libaec/lib/libsz.a despite asking for static libraries.
Nothing, since we asked for HDF5_USE_STATIC_LIBRARIES.
Actual output:
/opt/homebrew/opt/libaec/lib/libsz.2.dylib (compatibility version 2.0.0, current version 2.0.1)
Notes:
The expected output has been the case since at least July 2023 and was working when Homebrew/homebrew-core#159691 (comment) was filed, though I don't know how to narrow down when the behaviour broke after that.
The issue seems to stem from /opt/homebrew/Cellar/hdf5/1.14.3_1/lib/cmake/hdf5/hdf5-targets.cmake which contains this line for the hdf5-static target:
Note that libsz.dylib appears twice (why?) and should be libsz.a. I don't know when this file is generated, but if I extract the downloaded Caches/Homebrew/downloads/f5d182938da868e3080c9f4583e29787b35254f3487c8a3c998f1eb31ac25a58--hdf5--1.14.3_1.arm64_sonoma.bottle.tar.gz I can see that it's in there along with MacOSX14.sdk in the path to libz, but shouldn't that be dependent on the SDK installed?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Output of
brew config
Output of
brew doctor
Description of issue
When enabling
HDF5_USE_STATIC_LIBRARIES
incmake
,/opt/homebrew/opt/libaec/lib/libsz.2.dylib
is chosen instead of/opt/homebrew/opt/libaec/lib/libsz.a
despite asking for static libraries.Repro case:
CMakeLists.txt
:test.c
Execution:
Expected output:
Nothing, since we asked for
HDF5_USE_STATIC_LIBRARIES
.Actual output:
Notes:
The expected output has been the case since at least July 2023 and was working when Homebrew/homebrew-core#159691 (comment) was filed, though I don't know how to narrow down when the behaviour broke after that.
The issue seems to stem from
/opt/homebrew/Cellar/hdf5/1.14.3_1/lib/cmake/hdf5/hdf5-targets.cmake
which contains this line for thehdf5-static
target:Note that
libsz.dylib
appears twice (why?) and should belibsz.a
. I don't know when this file is generated, but if I extract the downloadedCaches/Homebrew/downloads/f5d182938da868e3080c9f4583e29787b35254f3487c8a3c998f1eb31ac25a58--hdf5--1.14.3_1.arm64_sonoma.bottle.tar.gz
I can see that it's in there along withMacOSX14.sdk
in the path tolibz
, but shouldn't that be dependent on the SDK installed?Relevant casks
HDF5
Beta Was this translation helpful? Give feedback.
All reactions