I'm attempting to install vg using the instructions for MacOS. I pulled the repo and installed the dependencies using MacPorts.
# Cloning from repo
git clone --recursive https://github.com/vgteam/vg.git
# Installing dependencies. This seems to work
sudo port install libtool protobuf3-cpp jansson jq cmake pkgconfig autoconf automake libtool coreutils samtools redland bison gperftools md5sha1sum rasqal gmake autogen cairo libomp boost zstd pybind11
# This generates a bunch of output but eventually fails
. ./source_me.sh && make
I'm getting the following error:
ld: -headerpad: not a hexadecimal number: -headerpad_max_install_names
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [libdeflate.so] Error 1
make: *** [lib/libdeflate.a] Error 2
macOS: Sonoma 14.5
Can you try starting a new terminal session and then running the last line (the
source_me.sh
one)?Same error after starting a new terminal
Looks like
clang v.9.0
is what thevg
team reports using. Is that what you have?I am using a different version:
9 is incompatible with my OS (just did a quick experiment based on this question)
Try installing vg using conda.
I looks like it's only available for linux
Ahh, good catch - I did not see that part.
vg
developers stop by here periodically. Hopefully they will have a suggestion in a few days.Right now the vg Mac CI is using Clang 14, and I've built it with Clang 15 on my machine. I think we've been making the changes to support current Clang without updating the part of the README where we say we have built on Clang 9.
You shouldn't try to go back and get Clang 9 for Mac to do a Mac build. If it doesn't work on the current Clang that's a vg bug.
Please consider amending the page with neutral language that says something along the lines of (
current
version ofXcode
). While updatingREADME
is likely not a priority for developers, it should at least not contain information that is long outdated.