[Pkg-octave-devel] Bug#362423: FTBFS with GCC 4.2: ambiguous
overload for 'operator=='
Martin Michlmayr
tbm at cyrius.com
Thu Apr 13 11:39:40 UTC 2006
Package: octave2.1
Version: 1:2.1.73-2
Your package fails to build with GCC 4.2. Version 4.2 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning. The bug below is in your package
and not because I'm using a snapshot of the compiler so please take a
look at it. You can reproduce this with the gcc-snapshot package.
Same problem as octave2.9.
> Automatic build of octave2.1_1:2.1.73-2 on em64t by sbuild/amd64 1.112
...
> /usr/bin/g++ -c -fPIC -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -Wall -W -Wshadow -O2 load-save.cc -o pic/load-save.o
> ls-hdf5.h:70: warning: unused parameter 'prot'
> load-save.cc: In function 'octave_value_list Fsave(const octave_value_list&, int)':
> load-save.cc:1483: error: ambiguous overload for 'operator==' in 'file. std::basic_ofstream<_CharT, _Traits>::rdbuf [with _CharT = char, _Traits = std::char_traits<char>]()->std::basic_filebuf<char, std::char_traits<char> >::<anonymous>.std::basic_streambuf<_CharT, _Traits>::pubseekoff [with _CharT = char, _Traits = std::char_traits<char>](0l, _S_cur, std::operator|(_S_in, _S_out)) == std::fpos<__mbstate_t>(0l)'
> load-save.cc:1483: note: candidates are: operator==(std::streamoff, std::streamoff) <built-in>
> ../liboctave/oct-inttypes.h:583: note: bool operator==(const octave_int<unsigned int>&, const octave_int<signed char>&)
> ../liboctave/oct-inttypes.h:583: note: bool operator==(const octave_int<signed char>&, const octave_int<unsigned int>&)
> ../liboctave/oct-inttypes.h:584: note: bool operator==(const octave_int<unsigned int>&, const octave_int<short int>&)
> ../liboctave/oct-inttypes.h:584: note: bool operator==(const octave_int<short int>&, const octave_int<unsigned int>&)
> ../liboctave/oct-inttypes.h:585: note: bool operator==(const octave_int<unsigned int>&, const octave_int<int>&)
> ../liboctave/oct-inttypes.h:585: note: bool operator==(const octave_int<int>&, const octave_int<unsigned int>&)
> ../liboctave/oct-inttypes.h:587: note: bool operator==(const octave_int<long unsigned int>&, const octave_int<signed char>&)
> ../liboctave/oct-inttypes.h:587: note: bool operator==(const octave_int<signed char>&, const octave_int<long unsigned int>&)
> ../liboctave/oct-inttypes.h:588: note: bool operator==(const octave_int<long unsigned int>&, const octave_int<short int>&)
> ../liboctave/oct-inttypes.h:588: note: bool operator==(const octave_int<short int>&, const octave_int<long unsigned int>&)
> ../liboctave/oct-inttypes.h:589: note: bool operator==(const octave_int<long unsigned int>&, const octave_int<int>&)
> ../liboctave/oct-inttypes.h:589: note: bool operator==(const octave_int<int>&, const octave_int<long unsigned int>&)
> ../liboctave/oct-inttypes.h:590: note: bool operator==(const octave_int<long unsigned int>&, const octave_int<long int>&)
> ../liboctave/oct-inttypes.h:590: note: bool operator==(const octave_int<long int>&, const octave_int<long unsigned int>&)
> ../liboctave/oct-inttypes.h:622: note: bool operator==(const octave_int<unsigned int>&, const octave_int<long int>&)
> ../liboctave/oct-inttypes.h:622: note: bool operator==(const octave_int<long int>&, const octave_int<unsigned int>&)
> make[3]: *** [pic/load-save.o] Error 1
> make[3]: Leaving directory `/build/tbm/octave2.1-2.1.73/src'
> make[2]: *** [src] Error 2
--
Martin Michlmayr
http://www.cyrius.com/
More information about the Pkg-octave-devel
mailing list