On Tue, 29 Jan 2019 at 09:52, Rainer Orth <r...@cebitec.uni-bielefeld.de> wrote:
>
> I've seen the new gdc.dg/pr89042?.d tests FAIL in a parallel multilib
> bootstrap on i386-pc-solaris2.11:
>
> +FAIL: gdc.dg/pr89042a.d   -O0  (test for excess errors)
> +UNRESOLVED: gdc.dg/pr89042a.d   -O0  compilation failed to produce executable
> +FAIL: gdc.dg/pr89042a.d   -O0 -frelease  (test for excess errors)
> +UNRESOLVED: gdc.dg/pr89042a.d   -O0 -frelease  compilation failed to produce 
> executable
> +FAIL: gdc.dg/pr89042a.d   -O0 -frelease -g  (test for excess errors)
> +UNRESOLVED: gdc.dg/pr89042a.d   -O0 -frelease -g  compilation failed to 
> produce executable
> +FAIL: gdc.dg/pr89042a.d   -O0 -g  (test for excess errors)
> +UNRESOLVED: gdc.dg/pr89042a.d   -O0 -g  compilation failed to produce 
> executable
> +FAIL: gdc.dg/pr89042a.d   -O1  (test for excess errors)
> +UNRESOLVED: gdc.dg/pr89042a.d   -O1  compilation failed to produce executable
> +FAIL: gdc.dg/pr89042a.d   -O1 -frelease  (test for excess errors)
> [...]
> +FAIL: gdc.dg/pr89042b.d   -O0  (test for excess errors)
> +UNRESOLVED: gdc.dg/pr89042b.d   -O0  compilation failed to produce executable
> +FAIL: gdc.dg/pr89042b.d   -O0 -frelease  (test for excess errors)
> [...]
>
> Undefined                       first referenced
>  symbol                             in file
> main                                /usr/lib/amd64/crt1.o
> ld: fatal: symbol referencing errors
> collect2: error: ld returned 1 exit status
> compiler exited with status 1
> FAIL: gdc.dg/pr89042a.d   -O0  (test for excess errors)
>
> Although they are obviouly compile tests, an attempt is made to link
> them which fails.
>
> As an immediate fix, I've marked them as compile tests explicitly.
> However, the underlying problem is that the gdc testsuite drivers
> (gdc-test.exp in particular) don't save and restore dg-do-what-default
> as they should.  So depending on what driver is run before in a parallel
> make check, it can happen that dg-do-what-default is set to link or run
> from a previous test.
>
> Tested on i386-pc-solaris2.11, installed on mainline.
>

I'll have a look into that, this is OK in the meantime.

Thanks
-- 
Iain

Reply via email to