-
Notifications
You must be signed in to change notification settings - Fork 544
Description
Discussed in #1503
Originally posted by weneuh March 7, 2022
Hi,
I am getting an error message when trying to compile STAR 2.7.10a on my mac using gcc/11.2.0_3/bin/g++-11:
direct access in function '__ZnamRKSt9nothrow_t.cold' from file '/usr/local/Cellar/gcc/11.2.0_3/bin/../lib/gcc/11/gcc/x86_64-apple-darwin21/11/../../../libstdc++.a(new_opvnt.o)' to global weak symbol '__ZnamRKSt9nothrow_t' from file '/usr/local/Cellar/gcc/11.2.0_3/bin/../lib/gcc/11/gcc/x86_64-apple-darwin21/11/../../../libstdc++.a(new_opvnt.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
here is what I did:
$wget https://github.com/alexdobin/STAR/archive/2.7.10a.tar.gz
$tar -xzf 2.7.10a.tar.gz
$cd STAR-2.7.10a/source
$make STARforMacStatic CXX=/usr/local/Cellar/gcc/11.2.0_3/bin/g++-11
would you have any advice how to resolve this?
many thanks, Werner