bugGNU Octave - Bugs: bug #64077, [octave forge] (parallel) patched...

 
 

bug #64077: [octave forge] (parallel) patched installs but pkg test fails: octave-pserver command not found - macOS

Submitter:  Vincent <ksurf1>
Submitted:  Thu 20 Apr 2023 03:44:43 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * 8.2.0 Operating System:  * Mac OS
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 21 Apr 2023 04:09:41 PM UTC, comment #4: 

Sorry, the error was coming from this bug in the statistics pkg:
https://savannah.gnu.org/bugs/?func=detailitem&item_id=64011

Bottom line, the parallel-4.0.1 pkg builds and runs using the attached patched file providing you implement the edits from:
Markus Mützel ( https://savannah.gnu.org/users/mmuetzel)  for two files in the octave include directory https://hg.savannah.gnu.org/hgweb/octave/rev/bc681594872a

All those bugs are known and fix exist and are published.

Thank you all for your inputs.
My parallel pkg runs as expected on:
- macOS Ventura using octave-8.2.0
- macOS Monterey using octave-7.3.0

In both case, I used the same patched pkg file: https://savannah.gnu.org/bugs/download.php?file_id=54644

comment #2:

> Note that for my code, cellfun doesn't return errors but the same function with the same data using parcellfun does ...
>
> error: _parcellfun_get_next_result_: could not receive result
> error: called from
>     parcellfun at line 201 column 16
>
>
> How do you recommend I find out why ?
>
> Note: the same code with the same data used to work on 7.3.0 using the same pkg attached below.

Vincent <ksurf1>
Fri 21 Apr 2023 03:15:46 PM UTC, comment #3: 

installing the attached pathed file AFTER modifying Array.cc and Array-oct.cc builds ok with warnings. I am running 8.2.0 from macports on Ventura

Is anyone having issues running parcellfun ?

>> eval( "pkg install ~/Downloads/parallel-4.0.1patched.tar.gz" )

configure: WARNING: No working fork(), no uname(), or no error.h found. On such platforms, notably Windows and macOS, the remote Octave server will not be built. The functions for accessing a remote Octave server are not affected by this and may still be built, as well as the functions for local parallel execution.
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libgnu.a(fd-hook.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libgnu.a(sig-handler.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libgnu.a(stat-time.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libgnu.a(sys_socket.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libgnu.a(threadlib.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libgnu.a(unistd.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libgnu.a(xsize.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libgnu.a(fd-hook.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libgnu.a(sig-handler.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libgnu.a(stat-time.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libgnu.a(sys_socket.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libgnu.a(threadlib.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libgnu.a(unistd.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libgnu.a(xsize.o) has no symbols
gnulib-wrappers.c:431:1: warning: non-void function does not return a value [-Wreturn-type]
}
^
1 warning generated.
macros.texi:51: warning: redefining Texinfo language command: @seealso
For information about changes from previous versions of the parallel package, run 'news parallel'.

Vincent <ksurf1>
Thu 20 Apr 2023 09:53:06 PM UTC, comment #2: 

Note that for my code, cellfun doesn't return errors but the same function with the same data using parcellfun does ...

error: _parcellfun_get_next_result_: could not receive result
error: called from
    parcellfun at line 201 column 16


How do you recommend I find out why ?

Note: the same code with the same data used to work on 7.3.0 using the same pkg attached below.

Vincent <ksurf1>
Thu 20 Apr 2023 05:46:00 PM UTC, comment #1: 

pserver() fails on macOS:

>> pserver()

sh: octave-pserver: command not found
error: unable to find program 'octave-pserver'
error: called from
    pserver>call_system at line 204 column 5
    pserver at line 164 column 5



Vincent <ksurf1>
Thu 20 Apr 2023 03:44:43 PM UTC, original submission:  

Hi all,
first I want to tell that I LOVE octave. It is my goto language to solve mathematical problems. I use it a lot on large arrays and parallel processing is a must for me.

In 7.3.0 I had the num_processors error which was solved with a simple patch (https://savannah.gnu.org/bugs/?62349). See attached install file. The parallel tools worked fine on 7.3.0 on macOS.

Now that I update to 8.2.0, the build failed.   Markus Mützel ( https://savannah.gnu.org/users/mmuetzel) solved the problem by proposing editing two files in the octave include directory https://hg.savannah.gnu.org/hgweb/octave/rev/bc681594872a

With this fix, the pkg installs ( eval( "pkg install -verbose ~/Downloads/parallel-4.0.1patched.tar.gz" )) but then the pkg test fails (see below).
It seems that octave-pserver is called when it should not be present on macOS.
Also, should the pserver be called when running on a local machine and not a remote server ?

Thank you all for helping resolving this issue.



----------------------------------------------------------------------
GNU Octave Version: 8.2.0 (hg id: fdadf31961bb)
GNU Octave License: GNU General Public License
Operating System: Darwin 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar  6 21:00:17 PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 x86_64
----------------------------------------------------------------------
Package Name   | Version | Installation directory
---------------+---------+-----------------------
     parallel  |   4.0.1 | /Users/user/.local/share/octave/api-v58/packages/parallel-4.0.1
       struct *|  1.0.18 | /opt/local/share/octave/packages/struct-1.0.18

>> pkg test parallel

Testing functions in package 'parallel':

Integrated test scripts:

  ..al/share/octave/api-v58/packages/parallel-4.0.1/pararrayfun.m  pass    5/5
  ..cal/share/octave/api-v58/packages/parallel-4.0.1/parcellfun.m  pass    6/6
  ...local/share/octave/api-v58/packages/parallel-4.0.1/pserver.m sh: octave-pserver: command not found
 pass    0/1
                                                                   FAIL    1



Vincent <ksurf1>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #54644:  parallel-4.0.1patched.tar.gz added by ksurf1 (703KiB - application/x-gzip)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Updated the item)
  • -email is unavailable- added by ksurf1 (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-04-25 jwe Summaryparallel-4.0.1 patched installs but pkg test fails: octave-pserver command not found - macOS [octave forge] (parallel) patched installs but pkg test fails: octave-pserver command not found - macOS
    2023-04-20 ksurf1 Attached File- Added parallel-4.0.1patched.tar.gz, #54644

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code