this week I updated O2, but I ran into an issue (it came up when building clang). This was solved by reinstalling Xcode (version 12.5.1) and command line tools (I’m running on macOS Big Sur 11.2.3). After this, O2 did build without any issues.
However, if I now enter the O2 environment and run a root macro via
root -l -b -q Test_Macro.cc++
I get the following error:
Info in <TMacOSXSystem::ACLiC>: creating shared library /Users/marcel/Test/Test_Macro_cc.so
ld: can´t use -undefined warning or suppress with -twolevel_namespace
clang-11: **error:** linker command failed with exit code 1 (use -v to see invocation)
Error in <ACLiC>: Compilation failed!
This happens with all of my root macros which have worked before. This test macro mentioned above also does nothing else than printing “Hello”.
I tried to install O2 completely from scratch and the installation went through but this didn’t solve the issue.
Do you have any suggestions on what I could try to solve this issue?
Thanks a lot in advance!