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

Cannot build project with GDC 12 #122

Open
SingingBush opened this issue Dec 13, 2023 · 0 comments
Open

Cannot build project with GDC 12 #122

SingingBush opened this issue Dec 13, 2023 · 0 comments

Comments

@SingingBush
Copy link
Collaborator

With gdc 12

$ gdc-12 --version
gdc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0

Running dub test --coverage --compiler=gdc-12 fails as etc.c.sqlite3 cannot be imported

$ dub test --coverage --compiler=gdc-12
    Fetching d-unit 0.10.2 (getting selected version)
    Fetching odbc 1.0.0 (getting selected version)
    Fetching derelict-pq 2.2.0 (getting selected version)
    Fetching undead 1.1.[8](https://github.com/buggins/ddbc/actions/runs/7193831941/job/19593087831#step:6:9) (getting selected version)
    Fetching derelict-util 2.0.6 (getting selected version)
    Fetching mysql-native 3.1.0 (getting selected version)
             Generating test runner configuration 'ddbc-test-full' for 'full' (staticLibrary).
    Starting Performing "unittest-cov" build using gdc-[12](https://github.com/buggins/ddbc/actions/runs/7193831941/job/19593087831#step:6:13) for x86_64.
    Building derelict-util 2.0.6: building configuration [library]
    Building derelict-pq 2.2.0: building configuration [library]
    Building mysql-native 3.1.0: building configuration [library]
    Building odbc 1.0.0: building configuration [library]
    Building ddbc ~ci/gdc_builds: building configuration [ddbc-test-full]
source/ddbc/drivers/sqliteddbc.d:48:12: error: unable to read module ‘sqlite3’
   48 |     import etc.c.sqlite3;
      |            ^
source/ddbc/drivers/sqliteddbc.d:48:12: note: Expected 'etc/c/sqlite3.d' or 'etc/c/sqlite3/package.d' in one of the following import paths:
   48 |     import etc.c.sqlite3;
      |            ^
import path[0] = /usr/lib/gcc/x86_64-linux-gnu/12/include/d
import path[1] = /home/runner/work/ddbc/ddbc/source
import path[2] = /home/runner/.dub/cache/ddbc/~ci/gdc_builds/code/ddbc-test-full-unittest-cov-SepMcQQP0ppXiSBNVyHZMg
import path[3] = /home/runner/.dub/packages/derelict-pq/2.2.0/derelict-pq/source
import path[4] = /home/runner/.dub/packages/derelict-util/2.0.6/derelict-util/source
import path[5] = /home/runner/.dub/packages/mysql-native/3.1.0/mysql-native/source
import path[6] = /home/runner/.dub/packages/odbc/1.0.0/odbc/source
Error gdc-12 failed with exit code 1.
Error: Process completed with exit code 2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant