Closed pmolfese closed 1 month ago
The issue is resolved if I use g++ from gcc. Seems like Clang can't find parts of the standard library.
Unable to replicate. My best guess is you have not accepted the new Apple developer agreement. The easiest way to do this after you upgrade is to open up the Xcode
application - it should demand that you sign off on the new agreements. I think you can also do this online with your Apple Developer accound.
git clone --branch development git@github.com:rordenlab/dcm2niix.git
cd dcm2niix
mkdir build
cd build
cmake -DZLIB_IMPLEMENTATION=Cloudflare -DUSE_JPEGLS=ON -DUSE_OPENJPEG=ON ..
make
./bin/dcm2niix
Chris Rorden's dcm2niiX version v1.0.20241001 (JP2:OpenJPEG) (JP-LS:CharLS) Clang16.0.0 ARM (64-bit MacOS)
...
clang --version
Apple clang version 16.0.0 (clang-1600.0.26.3)
Target: arm64-apple-darwin23.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
sw_vers
ProductName: macOS
ProductVersion: 14.7
BuildVersion: 23H124
The developer agreement was already accepted. I wiped the CommandLineTools and reinstalled:
sudo rm -rf /Library/Developer/CommandLineTools
Xcode-select --install
This fixed the issue.
Describe the bug
Build fails with AppleClang 16.0.0.16000026 on macOS 14.7. Algorithm library not found. Was not an issue prior to updating to 14.7.
To reproduce
Steps to reproduce the behavior:
Also fails using development branch:
Expected behavior
Compiler should correctly find
Output log
Version
Please report the complete version string:
dcm2niiX version v1.0.20201207 Clang12.0.0 ARM (64-bit MacOS)
The version string is always the first line generated when dcm2niix is run.Troubleshooting
Please try the following steps to resolve your issue: