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

Fails to build with dub and gdc #594

Open
baryluk opened this issue Dec 17, 2023 · 0 comments
Open

Fails to build with dub and gdc #594

baryluk opened this issue Dec 17, 2023 · 0 comments

Comments

@baryluk
Copy link

baryluk commented Dec 17, 2023

dub 1.34.0-1, gdc 13.2.0-7

user@debian:~$ dub run dfmt -- -h
             Package 'dfmt' was not found locally but is available online:
             ---
             Description: Dfmt is a formatter for D source code
             Version: 0.15.1
             ---
Do you want to fetch 'dfmt' now? [Y/n]: y
    Fetching dfmt 0.15.1
             Building package dfmt in /home/user/.dub/packages/dfmt/0.15.1/dfmt/
    Fetching libdparse 0.23.2 (getting selected version)
     Warning Invalid source/import path: /home/user/.dub/packages/dfmt/0.15.1/dfmt/bin
    Starting Performing "debug" build using /usr/bin/gdc for x86_64.
    Building libdparse 0.23.2: building configuration [library]
    Building dfmt 0.15.1: building configuration [application]
   Pre-build Running commands
     Warning Invalid source/import path: /home/user/.dub/packages/dfmt/0.15.1/dfmt/bin
gdc: error: unrecognized command-line option ‘-run’
Error Command failed with exit code 1: /usr/bin/gdc -run "/home/user/.dub/packages/dfmt/0.15.1/dfmt/dubhash.d"
user@debian:~$ cd

If I update to dub bundled with dmd2 2.106.0, then dub run --compiler=gdc dfmt -- -h still fails with same issue.

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