Skip to content

Compilation error with XLClang 16.1.1-3 #48

Description

@cwpearson

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``

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions