octave-maintainers
[Top][All Lists]
Advanced

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

Re: Build problem with CVS (2007-09-13)


From: Fredrik Lingvall
Subject: Re: Build problem with CVS (2007-09-13)
Date: Mon, 17 Sep 2007 20:11:04 +0200
User-agent: Thunderbird 2.0.0.6 (X11/20070804)

John W. Eaton wrote:
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?
Yes!
| 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...
Ops sorry, here it is:

./configure CFLAGS="-O3 -pipe -m64 -mtune=nocona -march=nocona -mfpmath=sse -msse2 -msse3 -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays -pthread" CXXFLAGS="-O3 -pipe -m64 -mtune=nocona -march=nocona -mfpmath=sse -msse2 -msse3 -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays -pthread" FFLAGS="-O3 -pipe -m64 -fdefault-integer-8 -mtune=nocona -march=nocona -mfpmath=sse -msse2 -msse3 -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays -pthread" --enable-64 --prefix=/usr/local/ --with-blas=/usr/local/lib/libBLAS.so --with-lapack=/usr/local/lib/libLAPACK.so --enable-shared --without-hdf5


/Fredrik


reply via email to

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