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

Build failure with gdc #27

Open
lunik1 opened this issue Dec 12, 2024 · 2 comments
Open

Build failure with gdc #27

lunik1 opened this issue Dec 12, 2024 · 2 comments

Comments

@lunik1
Copy link

lunik1 commented Dec 12, 2024

I cannot get trash-d to build with gdc.

Reproduction:

Running

dub build --compiler=gdc

gives

     Warning /home/corin/code/d/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 gdc for x86_64.
    Building trash-d 19.0.0: building configuration [application]
gdc: error: unrecognized command-line option ‘-preview=dip1000’
Error gdc failed with exit code 1.

dub version: 1.38.1
gdc version: 11.5.0
OS: Linux (NixOS unstable/25.05)

@rushsteve1
Copy link
Owner

This should be resolved by 2537f7b

@lunik1
Copy link
Author

lunik1 commented Dec 21, 2024

I now get this error when building with gdc:

source/app.d:44:30: error: no property 'message' for type 'std.file.FileException'
   44 |                         err(e.message());
      |                              ^
source/trash/opts.d:146:22: error: no property 'message' for type 'std.getopt.GetOptException'
  146 |                 err(e.message());
      |                      ^
source/trash/opts.d:157:39: error: template std.getopt.defaultGetoptFormatter cannot deduce function from argument types !()(OutBuffer, string, Option[], string), candidates>
  157 |                 defaultGetoptFormatter(buf, text, helpInfo.options, "\t%*s  %*s\t%*s%s\x0a");
      |                                       ^
/nix/store/rp0xx170sj64nlyzcxwj2lnb7cjwpf9l-gdc-11.5.0/lib/gcc/x86_64-unknown-linux-gnu/11.5.0/include/d/std/getopt.d:1637:6: note: std.getopt.defaultGetoptFormatter(Output)>
 1637 | void defaultGetoptFormatter(Output)(Output output, string text, Option[] opt)
      |      ^
source/trash/run.d:93:30: error: no property 'message' for type 'std.file.FileException'
   93 |                         err(e.message());
      |                              ^
Error /nix/store/w16jxx0xp442qbah5ndgcshc5sld2yld-gdc-wrapper-11.5.0/bin/gdc failed with exit code 1.

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

2 participants