[Pkg-scicomp-devel] Bug#454883: FTBFS with GCC 4.3: duplicate function parameters & co

Martin Michlmayr tbm at cyrius.com
Sat Dec 8 04:31:23 UTC 2007


Package: gmsh
Version: 2.0.8-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.  GCC 4.3 now prints an error
message when C++ code contains duplicate function parameter names in
function prototypes, see
http://www.cyrius.com/journal/2007/12/07#gcc-4.3-multiple-params

You can reproduce this problem with gcc-snapshot from unstable.  Note
that Red Hat, Novell and Ubuntu have done some work getting packages
to build with GCC 4.3 so there might be patches floating around
somewhere.  I suggest you talk to your upstream.

> Automatic build of gmsh_2.0.8-3 on em64t by sbuild/amd64 0.53
...
> g++ -Wall -O3 -DHAVE_LIBZ -DHAVE_GSL -DHAVE_MATH_EVAL -DHAVE_NETGEN -DHAVE_ANN_ -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_FLTK  -I/usr/include/freetype2 -DHAVE_64BIT_SIZE_T -I../Common -I../DataStr -I../Geo -I../Mesh -I../Post -I../Graphics -I../Numeric -I../Parser -I../Plugin -I../Fltk -I../contrib/MathEval -I../contrib/ANN/include/ -c CommandLine.cpp
> In file included from ../Geo/GEdge.h:28,
>                  from ../Geo/GModel.h:27,
>                  from CommandLine.cpp:35:
> ../Geo/MElement.h:292: error: multiple parameters named 'v'

and later:

> src/brute.cpp:65: warning: deprecated conversion from string constant to 'char*'
> g++ -Wall -O3 -DHAVE_LIBZ -DHAVE_GSL -DHAVE_MATH_EVAL -DHAVE_NETGEN -DHAVE_ANN_ -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_FLTK  -I/usr/include/freetype2 -DHAVE_64BIT_SIZE_T -I../../Common -I./include -c src/kd_dump.cpp -o src/kd_dump.o
> src/kd_dump.cpp: In function 'ANNkd_node* annReadDump(std::istream&, ANNtreeType, ANNcoord**&, ANNidx*&, int&, int&, int&, ANNcoord*&, ANNcoord*&)':
> src/kd_dump.cpp:274: error: 'strcmp' was not declared in this scope
> src/kd_dump.cpp:275: warning: deprecated conversion from string constant to 'char*'
> src/kd_dump.cpp:285: error: 'strcmp' was not declared in this scope
> src/kd_dump.cpp:294: warning: deprecated conversion from string constant to 'char*'
> src/kd_dump.cpp:303: warning: deprecated conversion from string constant to 'char*'
> src/kd_dump.cpp:314: error: 'strcmp' was not declared in this scope
> src/kd_dump.cpp:332: warning: deprecated conversion from string constant to 'char*'
> src/kd_dump.cpp:336: warning: deprecated conversion from string constant to 'char*'
> src/kd_dump.cpp: In function 'ANNkd_node* annReadTree(std::istream&, ANNtreeType, ANNidx*, int&)':
> src/kd_dump.cpp:386: error: 'strcmp' was not declared in this scope
> src/kd_dump.cpp:392: error: 'strcmp' was not declared in this scope
> src/kd_dump.cpp:424: warning: deprecated conversion from string constant to 'char*'
> src/kd_dump.cpp:442: warning: deprecated conversion from string constant to 'char*'
> make[2]: *** [src/kd_dump.o] Error 1
> make[2]: Leaving directory `/build/tbm/gmsh-2.0.8/contrib/ANN'

See http://www.cyrius.com/journal/2007/05/10#gcc-4.3-include for this
error.

-- 
Martin Michlmayr
http://www.cyrius.com/





More information about the Pkg-scicomp-devel mailing list