octave-maintainers
[Top][All Lists]
Advanced

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

Build problem with CVS (2007-09-13)


From: John W. Eaton
Subject: Build problem with CVS (2007-09-13)
Date: Mon, 17 Sep 2007 12:38:03 -0400

On 13-Sep-2007, Fredrik Lingvall wrote:

| ...
| 
| g++ -c  -fPIC -I. -I.. -I../liboctave -I../src -I../libcruft/misc   
| -DHAVE_CONFIG_H  -Wall
| -W -Wshadow -Wold-style-cast -O3 -pipe -m64 -mtune=nocona -march=nocona 
| -mfpmath=sse -msse2
|  -msse3 -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays 
| -pthread ./OPERATORS/op-
| b-b.cc -o pic/op-b-b.o
| ./OPERATORS/op-b-b.cc: In function 'void install_b_b_ops()':
| ./OPERATORS/op-b-b.cc:86: error: invalid conversion from 'octave_value 
| (*)(octave_base_valu                                                          
                                                                                
                                        
| e&, const octave_base_value&, const Array<long int>&)' to 'octave_value 
| (*)(octave_base_val                                                           
                                                                                
                                       
| ue&, const octave_base_value&, const Array<int>&)'
| ./OPERATORS/op-b-b.cc:86: error:   initializing argument 3 of 'static 
| bool 
| octave_value_typ                                                              
                                                                                
                                    
| einfo::register_cat_op(int, int, octave_value (*)(octave_base_value&, 
| const 
| octave_base_val                                                               
                                                                                
                                   
| ue&, const Array<int>&))'
| ./OPERATORS/op-b-b.cc:87: error: invalid conversion from 'octave_value 
| (*)(octave_base_valu                                                          
                                                                                
                                        
| e&, const octave_base_value&, const Array<long int>&)' to 'octave_value 
| (*)(octave_base_val                                                           
                                                                                
                                       
| ue&, const octave_base_value&, const Array<int>&)'
| ./OPERATORS/op-b-b.cc:87: error:   initializing argument 3 of 'static 
| bool 
| octave_value_typ                                                              
                                                                                
                                    
| einfo::register_cat_op(int, int, octave_value (*)(octave_base_value&, 
| const 
| octave_base_val                                                               
                                                                                
                                   
| ue&, const Array<int>&))'
| ./OPERATORS/op-b-b.cc:88: error: invalid conversion from 'octave_value 
| (*)(octave_base_valu                                                          
                                                                                
                                        
| e&, const octave_base_value&, const Array<long int>&)' to 'octave_value 
| (*)(octave_base_val                                                           
                                                                                
                                       
| ue&, const octave_base_value&, const Array<int>&)'
| ./OPERATORS/op-b-b.cc:88: error:   initializing argument 3 of 'static 
| bool 
| octave_value_typ                                                              
                                                                                
                                    
| einfo::register_cat_op(int, int, octave_value (*)(octave_base_value&, 
| const 
| octave_base_val                                                               
                                                                                
                                   
| ue&, const Array<int>&))'
| make[2]: *** [pic/op-b-b.o] Error 1
| make[2]: Leaving directory `/root/software/octave/cvs/octave/src'
| make[1]: *** [src] Error 2
| make[1]: Leaving directory `/root/software/octave/cvs/octave'
| make: *** [all] Error 2

Does the attached patch help?

| Compiled with:
| 
| fllap5 octave # gcc -v
| Using built-in specs.
| Target: x86_64-pc-linux-gnu
| Configured with: 
| /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/configure 
| --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2 
| --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include 
| --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2 
| --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/man 
| --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/info 
| --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4 
| --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec 
| --enable-nls --without-included-gettext --with-system-zlib 
| --disable-checking --disable-werror --enable-secureplt 
| --disable-libunwind-exceptions --enable-multilib --enable-libmudflap 
| --disable-libssp --disable-libgcj --enable-languages=c,c++,fortran 
| --enable-shared --enable-threads=posix --enable-__cxa_atexit 
| --enable-clocale=gnu
| Thread model: posix
| gcc version 4.1.2 (Gentoo 4.1.2 p1.0.1)

Reporting the arguments you used when configuring Octave would have
also been useful here...

jwe


src/ChangeLog:

2007-09-17  John W. Eaton  <address@hidden>

        * ov-typeinfo.h (cat_op_fcn): Third arg in function pointer
        typedef is now Array<octave_idx_type> instead of Array<int>.


Index: src/ov-typeinfo.h
===================================================================
RCS file: /cvs/octave/src/ov-typeinfo.h,v
retrieving revision 1.24
diff -u -u -r1.24 ov-typeinfo.h
--- src/ov-typeinfo.h   13 Jun 2007 05:42:25 -0000      1.24
+++ src/ov-typeinfo.h   17 Sep 2007 16:36:29 -0000
@@ -48,7 +48,7 @@
     (const octave_base_value&, const octave_base_value&);
 
   typedef octave_value (*cat_op_fcn)
-    (octave_base_value&, const octave_base_value&, const Array<int>& ra_idx);
+    (octave_base_value&, const octave_base_value&, const 
Array<octave_idx_type>& ra_idx);
 
   typedef octave_value (*assign_op_fcn)
     (octave_base_value&, const octave_value_list&, const octave_base_value&);

reply via email to

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