This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: bootstrap failure alphaev6-dec-osf5.0 (struct exception redefinition)



  > I saw a message in the archives from last year about a similar error
  > occuring on Solaris, but it wasn't during a bootstrap.
[ ... ]
This sounds like fixincludes didn't do it's job properly.  It's supposed
to wrap the "struct exception" stuff so that it doesn't conflict with
the "exception" keyword in the C++ language.


  > In file included from /var/home/ahobson/src/gcc/build/gcc/include/new:36,
  >                  from /var/home/ahobson/src/gcc/build/gcc/include/new.h:34,
  >                  from ../../../libstdc++/stl/stl_algobase.h:53,
  >                  from ../../../libstdc++/stl/algorithm:31,
  >                  from ../../../libstdc++/std/std_valarray.h:42,
  >                  from ../../../libstdc++/valarray.cc:2:
  > /var/home/ahobson/src/gcc/build/gcc/include/exception:39: redefinition of `
  > struct exception'
  > /usr/include/math.h:554: previous definition here
This reinforces that idea -- fixincludes should have made a fixed copy of
math.h and put it in the GCC private include dir.

jeff

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]