libc++-dev:amd64 3.9.1-3 expects /usr/include/xlocale.h to be installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libc++ (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Environment
Test program on Artful Aardvark 17.10
$ which clang++-5.0
/usr/bin/
$ clang++-5.0 --version
clang version 5.0.0-3 (tags/RELEASE_
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
$ dpkg --status libc++-dev
Package: libc++-dev
Status: install ok installed
Priority: extra
Section: libdevel
Installed-Size: 4180
Maintainer: Ubuntu Developers <email address hidden>
Architecture: amd64
Multi-Arch: same
Source: libc++
Version: 3.9.1-3
Provides: libstdc++-dev
Depends: libc++1 (= 3.9.1-3), libc++-helpers
Description: LLVM C++ Standard library (development files)
libc++ is a new implementation of the C++ standard library, targeting C++11.
.
Features and Goals
.
* Correctness as defined by the C++11 standard.
* Fast execution.
* Minimal memory use.
* Fast compile times.
* ABI compatibility with gcc's libstdc++ for some low-level features such
as exception objects, rtti and memory allocation.
* Extensive unit tests.
Original-
Homepage: http://
Test case that fails
$ clang++-5.0 -stdlib=libc++ -c -x c++ - <<EOF
#include <locale>
EOF
In file included from <stdin>:1:
In file included from /usr/include/
/usr/include/
# include <xlocale.h>
1 error generated.
Test case that succeeds
$ clang++-5.0 -c -x c++ - <<EOF
#include <locale>
EOF
Supposed cause
As explained in
https:/
the header file `xlocale.h` has been removed from libc6-dev in release 2.26.
Further information
`/usr/include/
`libc6-dev:amd64 (2.24-9ubuntu2)`
on Zesty Zapus.
Package `libc6-dev:amd64 (2.26-0ubuntu2)` no longer provides it.
Also fails to compile with g++ (all versions) configured to use libc++ instead of libstdc++-v3
and all other versions of clang++.
Changed in libc++ (Ubuntu): | |
status: | Confirmed → Fix Released |
Workaround
$ cd /usr/include
$ sudo ln -s locale.h xlocale.h