dlang / dub

Package and build management system for D
MIT License
677 stars 227 forks source link

Build fails with DMD master #2709

Closed pbackus closed 1 year ago

pbackus commented 1 year ago

Command:

$ DMD=../dmd/generated/linux/release/64/dmd ./build.d

Output:

Using pre-existing version file. To force a rebuild, provide an explicit version (first argument) or remove: /home/paul/code/dlang/dub/./source/dub/version_.d
Building dub using ../dmd/generated/linux/release/64/dmd (dflags: ["-g", "-O", "-w"]), this may take a while...
Command `["../dmd/generated/linux/release/64/dmd", "-of/home/paul/code/dlang/dub/./bin/dub", "-I/home/paul/code/dlang/dub/./source", "-version=DubUseCurl", "-version=DubApplication", "-g", "-O", "-w", "@build-files.txt"]` failed, output was:
source/dub/internal/configy/Exceptions.d(248): Deprecation: `@safe` function `formatMessage` calling `formattedWrite`
../dmd/generated/linux/release/64/../../../../../phobos/std/format/write.d(537):        which calls `std.format.spec.FormatSpec!char.FormatSpec.writeUpToNextSpec!(void delegate(in char[]) @safe).writeUpToNextSpec`
../dmd/generated/linux/release/64/../../../../../phobos/std/format/spec.d(258):        which wouldn't be `@safe` because of:
../dmd/generated/linux/release/64/../../../../../phobos/std/format/spec.d(258):        scope variable `this` assigned to non-scope parameter `e` calling `put`
source/dub/internal/configy/Exceptions.d(250): Deprecation: `@safe` function `formatMessage` calling `formattedWrite`
../dmd/generated/linux/release/64/../../../../../phobos/std/format/write.d(537):        which calls `std.format.spec.FormatSpec!char.FormatSpec.writeUpToNextSpec!(void delegate(in char[]) @safe).writeUpToNextSpec`
../dmd/generated/linux/release/64/../../../../../phobos/std/format/spec.d(258):        which wouldn't be `@safe` because of:
../dmd/generated/linux/release/64/../../../../../phobos/std/format/spec.d(258):        scope variable `this` assigned to non-scope parameter `e` calling `put`
source/dub/internal/configy/Exceptions.d(283): Deprecation: `@safe` function `formatMessage` calling `formattedWrite`
../dmd/generated/linux/release/64/../../../../../phobos/std/format/write.d(537):        which calls `std.format.spec.FormatSpec!char.FormatSpec.writeUpToNextSpec!(void delegate(in char[]) @safe).writeUpToNextSpec`
../dmd/generated/linux/release/64/../../../../../phobos/std/format/spec.d(258):        which wouldn't be `@safe` because of:
../dmd/generated/linux/release/64/../../../../../phobos/std/format/spec.d(258):        scope variable `this` assigned to non-scope parameter `e` calling `put`
source/dub/internal/configy/Exceptions.d(286): Deprecation: `@safe` function `formatMessage` calling `formattedWrite`
../dmd/generated/linux/release/64/../../../../../phobos/std/format/write.d(537):        which calls `std.format.spec.FormatSpec!char.FormatSpec.writeUpToNextSpec!(void delegate(in char[]) @safe).writeUpToNextSpec`
../dmd/generated/linux/release/64/../../../../../phobos/std/format/spec.d(258):        which wouldn't be `@safe` because of:
../dmd/generated/linux/release/64/../../../../../phobos/std/format/spec.d(258):        scope variable `this` assigned to non-scope parameter `e` calling `put`
source/dub/internal/configy/Exceptions.d(323): Deprecation: `@safe` function `formatMessage` calling `formattedWrite`
../dmd/generated/linux/release/64/../../../../../phobos/std/format/write.d(537):        which calls `std.format.spec.FormatSpec!char.FormatSpec.writeUpToNextSpec!(void delegate(in char[]) @safe).writeUpToNextSpec`
../dmd/generated/linux/release/64/../../../../../phobos/std/format/spec.d(258):        which wouldn't be `@safe` because of:
../dmd/generated/linux/release/64/../../../../../phobos/std/format/spec.d(258):        scope variable `this` assigned to non-scope parameter `e` calling `put`
source/dub/internal/configy/Exceptions.d(325): Deprecation: `@safe` function `formatMessage` calling `formattedWrite`
../dmd/generated/linux/release/64/../../../../../phobos/std/format/write.d(537):        which calls `std.format.spec.FormatSpec!char.FormatSpec.writeUpToNextSpec!(void delegate(in char[]) @safe).writeUpToNextSpec`
../dmd/generated/linux/release/64/../../../../../phobos/std/format/spec.d(258):        which wouldn't be `@safe` because of:
../dmd/generated/linux/release/64/../../../../../phobos/std/format/spec.d(258):        scope variable `this` assigned to non-scope parameter `e` calling `put`
source/dub/internal/configy/Exceptions.d(332): Deprecation: `@safe` function `formatMessage` calling `formattedWrite`
../dmd/generated/linux/release/64/../../../../../phobos/std/format/write.d(537):        which calls `std.format.spec.FormatSpec!char.FormatSpec.writeUpToNextSpec!(void delegate(in char[]) @safe).writeUpToNextSpec`
../dmd/generated/linux/release/64/../../../../../phobos/std/format/spec.d(258):        which wouldn't be `@safe` because of:
../dmd/generated/linux/release/64/../../../../../phobos/std/format/spec.d(258):        scope variable `this` assigned to non-scope parameter `e` calling `put`
source/dub/internal/configy/Exceptions.d(335): Deprecation: `@safe` function `formatMessage` calling `formattedWrite`
../dmd/generated/linux/release/64/../../../../../phobos/std/format/write.d(537):        which calls `std.format.spec.FormatSpec!char.FormatSpec.writeUpToNextSpec!(void delegate(in char[]) @safe).writeUpToNextSpec`
../dmd/generated/linux/release/64/../../../../../phobos/std/format/spec.d(258):        which wouldn't be `@safe` because of:
../dmd/generated/linux/release/64/../../../../../phobos/std/format/spec.d(258):        scope variable `this` assigned to non-scope parameter `e` calling `put`
source/dub/internal/dyaml/stdsumtype.d(2086): Error: static assert:  "No matching handler for types `(const(Repository))`"
source/dub/internal/dyaml/stdsumtype.d(1717):        instantiated from here: `matchImpl!(const(SumType!(VersionRange, NativePath, Repository)))`
source/dub/recipe/packagerecipe.d(736):        instantiated from here: `match!(const(SumType!(VersionRange, NativePath, Repository)))`
source/dub/recipe/packagerecipe.d(177):        5 recursive instantiations from here: `clone!(PackageRecipe)`
pbackus commented 1 year ago

This is currently blocking all PRs to Phobos.

pbackus commented 1 year ago

Ah, never mind, it's my PR's fault.