I dug a bit more into it, I can reproduce the issue with the following
minimal dockerfile:
ARG TAG=devel
FROM ubuntu:${TAG}
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y cmake libboost-all-dev clang libstdc++-13-dev && \
apt-get purge --autoremove -y && \
apt-get clean
RUN printf "#include <iostream>\n int main() { std::cout << "Hello, CMake!" <<
std::endl; return 0; }" > main.cpp
RUN printf "cmake_minimum_required(VERSION 3.12)\nproject(HelloWorld VERSION
1.0 LANGUAGES CXX)\nadd_executable(HelloWorld main.cpp)" > CMakeLists.txt
RUN cmake -B build -DCMAKE_CXX_COMPILER=clang++
The crux is libboost-all-dev, without installing that everything works as
expected.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2144697
Title:
clang++ is not able to compile a simple test program
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/clang/+bug/2144697/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs