Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with installation on mac os x #3286

Open
mkazanov opened this issue Sep 6, 2024 · 5 comments
Open

Problem with installation on mac os x #3286

mkazanov opened this issue Sep 6, 2024 · 5 comments
Assignees
Labels
question a user question how to do certain things

Comments

@mkazanov
Copy link

mkazanov commented Sep 6, 2024

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
@mkazanov mkazanov added the question a user question how to do certain things label Sep 6, 2024
@eseiler eseiler self-assigned this Sep 9, 2024
@eseiler
Copy link
Member

eseiler commented Sep 19, 2024

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.

@mkazanov
Copy link
Author

mkazanov commented Sep 19, 2024

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

@eseiler
Copy link
Member

eseiler commented Sep 19, 2024

% 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.

@mkazanov
Copy link
Author

Can you find out the XCode version?

XCode version 15.2

@eseiler
Copy link
Member

eseiler commented Sep 19, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question a user question how to do certain things
Projects
None yet
Development

No branches or pull requests

2 participants