[cfe-dev] InitHeaderSearch.cpp for gentoo

Holger Brandsmeier holger.brandsmeier at sam.math.ethz.ch
Tue Oct 18 12:35:36 PDT 2011


Dear list,

the current head version of SVN does not work for me with Gentoo. I
get the error:
  fatal error: 'cxxabi.h' file not found

I see that you provide:

    AddGnuCPlusPlusIncludePaths(
      "/usr/lib/gcc/i686-pc-linux-gnu/4.4.5/include/g++-v4",
      "i686-pc-linux-gnu", "", "", triple);

I needed to add

    AddGnuCPlusPlusIncludePaths(
      "/usr/lib/gcc/i686-pc-linux-gnu/4.4.5/include/",
      "i686-pc-linux-gnu", "", "", triple);
(Note the removal of g++-v4)

With this modification everything worked for me.

-Holger

Btw. the output of `gcc -v -x c++ /dev/null -fsyntax-only` contains
even a few more paths:

 /usr/lib/gcc/i686-pc-linux-gnu/4.4.5/include/g++-v4
 /usr/lib/gcc/i686-pc-linux-gnu/4.4.5/include/g++-v4/i686-pc-linux-gnu
 /usr/lib/gcc/i686-pc-linux-gnu/4.4.5/include/g++-v4/backward
 /usr/lib/gcc/i686-pc-linux-gnu/4.4.5/include
 /usr/lib/gcc/i686-pc-linux-gnu/4.4.5/include-fixed
 /usr/include



More information about the cfe-dev mailing list