Bug#417494: [Pkg-octave-devel] Bug#417494: FTBFS with GCC 4.3: missing #includes

Rafael Laboissiere rafael at debian.org
Sun May 6 20:49:30 UTC 2007


* Martin Michlmayr <tbm at cyrius.com> [2007-04-02 22:26]:

> Package: octave2.1-forge
> Version: 2006.03.17+dfsg1-3
> Usertags: ftbfs-gcc-4.3
> 
> Your package fails to build with GCC 4.3.  Version 4.3 has not been
> released yet but I'm building with a snapshot in order to find errors
> and give people an advance warning.  In GCC 4.3, the C++ header
> dependencies have been cleaned up.  The advantage of this is that
> programs will compile faster.  The downside is that you actually
> need to directly #include everything you use (but you really should
> do this anyway, otherwise your program won't work with any compiler
> other than GCC).  Some background of this can be found at
> http://gcc.gnu.org/PR28080
> 
> You can reproduce this problem with gcc-snapshot (20070326-1 or higher)
> from unstable.  I'll try to look into this problem but I don't know when
> I'll have time.
> 
> > Automatic build of octave2.1-forge_2006.03.17+dfsg1-3 on coconut0 by sbuild/ia64 0.49
> ...
> > /usr/bin/g++ -c -fPIC -I/usr/include/octave-2.1.73 -I/usr/include/octave-2.1.73/octave -O2 -Doctave_idx_type=int -DHAVE_OCTAVE_21 -DOCTAVE_FORGE -DHAVE_ND_ARRAYS -DTYPEID_HAS_CLASS -DCLASS_HAS_LOAD_SAVE -DMX_ND_RED_NUM=5 -DHAVE_OCTAVE_CONCAT -DHAVE_SWAP_BYTES -DHAVE_OCTAVE_UPLUS fixedComplex.cc -o fixedComplex.o
> > fixedComplex.cc: In function 'FixedPointComplex pow(const FixedPointComplex&, int)':
> > fixedComplex.cc:153: error: call of overloaded 'abs(const int&)' is ambiguous
>  ^
> This is a missing #include <cstdlib>

I cannot replicate this bug with gcc-snapshot 20061022-1, the latest version
available for i368.   It seems that cstdlib is included by fixedComplex.cc:

$ /usr/lib/gcc-snapshot/bin/cpp -fPIC -I/usr/include/octave-2.1.73 -I/usr/include/octave-2.1.73/octave -mieee-fp -O2 -Doctave_idx_type=int -DHAVE_OCTAVE_21 -DOCTAVE_FORGE -DHAVE_ND_ARRAYS -DTYPEID_HAS_CLASS -DCLASS_HAS_LOAD_SAVE -DMX_ND_RED_NUM=5 -DHAVE_OCTAVE_CONCAT -DHAVE_SWAP_BYTES -DHAVE_OCTAVE_UPLUS fixedComplex.cc | grep cstdlib | tail -n1
# 194 "/usr/lib/gcc-snapshot/lib/gcc/i486-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cstdlib" 3

Could this be a problem specific to ia64 or gcc-snapshot 20070326-1?

-- 
Rafael




More information about the Pkg-octave-devel mailing list