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 ldc #28

Open
lunik1 opened this issue Dec 12, 2024 · 1 comment
Open

Build failure with ldc #28

lunik1 opened this issue Dec 12, 2024 · 1 comment

Comments

@lunik1
Copy link

lunik1 commented Dec 12, 2024

I cannot get trash-d to build with ldc2.

Reproduction:

Running

dub build --compiler=ldc2

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 ldc2 for x86_64.
    Building trash-d 19.0.0: building configuration [application]
     Linking trash
/nix/store/bwkb907myixfzzykp21m9iczkhrq5pfy-binutils-2.43.1/bin/ld: cannot find -lrt: No such file or directory
/nix/store/bwkb907myixfzzykp21m9iczkhrq5pfy-binutils-2.43.1/bin/ld: cannot find -ldl: No such file or directory
/nix/store/bwkb907myixfzzykp21m9iczkhrq5pfy-binutils-2.43.1/bin/ld: cannot find -lpthread: No such file or directory
/nix/store/bwkb907myixfzzykp21m9iczkhrq5pfy-binutils-2.43.1/bin/ld: cannot find -lm: No such file or directory
/nix/store/bwkb907myixfzzykp21m9iczkhrq5pfy-binutils-2.43.1/bin/ld: cannot find -lc: No such file or directory
collect2: error: ld returned 1 exit status
Error: /nix/store/4apajimszc47rxwcpvc3g3rj2icinl71-gcc-wrapper-13.3.0/bin/cc failed with status: 1
Error ldc2 failed with exit code 1.

dub version: 1.38.1
ldc version: 1.39.0
OS: Linux x86_64 (NixOS unstable/25.05)

@rushsteve1
Copy link
Owner

Hmm this is the weird cross section where this issue could be caused by Nix, D, Dub, LLD, or Trash-D and it's hard to tell which of them is causing this.

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