[Pkg-scicomp-devel] Bug#417451: FTBFS with GCC 4.3: missing
#includes
Christophe Prud'homme
prudhomm at debian.org
Wed Apr 4 14:50:34 UTC 2007
Martin,
is it fine to use gcc-snapshot 20061022-1 to test compile our packages with
GCC 4.3 ?
or should we wait for the latest one on i386 (20070326-1 has failed to build
on i386) ?
[ lundi 2 avril 2007 21:45 ]
| Package: netgen
| Version: 4.4-7
| 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.
|
| > Automatic build of netgen_4.4-7 on coconut0 by sbuild/ia64 0.49
|
| ...
|
| > comp/fespace.cpp: In member function 'virtual void
| > ngcomp::NonConformingFESpace::GetDofNrs(int, ngstd::ARRAY<int>&) const':
| > comp/fespace.cpp:2147: error: call of overloaded 'abs(const int&)' is
| > ambiguous
| > /usr/lib/gcc-snapshot/lib/gcc/ia64-linux-gnu/4.3.0/../../../../include/c+
| >+/4.3.0/cmath:88: note: candidates are: double std::abs(double)
| > /usr/lib/gcc-snapshot/lib/gcc/ia64-linux-gnu/4.3.0/../../../../include/c+
| >+/4.3.0/cmath:92: note: float std::abs(float)
| > /usr/lib/gcc-snapshot/lib/gcc/ia64-linux-gnu/4.3.0/../../../../include/c+
| >+/4.3.0/cmath:96: note: long double std::abs(long double)
| > solve/shapetester.cpp: In function 'int ngsolve::NGS_DrawShape(void*,
| > Tcl_Interp*, int, const char**)': solve/shapetester.cpp:118: error:
| > 'atoi' was not declared in this scope
|
| Sorry, I have only a patch for this issue and not the whole package,
| because I couldn't figure out how the build system works.
|
| --- ngsolve/comp/fespace.cpp~ 2007-04-02 19:39:12.000000000 +0000
| +++ ngsolve/comp/fespace.cpp 2007-04-02 19:39:20.000000000 +0000
| @@ -10,6 +10,7 @@
|
| #include <comp.hpp>
| #include <multigrid.hpp>
| +#include <cstdlib>
| using namespace ngmg;
|
| namespace ngcomp
| --- ngsolve/solve/shapetester.cpp~ 2007-04-02 19:36:16.000000000 +0000
| +++ ngsolve/solve/shapetester.cpp 2007-04-02 19:36:43.000000000 +0000
| @@ -1,6 +1,7 @@
|
| #include <solve.hpp>
| // #include <nginterface.h>
| +#include <cstdlib>
|
|
| namespace ngsolve
--
Debian Developer - http://people.debian.org/~prudhomm/
Scientific computing packages maintainer
Fingerprint = 3703 50DE 7A9F 024E 0F26 0D07 A18F B40B D4BE 1450
More information about the Pkg-scicomp-devel
mailing list