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]

Bootstrap fails on Sun Solaris 2.7 in libstdc++/libmath (expf definedtwice)



On Sun Solaris 7, bootstrapping 3.0.1pre fails for me today. The reason is
that expf is defined twice, once in
  libstdc++-v3/libmath/stubs.c
and once in
  libstdc++-v3/libmath/expf.c
The reason, of course, is that this is not a Linux system only for which
_GLIBCPP_HAVE_EXPF is defined, so the definition in stubs.c is compiled as
well. 

The fix, presumably, is to simply delete expf.c. Or, as I assume that this
file has been there for a reason (i.e. expf needs to be defined on all
systems, even those Linux systems for which _GLIBCPP_HAVE_EXPF is
defined), delete the entire clause in stubs.c. At least for me, deleting
expf.c brings me back into bootstrap land.

Regards
  Wolfgang

-------------------------------------------------------------------------
Wolfgang Bangerth          email: wolfgang.bangerth@iwr.uni-heidelberg.de
                             www: http://gaia.iwr.uni-heidelberg.de/~wolf




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