dub icon indicating copy to clipboard operation
dub copied to clipboard

Test failures with GDC

Open ibara opened this issue 4 years ago • 5 comments
trafficstars

System information

  • dub version: 1.27.0
  • OS Platform and distribution: OpenBSD
  • compiler version gdc-11.2.0

Bug Description

Below are the two test failures when using running the unittests with GDC:

[INFO] Running /usr/ports/pobj/dub-1.27.0/dub-1.27.0/test/depen-build-settings/...
Performing "debug" build using /usr/local/bin/egdc for x86_64.
depend2 ~master: building configuration "library"...
depend1 ~master: building configuration "library"...
depen-build-settings ~master: building configuration "application"...
Running depen-build-settings/depen-build-settings
core.exception.AssertError@depen-build-settings/source/app.d(10): Assertion failure
----------------
??:? libbacktrace could not find executable to open [0x0]
??:? ???[0xeac4592cdaa]
??:? ???[0xeac45847260]
??:? ???[0xeac45927626]
??:? ???[0xeac45927a45]
??:? ???[0xeac45927c05]
??:? ???[0xeac458472f6]
??:? ???[0xeac45846fb7]
??:? ???[0xffffffffffffffff]
Edit source/app.d to start your project.
depend1_func
depend2_func
Program exited with code 1
[ERROR] Run failure.
[INFO] Building /usr/ports/pobj/dub-1.27.0/dub-1.27.0/test/issue1427-betterC/...
Performing "debug" build using /usr/local/bin/egdc for x86_64.
test ~master: building configuration "application"...
issue1427-betterC/source/app.d:1:28: error: static assert  (false) is false
    1 | version(D_BetterC) {} else static assert(false);
      |                            ^
/usr/local/bin/egdc failed with exit code 1.
[ERROR] Build failure.

How to reproduce?

$ DC=gdc ./run-unittest.sh

Expected Behavior

Tests should not fail.

ibara avatar Oct 16 '21 18:10 ibara

Currently we do not test DUB with GDC for lack of a recent frontend. If you would like to contribute a CI job that test against a recent GDC and the associated patches, it is more than welcome though!

Geod24 avatar Oct 16 '21 18:10 Geod24

Currently we do not test DUB with GDC for lack of a recent frontend. If you would like to contribute a CI job that test against a recent GDC and the associated patches, it is more than welcome though!

GDC is betterC aware though, maybe dub doesn't have the right mapping for the option?

ibuclaw avatar Oct 16 '21 23:10 ibuclaw

@ibuclaw yes you can see no mention of it here: https://github.com/dlang/dub/blob/4906205b6aea0e1883756fcd5145a076961ff9fc/source/dub/compilers/gdc.d

vs LDC: https://github.com/dlang/dub/blob/4906205b6aea0e1883756fcd5145a076961ff9fc/source/dub/compilers/ldc.d#L47

WebFreak001 avatar Oct 17 '21 18:10 WebFreak001

The GDC equivalent would be -fno-druntime, yes?

ibara avatar Oct 17 '21 20:10 ibara

The GDC equivalent would be -fno-druntime, yes?

Yes.

ibuclaw avatar Oct 18 '21 00:10 ibuclaw