[Issue 15849] New: change in std.ui test leads to magic linking error for d_do_test

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Mar 29 22:55:43 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=15849

          Issue ID: 15849
           Summary: change in std.ui test leads to magic linking error for
                    d_do_test
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: greeenify at gmail.com

How to reproduce?

```
git remote add greenify git://github.com:greenify/phobos.git
git fetch greenify
git checkout --track greenify/examples_to_unittest5
```

Now rebuild Phobos and run in dmd

```
make -f posix.mak clean && make -f posix.mak auto-tester-build && make -f
posix.mak auto-tester-test
```

It will result a long error (see below).
The line that toggles the error is 

```
assert(set.byInterval.equal([tuple('A','E'), tuple('a','e')]));
```

It is in a unittest, so it shouldn't affect any script.
Running all tests in Phobos works fine.
It is reproducible on all platforms of autotester. See also the regarding PR:
https://github.com/D-Programming-Language/phobos/pull/4049

```
make -C test -f Makefile
make[1]: Entering directory '/home/xsebi/projects/dlang/dmd/test'
Creating output directory: test_results
Building d_do_test tool
OS: linux
d_do_test.o:d_do_test.d:function
_D3std5regex8internal6parser15__T6ParserTAyaZ6Parser11charsetToIrMFNeS3std3uni38__T13InversionListTS3std3uni8GcPolicyZ13InversionListZv:
error: undefined reference to
'_D3std5regex8internal2ir10getMatcherFNeS3std3uni38__T13InversionListTS3std3uni8GcPolicyZ13InversionListZS3std5regex8internal2ir11CharMatcher'
d_do_test.o:d_do_test.d:function
_D3std5regex8internal6parser15__T6ParserTAyaZ6Parser11charsetToIrMFNeS3std3uni38__T13InversionListTS3std3uni8GcPolicyZ13InversionListZv:
error: undefined reference to '_D3std5regex8internal2ir11CharMatcher6__initZ'
d_do_test.o:d_do_test.d:_D45TypeInfo_S3std5regex8internal2ir11CharMatcher6__initZ:
error: undefined reference to
'_D3std5regex8internal2ir11CharMatcher9__xtoHashFNbNeKxS3std5regex8internal2ir11CharMatcherZm'
d_do_test.o:d_do_test.d:_D45TypeInfo_S3std5regex8internal2ir11CharMatcher6__initZ:
error: undefined reference to
'_D3std5regex8internal2ir11CharMatcher11__xopEqualsFKxS3std5regex8internal2ir11CharMatcherKxS3std5regex8internal2ir11CharMatcherZb'
d_do_test.o:d_do_test.d:function
_D3std5regex8internal6parser15__T8optimizeTaZ8optimizeFKS3std5regex8internal2ir12__T5RegexTaZ5RegexZv:
error: undefined reference to
'_D3std5regex8internal2ir8BitTable6__ctorMFNcS3std3uni38__T13InversionListTS3std3uni8GcPolicyZ13InversionListZS3std5regex8internal2ir8BitTable'
d_do_test.o:d_do_test.d:function
_D3std5regex8internal8thompson260__T11ThompsonOpsTS3std5regex8internal8thompson67__T15ThompsonMatcherTaTS3std5regex8internal2ir12__T5InputTaZ5InputZ15ThompsonMatcherTS3std5regex8internal8thompson67__T15ThompsonMatcherTaTS3std5regex8internal2ir12__T5InputTaZ5InputZ15ThompsonMatcher5StateHVbi1Z39__T2opHVE3std5regex8internal2ir2IRi164Z2opFNePS3std5regex8internal8thompson67__T15ThompsonMatcherTaTS3std5regex8internal2ir12__T5InputTaZ5InputZ15ThompsonMatcherPS3std5regex8internal8thompson67__T15ThompsonMatcherTaTS3std5regex8internal2ir12__T5InputTaZ5InputZ15ThompsonMatcher5StateZb:
error: undefined reference to
'_D3std5regex8internal2ir11wordMatcherFNdZS3std5regex8internal2ir11CharMatcher'
d_do_test.o:d_do_test.d:function
_D3std5regex8internal8thompson260__T11ThompsonOpsTS3std5regex8internal8thompson67__T15ThompsonMatcherTaTS3std5regex8internal2ir12__T5InputTaZ5InputZ15ThompsonMatcherTS3std5regex8internal8thompson67__T15ThompsonMatcherTaTS3std5regex8internal2ir12__T5InputTaZ5InputZ15ThompsonMatcher5StateHVbi1Z39__T2opHVE3std5regex8internal2ir2IRi164Z2opFNePS3std5regex8internal8thompson67__T15ThompsonMatcherTaTS3std5regex8internal2ir12__T5InputTaZ5InputZ15ThompsonMatcherPS3std5regex8internal8thompson67__T15ThompsonMatcherTaTS3std5regex8internal2ir12__T5InputTaZ5InputZ15ThompsonMatcher5StateZb:
error: undefined reference to
'_D3std5regex8internal2ir11wordMatcherFNdZS3std5regex8internal2ir11CharMatcher'
d_do_test.o:d_do_test.d:function
_D3std5regex8internal8thompson260__T11ThompsonOpsTS3std5regex8internal8thompson67__T15ThompsonMatcherTaTS3std5regex8internal2ir12__T5InputTaZ5InputZ15ThompsonMatcherTS3std5regex8internal8thompson67__T15ThompsonMatcherTaTS3std5regex8internal2ir12__T5InputTaZ5InputZ15ThompsonMatcher5StateHVbi1Z39__T2opHVE3std5regex8internal2ir2IRi164Z2opFNePS3std5regex8internal8thompson67__T15ThompsonMatcherTaTS3std5regex8internal2ir12__T5InputTaZ5InputZ15ThompsonMatcherPS3std5regex8internal8thompson67__T15ThompsonMatcherTaTS3std5regex8internal2ir12__T5InputTaZ5InputZ15ThompsonMatcher5StateZb:
error: undefined reference to
'_D3std5regex8internal2ir11wordMatcherFNdZS3std5regex8internal2ir11CharMatcher'
d_do_test.o:d_do_test.d:function
_D3std5regex8internal8thompson260__T11ThompsonOpsTS3std5regex8internal8thompson67__T15ThompsonMatcherTaTS3std5regex8internal2ir12__T5InputTaZ5InputZ15ThompsonMatcherTS3std5regex8internal8thompson67__T15ThompsonMatcherTaTS3std5regex8internal2ir12__T5InputTaZ5InputZ15ThompsonMatcher5StateHVbi1Z39__T2opHVE3std5regex8internal2ir2IRi164Z2opFNePS3std5regex8internal8thompson67__T15ThompsonMatcherTaTS3std5regex8internal2ir12__T5InputTaZ5InputZ15ThompsonMatcherPS3std5regex8internal8thompson67__T15ThompsonMatcherTaTS3std5regex8internal2ir12__T5InputTaZ5InputZ15ThompsonMatcher5StateZb:
error: undefined reference to
'_D3std5regex8internal2ir11wordMatcherFNdZS3std5regex8internal2ir11CharMatcher'
d_do_test.o:d_do_test.d:_D45TypeInfo_S3std8typecons14__T5TupleTaTaZ5Tuple6__initZ:
error: undefined reference to '_D3std8typecons14__T5TupleTaTaZ5Tuple6__initZ'
d_do_test.o:d_do_test.d:function
_D3std8typecons14__T5TupleTaTaZ5Tuple8__xopCmpFKxS3std8typecons14__T5TupleTaTaZ5TupleKxS3std8typecons14__T5TupleTaTaZ5TupleZi:
error: undefined reference to
'_D3std8typecons14__T5TupleTaTaZ5Tuple48__T5opCmpTxS3std8typecons14__T5TupleTaTaZ5TupleZ5opCmpMxFNaNbNiNfxS3std8typecons14__T5TupleTaTaZ5TupleZi'
d_do_test.o:d_do_test.d:function
_D3std8typecons14__T5TupleTaTaZ5Tuple11__xopEqualsFKxS3std8typecons14__T5TupleTaTaZ5TupleKxS3std8typecons14__T5TupleTaTaZ5TupleZb:
error: undefined reference to
'_D3std8typecons14__T5TupleTaTaZ5Tuple51__T8opEqualsTxS3std8typecons14__T5TupleTaTaZ5TupleZ8opEqualsMxFNaNbNiNfxS3std8typecons14__T5TupleTaTaZ5TupleZb'
collect2: error: ld returned 1 exit status
--- errorlevel 1
```

--


More information about the Digitalmars-d-bugs mailing list