Problem with installation on mac os x
mkazanov opened this issue · 5 comments
Platform
- SeqAn version: 3.3.0
- Operating system: Darwin MacBook-Pro-2.local 23.1.0 Darwin Kernel Version 23.1.0: Mon Oct 9 21:33:00 PDT 2023; root:xnu-10002.41.9~7/RELEASE_ARM64_T6031 arm64
- Compiler:
Question
I have installed seqan3 by cloning repository, then runing cmake ..
from build
directory.
Then I run cmake install
and all headers have been copied to /usr/local/include/seqan3
directory.
I've also added /usr/local/include/seqan3/**
to the Header Search Paths
of my Xcode project.
Then I have added two #include
lines to simple hello world program in Xcode:
#include <seqan3/core/debug_stream.hpp>
#include <seqan3/io/sequence_file/all.hpp>
When I tried to build, it failed with a bunch of issues (below) in chunk_view.hpp
file, etc.
![Screenshot 2024-09-06 at 9 34 59 PM](https://private-user-images.githubusercontent.com/19509266/365274347-4a83edfe-cdfa-4993-a890-3370beb2b16b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzIxMDk3NjYsIm5iZiI6MTczMjEwOTQ2NiwicGF0aCI6Ii8xOTUwOTI2Ni8zNjUyNzQzNDctNGE4M2VkZmUtY2RmYS00OTkzLWE4OTAtMzM3MGJlYjJiMTZiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDExMjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMTIwVDEzMzEwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA2NWQ4Njc2OTA4ODE5NjRmNTJmMDk2NDllMDE5ZTcwOGJhYTViMTRiZjMzMGU1MWZiZDExYmM0NmQxNGRiMTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.11G7DqF-RxWtN-QlCvoMzuq8OCVaBKUR9Mk0LPIGkEE)
Hey there,
Sorry for not getting back to you sooner.
Can you tell me what version of Clang/Xcode you are using?
For Clang, you can usually run clang --version
in the terminal.
From the looks of it, the version used is older than llvm-clang-17, which is the minimum version we support. Note that Apple Clang (the one XCode is shipped with) usually has a different version number that translates to some llvm-clang version.
Hey there,
Sorry for not getting back to you sooner.
Can you tell me what version of Clang/Xcode you are using? For Clang, you can usually run
clang --version
in the terminal.From the looks of it, the version used is older than llvm-clang-17, which is the minimum version we support. Note that Apple Clang (the one XCode is shipped with) usually has a different version number that translates to some llvm-clang version.
% clang --version
Homebrew clang version 18.1.8
Target: arm64-apple-darwin23.1.0
Thread model: posix
InstalledDir: /opt/homebrew/opt/llvm/bin
% clang --version Homebrew clang version 18.1.8 Target: arm64-apple-darwin23.1.0 Thread model: posix InstalledDir: /opt/homebrew/opt/llvm/bin
This version should work. As for M1 (arm64) support, I'm currently updating our CI to use macos-14
runners, which use M1 processors.
But Homebrew's clang is probably not the one XCode uses. XCode is shipped with some llvm/clang version, and this one is used by default.
Can you find out the XCode version?
For using Homebrew's clang in XCode I found this: https://forums.developer.apple.com/forums/thread/737718
I'll also try this on my old MacBook, in case the steps are not exhaustive.
Can you find out the XCode version?
XCode version 15.2
According to https://en.wikipedia.org/wiki/Xcode#Xcode_15.0_-_(since_visionOS_support)_2, XCode 16.0 would be the first version that ships with llvm 17.
In prior versions, XCode must be convinced to use Homebrew's llvm-clang.
I haven't managed to achieve that yet on my mac. But I never used XCode, and I apparently configured something such that XCode won't even work with Hello World.