dlang / dub

Package and build management system for D
MIT License
674 stars 230 forks source link

DUB and gdmd: Invalid SemVer format: 2.076.1 #2183

Open ibara opened 3 years ago

ibara commented 3 years ago

System information

Bug Description

Reported here first: https://issues.dlang.org/show_bug.cgi?id=22381 When gdmd is selected as the dub compiler, builds immediately fail with:

Invalid SemVer format: 2.076.1

This error may have gone unnoticed because dub will always select gdc over gdmd if both are available.

How to reproduce?

$ DC=gdmd dub -b release a80 --cache=local (Or any other dub invocation that uses gdmd to build.)

Expected Behavior

The build should work.

WebFreak001 commented 1 year ago

with GDC 12 and current DUB this seems to fail because:

  1. dmd calls the compiler with an @args.rsp file, which gdmd doesn't understand (should be fixed in gdmd)
  2. dub calls gdmd with -vcolumns, which isn't supported (should be fixed in gdmd) -> https://github.com/D-Programming-GDC/gdmd/pull/14

Here in the dub repository we may want to include tests for ldmd and gdmd