Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
baryluk opened this issue Apr 23, 2022 · 0 comments

Comments

@baryluk
Copy link

baryluk commented Apr 23, 2022

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.

@baryluk baryluk changed the title gdc 11 not compiling: gdc 11 not compiling: error: module std.json import ‘JSONType’ not found Apr 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant