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

 
 

bug #51197: [octave forge] (parallel) compile fails with octave-dev

Submitted by:  Muhali <muhali>
Submitted on:  Wed 07 Jun 2017 11:16:18 AM UTC  
 
Category:  Octave Forge Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  dev Operating System:  GNU/Linux

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

( Jump to the original submission)

Tue 06 Mar 2018 07:08:51 PM UTC, comment #7: 
Mike Miller <mtmiller>
Project Administrator
Fri 26 Jan 2018 11:23:35 AM UTC, comment #6: 

sorry, my fault. Probably some old library lying around. Now it works after a complete re-built of octave-dev.

Thanks!

Muhali <muhali>
Fri 26 Jan 2018 10:06:07 AM UTC, comment #5: 

Octave changeset c241918d4c92, Fri Jan 19 08:09:21 2018 -0800:

libinterp/corefcn/error.h:

OCTAVE_NORETURN OCTINTERP_API extern
void verror (octave::execution_exception&, const char *fmt, va_list args);

and there where no changes to this file since then.

So I currently can't see how this failure, which I can't reproduce, comes about.

Which is your Octave revision (changeset)?

Olaf Till <i7tiol>
Project Member
Thu 25 Jan 2018 03:54:12 PM UTC, comment #4: 

Thanks for this update. However, I still cannot build the package with the current dev, getting

CXX="g++" CXXFLAGS="-g -O2 -I/usr/include/p11-kit-1 -Wno-int-to-pointer-cast -Wno-deprecated-declarations" mkoctfile -c pconnect.cc
In file included from parallel-gnutls.h:135:0,
                 from pconnect.cc:39:
pconnect.cc: In function ‘octave_value_list Fpconnect(const octave_value_list&, int)’:
error-helpers.h:65:31: error: no matching function for call to ‘verror(octave::execution_exception&, const char [73], const char*)’
         verror (e, _VA_ARGS_); \

This is perhaps unrelated to the current bug, but it does fit to the bug's description.

Muhali <muhali>
Thu 25 Jan 2018 02:57:17 PM UTC, comment #3: 

Building with current dev should now be fixed.

(There is still something to do for complete working with dev, but this is outside this bug.)

Olaf Till <i7tiol>
Project Member
Sun 21 Jan 2018 06:13:18 PM UTC, comment #2: 

I posted this patch originally under http://savannah.gnu.org/bugs/?52877. This error is not specific to OSX, same under GNU/linux.

+++ b/src/pserver.cc    Sat Jan 13 12:53:02 2018 +0100
@@ -1109,13 +1109,15 @@
           __pwg.__free ();

#ifdef HAVE_OCTAVE_INTERPRETER_H
-          octave::application::the_interpreter () -> interactive (false);
+          // octave::application::the_interpreter () -> interactive (false);
+          octave::interpreter::the_interpreter () -> interactive (false);
#else
           interactive = false;
#endif

           // install 'sockets' as Octave variable
-          symbol_table::assign ("sockets", sockets);
+          // symbol_table::assign ("sockets", sockets);
+          octave::interpreter::the_interpreter () -> get_symbol_table ().assign ("sockets", sockets);
           dsprintf ("'sockets' installed\n");

           int cd_ok = octave_env::chdir (directory.c_str ());

after this patch errors remain about inability to cast octave_value_list to octave_value

CXX="g++ -std=gnu++11" CXXFLAGS="-O2  -Wno-deprecated-declarations" mkoctfile -c p-connection.cc
p-connection.cc: In member function 'virtual octave_value octave_parallel_connections::do_index_op(const octave_value_list&, bool)':
p-connection.cc:128:20: error: could not convert 'err_retval' from 'octave_value_list' to 'octave_value'
             return err_retval;

A.R. Burgers <arb>
Tue 29 Aug 2017 01:50:55 PM UTC, comment #1: 

I can confirm this failure trying to install on OSX with clang.

pserver.cc:1112:32: error: no member named 'the_interpreter' in 'octave::application'
          octave::application::the_interpreter () -> interactive (false);
          ~~~~~~~~~~~~~~~~~~~~~^
pserver.cc:1118:11: error: use of undeclared identifier 'symbol_table'; did you mean 'octave::symbol_table'?
          symbol_table::assign ("sockets", sockets);
          ^~~~~~~~~~~~
          octave::symbol_table
/opt/octave/4.3.0+/include/octave-4.3.0+/octave/lex.h:41:9: note: 'octave::symbol_table' declared here
  class symbol_table;
        ^
pserver.cc:1118:25: error: call to non-static member function without an object argument
          symbol_table::assign ("sockets", sockets);
          ~~~~~~~~~~~~~~^~~~~~

cc-ing the package maintainer.
c.

Carlo de Falco <cdf>
Project Member
Wed 07 Jun 2017 11:16:18 AM UTC, original submission:  

I get the following error when building the parallel package (3.1.1) using octave-dev:

pserver.cc: In function ‘octave_value_list Fpserver(const octave_value_list&, int)’:
pserver.cc:1112:32: error: ‘the_interpreter’ is not a member of ‘octave::application’
           octave::application::the_interpreter () -> interactive (false);

It does build using octave-stable.

Muhali <muhali>

 

(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

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by i7tiol (Posted a comment)
  • -email is unavailable- added by arb (Posted a comment)
  • -email is unavailable- added by cdf (Posted a comment)
  • -email is unavailable- added by cdf
  • -email is unavailable- added by jwe (Updated the item)
  • -email is unavailable- added by muhali (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-03-06 mtmiller StatusReady For Test => Fixed
        Open/ClosedOpen => Closed
    2018-01-25 i7tiol StatusConfirmed => Ready For Test
    2018-01-21 mmuetzel Dependencies- => bugs #52877 is dependent
    2017-08-29 cdf Item GroupNone => Build Failure
        StatusNone => Confirmed
        Carbon-Copy- => Added i7tiol@t-online.de
    2017-08-12 jwe Summaryparallel package does not compile with octave-dev => [octave forge] (parallel) compile fails with octave-dev

    Back to the top


    Powered by Savane 3.5