Skip to content

clang-tidy: /lib64/libm.so.6: version `GLIBC_2.27' not found #10019

Description

Environment

  • OS and version: Windows 10 (but in remote mode to Red Hat 7)
  • VS Code: 1.70.2
  • C/C++ extension: 1.12.4
  • OS and version of remote machine (if applicable): Red Hat 7

Bug Summary and Steps to Reproduce

Bug Summary:

The cpptools extensions show errors about clang-tidy which can't be run on Red Hat 7 as it requires GLIBC_2.27 for the function log2f.
This makes clang-tidy not usable.

The exact error is:

<extension path>/LLVM/bin/clang-tidy: /lib64/libm.so.6: version `GLIBC_2.27` not found (required by <extension path>/LLVM/bin/clang-tidy)

Steps to reproduce:

  1. Run the extension on a Red Hat 7 (or Centos 7) machine
  2. Open a C/C++ project with this setting enabled: C_Cpp.codeAnalysis.clangTidy.enabled
  3. Show the output Log (Remote Serer)
  4. See the above error: clang-tidy: /lib64/libm.so.6: version GLIBC_2.27 not found

Other Extensions

No response

Additional Information

Running objdump -T on clang-tidy shows which function is the issue:

[...]
0000000000000000      DF *UND*	0000000000000000 (GLIBC_2.27) log2f
[...]

Metadata

Metadata

Labels

Feature: Code AnalysisRelated to integration with clang-tidy, cppcheck, cl.exe /analyze, etc.Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions