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

Test failures with GDC #2184

Open
ibara opened this issue Oct 16, 2021 · 5 comments
Open

Test failures with GDC #2184

ibara opened this issue Oct 16, 2021 · 5 comments

Comments

@ibara
Copy link
Contributor

ibara commented Oct 16, 2021

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.

@Geod24
Copy link
Member

Geod24 commented Oct 16, 2021

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!

@ibuclaw
Copy link
Member

ibuclaw commented Oct 16, 2021

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?

@WebFreak001
Copy link
Member

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

vs LDC:

tuple(BuildOption.betterC, ["-betterC"]),

@ibara
Copy link
Contributor Author

ibara commented Oct 17, 2021

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

@ibuclaw
Copy link
Member

ibuclaw commented Oct 18, 2021

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

Yes.

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

4 participants