dub
dub copied to clipboard
Test failures with GDC
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.
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!
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 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
The GDC equivalent would be -fno-druntime, yes?
The GDC equivalent would be
-fno-druntime, yes?
Yes.