[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error installing parallel package in Octave
From: |
Kai Torben Ohlhus |
Subject: |
Re: Error installing parallel package in Octave |
Date: |
Wed, 22 Jan 2020 16:22:48 +0900 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 |
On 1/22/20 1:36 PM, Juliano Mota wrote:
> I'm getting the following error when I try to install the parallel
> package in Octave 5.1, Ubuntu 18.04.3, after I ran
>
> /"pkg install -forge parallel"/:
>
> /"pkg: error running `make' for the parallel package.
> error: called from
> configure_make at line 99 column 9
> install at line 184 column 7
> pkg at line 441 column 9"/
>
> Also, the followig is displayed on the screen:
>
> /"In file included from parallel-gnutls.h:135,
> from pserver.cc:49:
> pserver.cc: In function ‘void reval_loop(octave_parallel_stream&)’:
> pserver.cc:142:55: warning: ‘octave_value_list octave::eval_string(const
> string&, bool, int&, int)’ is deprecated: [5]: use
> 'octave::interpreter::eval_string' instead [-Wdeprecated-declarations]
> 142 | SET_ERR (OCTAVE__EVAL_STRING (s, false, p_err, 0), err);
> | ^
> error-helpers.h:116:9: note: in definition of macro ‘SET_ERR’
> 116 | code ; \
> | ^~~~
> In file included from oct-alt-includes.h:33,
> from config.h:258,
> from pserver.cc:26:
> /app/include/octave-5.1.0/octave/../octave/parse.h:589:3: note: declared
> here
> 589 | eval_string (const std::string&, bool silent, int&
> parse_status, int nargout);
> | ^~~~~~~~~~~
> In file included from parallel-gnutls.h:135,
> from pserver.cc:49:
> pserver.cc:142:55: warning: ‘octave_value_list octave::eval_string(const
> string&, bool, int&, int)’ is deprecated: [5]: use
> 'octave::interpreter::eval_string' instead [-Wdeprecated-declarations]
> 142 | SET_ERR (OCTAVE__EVAL_STRING (s, false, p_err, 0), err);
> | ^
> error-helpers.h:116:9: note: in definition of macro ‘SET_ERR’
> 116 | code ; \
> | ^~~~
> In file included from oct-alt-includes.h:33,
> from config.h:258,
> from pserver.cc:26:
> /app/include/octave-5.1.0/octave/../octave/parse.h:589:3: note: declared
> here
> 589 | eval_string (const std::string&, bool silent, int&
> parse_status, int nargout);
> | ^~~~~~~~~~~
> pserver.cc:172:13: error: ‘command_editor’ has not been declared
> 172 | command_editor::increment_current_command_number ();
> | ^~~~~~~~~~~~~~
> pconnect.cc: In function ‘octave_value_list Fpconnect(const
> octave_value_list&, int)’:
> pconnect.cc:536:35: error: ‘octave_env’ has not been declared
> 536 | std::string directory =
> octave_env::get_current_directory ();
> | ^~~~~~~~~~
> pserver.cc: In function ‘octave_value_list Fpserver(const
> octave_value_list&, int)’:
> pserver.cc:1119:23: error: ‘octave_env’ has not been declared
> 1119 | int cd_ok = octave_env::chdir (directory.c_str ());
> | ^~~~~~~~~~
> pserver.cc:1122:13: error: ‘octave_env’ has not been declared
> 1122 | octave_env::chdir ("/tmp");
> | ^~~~~~~~~~
> make: *** [Makefile:150: pserver.o] Error 1
> make: ** Esperando que outros processos terminem.
> make: *** [Makefile:150: pconnect.o] Error 1
> make: Entering directory '/tmp/oct-ODLKgZ/parallel-3.1.3/src'
> CXX="g++" CXXFLAGS="-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector-strong -grecord-gcc-switches -I/usr/include/p11-kit-1
> -Wno-int-to-pointer-cast " /app/bin/mkoctfile-5.1.0 -c pconnect.cc
> CXX="g++" CXXFLAGS="-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector-strong -grecord-gcc-switches -I/usr/include/p11-kit-1
> -Wno-int-to-pointer-cast " /app/bin/mkoctfile-5.1.0 -c pserver.cc
> CXX="g++" CXXFLAGS="-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector-strong -grecord-gcc-switches -I/usr/include/p11-kit-1
> -Wno-int-to-pointer-cast " /app/bin/mkoctfile-5.1.0 -c sclose.cc
> CXX="g++" CXXFLAGS="-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector-strong -grecord-gcc-switches -I/usr/include/p11-kit-1
> -Wno-int-to-pointer-cast " /app/bin/mkoctfile-5.1.0 -c reval.cc
> make: Leaving directory '/tmp/oct-ODLKgZ/parallel-3.1.3/src' "/
>
> Summarizing, the package can not be installed. I have satisfied the
> dependencies required in
> <https://octave.sourceforge.io/parallel/index.html>.
>
> (I have downloaded and tried to install offline too, same result)
>
> Any thoughts? I have no ideia where I'm doing wrong.
>
> Thank you in advance.
>
> --
> ----------------------------------------------------------------
> Juliano Fabiano da Mota
> ----------------------------------------------------------------
>
The package author/maintainer Olaf Till recently claimed, that there are
some problems with the parallel package 3.1.3 (2018-08-03) [1].
What helped on my openSUSE 15.1 was cloning the repository [2] and to
build the release tarball myself:
hg clone http://hg.code.sf.net/p/octave/parallel octave-parallel
cd octave-parallel
make dist
cd target
Start Octave
pkg install parallel-3.1.3.tar.gz ## NO "-forge" !!!
HTH,
Kai
[1] https://lists.gnu.org/archive/html/help-octave/2019-09/msg00083.html
[2] https://sourceforge.net/p/octave/parallel/ci/default/tree/