bugGNU Octave - Bugs: bug #46230, Interval error: 'mpfr_function_d'...

 
 

bug #46230: Interval error: 'mpfr_function_d' undefined

Submitter:  Doug Stewart <dastew>
Submitted:  Fri 16 Oct 2015 09:47:18 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Duplicate Assigned to:  None
Originator Name:  Doug Stewart Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Wed 25 Nov 2015 04:54:26 PM UTC, comment #13: 

Bug #46216 is now fixed, closing.

Mike Miller <mtmiller>
Group Member
Sun 25 Oct 2015 08:02:10 PM UTC, comment #12: 

This is probably a duplicate of #46216.

Oliver Heimlich <oheim>
Sun 25 Oct 2015 05:28:22 PM UTC, comment #11: 

see bug 46293

Doug Stewart <dastew>
Sun 25 Oct 2015 03:45:04 PM UTC, comment #10: 

All that I can see that seems relevant is that the 3 file names that are used are the longest file names all the missing file names are shorter.

I don't know if this is important or not but that is the only thing that I can see that is different.

Doug Stewart <dastew>
Sun 25 Oct 2015 02:02:52 PM UTC, comment #9: 

I have confirmed your results  -- glob seems to be the problem.
I paused the copyfile.m at the glob command and copied the files
manually from the temp folder. Now interval works.

So glob needs fixed

Doug Stewart <dastew>
Sun 25 Oct 2015 12:25:26 PM UTC, comment #8: 

I have tracked it down to a wrong return value from the glob function during installation. Please, could a core developer figure out why this happens?


octave:4> pkg install -forge interval
stopped in /home/oliver/octave/.install-dev/share/octave/4.1.0+/m/miscellaneous/copyfile.m at line 40
40:   if (nargin < 2 || nargin > 3)
debug> f1
f1 =
{
  [1,1] = /tmp/oct-SykZbf/interval-1.2.0/src/__setround__.oct
  [1,2] = /tmp/oct-SykZbf/interval-1.2.0/src/mpfr_function_d.oct
  [1,3] = /tmp/oct-SykZbf/interval-1.2.0/src/mpfr_linspace_d.oct
  [1,4] = /tmp/oct-SykZbf/interval-1.2.0/src/mpfr_matrix_mul_d.oct
  [1,5] = /tmp/oct-SykZbf/interval-1.2.0/src/mpfr_to_string_d.oct
  [1,6] = /tmp/oct-SykZbf/interval-1.2.0/src/mpfr_vector_dot_d.oct
  [1,7] = /tmp/oct-SykZbf/interval-1.2.0/src/mpfr_vector_sum_d.oct
}
debug> glob (f1)
ans =
{
  [1,1] = /tmp/oct-SykZbf/interval-1.2.0/src/mpfr_matrix_mul_d.oct
  [2,1] = /tmp/oct-SykZbf/interval-1.2.0/src/mpfr_vector_dot_d.oct
  [3,1] = /tmp/oct-SykZbf/interval-1.2.0/src/mpfr_vector_sum_d.oct
}


Oliver Heimlich <oheim>
Sun 25 Oct 2015 12:06:14 PM UTC, comment #7: 

It seems the “pkg install” is broken on the dev branch. The oct-files of the package are all compiled in the src dir, but only three of them are copied over to the inst dir and are then missing in the installed package directory.

According to pkg install -verbose everything should have worked, but it did not. I still have to figure out why.

make: Leaving directory '/tmp/oct-oHwHxh/interval-1.2.0/src'
copyfile /tmp/oct-oHwHxh/interval-1.2.0/src/__setround__.oct /tmp/oct-oHwHxh/interval-1.2.0/src/mpfr_function_d.oct /tmp/oct-oHwHxh/interval-1.2.0/src/mpfr_linspace_d.oct /tmp/oct-oHwHxh/interval-1.2.0/src/mpfr_matrix_mul_d.oct /tmp/oct-oHwHxh/interval-1.2.0/src/mpfr_to_string_d.oct /tmp/oct-oHwHxh/interval-1.2.0/src/mpfr_vector_dot_d.oct /tmp/oct-oHwHxh/interval-1.2.0/src/mpfr_vector_sum_d.oct /tmp/oct-oHwHxh/interval-1.2.0/inst/x86_64-unknown-linux-gnu-api-v50+


Oliver Heimlich <oheim>
Sun 25 Oct 2015 11:11:14 AM UTC, comment #6: 

This should not have happened. I am going to reproduce and debug.

Oliver Heimlich <oheim>
Sun 25 Oct 2015 11:04:46 AM UTC, comment #5: 

oops
no it did not help.
I uninstalled interval, then exited octave, to be sure that
all traces of interval were gone.
below is the fresh try.




Read http://www.octave.org/bugs.html to learn how to submit bug reports.
For information about changes from previous versions, type 'news'.

Package Name  | Version | Installation directory
--------------+---------+-----------------------
     control *|   2.8.5 | /home/doug/octave/control-2.8.5
       image *|   2.4.1 | /home/doug/octave/image-2.4.1
          io *|  2.2.10 | /home/doug/octave/io-2.2.10
    parallel *|   3.0.2 | /home/doug/octave/parallel-3.0.2
      signal *|   1.3.2 | /home/doug/octave/signal-1.3.2
    symbolic *|   2.2.2 | /home/doug/octave/symbolic-2.2.2
>> pkg install -forge interval
For information about changes from previous versions of the interval package, run 'news interval'.
>> pkg load interval
>> testfmp

OctSymPy v2.2.2: this is free software without warranty, see source.
Initializing communication with SymPy using a popen2() pipe.
Some output from the Python subprocess (pid 11913) might appear next.
Python 2.7.9 (default, Apr  2 2015, 15:33:21)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> >>>
OctSymPy: Communication established.  SymPy v0.7.6.1.
df =

@(x) 5 .* x .* cos (x) + 2 .* x + 5 .* sin (x) + 3

error: 'mpfr_function_d' undefined near line 56 column 5
error: called from
    mid at line 56 column 3
    fzero>findroots at line 139 column 7
    fzero at line 126 column 6
    testfmp at line 14 column 1
>>
>> pkg list
Package Name  | Version | Installation directory
--------------+---------+-----------------------
     control *|   2.8.5 | /home/doug/octave/control-2.8.5
       image *|   2.4.1 | /home/doug/octave/image-2.4.1
    interval *|   1.2.0 | /home/doug/octave/interval-1.2.0
          io *|  2.2.10 | /home/doug/octave/io-2.2.10
    parallel *|   3.0.2 | /home/doug/octave/parallel-3.0.2
      signal *|   1.3.2 | /home/doug/octave/signal-1.3.2
    symbolic *|   2.2.2 | /home/doug/octave/symbolic-2.2.2
>>



Doug Stewart <dastew>
Sun 25 Oct 2015 10:48:12 AM UTC, comment #4: 

Doug, you should reinstall the interval package, not the symbolic package.

Oliver Heimlich <oheim>
Sun 25 Oct 2015 10:46:25 AM UTC, comment #3: 

no it did not help.
I uninstalled symbolic, then exited octave, to be sure that
all traces of symbolic were gone.

below is the fresh try.


+vebatim+
GNU Octave, version 4.1.0+
Copyright (C) 2015 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type 'warranty'.

Octave was configured for "x86_64-unknown-linux-gnu".

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/get-involved.html

Read http://www.octave.org/bugs.html to learn how to submit bug reports.
For information about changes from previous versions, type 'news'.

Package Name  | Version | Installation directory
--------------+---------+-----------------------
     control *|   2.8.5 | /home/doug/octave/control-2.8.5
       image *|   2.4.1 | /home/doug/octave/image-2.4.1
    interval *|   1.2.0 | /home/doug/octave/interval-1.2.0
          io *|  2.2.10 | /home/doug/octave/io-2.2.10
    parallel *|   3.0.2 | /home/doug/octave/parallel-3.0.2
      signal *|   1.3.2 | /home/doug/octave/signal-1.3.2

>> pkg install -forge symbolic

For information about changes from previous versions of the symbolic package, run 'news symbolic'.

>> pkg load symbolic
>> testfmp


OctSymPy v2.2.2: this is free software without warranty, see source.
Initializing communication with SymPy using a popen2() pipe.
Some output from the Python subprocess (pid 11465) might appear next.
Python 2.7.9 (default, Apr  2 2015, 15:33:21)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.

>>> >>>

OctSymPy: Communication established.  SymPy v0.7.6.1.
df =

@(x) 5 .* x .* cos (x) + 2 .* x + 5 .* sin (x) + 3

error: 'mpfr_function_d' undefined near line 56 column 5
error: called from
    mid at line 56 column 3
    fzero>findroots at line 139 column 7
    fzero at line 126 column 6
    testfmp at line 14 column 1

>>

-verbatim-

Doug Stewart <dastew>
Sun 25 Oct 2015 10:08:35 AM UTC, comment #2: 

Doug, did it help to reinstall the package? I believe that the bug can be closed.

Oliver Heimlich <oheim>
Sat 17 Oct 2015 07:16:26 AM UTC, comment #1: 

When you use a different version of Octave, you have to reinstall the package, because the oct-files are compiled for your particular Octave version during “pkg install”.

Please reinstall the package and the error should go away.

Oliver Heimlich <oheim>
Fri 16 Oct 2015 09:47:18 PM UTC, original submission:  

This code was working and now gives an error.



% this is just a formula to start with
% have fun and change it if you want to.
f=@(x) x.^2 +3*x-1 + 5*x.*sin(x);

% the next 2 line take the Anonymous function into a symbolic formula
syms x;
ff=formula(f(x));
% now calculate the derivative of the function
ffd=diff(ff);
% and convert it back to an Anonymous function
df=function_handle(ffd)

fzero (f, infsup (-15, 10), df)


gives the following results


error: 'mpfr_function_d' undefined near line 56 column 5
error: called from
    mid at line 56 column 3
    fzero>findroots at line 139 column 7
    fzero at line 126 column 6
    ttt554 at line 14 column 1





Doug Stewart <dastew>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by oheim (Posted a comment)
  • -email is unavailable- added by dastew (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-11-25 mtmiller StatusNone Duplicate
        Open/ClosedOpen Closed
        Dependencies- Depends on bugs #46216

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code