Discussion:
Bug#831195: xmacro: FTBFS with GCC 6: stl_algobase.h:243:56: error: macro "min" passed 3 arguments, but takes just 2
Add Reply
Lucas Nussbaum
2016-07-14 08:30:05 UTC
Reply
Permalink
Raw Message
Source: xmacro
Version: 0.3pre-20000911-6
Severity: serious
Tags: stretch sid
User: debian-***@lists.debian.org
Usertags: qa-ftbfs-20160713 qa-ftbfs
Justification: FTBFS with GCC 6 on amd64

Hi,

During a rebuild of all packages in sid using the gcc-defaults package
available in experimental to make GCC default to version 6, your package failed
to build on amd64. For more information about GCC 6 and Stretch, see:
- https://wiki.debian.org/GCC6
- https://lists.debian.org/debian-devel-announce/2016/06/msg00007.html
g++ -g -O2 -I/usr/X11R6/include -Wall -pedantic -DHAVE_IOSTREAM=1 -DVERSION=0.3 xmacroplay.cpp -o xmacroplay -L/usr/X11R6/lib -lXtst -lX11
In file included from /usr/include/c++/6/bits/char_traits.h:39:0,
from /usr/include/c++/6/ios:40,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
/usr/include/c++/6/bits/stl_algobase.h:243:56: error: macro "min" passed 3 arguments, but takes just 2
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/include/c++/6/bits/stl_algobase.h:265:56: error: macro "max" passed 3 arguments, but takes just 2
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/include/c++/6/bits/stl_algobase.h:195:5: error: expected unqualified-id before 'const'
min(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/6/bits/stl_algobase.h:195:5: error: expected ')' before 'const'
/usr/include/c++/6/bits/stl_algobase.h:195:5: error: expected ')' before 'const'
/usr/include/c++/6/bits/stl_algobase.h:195:5: error: expected ')' before 'const'
/usr/include/c++/6/bits/stl_algobase.h:195:5: error: expected initializer before 'const'
/usr/include/c++/6/bits/stl_algobase.h:219:5: error: expected unqualified-id before 'const'
max(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/6/bits/stl_algobase.h:219:5: error: expected ')' before 'const'
/usr/include/c++/6/bits/stl_algobase.h:219:5: error: expected ')' before 'const'
/usr/include/c++/6/bits/stl_algobase.h:219:5: error: expected ')' before 'const'
/usr/include/c++/6/bits/stl_algobase.h:219:5: error: expected initializer before 'const'
In file included from /usr/include/c++/6/bits/char_traits.h:39:0,
from /usr/include/c++/6/ios:40,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
/usr/include/c++/6/bits/stl_algobase.h:243:5: error: 'std::min' declared as an 'inline' variable
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^~~
/usr/include/c++/6/bits/stl_algobase.h:246:7: error: expected primary-expression before 'if'
if (__comp(__b, __a))
^~
/usr/include/c++/6/bits/stl_algobase.h:246:7: error: expected '}' before 'if'
/usr/include/c++/6/bits/stl_algobase.h:246:7: error: expected ';' before 'if'
/usr/include/c++/6/bits/stl_algobase.h:248:7: error: expected unqualified-id before 'return'
return __a;
^~~~~~
/usr/include/c++/6/bits/stl_algobase.h:265:5: error: 'max' declared as an 'inline' variable
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^~~
/usr/include/c++/6/bits/stl_algobase.h:268:7: error: expected primary-expression before 'if'
if (__comp(__a, __b))
^~
/usr/include/c++/6/bits/stl_algobase.h:268:7: error: expected '}' before 'if'
/usr/include/c++/6/bits/stl_algobase.h:268:7: error: expected ';' before 'if'
/usr/include/c++/6/bits/stl_algobase.h:270:7: error: expected unqualified-id before 'return'
return __a;
^~~~~~
/usr/include/c++/6/bits/stl_algobase.h:271:5: error: expected declaration before '}' token
}
^
make[1]: *** [xmacroplay] Error 1
The full build log is available from:
http://people.debian.org/~lucas/logs/2016/07/13/xmacro_0.3pre-20000911-6_unstable_gcc6.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.
Debian Bug Tracking System
2016-07-22 20:40:02 UTC
Reply
Permalink
Raw Message
tags 831195 +patch
Bug #831195 [src:xmacro] xmacro: FTBFS with GCC 6: stl_algobase.h:243:56: error: macro "min" passed 3 arguments, but takes just 2
Added tag(s) patch.
--
831195: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=831195
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Debian Bug Tracking System
2017-01-05 13:30:01 UTC
Reply
Permalink
Raw Message
Your message dated Thu, 05 Jan 2017 13:19:00 +0000
with message-id <E1cP7wa-000EIq-***@fasolo.debian.org>
and subject line Bug#831195: fixed in xmacro 0.3pre-20000911-7
has caused the Debian Bug report #831195,
regarding xmacro: FTBFS with GCC 6: stl_algobase.h:243:56: error: macro "min" passed 3 arguments, but takes just 2
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ***@bugs.debian.org
immediately.)
--
831195: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=831195
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Loading...