parallel-4.0.0 on Octave 4.2.2

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

parallel-4.0.0 on Octave 4.2.2

vrozos
I am trying to install package in the following system

GNU Octave Version: 4.2.2
GNU Octave License: GNU General Public License
Operating System: Linux 4.15.0-101-generic #102-Ubuntu SMP Mon May 11
10:07:26 UTC 2020 x86_64

using pkg install -verbose -forge parallel.

The installation fails with

CXX="g++" CXXFLAGS="-g -O2
-fdebug-prefix-map=/build/octave-DtqyIg/octave-4.2.2=.
-fstack-protector-strong -Wformat -Werror=format-security
-Wno-deprecated" /usr/bin/mkoctfile --verbose -c p-control.cc
g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC
-I/usr/include/octave-4.2.2/octave/.. -I/usr/include/octave-4.2.2/octave
-I/usr/include/hdf5/serial -I/usr/include/mpi  -pthread -fopenmp -g -O2
-fdebug-prefix-map=/build/octave-DtqyIg/octave-4.2.2=.
-fstack-protector-strong -Wformat -Werror=format-security
-Wno-deprecated    p-control.cc -o p-control.o
p-control.cc: In member function ‘octave_value
octave_parallel::control::get_next_result(octave_value&)’:
p-control.cc:537:13: error: ‘class octave_value’ has no member named
‘isinteger’
      if (res.isinteger ()
              ^~~~~~~~~
Makefile:199: recipe for target 'p-control.o' failed
make: *** [p-control.o] Error 1
make: Leaving directory '/tmp/oct-fC0PHc/parallel-4.0.0/src'

What can be done

Thanks



Reply | Threaded
Open this post in threaded view
|

Re: parallel-4.0.0 on Octave 4.2.2

Olaf Till-2
On Mon, Jun 15, 2020 at 02:54:26PM +0300, Evangelos Rozos wrote:

> I am trying to install package in the following system
>
> GNU Octave Version: 4.2.2
> GNU Octave License: GNU General Public License
> Operating System: Linux 4.15.0-101-generic #102-Ubuntu SMP Mon May 11
> 10:07:26 UTC 2020 x86_64
>
> using pkg install -verbose -forge parallel.
>
> The installation fails with
>
> CXX="g++" CXXFLAGS="-g -O2
> -fdebug-prefix-map=/build/octave-DtqyIg/octave-4.2.2=.
> -fstack-protector-strong -Wformat -Werror=format-security -Wno-deprecated"
> /usr/bin/mkoctfile --verbose -c p-control.cc
> g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC
> -I/usr/include/octave-4.2.2/octave/.. -I/usr/include/octave-4.2.2/octave
> -I/usr/include/hdf5/serial -I/usr/include/mpi  -pthread -fopenmp -g -O2
> -fdebug-prefix-map=/build/octave-DtqyIg/octave-4.2.2=.
> -fstack-protector-strong -Wformat -Werror=format-security -Wno-deprecated   
> p-control.cc -o p-control.o
> p-control.cc: In member function ‘octave_value
> octave_parallel::control::get_next_result(octave_value&)’:
> p-control.cc:537:13: error: ‘class octave_value’ has no member named
> ‘isinteger’
>      if (res.isinteger ()
>              ^~~~~~~~~
> Makefile:199: recipe for target 'p-control.o' failed
> make: *** [p-control.o] Error 1
> make: Leaving directory '/tmp/oct-fC0PHc/parallel-4.0.0/src'
Sorry for the long delay... The above is a bug due to an oversight,
normally isinteger() should be replaced by a macro which is configured
according to what is suitable for the present octave version.

I had no running Octave-4.2 for testing when I released the package,
only later versions...

A fix is pushed, but there is no new release yet. What you could do is
to download the package code (mercurial has to be installed):

hg clone http://hg.code.sf.net/p/octave/parallel parallel

, cd into directory 'parallel' and give the shell command 'make dist'
there. Than cd into directory target, where you should find the
tarball 'parallel-4.0.0.tar.gz', which you can install from within
Octave with 'pkg install parallel-4.0.0.tar.gz'.

Olaf

--
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net



signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: parallel-4.0.0 on Octave 4.2.2

vrozos
Thanks for the reply. It installs now (I have not check if it runs). I only
got some warnings.

octave:4> pkg install parallel-4.0.0.tar.gz                                    
configure: WARNING: TLS disabled since gnutls/gnutls.h not found or not
compilable
warning: doc_cache_create: unusable help text found in file
'parallel_interface'
For information about changes from previous versions of the parallel
package, run 'news parallel'.

octave:6> pkg load parallel
octave:7>




--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


Reply | Threaded
Open this post in threaded view
|

Re: parallel-4.0.0 on Octave 4.2.2

Olaf Till-2
On Mon, Jul 06, 2020 at 01:44:55PM -0500, vrozos wrote:
> Thanks for the reply. It installs now (I have not check if it runs). I only
> got some warnings.
>
> octave:4> pkg install parallel-4.0.0.tar.gz                                    
> configure: WARNING: TLS disabled since gnutls/gnutls.h not found or not
> compilable

This has no effect on parcellfun/pararrayfun.

If you should use the functions for cluster computation, you should
install the gnutls development package (on my Debian it is named
'libgnutls28-dev') and then uninstall and re-install
'parallel'. Otherwise you can do cluster computation only without
authentication and encryption, which might be dangerous -- if you want
to do it, read the docs first ('parallel_doc' from Octave
commandline).

> warning: doc_cache_create: unusable help text found in file
> 'parallel_interface'

This is a known issue not specific to 'parallel' and harmless.

Olaf

> For information about changes from previous versions of the parallel
> package, run 'news parallel'.
>
> octave:6> pkg load parallel
> octave:7>
>
>
>
>
> --
> Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
>
>
--
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net



signature.asc (849 bytes) Download Attachment