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

vg build fails on Apple M1 pro running Sequoia 15.0.1 #4414

Open
dmgood11 opened this issue Oct 5, 2024 · 0 comments
Open

vg build fails on Apple M1 pro running Sequoia 15.0.1 #4414

dmgood11 opened this issue Oct 5, 2024 · 0 comments

Comments

@dmgood11
Copy link

dmgood11 commented Oct 5, 2024

M1 Pro Mac running Sequoia 15.0.1
using a clean Homebrew install and a clean Xcode install.

$ clang --version
Apple clang version 16.0.0 (clang-1600.0.26.3)
Target: arm64-apple-darwin24.0.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

$ brew --version
Homebrew 4.4.0

$ echo $OpenMP_ROOT 
/opt/homebrew/opt/libomp

$ ls $OpenMP_ROOT 
INSTALL_RECEIPT.json	
include
lib
sbom.spdx.json

1. What were you trying to do?
build vg from source on an M1 Pro (Apple Silicon) running Sequoia 15.0.1

2. What did you want to happen?
successful build of the vg executable

3. What actually happened?

build ultimately fails with what seems like a problem linking in libomp while building gbwt:

$tail build.log 
      gbwt::MergeBuffers::write(gbwt::GapArray<gbwt::BlockArray>&) in libgbwt.a[3](bwtmerge.o)
      gbwt::DynamicGBWT::remove(std::__1::vector<unsigned long long, std::__1::allocator<unsigned long long>> const&, unsigned long long) (.omp_outlined) in libgbwt.a[5](dynamic_gbwt.o)
      gbwt::buildRA(gbwt::DynamicGBWT const&, gbwt::DynamicGBWT const&, gbwt::MergeBuffers&) (.omp_outlined) in libgbwt.a[5](dynamic_gbwt.o)
  "_omp_get_wtime", referenced from:
      gbwt::readTimer() in libgbwt.a[13](utils.o)
ld: symbol(s) not found for architecture arm64
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [bin/build_gbwt] Error 1
rm obj/build_gbwt.o
make: *** [lib/libgbwt.a] Error 2
``
**4. If you got a line like `Stack trace path: /somewhere/on/your/computer/stacktrace.txt`, please copy-paste the contents of that file here:**

I've attached the build log.

**5. What data and command can the vg dev team use to make the problem happen?**
Follow the Mac OS build instructions on an M1 mac running sequoia, having satisfied dependencies via Homebrew or MacPorts.

**6. What does running `vg version` say?**
vg does not build so no running vg to check.  vg source acquire via

$git clone --recursive https://github.com/vgteam/vg.git

[build.log](https://github.com/user-attachments/files/17267334/build.log)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant