-
Notifications
You must be signed in to change notification settings - Fork 59
Conflict between LLVM's version file and our VERSION file #2844
Copy link
Copy link
Closed
Description
On MacOS, which generally has case-insensitive file systems, the VERSION file that gets generated while building Charm++ conflicts with a version header file provided by LLVM, leading to compilation errors:
clang++ -fPIC -dynamic -fno-common -stdlib=libc++ -DCMK_GFORTRAN -mmacosx-version-min=10.7 -D_DARWIN_C_SOURCE -I../include -I. -c test.cpp -o test.o -std=c++11
In file included from test.cpp:3:
In file included from /usr/local/opt/llvm/bin/../include/c++/v1/map:479:
In file included from /usr/local/opt/llvm/bin/../include/c++/v1/__tree:14:
In file included from /usr/local/opt/llvm/bin/../include/c++/v1/iterator:421:
In file included from /usr/local/opt/llvm/bin/../include/c++/v1/__functional_base:14:
In file included from /usr/local/opt/llvm/bin/../include/c++/v1/type_traits:417:
In file included from /usr/local/opt/llvm/bin/../include/c++/v1/cstddef:37:
../include/version:1:1: error: expected unqualified-id
61001
^
This is with llvm 10.0 (homebrew) on MacOS 10.15.4, both old and new build systems are affected.
llvm 9 is probably affected too.
Potential fixes:
- rename our
VERSIONfile. - make our
VERSIONfile C-compliant (e.g. by adding//before the version number). This would avoid the compilation error, but LLVM's version file would still not be included (which is not a critical error I think). - remove
VERSIONcompletely.
Reactions are currently unavailable