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]

libstdc++/4096: libstdc++-v3/include/Makefile.in has several errors in it



>Number:         4096
>Category:       libstdc++
>Synopsis:       libstdc++-v3/include/Makefile.in has several errors in it
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 23 07:46:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     rkl@connect.org.uk
>Release:        3.0.1
>Organization:
>Environment:
HP-UX 11.00, but probably applies to most platforms
>Description:
The new Makefile.in added with 3.0.1, namely
libstdc++-v3/include/Makefile.in has several problems:

* The lengths of lines are excessive - HP-UX 11.00's vi
  can't edit them.

* The path for the rules involving gthr.h, gthr-single.h
  and gthr-default.h seem to be one level too low, causing
  the build to bomb out.

* Use of "-d" with the $(INSTALL) command isn't
  cross-platform (many install scripts don't support it) -
  see the install-data-local rule.

* "make install" installs the Makefile.in, Makefile and
  Makefile.am files into the install tree of gcc !!!!!
>How-To-Repeat:
You won't be able to build with "make" or "make install"
on HP-UX 11.00.
>Fix:
* Use "vim" to edit the Makefile.in instead of "vi" on
  HP-UX 11.00. Would be nice if no Makefile* files in
  gcc exceeded, say, 200 chars on any one line.

* Add a "../" to the middle of the path for the
  gthr*.h: rules - for example, the gthr.h rule now reads:

${thread_builddir}/gthr.h:
        sed -e '/^#/s/\(${uppercase}${uppercase}*\)/_GLIBCPP_\1/g' \
            -e 's,^#include "\(.*\)",#include <bits/\1>,g' \
            < ${glibcpp_srcdir}/../../gcc/gthr.h > $@

* In the install-data-local: rule, change:
            $(INSTALL) -d $${installFile} ;\
  to:
          mkdir -p $${installFile} ;\

* Add an ! -name directive to the find command in the
  install-data-local rule:

  for file in `find . ! -name stamp-\* ! -name Makefile\* -print`; do \
>Release-Note:
>Audit-Trail:
>Unformatted:


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