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

Compilation error with XLClang 16.1.1-3 #48

Open
cwpearson opened this issue Mar 6, 2020 · 0 comments
Open

Compilation error with XLClang 16.1.1-3 #48

cwpearson opened this issue Mar 6, 2020 · 0 comments
Assignees

Comments

@cwpearson
Copy link
Member

When compiling, we get

[100%] Linking CXX executable scope
/ccs/home/merth/.hunter/_Base/51d2d6b/8e06572/d68db6d/Install/lib64/libfmtd.a(format.cc.o): In function `fmt::internal::FormatterBase::next_arg(char const*&)':
/ccs/home/merth/.hunter/_Base/51d2d6b/8e06572/d68db6d/Build/fmt/Source/fmt/format.h:2214: undefined reference to `_fill'
/ccs/home/merth/.hunter/_Base/51d2d6b/8e06572/d68db6d/Install/lib64/libfmtd.a(format.cc.o): In function `fmt::internal::FormatterBase::get_arg(unsigned int, char const*&)':
/ccs/home/merth/.hunter/_Base/51d2d6b/8e06572/d68db6d/Build/fmt/Source/fmt/format.h:2220: undefined reference to `_fill'
/ccs/home/merth/.hunter/_Base/51d2d6b/8e06572/d68db6d/Install/lib64/libfmtd.a(format.cc.o): In function `fmt::BasicFormatter<char, fmt::ArgFormatter<char> >::get_arg(fmt::BasicStringRef<char>, char const*&)':
/ccs/home/merth/.hunter/_Base/51d2d6b/8e06572/d68db6d/Build/fmt/Source/fmt/format.h:3809: undefined reference to `_fill'
/ccs/home/merth/.hunter/_Base/51d2d6b/8e06572/d68db6d/Install/lib64/libfmtd.a(format.cc.o):(.eh_frame+0x13): undefined reference to `__IBMCPlusPlusExceptionV3'
/usr/bin/ld: link errors found, deleting executable `scope'
collect2: error: ld returned 1 exit sta

This is fixed with module load gcc followed by cmake .. -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_CUDA_HOST_COMPILER=which gcc``

@cwpearson cwpearson self-assigned this Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant