bugGNU Octave - Bugs: bug #36903, configure misses makeinfo as a...

 
 

bug #36903: configure misses makeinfo as a dependency

Submitter:  Carnë Draug <carandraug>
Submitted:  Fri 20 Jul 2012 01:42:29 PM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Installation Failure
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.6.2 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Mon 25 Feb 2013 09:16:05 AM UTC, comment #16: 

Ah, sorry, I thought it meant "fixed in 3.6.2" instead of reported in this version. Which was why I assumed this fix was present in my version..

Yes agree, this is not a critical bug. No problems then.

Yngve Inntjore Levinsen <eothred>
Fri 22 Feb 2013 04:27:25 PM UTC, comment #15: 

3.6.4 is on the stable branch of Octave.  The patch was committed to the development branch which will become 3.8.0 or 4.0.0 depending on what the next release is.

This wasn't a critical fix that needed to be backported to stable.  Incidentally, if you are using a 3.6.4 tarball you shouldn't need to build the documentation because it has already been pre-built and shipped inside the tarball.

Rik <rik5>
Group administrator
Fri 22 Feb 2013 01:37:01 PM UTC, comment #14: 

Hi,

Just tried to compile octave 3.6.4 now on a machine that did not have makeinfo installed (texinfo package on RHEL). I figured it was documentation and used --disable-docs in configure. Tried to compile again, but it still failed because it did not manage to create AUTHORS file (or something like that).

This is very late in the compilation process, so would be very good if the configure script could at least check if makeinfo is present and exit otherwise with info that this package is needed.

Thanks!

Yngve Inntjore Levinsen <eothred>
Wed 08 Aug 2012 02:47:02 PM UTC, comment #13: 

I just committed a patch to check for makeinfo as a dependency (http://hg.savannah.gnu.org/hgweb/octave/rev/25200c04bc25).  Hopefully this takes care of 90% of the issues.  If we find people with makeinfo installed, but still unable to build, then we can figure out exactly what functionality within makeinfo we need to test for in configure.ac.

Rik <rik5>
Group administrator
Wed 01 Aug 2012 04:28:51 PM UTC, comment #12: 

The version that I know works is:

>makeinfo --version

makeinfo (GNU texinfo) 4.13

This comes with the package texinfo version 4.13.

I have tried other versions, but without success.
This has been the "official" version for quite a while.
And, the Texlive folks no longer support texinfo, so
it may be the current version for some time.


Michael Godfrey <godfrey>
Group Member
Tue 31 Jul 2012 05:51:59 PM UTC, comment #11: 

Michael, do you have any information on what minimum version of makeinfo is required?

I can add just a bare test for the presence of makeinfo, but if we want to also check versions or capabilities then I need that data as well.

Rik <rik5>
Group administrator
Sun 29 Jul 2012 11:33:51 PM UTC, comment #10: 

After a little exploring, it is definitely the case that Octave requires the makeinfo program both for ordinary operation and for building a distribution.  So, as a start on this issue configure.ac should be modified to add a test for the presence of 'makeinfo'.

Rik <rik5>
Group administrator
Sun 29 Jul 2012 12:29:47 AM UTC, comment #9: 

The better choice is to require texinfo as a
dependency.  But, there is also an issue with
versions of texinfo and its support status.

Michael Godfrey <godfrey>
Group Member
Sun 29 Jul 2012 12:11:25 AM UTC, comment #8: 

What do you mean by installed? That I need to run make install? Does ./run-octave suffice? If so

sh: makeinfo: not found
warning: get_first_help_sentence: couldn't run makeinfo on 'get_first_help_sentence'
  ***** assert (get_first_help_sentence ('get_first_help_sentence'), "Return the first sentence of a function's help text.")
!!!!! test failed
assert (get_first_help_sentence ('get_first_help_sentence'),"Return the first sentence of a function's help text.") expected
Return the first sentence of a function's help text.
but got


Sorry, when I wrote texinfo on the title and bug report I meant makeinfo (texinfo is the name of the Debian package that has it. and I keep confusing them). I know that I don't have makeinfo, I know that's the lack of it that's causing this.

My idea of the bug is whether configure should check for it and disable help somehow, or if it should be counted as a dependency.

Carnë Draug <carandraug>
Group Member
Sat 28 Jul 2012 07:56:59 PM UTC, comment #7: 

Carnë, could you try the following with an installed version of Octave on the same machine that is failing?


test get_first_help_sentence


I'm guessing that this will fail.  Judging from the stderr output it seems like you are missing makeinfo.

Not requiring Texinfo for building Octave really means not requiring all of the libraries necessary to produce Postscript and PDF output.  I believe makeinfo is still a requirement.  If that is the case then maybe we need to put a check in configure.ac for that in the same way we have a check for sed or perl.


Rik <rik5>
Group administrator
Sat 28 Jul 2012 07:11:50 PM UTC, comment #6: 

Re-posting the last comment which was cut short by the markup language on Savannah.

No, there's more fuctions failing:


* scripts/help/get_first_help_sentence.m

  ***** assert (get_first_help_sentence ('get_first_help_sentence'), "Return
the first sentence of a function's help text.")
!!!!! test failed
assert (get_first_help_sentence ('get_first_help_sentence'),"Return the first
sentence of a function's help text.") expected
Return the first sentence of a function's help text.
but got

* scripts/help/help.m

  ***** assert (! isempty (strfind (help ("ls"), "List directory contents")))
!!!!! test failed
assert (!isempty (strfind (help ("ls"), "List directory contents"))) failed
-verbatim

* scripts/help/unimplemented.m

  ***** test
 str = unimplemented ("no_name_function");
 assert (isempty (str));
 str = unimplemented ("quad2d");
 assert (str(1:51), "quad2d is not implemented.  Consider using dblquad.");
 str = unimplemented ("MException");
 assert (str(1:58), "the `MException' function is not yet implemented in
Octave");
!!!!! test failed
A(I): index out of bounds; value 51 out of bound 0

* test_error

  ***** warning <foo> f ()
!!!!! expected <foo> but got print_usage: Texinfo formatting filter exited
abnormally


Also, the `make check' output looks really weird with stderr breaking up the
nice list of tests passed:


  src/DLD-FUNCTIONS/chol.cc ..............................sh: makeinfo: not
found
 PASS   29/29
  src/DLD-FUNCTIONS/convhulln.cc ......................... PASS    3/3
  src/DLD-FUNCTIONS/dmperm.cc ............................sh: makeinfo: not
found
 PASS    5/5
  src/DLD-FUNCTIONS/eigs.cc .............................. PASS  149/149
  src/DLD-FUNCTIONS/qr.cc ................................sh: makeinfo: not
found
sh: makeinfo: not found
sh: makeinfo: not found
sh: makeinfo: not found
 PASS   48/48
  src/DLD-FUNCTIONS/tsearch.cc ...........................sh: makeinfo: not
found
 PASS    6/6
  src/corefcn/__contourc__.cc ............................ PASS    1/1
  src/corefcn/__dispatch__.cc ............................ PASS    1/1
  src/corefcn/__lin_interpn__.cc ......................... PASS    1/1
  src/corefcn/__pchip_deriv__.cc ......................... PASS    1/1



Rik <rik5>
Group administrator
Sat 28 Jul 2012 06:59:41 PM UTC, comment #5: 

Not sure what happened to the last comment...

*scripts/help/get_first_help_sentence.m


  ***** assert (get_first_help_sentence ('get_first_help_sentence'), "Return the first sentence of a function's help text.")
!!!!! test failed
assert (get_first_help_sentence ('get_first_help_sentence'),"Return the first sentence of a function's help text.") expected
Return the first sentence of a function's help text.
but got


*scripts/help/help.m


  ***** assert (! isempty (strfind (help ("ls"), "List directory contents")))
!!!!! test failed
assert (!isempty (strfind (help ("ls"), "List directory contents"))) failed


*scripts/help/unimplemented.m


  ***** test
 str = unimplemented ("no_name_function");
 assert (isempty (str));
 str = unimplemented ("quad2d");
 assert (str(1:51), "quad2d is not implemented.  Consider using dblquad.");
 str = unimplemented ("MException");
 assert (str(1:58), "the `MException' function is not yet implemented in Octave");
!!!!! test failed
A(I): index out of bounds; value 51 out of bound 0


  • test_error



  ***** warning <foo> f ()
!!!!! expected <foo> but got print_usage: Texinfo formatting filter exited abnormally


Plus, it also breaks the nice formatting of the tests:

  src/DLD-FUNCTIONS/__magick_read__.cc ................... PASS    4/4
  src/DLD-FUNCTIONS/__voronoi__.cc ....................... PASS    1/1
  src/DLD-FUNCTIONS/chol.cc ..............................sh: makeinfo: not found
 PASS   29/29
  src/DLD-FUNCTIONS/convhulln.cc ......................... PASS    3/3
  src/DLD-FUNCTIONS/dmperm.cc ............................sh: makeinfo: not found
 PASS    5/5
  src/DLD-FUNCTIONS/eigs.cc .............................. PASS  149/149
  src/DLD-FUNCTIONS/qr.cc ................................sh: makeinfo: not found
sh: makeinfo: not found
sh: makeinfo: not found
sh: makeinfo: not found
 PASS   48/48
  src/DLD-FUNCTIONS/tsearch.cc ...........................sh: makeinfo: not found
 PASS    6/6
  src/corefcn/__contourc__.cc ............................ PASS    1/1


Carnë Draug <carandraug>
Group Member
Sat 28 Jul 2012 06:53:43 PM UTC, comment #4: 

No, there's more fuctions failing:

  • scripts/help/get_first_help_sentence.m


  ***** assert (get_first_help_sentence ('get_first_help_sentence'), "Return the first sentence of a function's help text.")
!!!!! test failed
assert (get_first_help_sentence ('get_first_help_sentence'),"Return the first sentence of a function's help text.") expected
Return the first sentence of a function's help text.
but got

-verbatim

* scripts/help/help.m
+verbatim+
  ***** assert (! isempty (strfind (help ("ls"), "List directory contents")))
!!!!! test failed
assert (!isempty (strfind (help ("ls"), "List directory contents"))) failed
-verbatim

* scripts/help/unimplemented.m
+verbatim+
  ***** test
 str = unimplemented ("no_name_function");
 assert (isempty (str));
 str = unimplemented ("quad2d");
 assert (str(1:51), "quad2d is not implemented.  Consider using dblquad.");
 str = unimplemented ("MException");
 assert (str(1:58), "the `MException' function is not yet implemented in Octave");
!!!!! test failed
A(I): index out of bounds; value 51 out of bound 0
-verbatim

* test_error
+verbatim+
  ***** warning <foo> f ()
!!!!! expected <foo> but got print_usage: Texinfo formatting filter exited abnormally

-verbatim

Also, the `make check' output looks really weird with stderr breaking up the nice list of tests passed:

+verbatim+
  src/DLD-FUNCTIONS/chol.cc ..............................sh: makeinfo: not found
 PASS   29/29
  src/DLD-FUNCTIONS/convhulln.cc ......................... PASS    3/3
  src/DLD-FUNCTIONS/dmperm.cc ............................sh: makeinfo: not found
 PASS    5/5
  src/DLD-FUNCTIONS/eigs.cc .............................. PASS  149/149
  src/DLD-FUNCTIONS/qr.cc ................................sh: makeinfo: not found
sh: makeinfo: not found
sh: makeinfo: not found
sh: makeinfo: not found
 PASS   48/48
  src/DLD-FUNCTIONS/tsearch.cc ...........................sh: makeinfo: not found
 PASS    6/6
  src/corefcn/__contourc__.cc ............................ PASS    1/1
  src/corefcn/__dispatch__.cc ............................ PASS    1/1
  src/corefcn/__lin_interpn__.cc ......................... PASS    1/1
  src/corefcn/__pchip_deriv__.cc ......................... PASS    1/1


Carnë Draug <carandraug>
Group Member
Mon 23 Jul 2012 03:44:55 PM UTC, comment #3: 

Are there multiple tests or just one?  I get the following error for doc.m:


>>>>> processing /home/rik/wip/Projects_Mine/octave-dbg/scripts/help/doc.m
  ***** test
 ifile = info_file ();
 if (exist (ifile) != 2 && exist (sprintf ("%s.gz", ifile)) != 2)
   error ("Info file %s or %s.gz does not exist!", ifile, ifile);
 endif
!!!!! test failed
Info file /home/rik/wip/Projects_Mine/octave-dbg/doc/interpreter/octave.info or /home/rik/wip/Projects_Mine/octave-dbg/doc/interpreter/octave.info.gz does not exist!


If it is only this one test which is failing we could probably just eliminate it.

Rik <rik5>
Group administrator
Fri 20 Jul 2012 06:24:53 PM UTC, comment #2: 

This was done with the --disable-docs flag. But then, some tests from help related functions fail. Shouls those functions check for it before running the test? Should they be disabled?

Carnë Draug <carandraug>
Group Member
Fri 20 Jul 2012 05:02:38 PM UTC, comment #1: 

Simplest would be to disable the doc part of the build.
There was talk about doing this sometime ago...

Michael Godfrey <godfrey>
Group Member
Fri 20 Jul 2012 01:42:29 PM UTC, original submission:  

Hi

not sure if this is being too pedantic but if texinfo is not installed on the system, "make check" will fail tests. Does this mean that texinfo is a build dependency or an external package? Should configure do something about this? Fail or disable something?

Carnë

Carnë Draug <carandraug>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by eothred (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by godfrey (Posted a comment)
  • -email is unavailable- added by carandraug (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-08-08 rik5 StatusNeed Info Fixed
        Open/ClosedOpen Closed
    2012-07-29 rik5 Summaryconfigure misses texinfo configure misses makeinfo as a dependency
    2012-07-23 rik5 StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code