[Pkg-d-devel] Bug#839301: ldc: FTBFS: conv.d(298): Error: template std.conv.toImpl cannot deduce function from argument types !(string)(const(char)[]), candidates are:

Lucas Nussbaum lucas at debian.org
Sat Oct 1 09:03:05 UTC 2016


Source: ldc
Version: 1:1.1.0git216c112-1
Severity: serious
Tags: stretch sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20160930 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part (hopefully):
> make[3]: Entering directory '/<<PKGBUILDDIR>>/build-static'
> [ 11%] Generating gccbuiltins_x86.di
> cd /<<PKGBUILDDIR>>/build-static/runtime && ../bin/gen_gccbuiltins /<<PKGBUILDDIR>>/build-static/runtime/gccbuiltins_x86.di x86
> [ 11%] Generating gccbuiltins_aarch64.di
> cd /<<PKGBUILDDIR>>/build-static/runtime && ../bin/gen_gccbuiltins /<<PKGBUILDDIR>>/build-static/runtime/gccbuiltins_aarch64.di aarch64
> [ 11%] Generating gccbuiltins_arm.di
> cd /<<PKGBUILDDIR>>/build-static/runtime && ../bin/gen_gccbuiltins /<<PKGBUILDDIR>>/build-static/runtime/gccbuiltins_arm.di arm
> [ 11%] Generating gccbuiltins_mips.di
> cd /<<PKGBUILDDIR>>/build-static/runtime && ../bin/gen_gccbuiltins /<<PKGBUILDDIR>>/build-static/runtime/gccbuiltins_mips.di mips
> [ 11%] Generating gccbuiltins_ppc.di
> cd /<<PKGBUILDDIR>>/build-static/runtime && ../bin/gen_gccbuiltins /<<PKGBUILDDIR>>/build-static/runtime/gccbuiltins_ppc.di ppc
> [ 11%] Generating gccbuiltins_s390.di
> cd /<<PKGBUILDDIR>>/build-static/runtime && ../bin/gen_gccbuiltins /<<PKGBUILDDIR>>/build-static/runtime/gccbuiltins_s390.di s390
> [ 11%] Generating std/array-debug.o
> cd /<<PKGBUILDDIR>> && /<<PKGBUILDDIR>>/build-static/bin/ldc2 --output-o -c -I/<<PKGBUILDDIR>>/runtime/druntime/src -I/<<PKGBUILDDIR>>/runtime/druntime/src/gc /<<PKGBUILDDIR>>/runtime/phobos/std/array.d -of/<<PKGBUILDDIR>>/build-static/runtime/std/array-debug.o -w -g -link-debuglib -I/<<PKGBUILDDIR>>/runtime/phobos
> [ 11%] Generating std/ascii-debug.o
> cd /<<PKGBUILDDIR>> && /<<PKGBUILDDIR>>/build-static/bin/ldc2 --output-o -c -I/<<PKGBUILDDIR>>/runtime/druntime/src -I/<<PKGBUILDDIR>>/runtime/druntime/src/gc /<<PKGBUILDDIR>>/runtime/phobos/std/ascii.d -of/<<PKGBUILDDIR>>/build-static/runtime/std/ascii-debug.o -w -g -link-debuglib -I/<<PKGBUILDDIR>>/runtime/phobos
> [ 11%] Generating std/base64-debug.o
> cd /<<PKGBUILDDIR>> && /<<PKGBUILDDIR>>/build-static/bin/ldc2 --output-o -c -I/<<PKGBUILDDIR>>/runtime/druntime/src -I/<<PKGBUILDDIR>>/runtime/druntime/src/gc /<<PKGBUILDDIR>>/runtime/phobos/std/base64.d -of/<<PKGBUILDDIR>>/build-static/runtime/std/base64-debug.o -w -g -link-debuglib -I/<<PKGBUILDDIR>>/runtime/phobos
> [ 11%] Generating std/bigint-debug.o
> cd /<<PKGBUILDDIR>> && /<<PKGBUILDDIR>>/build-static/bin/ldc2 --output-o -c -I/<<PKGBUILDDIR>>/runtime/druntime/src -I/<<PKGBUILDDIR>>/runtime/druntime/src/gc /<<PKGBUILDDIR>>/runtime/phobos/std/bigint.d -of/<<PKGBUILDDIR>>/build-static/runtime/std/bigint-debug.o -w -g -link-debuglib -I/<<PKGBUILDDIR>>/runtime/phobos
> /<<PKGBUILDDIR>>/runtime/phobos/std/conv.d(298): Error: template std.conv.toImpl cannot deduce function from argument types !(string)(const(char)[]), candidates are:
> /<<PKGBUILDDIR>>/runtime/phobos/std/conv.d(364):        std.conv.toImpl(T, S)(S value) if (isImplicitlyConvertible!(S, T) && !isEnumStrToStr!(S, T) && !isNullToStr!(S, T))
> /<<PKGBUILDDIR>>/runtime/phobos/std/conv.d(478):        std.conv.toImpl(T, S)(ref S s) if (isRawStaticArray!S)
> /<<PKGBUILDDIR>>/runtime/phobos/std/conv.d(494):        std.conv.toImpl(T, S)(S value) if (!isImplicitlyConvertible!(S, T) && is(typeof(S.init.opCast!T()) : T) && !isExactSomeString!T && !is(typeof(T(value))))
> /<<PKGBUILDDIR>>/runtime/phobos/std/conv.d(545):        std.conv.toImpl(T, S)(S value) if (!isImplicitlyConvertible!(S, T) && is(T == struct) && is(typeof(T(value))))
> /<<PKGBUILDDIR>>/runtime/phobos/std/conv.d(594):        std.conv.toImpl(T, S)(S value) if (!isImplicitlyConvertible!(S, T) && is(T == class) && is(typeof(new T(value))))
> /<<PKGBUILDDIR>>/runtime/phobos/std/conv.d(298):        ... (9 more, -v to show) ...
> /<<PKGBUILDDIR>>/runtime/phobos/std/conv.d(3672): Error: template instance std.conv.to!string.to!(const(char)[]) error instantiating
> /<<PKGBUILDDIR>>/runtime/phobos/std/conv.d(3656):        instantiated from here: textImpl!(string, string, const(char)[])
> /<<PKGBUILDDIR>>/runtime/phobos/std/format.d(913):        instantiated from here: text!(string, const(char)[])
> /<<PKGBUILDDIR>>/runtime/phobos/std/bigint.d(803):        instantiated from here: FormatSpec!char
> /<<PKGBUILDDIR>>/runtime/phobos/std/range/primitives.d(2238): Error: template std.utf.decode cannot deduce function from argument types !()(const(char)[], ulong), candidates are:
> /<<PKGBUILDDIR>>/runtime/phobos/std/utf.d(1007):        std.utf.decode(Flag useReplacementDchar = UseReplacementDchar.no, S)(auto ref S str, ref size_t index) if (!isSomeString!S && isRandomAccessRange!S && hasSlicing!S && hasLength!S && isSomeChar!(ElementType!S))
> /<<PKGBUILDDIR>>/runtime/phobos/std/utf.d(1026):        std.utf.decode(Flag useReplacementDchar = UseReplacementDchar.no, S)(auto ref S str, ref size_t index) if (isSomeString!S)
> /<<PKGBUILDDIR>>/runtime/phobos/std/conv.d(1950): Error: template instance std.range.primitives.front!(const(char)) error instantiating
> /<<PKGBUILDDIR>>/runtime/phobos/std/format.d(978):        instantiated from here: parse!(int, const(char)[])
> /<<PKGBUILDDIR>>/runtime/phobos/std/bigint.d(803):        instantiated from here: FormatSpec!char
> /<<PKGBUILDDIR>>/runtime/phobos/std/range/primitives.d(2092): Error: static assert  "Bad template constraint."
> /<<PKGBUILDDIR>>/runtime/phobos/std/conv.d(1964):        instantiated from here: popFront!(const(char))
> /<<PKGBUILDDIR>>/runtime/phobos/std/format.d(978):        instantiated from here: parse!(int, const(char)[])
> /<<PKGBUILDDIR>>/runtime/phobos/std/bigint.d(803):        instantiated from here: FormatSpec!char
> runtime/CMakeFiles/phobos2-ldc-debug.dir/build.make:105: recipe for target 'runtime/std/bigint-debug.o' failed
> make[3]: *** [runtime/std/bigint-debug.o] Error 1

If the failure looks somehow time/timezone related:
Note that this rebuild was performed without the 'tzdata' package
installed in the chroot. tzdata used be (transitively) part of
build-essential, but it no longer is. If this package requires it to
build, it should be added to build-depends. For the release team's
opinion on this, see
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=836940#185

The full build log is available from:
   http://aws-logs.debian.net/2016/09/30/ldc_1.1.0git216c112-1_unstable.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.



More information about the Pkg-d-devel mailing list