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

When vecN is used with tuples, 'dub test' fails. #89

Open
KanzakiKino opened this issue Aug 15, 2019 · 0 comments
Open

When vecN is used with tuples, 'dub test' fails. #89

KanzakiKino opened this issue Aug 15, 2019 · 0 comments

Comments

@KanzakiKino
Copy link

I having run dub test, many linker errors happen.

Source

/dub.json

{
  "name": "temp",
  "dependencies": {
    "gl3n": "~>1.3.1"
  }
}

/src/main.d

import std;
import gl3n.linalg;

void main() {
  Tuple!vec2 tuple;
}

Output

$ dub test
No source files found in configuration 'library'. Falling back to "dub -b unittest".
Performing "unittest" build using /usr/bin/dmd for x86_64.
gl3n 1.3.1: target for configuration "library" is up to date.
temp ~master: building configuration "application"...
Linking...
/usr/bin/ld: .dub/build/application-unittest-linux.posix-x86_64-dmd_2087-6042B5CA26865B98B64101D410178581/temp.o: in function `_D4gl3n6linalg__T6VectorTfVii2ZQo20__unittest_L388_C5_1FNaNbNfZv':
/home/username/temp/../.dub/packages/gl3n-1.3.1/gl3n/gl3n/linalg.d:392: undefined reference to `_D4gl3n6linalg__T6VectorTfVii3ZQo__T10opDispatchVAyaa6_7879627a7972ZQBgMxFNaNbNdNiNfZSQDgQDe__TQDaTfVii6ZQDk'
/usr/bin/ld: /home/username/temp/../.dub/packages/gl3n-1.3.1/gl3n/gl3n/linalg.d:396: undefined reference to `_D4gl3n6linalg__T6VectorTfVii4ZQo__T10opDispatchVAyaa6_7767797a6178ZQBgMxFNaNbNdNiNfZSQDgQDe__TQDaTfVii6ZQDk'
/usr/bin/ld: .dub/build/application-unittest-linux.posix-x86_64-dmd_2087-6042B5CA26865B98B64101D410178581/temp.o: in function `_D4gl3n6linalg__T6VectorTfVii6ZQo20__unittest_L388_C5_2FNaNbNfZv':
/home/username/temp/../.dub/packages/gl3n-1.3.1/gl3n/gl3n/linalg.d:392: undefined reference to `_D4gl3n6linalg__T6VectorTfVii3ZQo__T10opDispatchVAyaa6_7879627a7972ZQBgMxFNaNbNdNiNfZSQDgQDe__TQDaTfVii6ZQDk'
/usr/bin/ld: /home/username/temp/../.dub/packages/gl3n-1.3.1/gl3n/gl3n/linalg.d:396: undefined reference to `_D4gl3n6linalg__T6VectorTfVii4ZQo__T10opDispatchVAyaa6_7767797a6178ZQBgMxFNaNbNdNiNfZSQDgQDe__TQDaTfVii6ZQDk'
/usr/bin/ld: .dub/build/application-unittest-linux.posix-x86_64-dmd_2087-6042B5CA26865B98B64101D410178581/temp.o: in function `_D4gl3n6linalg__T6VectorTfVii3ZQo20__unittest_L388_C5_3FNaNbNfZv':
/home/username/temp/../.dub/packages/gl3n-1.3.1/gl3n/gl3n/linalg.d:392: undefined reference to `_D4gl3n6linalg__T6VectorTfVii3ZQo__T10opDispatchVAyaa6_7879627a7972ZQBgMxFNaNbNdNiNfZSQDgQDe__TQDaTfVii6ZQDk'
/usr/bin/ld: /home/username/temp/../.dub/packages/gl3n-1.3.1/gl3n/gl3n/linalg.d:396: undefined reference to `_D4gl3n6linalg__T6VectorTfVii4ZQo__T10opDispatchVAyaa6_7767797a6178ZQBgMxFNaNbNdNiNfZSQDgQDe__TQDaTfVii6ZQDk'
/usr/bin/ld: .dub/build/application-unittest-linux.posix-x86_64-dmd_2087-6042B5CA26865B98B64101D410178581/temp.o: in function `_D4gl3n6linalg__T6VectorTfVii4ZQo20__unittest_L388_C5_4FNaNbNfZv':
/home/username/temp/../.dub/packages/gl3n-1.3.1/gl3n/gl3n/linalg.d:392: undefined reference to `_D4gl3n6linalg__T6VectorTfVii3ZQo__T10opDispatchVAyaa6_7879627a7972ZQBgMxFNaNbNdNiNfZSQDgQDe__TQDaTfVii6ZQDk'
/usr/bin/ld: /home/username/temp/../.dub/packages/gl3n-1.3.1/gl3n/gl3n/linalg.d:396: undefined reference to `_D4gl3n6linalg__T6VectorTfVii4ZQo__T10opDispatchVAyaa6_7767797a6178ZQBgMxFNaNbNdNiNfZSQDgQDe__TQDaTfVii6ZQDk'
/usr/bin/ld: .dub/build/application-unittest-linux.posix-x86_64-dmd_2087-6042B5CA26865B98B64101D410178581/temp.o: in function `_D4gl3n6linalg__T6VectorTfVii5ZQo20__unittest_L388_C5_7FNaNbNfZv':
/home/username/temp/../.dub/packages/gl3n-1.3.1/gl3n/gl3n/linalg.d:392: undefined reference to `_D4gl3n6linalg__T6VectorTfVii3ZQo__T10opDispatchVAyaa6_7879627a7972ZQBgMxFNaNbNdNiNfZSQDgQDe__TQDaTfVii6ZQDk'
/usr/bin/ld: /home/username/temp/../.dub/packages/gl3n-1.3.1/gl3n/gl3n/linalg.d:396: undefined reference to `_D4gl3n6linalg__T6VectorTfVii4ZQo__T10opDispatchVAyaa6_7767797a6178ZQBgMxFNaNbNdNiNfZSQDgQDe__TQDaTfVii6ZQDk'
/usr/bin/ld: .dub/build/application-unittest-linux.posix-x86_64-dmd_2087-6042B5CA26865B98B64101D410178581/temp.o: in function `_D4gl3n6linalg__T6VectorTfVii12ZQp20__unittest_L388_C5_8FNaNbNfZv':
/home/username/temp/../.dub/packages/gl3n-1.3.1/gl3n/gl3n/linalg.d:392: undefined reference to `_D4gl3n6linalg__T6VectorTfVii3ZQo__T10opDispatchVAyaa6_7879627a7972ZQBgMxFNaNbNdNiNfZSQDgQDe__TQDaTfVii6ZQDk'
/usr/bin/ld: /home/username/temp/../.dub/packages/gl3n-1.3.1/gl3n/gl3n/linalg.d:396: undefined reference to `_D4gl3n6linalg__T6VectorTfVii4ZQo__T10opDispatchVAyaa6_7767797a6178ZQBgMxFNaNbNdNiNfZSQDgQDe__TQDaTfVii6ZQDk'
collect2: error: ld returned 1 exit status
Error: linker exited with status 1
/usr/bin/dmd failed with exit code 1.
$ dub --version
DUB version 1.16.0, built on Jul 02 2019
$ dmd --version
DMD64 D Compiler v2.087.0

Copyright (C) 1999-2019 by The D Language Foundation, All Rights Reserved written by Walter Bright
$ uname -r
5.2.1-arch1-1-ARCH
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

1 participant