Bug#800492: libc++-dev: Missing __cxxabi_config.h in libc++-dev

Xiangyu Liu u122334 at gmail.com
Wed Sep 30 06:50:30 UTC 2015


Actually I found the __cxxabi_config.h in libc++abi-dev package ( 3.7.0-1
), and I installed libc++abi-dev. But it could not be found automatically
by /usr/include/c++/v1/cxxabi.h.
If I set CXXFLAGS += /usr/include/libcxxabi  then it did work. So my bug
report should be " Clang 3.7 can't find __cxxabi_config.h automatically
with libc++-dev & libc++abi-dev".
Anyway, let me keep it for libc++-dev.


Thanks,
Best Regards,
Ricky X.Y. LIU

2015-09-30 14:19 GMT+08:00 Xiangyu LIU <u122334 at gmail.com>:

> Package: libc++-dev
> Version: 3.7.0-1
> Severity: normal
>
> Dear Maintainer,
>
> I installed clang-3.7 (llvm-3.7-dev), libc++-dev and libc++abi-dev in my
> pbuilder.
> When I tried to compile package libitpp [1] in chroot manually, I met a
> error.
>
> ------------------------------------------------------------------
> Scanning dependencies of target itpp_gtests
> make[3]: Leaving directory
> '/home/liuxiangyu/Pbuilder/itpp-4.3.1-git40a422/build-tree'
> /usr/bin/make -f gtests/CMakeFiles/itpp_gtests.dir/build.make
> gtests/CMakeFiles/itpp_gtests.dir/build
> make[3]: Entering directory
> '/home/liuxiangyu/Pbuilder/itpp-4.3.1-git40a422/build-tree'
> [ 63%] Building CXX object
> gtests/CMakeFiles/itpp_gtests.dir/linspace_test.cpp.o
> cd /home/liuxiangyu/Pbuilder/itpp-4.3.1-git40a422/build-tree/gtests &&
> /usr/bin/clang++-3.7   -DBLAS_INT32 -DLAPACK_INT32 -DNDEBUG  -std=c++11
> -stdlib=libc++ -DNDEBUG=1 -O3 -fno-builtin -pipe -g0 -Wall
> -fstack-protector-strong -Wformat -Werror=format-security -DPIC -fPIC
> -D_FORTIFY_SOURCE=2 -I/home/liuxiangyu/Pbuilder/itpp-4.3.1-git40a422
> -I/home/liuxiangyu/Pbuilder/itpp-4.3.1-git40a422/build-tree
> -I/usr/src/gtest -I/usr/src/gtest/include    -o
> CMakeFiles/itpp_gtests.dir/linspace_test.cpp.o -c
> /home/liuxiangyu/Pbuilder/itpp-4.3.1-git40a422/gtests/linspace_test.cpp
> In file included from
> /home/liuxiangyu/Pbuilder/itpp-4.3.1-git40a422/gtests/linspace_test.cpp:30:
> In file included from /usr/include/gtest/gtest.h:58:
> In file included from /usr/include/gtest/internal/gtest-internal.h:63:
> In file included from /usr/include/gtest/internal/gtest-type-util.h:52:
> /usr/include/c++/v1/cxxabi.h:21:10: fatal error: '__cxxabi_config.h' file
> not found
> #include <__cxxabi_config.h>
>          ^
> 1 error generated.
> gtests/CMakeFiles/itpp_gtests.dir/build.make:65: recipe for target
> 'gtests/CMakeFiles/itpp_gtests.dir/linspace_test.cpp.o' failed
> make[3]: *** [gtests/CMakeFiles/itpp_gtests.dir/linspace_test.cpp.o] Error
> 1
> make[3]: Leaving directory
> '/home/liuxiangyu/Pbuilder/itpp-4.3.1-git40a422/build-tree'
> CMakeFiles/Makefile2:143: recipe for target
> 'gtests/CMakeFiles/itpp_gtests.dir/all' failed
> make[2]: *** [gtests/CMakeFiles/itpp_gtests.dir/all] Error 2
> make[2]: Leaving directory
> '/home/liuxiangyu/Pbuilder/itpp-4.3.1-git40a422/build-tree'
> Makefile:130: recipe for target 'all' failed
> make[1]: *** [all] Error 2
> make[1]: Leaving directory
> '/home/liuxiangyu/Pbuilder/itpp-4.3.1-git40a422/build-tree'
> /usr/share/cdbs/1/class/makefile.mk:47: recipe for target
> 'debian/stamp-makefile-build' failed
> make: *** [debian/stamp-makefile-build] Error 2
> dpkg-buildpackage: error: debian/rules build gave error exit status 2
> ------------------------------------------------------------------
>
> It seems that there is no __cxxabi_config.h in /usr/include/c++/v1
> directory.
> So I just put a __cxxabi_config.h taken from internet in
> /usr/include/c++/v1, it did work then.
>
>
> __cxxabi_config.h :
> //===-------------------------- __cxxabi_config.h
> -------------------------===//
> //===-------------------------- __cxxabi_config.h
> -------------------------===//
> //
> //                     The LLVM Compiler Infrastructure
> //
> // This file is dual licensed under the MIT and the University of Illinois
> Open
> // Source Licenses. See LICENSE.TXT for details.
> //
>
> //===----------------------------------------------------------------------===//
>
> #ifndef ____CXXABI_CONFIG_H
> #define ____CXXABI_CONFIG_H
>
> #if defined(__arm__) && !defined(__USING_SJLJ_EXCEPTIONS__) && \
>     !defined(__ARM_DWARF_EH__)
> #define LIBCXXABI_ARM_EHABI 1
> #else
> #define LIBCXXABI_ARM_EHABI 0
> #endif
>
> #endif // ____CXXABI_CONFIG_H
>
>
>
>
> -- System Information:
> Debian Release: stretch/sid
>   APT prefers testing
>   APT policy: (500, 'testing')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 3.18.21-90.custom (SMP w/4 CPU cores)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/bash
> Init: systemd (via /run/systemd/system)
>
> Versions of packages libc++-dev depends on:
> ii  libc++-helpers  3.7.0-1
> ii  libc++1         3.7.0-1
>
> libc++-dev recommends no packages.
>
> libc++-dev suggests no packages.
>
> -- no debconf information
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-llvm-team/attachments/20150930/2cff2293/attachment-0001.html>


More information about the Pkg-llvm-team mailing list