Skip to content

gdc 11 not compiling: error: module std.json import ‘JSONType’ not found #37

@baryluk

Description

@baryluk

Debian unstable, wit

libgphobos-11-dev:amd64                                     11.2.0-20
gdc-11                                                      11.2.0-20

master @ 655197e

user@debian:~/pb/protobuf-d$ dub build :protoc-gen-d
Performing "debug" build using /usr/bin/gdc for x86_64.
protobuf 0.6.2+commit.3.g655197e: building configuration "protobuf"...
src/google/protobuf/json_decoding.d:3:8: error: module std.json import ‘JSONType’ not found
    3 | import std.json : JSONValue, JSONType;
      |        ^
/usr/bin/gdc failed with exit code 1.

gdc-12 with libgphobos-12-dev 12-20220319-1 from Debian unstable seems to work tho:

user@debian:~/pb/protobuf-d$ DC=gdc-12 dub build :protoc-gen-d
Performing "debug" build using /usr/bin/gdc-12 for x86_64.
protobuf 0.6.2+commit.3.g655197e: building configuration "protobuf"...

So I guess gdc-11 has a bit old Phobos included.

It would be nice to have gdc included in CI tho to catch these things automatically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions