Skip to content

[2.0] Add support for LLVM's libc++ #3956

Open
@hcoona

Description

@hcoona

Summary

I cannot build any c++ sources with clang++ in Mariner 2.0 Docker image.

I think it's because we upgrade clang to v12.0.1 but still leave libstdc++-devel v11.2.0.

How to reproduce

# image id: 9981cdf1c8ec
docker run --net=host --rm -it mcr.microsoft.com/cbl-mariner/base/core:2.0 /bin/bash
tdnf install -y clang
cat > a.cc << EOF
#include <iostream>
int main() {
  std::cout << "Hello!" << std::endl;
  return 0;
}
EOF
clang++ -std=c++17 -stdlib=libc++ -c a.cc

image

image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions