octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #50285] Possible "rm" missing from Makefile wh


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #50285] Possible "rm" missing from Makefile when attempting to replace gdbinit
Date: Sat, 11 Feb 2017 23:46:37 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0

URL:
  <http://savannah.gnu.org/bugs/?50285>

                 Summary: Possible "rm" missing from Makefile when attempting
to replace gdbinit
                 Project: GNU Octave
            Submitted by: sebald
            Submitted on: Sun 12 Feb 2017 04:46:35 AM UTC
                Category: Configuration and Build System
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Missed Error or Warning
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

I've pulled the latest code, run ./bootstrap, run make (for which configure is
re-run), and when reaching the point of documentation compiling notice the
following error:


  GEN      build-aux/mk-default-qt-settings.sh
config.status: creating build-aux/mk-default-qt-settings.sh-tmp
config.status: executing build-aux/mk-default-qt-settings.sh commands
  GEN      doc/interpreter/doc-cache
refusing to overwrite test/.gdbinit with newer version from
/home/sebald/octave/octave/octave/etc/gdbinit
refusing to overwrite .gdbinit with newer version from
/home/sebald/octave/octave/octave/etc/gdbinit
  GEN      doc/interpreter/voronoi.eps


It seems that the reason for this error is that Makefile has a bad script
within:


define gdbinit_install_rule
  if [ -f $@ ]; then \
    echo "refusing to overwrite $@ with newer version from $<" 1>&2; \
  else \
    echo "Installing $@ from version at $<" ; \
    cp $< $@; \
  fi
endef


My guess is that the conditional should have something like "[ rm -f $@ ]" as
opposed to just "[ -f $@ ]", which always fails.

Although, that may not quite be it, as I manually make the change from the
build directory Makefile and still see a complaint, but success:


  GEN      build-aux/mk-default-qt-settings.sh
config.status: creating build-aux/mk-default-qt-settings.sh-tmp
config.status: executing build-aux/mk-default-qt-settings.sh commands
/bin/bash: line 0: [: -f: binary operator expected
Installing test/.gdbinit from version at
/home/sebald/octave/octave/octave/etc/gdbinit
/bin/bash: line 0: [: -f: binary operator expected
Installing .gdbinit from version at
/home/sebald/octave/octave/octave/etc/gdbinit
  GEN      doc/interpreter/voronoi.eps


Any idea if this might be related to compilation being stuck at the last line
shown?  I.e., after "  GEN      doc/interpreter/voronoi.eps" the compilation
whirls away at max CPU for the better part of an hour until I hit Cntl-C three
times.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?50285>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]