Bug#1120236: magma: FTBFS: /usr/include/c++/13/bits/stl_algobase.h:281:56: error: macro "min" passed 3 arguments, but takes just 2
Santiago Vila
sanvila at debian.org
Thu Nov 6 11:59:20 GMT 2025
Package: src:magma
Version: 2.9.0+ds-2
Severity: serious
Tags: ftbfs forky sid
Dear maintainer:
During a rebuild of all packages in unstable, this package failed to build.
Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:
https://people.debian.org/~sanvila/build-logs/202511/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:magma, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
debian/rules clean
dh clean
debian/rules override_dh_auto_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
cp -v make.inc-examples/make.inc.openblas make.inc
'make.inc-examples/make.inc.openblas' -> 'make.inc'
sed -i -e 's#^\(CC\)\s*=\(.*\)#\1 = cuda-gcc#' \
-e 's#^\(CXX\)\s*=\(.*\)#\1 = cuda-g++#' \
-e 's#^\(NVCC\)\s*=\(.*\)#\1 = nvcc#' \
-e 's#^\(CFLAGS\)\s*=\(.*\)#\1 = \2 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection#' \
-e 's#^\(CXXFLAGS\)\s*=\(.*\)#\1 = \2 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection#' \
-e 's#^\(FFLAGS\)\s*=\(.*\)#\1 = \2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -fcf-protection#' \
-e 's#^\(LDLAGS\)\s*=\(.*\)#\1 = \2 #' \
-e 's#^\(DEVCCFLAGS\)\s*=\(.*\)#\1 = \2 -g -G#' \
-e 's#-lopenblas#-lblas -llapack#' \
[... snipped ...]
| ^
./control/magma_internal.h:243: note: macro "max" defined here
243 | #define max(a, b) ((a) > (b) ? (a) : (b))
|
/usr/include/c++/13/bits/chrono.h:998:43: error: macro "max" requires 2 arguments, but only 1 given
998 | { return time_point(duration::max()); }
| ^
./control/magma_internal.h:243: note: macro "max" defined here
243 | #define max(a, b) ((a) > (b) ? (a) : (b))
|
/usr/include/c++/13/bits/chrono.h:1232:49: error: macro "min" requires 2 arguments, but only 1 given
1232 | static_assert(system_clock::duration::min()
| ^
./control/magma_internal.h:247: note: macro "min" defined here
247 | #define min(a, b) ((a) < (b) ? (a) : (b))
|
In file included from /usr/include/cuda/std/limits:26,
from /usr/include/cuda/std/detail/libcxx/include/chrono:849:
/usr/include/cuda/std/detail/libcxx/include/limits:155:59: error: macro "min" requires 2 arguments, but only 1 given
155 | _LIBCUDACXX_INLINE_VISIBILITY static constexpr type min() noexcept
| ^
./control/magma_internal.h:247: note: macro "min" defined here
247 | #define min(a, b) ((a) < (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/limits:159:59: error: macro "max" requires 2 arguments, but only 1 given
159 | _LIBCUDACXX_INLINE_VISIBILITY static constexpr type max() noexcept
| ^
./control/magma_internal.h:243: note: macro "max" defined here
243 | #define max(a, b) ((a) > (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/limits:249:59: error: macro "min" requires 2 arguments, but only 1 given
249 | _LIBCUDACXX_INLINE_VISIBILITY static constexpr type min() noexcept
| ^
./control/magma_internal.h:247: note: macro "min" defined here
247 | #define min(a, b) ((a) < (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/limits:253:59: error: macro "max" requires 2 arguments, but only 1 given
253 | _LIBCUDACXX_INLINE_VISIBILITY static constexpr type max() noexcept
| ^
./control/magma_internal.h:243: note: macro "max" defined here
243 | #define max(a, b) ((a) > (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/limits:259:16: error: macro "min" requires 2 arguments, but only 1 given
259 | return min();
| ^
./control/magma_internal.h:247: note: macro "min" defined here
247 | #define min(a, b) ((a) < (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/limits:328:59: error: macro "min" requires 2 arguments, but only 1 given
328 | _LIBCUDACXX_INLINE_VISIBILITY static constexpr type min() noexcept
| ^
./control/magma_internal.h:247: note: macro "min" defined here
247 | #define min(a, b) ((a) < (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/limits:332:59: error: macro "max" requires 2 arguments, but only 1 given
332 | _LIBCUDACXX_INLINE_VISIBILITY static constexpr type max() noexcept
| ^
./control/magma_internal.h:243: note: macro "max" defined here
243 | #define max(a, b) ((a) > (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/limits:338:16: error: macro "min" requires 2 arguments, but only 1 given
338 | return min();
| ^
./control/magma_internal.h:247: note: macro "min" defined here
247 | #define min(a, b) ((a) < (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/limits:401:59: error: macro "min" requires 2 arguments, but only 1 given
401 | _LIBCUDACXX_INLINE_VISIBILITY static constexpr type min() noexcept
| ^
./control/magma_internal.h:247: note: macro "min" defined here
247 | #define min(a, b) ((a) < (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/limits:405:59: error: macro "max" requires 2 arguments, but only 1 given
405 | _LIBCUDACXX_INLINE_VISIBILITY static constexpr type max() noexcept
| ^
./control/magma_internal.h:243: note: macro "max" defined here
243 | #define max(a, b) ((a) > (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/limits:411:17: error: macro "max" requires 2 arguments, but only 1 given
411 | return -max();
| ^
./control/magma_internal.h:243: note: macro "max" defined here
243 | #define max(a, b) ((a) > (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/limits:489:59: error: macro "min" requires 2 arguments, but only 1 given
489 | _LIBCUDACXX_INLINE_VISIBILITY static constexpr type min() noexcept
| ^
./control/magma_internal.h:247: note: macro "min" defined here
247 | #define min(a, b) ((a) < (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/limits:493:59: error: macro "max" requires 2 arguments, but only 1 given
493 | _LIBCUDACXX_INLINE_VISIBILITY static constexpr type max() noexcept
| ^
./control/magma_internal.h:243: note: macro "max" defined here
243 | #define max(a, b) ((a) > (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/limits:499:17: error: macro "max" requires 2 arguments, but only 1 given
499 | return -max();
| ^
./control/magma_internal.h:243: note: macro "max" defined here
243 | #define max(a, b) ((a) > (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/limits:653:59: error: macro "min" requires 2 arguments, but only 1 given
653 | _LIBCUDACXX_INLINE_VISIBILITY static constexpr type min() noexcept
| ^
./control/magma_internal.h:247: note: macro "min" defined here
247 | #define min(a, b) ((a) < (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/limits:655:24: error: macro "min" requires 2 arguments, but only 1 given
655 | return __base::min();
| ^
./control/magma_internal.h:247: note: macro "min" defined here
247 | #define min(a, b) ((a) < (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/limits:657:59: error: macro "max" requires 2 arguments, but only 1 given
657 | _LIBCUDACXX_INLINE_VISIBILITY static constexpr type max() noexcept
| ^
./control/magma_internal.h:243: note: macro "max" defined here
243 | #define max(a, b) ((a) > (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/limits:659:24: error: macro "max" requires 2 arguments, but only 1 given
659 | return __base::max();
| ^
./control/magma_internal.h:243: note: macro "max" defined here
243 | #define max(a, b) ((a) > (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/limits:773:59: error: macro "min" requires 2 arguments, but only 1 given
773 | _LIBCUDACXX_INLINE_VISIBILITY static constexpr type min() noexcept
| ^
./control/magma_internal.h:247: note: macro "min" defined here
247 | #define min(a, b) ((a) < (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/limits:775:24: error: macro "min" requires 2 arguments, but only 1 given
775 | return __base::min();
| ^
./control/magma_internal.h:247: note: macro "min" defined here
247 | #define min(a, b) ((a) < (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/limits:777:59: error: macro "max" requires 2 arguments, but only 1 given
777 | _LIBCUDACXX_INLINE_VISIBILITY static constexpr type max() noexcept
| ^
./control/magma_internal.h:243: note: macro "max" defined here
243 | #define max(a, b) ((a) > (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/limits:779:24: error: macro "max" requires 2 arguments, but only 1 given
779 | return __base::max();
| ^
./control/magma_internal.h:243: note: macro "max" defined here
243 | #define max(a, b) ((a) > (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/limits:893:59: error: macro "min" requires 2 arguments, but only 1 given
893 | _LIBCUDACXX_INLINE_VISIBILITY static constexpr type min() noexcept
| ^
./control/magma_internal.h:247: note: macro "min" defined here
247 | #define min(a, b) ((a) < (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/limits:895:24: error: macro "min" requires 2 arguments, but only 1 given
895 | return __base::min();
| ^
./control/magma_internal.h:247: note: macro "min" defined here
247 | #define min(a, b) ((a) < (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/limits:897:59: error: macro "max" requires 2 arguments, but only 1 given
897 | _LIBCUDACXX_INLINE_VISIBILITY static constexpr type max() noexcept
| ^
./control/magma_internal.h:243: note: macro "max" defined here
243 | #define max(a, b) ((a) > (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/limits:899:24: error: macro "max" requires 2 arguments, but only 1 given
899 | return __base::max();
| ^
./control/magma_internal.h:243: note: macro "max" defined here
243 | #define max(a, b) ((a) > (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/limits:1013:59: error: macro "min" requires 2 arguments, but only 1 given
1013 | _LIBCUDACXX_INLINE_VISIBILITY static constexpr type min() noexcept
| ^
./control/magma_internal.h:247: note: macro "min" defined here
247 | #define min(a, b) ((a) < (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/limits:1015:24: error: macro "min" requires 2 arguments, but only 1 given
1015 | return __base::min();
| ^
./control/magma_internal.h:247: note: macro "min" defined here
247 | #define min(a, b) ((a) < (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/limits:1017:59: error: macro "max" requires 2 arguments, but only 1 given
1017 | _LIBCUDACXX_INLINE_VISIBILITY static constexpr type max() noexcept
| ^
./control/magma_internal.h:243: note: macro "max" defined here
243 | #define max(a, b) ((a) > (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/limits:1019:24: error: macro "max" requires 2 arguments, but only 1 given
1019 | return __base::max();
| ^
./control/magma_internal.h:243: note: macro "max" defined here
243 | #define max(a, b) ((a) > (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/chrono:993:59: error: macro "max" requires 2 arguments, but only 1 given
993 | _LIBCUDACXX_INLINE_VISIBILITY static constexpr _Rep max() noexcept
| ^
./control/magma_internal.h:243: note: macro "max" defined here
243 | #define max(a, b) ((a) > (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/chrono:995:38: error: macro "max" requires 2 arguments, but only 1 given
995 | return numeric_limits<_Rep>::max();
| ^
./control/magma_internal.h:243: note: macro "max" defined here
243 | #define max(a, b) ((a) > (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/chrono:997:59: error: macro "min" requires 2 arguments, but only 1 given
997 | _LIBCUDACXX_INLINE_VISIBILITY static constexpr _Rep min() noexcept
| ^
./control/magma_internal.h:247: note: macro "min" defined here
247 | #define min(a, b) ((a) < (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/chrono:1189:63: error: macro "min" requires 2 arguments, but only 1 given
1189 | _LIBCUDACXX_INLINE_VISIBILITY static constexpr duration min() noexcept
| ^
./control/magma_internal.h:247: note: macro "min" defined here
247 | #define min(a, b) ((a) < (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/chrono:1191:47: error: macro "min" requires 2 arguments, but only 1 given
1191 | return duration(duration_values<rep>::min());
| ^
./control/magma_internal.h:247: note: macro "min" defined here
247 | #define min(a, b) ((a) < (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/chrono:1193:63: error: macro "max" requires 2 arguments, but only 1 given
1193 | _LIBCUDACXX_INLINE_VISIBILITY static constexpr duration max() noexcept
| ^
./control/magma_internal.h:243: note: macro "max" defined here
243 | #define max(a, b) ((a) > (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/chrono:1195:47: error: macro "max" requires 2 arguments, but only 1 given
1195 | return duration(duration_values<rep>::max());
| ^
./control/magma_internal.h:243: note: macro "max" defined here
243 | #define max(a, b) ((a) > (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/chrono:1447:65: error: macro "min" requires 2 arguments, but only 1 given
1447 | _LIBCUDACXX_INLINE_VISIBILITY static constexpr time_point min() noexcept
| ^
./control/magma_internal.h:247: note: macro "min" defined here
247 | #define min(a, b) ((a) < (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/chrono:1449:37: error: macro "min" requires 2 arguments, but only 1 given
1449 | return time_point(duration::min());
| ^
./control/magma_internal.h:247: note: macro "min" defined here
247 | #define min(a, b) ((a) < (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/chrono:1451:65: error: macro "max" requires 2 arguments, but only 1 given
1451 | _LIBCUDACXX_INLINE_VISIBILITY static constexpr time_point max() noexcept
| ^
./control/magma_internal.h:243: note: macro "max" defined here
243 | #define max(a, b) ((a) > (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/chrono:1453:37: error: macro "max" requires 2 arguments, but only 1 given
1453 | return time_point(duration::max());
| ^
./control/magma_internal.h:243: note: macro "max" defined here
243 | #define max(a, b) ((a) > (b) ? (a) : (b))
|
/usr/include/cuda/std/detail/libcxx/include/__threading_support:307:63: error: macro "max" requires 2 arguments, but only 1 given
307 | constexpr ts_sec __ts_sec_max = numeric_limits<ts_sec>::max();
| ^
./control/magma_internal.h:243: note: macro "max" defined here
243 | #define max(a, b) ((a) > (b) ? (a) : (b))
|
make[2]: *** [Makefile:859: magmablas/sgbtf2_kernels.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j2 INSTALL="install --strip-program=true" returned exit code 2
make[1]: *** [debian/rules:76: override_dh_auto_build-arch] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:54: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
More information about the debian-science-maintainers
mailing list