octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #50001] OF-tisean error: call of overloaded 'i


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #50001] OF-tisean error: call of overloaded 'idx_vector(F77_INT)' is ambiguous
Date: Sat, 7 Jan 2017 13:53:14 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40

URL:
  <http://savannah.gnu.org/bugs/?50001>

                 Summary: OF-tisean error: call of overloaded
'idx_vector(F77_INT)' is ambiguous
                 Project: GNU Octave
            Submitted by: philipnienhuis
            Submitted on: Sat 07 Jan 2017 02:53:13 PM CET
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Build Failure
                  Status: None
             Assigned to: None
         Originator Name: Philip Nienhuis
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: other
        Operating System: Any

    _______________________________________________________

Details:

After the fixes from:
http://octave.1599824.n4.nabble.com/Implications-of-indexing-changes-for-code-that-calls-Fortran-tt4681221.html
(applied to the repo by Olaf)
building the tisean package breaks:

0+.exe --verbose -g -O2 -std=gnu++11 __c1__.cc source_f/d1.o source_f/istdio.o
source_f/neigh.o source_f/normal.o source_f/rank.o source_f/store_spec.o
source_f/ts_lazy.o source_f/ts_surrogates.o source_f/ts_upo.o
source_f/libsla.a -o __c1__.oct
g++ -std=gnu++11 -c
-I/home/philip/devel/octdev/mxe/mxe_w64_qt4_20170106/usr/x86_64-w64-mingw32/include
 -IC:\Programs\Octave\OCTAVE~1.0_V\include\octave-4.3.0+\octave\..
-IC:\Programs\Octave\OCTAVE~1.0_V\include\octave-4.3.0+\octave
-IC:\Programs\Octave\OCTAVE~1.0_V\include  -pthread -fopenmp -g -O2 -g  -O2
-std=gnu++11   __c1__.cc -o __c1__.o
__c1__.cc: In function 'octave_value_list F__c1__(const octave_value_list&,
int)': __c1__.cc:142:49: error: call of overloaded 'idx_vector(F77_INT)' is
ambiguous
               output.assign (idx_vector(m-mindim), tmp);
                                                 ^
__c1__.cc:142:49: note: candidates are:
In file included from
C:\Programs\Octave\OCTAVE~1.0_V\include\octave-4.3.0+\octave\../octave/Array.h:38:0,
                 from
C:\Programs\Octave\OCTAVE~1.0_V\include\octave-4.3.0+\octave\../octave/Sparse.h:37,
                 from
C:\Programs\Octave\OCTAVE~1.0_V\include\octave-4.3.0+\octave\../octave/MSparse.h:31,
                 from
C:\Programs\Octave\OCTAVE~1.0_V\include\octave-4.3.0+\octave\../octave/MatrixType.h:29,
                 from
C:\Programs\Octave\OCTAVE~1.0_V\include\octave-4.3.0+\octave\../octave/mx-base.h:30,
                 from
C:\Programs\Octave\OCTAVE~1.0_V\include\octave-4.3.0+\octave\../octave/Matrix.h:32,
                 from
C:\Programs\Octave\OCTAVE~1.0_V\include\octave-4.3.0+\octave\../octave/oct.h:30,
                 from __c1__.cc:33:
C:\Programs\Octave\OCTAVE~1.0_V\include\octave-4.3.0+\octave\../octave/idx-vector.h:524:3:
note: idx_vector::idx_vector(const idx_vector&)
   idx_vector (const idx_vector& a) : rep (a.rep) { rep->count++; }
   ^
C:\Programs\Octave\OCTAVE~1.0_V\include\octave-4.3.0+\octave\../octave/idx-vector.h:503:3:
note: idx_vector::idx_vector(bool)
   idx_vector (bool x) : rep (new idx_mask_rep (x)) { chkerr (); }
   ^
C:\Programs\Octave\OCTAVE~1.0_V\include\octave-4.3.0+\octave\../octave/idx-vector.h:500:3:
note: idx_vector::idx_vector(float)
   idx_vector (float x) : rep (new idx_scalar_rep (x)) { chkerr (); }
   ^
C:\Programs\Octave\OCTAVE~1.0_V\include\octave-4.3.0+\octave\../octave/idx-vector.h:498:3:
note: idx_vector::idx_vector(double)
   idx_vector (double x) : rep (new idx_scalar_rep (x)) { chkerr (); }
   ^
C:\Programs\Octave\OCTAVE~1.0_V\include\octave-4.3.0+\octave\../octave/idx-vector.h:491:3:
note: idx_vector::idx_vector(char)
   idx_vector (char c) : rep (new idx_colon_rep (c)) { chkerr (); }
   ^
C:\Programs\Octave\OCTAVE~1.0_V\include\octave-4.3.0+\octave\../octave/idx-vector.h:463:3:
note: idx_vector::idx_vector(octave_idx_type)
   idx_vector (octave_idx_type i) : rep (new idx_scalar_rep (i))
   ^
C:\Programs\Octave\OCTAVE~1.0_V\include\octave-4.3.0+\octave\../octave/idx-vector.h:435:3:
note: idx_vector::idx_vector(idx_vector::idx_base_rep*) <near match>
   idx_vector (idx_base_rep *r) : rep (r) { }
   ^
C:\Programs\Octave\OCTAVE~1.0_V\include\octave-4.3.0+\octave\../octave/idx-vector.h:435:3:
note:   no known conversion for argument 1 from 'F77_INT {aka int}' to
'idx_vector::idx_base_rep*'
make: *** [__c1__.oct] Error 1
make: Leaving directory `/tmp/oct-AProgQ/tisean-0.2.3/src'

pkg: error running `make' for the tisean package.
error: called from
    configure_make at line 95 column 9
    install at line 192 column 7
    pkg at line 394 column 9
>>


Would there be some #ifdefs needed around the F77_INT fixes to keep the tisean
package compatible with Octave-4.2.x and below? 




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?50001>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]