Clang 3.2 build gcc建成后gcc 4.7 [英] Clang 3.2 build broken after building gcc 4.7
问题描述
所以我知道Clang依赖(大部分时间)对Gnu的libstdc ++ 3,但是在构建gcc 4.7.0(cuz'awesome!)后,我似乎遇到了一个问题,所有的clang路径错误。我需要清理我的构建目录,从头开始为clang,具体来说,它给我错误位/ c + + config.h丢失,虽然它在那里,并建立正好与gcc
So I know Clang depends (most of the time) on Gnu's libstdc++3, but after building gcc 4.7.0 (cuz' of awesome!) I seem to have run into a problem, all the paths for clang are wrong. Do I need to clean my build directory and start from scratch for clang, specifically it gives me the error bits/c++config.h missing, although it is there and builds just fine with gcc
我在Linux x86,Ubuntu 12.04
I am on Linux x86, Ubuntu 12.04
推荐答案
是的,GCC的头文件和libs的路径包括版本,在你的情况下,4.7.0,所以你需要重建clang与 - with-gcc-toolchain = ...
并重新安装它
Yes, the paths for GCC's headers and libs include the version, 4.7.0 in your case, so you'll need to rebuild clang with --with-gcc-toolchain=...
and reinstall it
这篇关于Clang 3.2 build gcc建成后gcc 4.7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!