Skip to content

building with the standart dub/dmd compiler fails #37

@egnrse

Description

@egnrse

On arch-linux using the latest dub/dmd package fails when trying to build (or test) this program.

DUB version 1.40.0, built on Apr 21 2025
DMD64 D Compiler v2.111.0

[elia@ArchPC-2T31KIJ trash-d]% dub build
     Warning /home/elia/Documents/Sources/trash-d/dub.json(5:1): versionName: Key is not a valid member of this section. Did you mean: version, versions, versionFilters
    Starting Performing "debug" build using /usr/bin/dmd for x86_64.
    Building trash-d 21.0.0: building configuration [application]
/usr/include/dlang/dmd/std/json.d(149,41): Error: non-constant expression `void`
        string                          str;
                                        ^
/usr/include/dlang/dmd/std/json.d(149,41): Error: non-constant expression `void`
        string                          str;
                                        ^
/usr/include/dlang/dmd/std/json.d(149,41): Error: non-constant expression `void`
        string                          str;
                                        ^
Error /usr/bin/dmd failed with exit code 1.

Using a different compiler (eg. dub build --compiler=ldc2) works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions