------- Comment #13 from armand dot potter at free dot fr 2009-12-15 20:48 ------- I'm using about the same configuration (cross-LFS build but with gcc 4.4.2) and got the same error. I did some investigations and the problem is that fenv.h file from build tree is first included (and defines _GLIBCXX_FENV_H to 1) and then include_next includes fenv.h from host (installed in /usr/TARGET/include/c++/VERSION/fenv.h) and this time as _GLIBCXX_FENV_H is already defined, does nothing so fenv.h from glibc is never included.
For a native build, just compiled c++ compiler is used with the -nostdinc++ flag so that /usr/TARGET/include/c++/VERSION/fenv.h is not seen and include_next works as expected including glibc header. I don't know what is the correct solution but at least you know what the real problem is. ~ -- armand dot potter at free dot fr changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |armand dot potter at free | |dot fr http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40974