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

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

[Octave-patch-tracker] [patch #8395] Work-in-progress port of Octave JIT


From: David Malcolm
Subject: [Octave-patch-tracker] [patch #8395] Work-in-progress port of Octave JIT to libgccjit
Date: Thu, 11 Dec 2014 15:26:35 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22

Follow-up Comment #9, patch #8395 (project octave):

Thanks Stefan.

I'm attempting to build from your bookmark with the latest gcc jit from svn,
but running into a build failure:

$ hg summary
parent: 19367:da90756b00e8 tip
 dmalcom gcc jit import
branch: default
bookmarks: *gccjit
commit: 5216 unknown (clean)
update: 34 new changesets, 3 branch heads (merge)

Configured with:
$ LIBGCCJIT_PREFIX=/home/david/coding-3/gcc-git-jit-octave/install 
    ../../configure 
       --enable-jit

I get this compilation failure (which appears to be independent of the JIT):

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../../liboctave -I..
-I../../../liboctave/array -I../../../liboctave/cruft/misc -Inumeric
-I../../../liboctave/numeric -Ioperators -I../../../liboctave/operators
-I../../../liboctave/system -I../../../liboctave/util -I../libgnu
-I../../../libgnu -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith
-Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -pthread -MT
array/array_libarray_la-CMatrix.lo -MD -MP -MF
array/.deps/array_libarray_la-CMatrix.Tpo -c
../../../liboctave/array/CMatrix.cc  -fPIC -DPIC -o
array/.libs/array_libarray_la-CMatrix.o
../../../liboctave/array/CMatrix.cc: In member function 'ComplexMatrix
ComplexMatrix::fourier() const':
../../../liboctave/array/CMatrix.cc:1362:30: error: no matching function for
call to 'Array<std::complex<double> >::Array(octave_idx_type&, int)'
   Array<Complex> wsave (nn, 1);
                              ^
../../../liboctave/array/CMatrix.cc:1362:30: note: candidates are:
In file included from ../../../liboctave/array/Array-util.h:26:0,
                 from ../../../liboctave/array/CMatrix.cc:38:
../../../liboctave/array/Array.h:212:3: note: Array<T>::Array(const Array<T>&)
[with T = std::complex<double>]
   Array (const Array<T>& a)
   ^
../../../liboctave/array/Array.h:212:3: note:   candidate expects 1 argument,
2 provided
../../../liboctave/array/Array.h:205:3: note: template<class U>
Array<T>::Array(const Array<U>&)
   Array (const Array<U>& a)
   ^
../../../liboctave/array/Array.h:205:3: note:   template argument
deduction/substitution failed:
../../../liboctave/array/CMatrix.cc:1362:30: note:   mismatched types 'const
Array<T>' and 'octave_idx_type {aka int}'
   Array<Complex> wsave (nn, 1);
                              ^
In file included from ../../../liboctave/array/Array-util.h:26:0,
                 from ../../../liboctave/array/CMatrix.cc:38:
../../../liboctave/array/Array.h:201:3: note: Array<T>::Array(const Array<T>&,
const dim_vector&) [with T = std::complex<double>]
   Array (const Array<T>& a, const dim_vector& dv);
   ^
../../../liboctave/array/Array.h:201:3: note:   no known conversion for
argument 1 from 'octave_idx_type {aka int}' to 'const
Array<std::complex<double> >&'
../../../liboctave/array/Array.h:191:12: note: Array<T>::Array(const
dim_vector&, const T&) [with T = std::complex<double>]
   explicit Array (const dim_vector& dv, const T& val)
            ^
../../../liboctave/array/Array.h:191:12: note:   no known conversion for
argument 1 from 'octave_idx_type {aka int}' to 'const dim_vector&'
../../../liboctave/array/Array.h:182:12: note: Array<T>::Array(const
dim_vector&) [with T = std::complex<double>]
   explicit Array (const dim_vector& dv)
            ^
../../../liboctave/array/Array.h:182:12: note:   candidate expects 1 argument,
2 provided
../../../liboctave/array/Array.h:174:3: note: Array<T>::Array() [with T =
std::complex<double>]
   Array (void)
   ^
../../../liboctave/array/Array.h:174:3: note:   candidate expects 0 arguments,
2 provided
../../../liboctave/array/Array.h:166:3: note: Array<T>::Array(T*,
octave_idx_type, octave_idx_type*, void*) [with T = std::complex<double>;
octave_idx_type = int]
   Array (T *sdata, octave_idx_type slen, octave_idx_type *adims, void *arep)
   ^
../../../liboctave/array/Array.h:166:3: note:   candidate expects 4 arguments,
2 provided
../../../liboctave/array/Array.h:143:3: note: Array<T>::Array(const Array<T>&,
const dim_vector&, octave_idx_type, octave_idx_type) [with T =
std::complex<double>; octave_idx_type = int]
   Array (const Array<T>& a, const dim_vector& dv,
   ^
../../../liboctave/array/Array.h:143:3: note:   candidate expects 4 arguments,
2 provided

There are some followup errors.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?8395>

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




reply via email to

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