Public bug reported: clang++-18 -O2 -std=c++11 -g -Wall -Wextra -Wno-parentheses -Wno-unused-parameter -I/usr/include/libpng16 -DUSE_TILE -MMD -c tool/tile_colour.cc -o tool/tile_colour.o tool/tile_colour.cc:2:10: fatal error: 'cassert' file not found #include <cassert> ^~~~~~~~~ 1 error generated.
The compile succeeds if I use g++; it fails with the above error if I use clang++-15 or clang++-18. The program I am building is DCSS, https://github.com/crawl/crawl; it fails on the first C++ file to be compiled, which is in the rltiles subdirectory of crawl-ref/source. The full build command is "make debug WEBTILES=y FULLDEBUG=y LTO=y FORCE_CC=clang-18 FORCE_CXX=clang++-18 V=1". clang++-15 worked to build it on 22.04.3, with no additional C++-related packages needed once g++ and clang-15 were installed. (Some other dependencies are also needed to build it, as described in INSTALL.md, but those won't impact standard headers such as "<cassert>".) Searching for this failure found reports for older Ubuntu versions which suggested installing (older versions of) various packages that are installed already. ProblemType: Bug DistroRelease: Ubuntu 24.04 Package: clang-18 1:18.1.3-1ubuntu1 ProcVersionSignature: Ubuntu 6.1.0-1025.25-oem 6.1.57 Uname: Linux 6.1.0-1025-oem x86_64 ApportVersion: 2.28.1-0ubuntu3.1 Architecture: amd64 CasperMD5CheckResult: pass CurrentDesktop: MATE Date: Sun Sep 22 00:16:47 2024 InstallationDate: Installed on 2023-11-15 (311 days ago) InstallationMedia: Ubuntu 22.04.3 LTS "Jammy Jellyfish" - Release amd64 (20230807.2) ProcEnviron: LANG=en_US.UTF-8 PATH=(custom, no user) SHELL=/bin/zsh TERM=xterm-256color XDG_RUNTIME_DIR=<set> SourcePackage: llvm-toolchain-18 UpgradeStatus: Upgraded to noble on 2024-09-22 (0 days ago) mtime.conffile..etc.init.d.apport: 2024-07-22T10:59:07 ** Affects: llvm-toolchain-18 (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug noble -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2081618 Title: clang++ can't find standard headers To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-18/+bug/2081618/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs