<div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Wed, Jan 9, 2019 at 3:34 PM Kim Gräsman <<a href="mailto:kim.grasman@gmail.com">kim.grasman@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, Jan 9, 2019 at 4:40 PM Joel E. Denny <<a href="mailto:jdenny.ornl@gmail.com" target="_blank">jdenny.ornl@gmail.com</a>> wrote:<br>
><br>
> On Wed, Jan 9, 2019 at 1:59 AM Kim Gräsman <<a href="mailto:kim.grasman@gmail.com" target="_blank">kim.grasman@gmail.com</a>> wrote:<br>
>><br>
>> Can you dig out more details around why it fails?<br>
><br>
> Sure, here's the lit output for the first three:<br>
><br>
> ```<br>
> FAIL: Clang :: CXX/modules-ts/basic/basic.link/p2/module.cpp (1149 of 13760)<br>
> ******************** TEST 'Clang :: CXX/modules-ts/basic/basic.link/p2/module.cpp' FAILED ********************<br>
> Script:<br>
> --<br>
> : 'RUN: at line 1';   /home/jdenny/ornl/llvm-mono-git-build/bin/clang -cc1 -internal-isystem /home/jdenny/ornl/llvm-mono-git-build/lib/clang/8.0.0/include -nostdsysteminc -std=c++1z -fmodules-ts /home/jdenny/ornl/llvm-mono-git/clang/test/CXX/modules-ts/basic/basic.link/p2/module.cppm -emit-module-interface -o /home/jdenny/ornl/llvm-mono-git-build/tools/clang/test/CXX/modules-ts/basic/basic.link/p2/Output/module.cpp.tmp<br>
> : 'RUN: at line 2';   /home/jdenny/ornl/llvm-mono-git-build/bin/clang -cc1 -internal-isystem /home/jdenny/ornl/llvm-mono-git-build/lib/clang/8.0.0/include -nostdsysteminc -std=c++1z -fmodules-ts -fmodule-file=/home/jdenny/ornl/llvm-mono-git-build/tools/clang/test/CXX/modules-ts/basic/basic.link/p2/Output/module.cpp.tmp /home/jdenny/ornl/llvm-mono-git/clang/test/CXX/modules-ts/basic/basic.link/p2/module.cpp -verify<br>
> --<br>
> Exit Code: 1<br>
><br>
> Command Output (stderr):<br>
> --<br>
> error: 'error' diagnostics seen but not expected:<br>
>   File /home/jdenny/ornl/llvm-mono-git/clang/test/CXX/modules-ts/basic/basic.link/p2/module.cpp Line 13: expected ';' after expression<br>
>   File /home/jdenny/ornl/llvm-mono-git/clang/test/CXX/modules-ts/basic/basic.link/p2/module.cpp Line 13: use of undeclared identifier 'internal_linkage_class'<br>
> 2 errors generated.<br>
<br>
This doesn't make sense to me -- why would a shared build have<br>
different runtime behavior from a static build? I was expecting a<br>
symbol resolution failure of some kind, but this looks like the<br>
compiler comes out broken somehow.<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
The IWYU build fails on a plain undefined reference:<br>
<a href="https://github.com/include-what-you-use/include-what-you-use/pull/632#issuecomment-452011176" rel="noreferrer" target="_blank">https://github.com/include-what-you-use/include-what-you-use/pull/632#issuecomment-452011176</a><br>
<br>
Not sure if these are at all related, but the PCH failures piqued my interest.<br></blockquote><div><br></div><div>I'm not sure if it helps you at this point, but here's the lit output for the remaining failures, most of which are PCH, and all of which represent behavior changes:<br></div><div><br></div><div>```</div><div>FAIL: Clang :: Modules/using-directive.cpp (6307 of 13760)<br>******************** TEST 'Clang :: Modules/using-directive.cpp' FAILED ********************<br>Script:<br>--<br>: 'RUN: at line 1';   /home/jdenny/ornl/llvm-mono-git-build/bin/clang -cc1 -internal-isystem /home/jdenny/ornl/llvm-mono-git-build/lib/clang/8.0.0/include -nostdsysteminc -fmodules -fmodules-local-submodule-visibility -fno-modules-error-recovery -fno-spell-checking -verify /home/jdenny/ornl/llvm-mono-git/clang/test/Modules/using-directive.cpp<br>--<br>Exit Code: 1<br><br>Command Output (stderr):<br>--<br>error: 'error' diagnostics seen but not expected: <br>  File /home/jdenny/ornl/llvm-mono-git/clang/test/Modules/using-directive.cpp Line 41: no member named 'n' in namespace 'c'<br>  File /home/jdenny/ornl/llvm-mono-git/clang/test/Modules/using-directive.cpp Line 47: use of undeclared identifier 'n'<br>  File /home/jdenny/ornl/llvm-mono-git/clang/test/Modules/using-directive.cpp Line 52: use of undeclared identifier 'n'<br>  File /home/jdenny/ornl/llvm-mono-git/clang/test/Modules/using-directive.cpp Line 53: no member named 'n' in the global namespace<br>  File /home/jdenny/ornl/llvm-mono-git/clang/test/Modules/using-directive.cpp Line 55: no member named 'n' in namespace 'c'<br>  File /home/jdenny/ornl/llvm-mono-git/clang/test/Modules/using-directive.cpp Line 61: use of undeclared identifier 'n'<br>6 errors generated.<br><br>--<br><br>********************<br>FAIL: Clang :: PCH/chain-late-anonymous-namespace.cpp (7180 of 13760)<br>******************** TEST 'Clang :: PCH/chain-late-anonymous-namespace.cpp' FAILED ********************<br>Script:<br>--<br>: 'RUN: at line 2';   /home/jdenny/ornl/llvm-mono-git-build/bin/clang -cc1 -internal-isystem /home/jdenny/ornl/llvm-mono-git-build/lib/clang/8.0.0/include -nostdsysteminc -include /home/jdenny/ornl/llvm-mono-git/clang/test/PCH/chain-late-anonymous-namespace.cpp -include /home/jdenny/ornl/llvm-mono-git/clang/test/PCH/chain-late-anonymous-namespace.cpp -fsyntax-only /home/jdenny/ornl/llvm-mono-git/clang/test/PCH/chain-late-anonymous-namespace.cpp<br>: 'RUN: at line 4';   /home/jdenny/ornl/llvm-mono-git-build/bin/clang -cc1 -internal-isystem /home/jdenny/ornl/llvm-mono-git-build/lib/clang/8.0.0/include -nostdsysteminc -chain-include /home/jdenny/ornl/llvm-mono-git/clang/test/PCH/chain-late-anonymous-namespace.cpp -chain-include /home/jdenny/ornl/llvm-mono-git/clang/test/PCH/chain-late-anonymous-namespace.cpp -fsyntax-only /home/jdenny/ornl/llvm-mono-git/clang/test/PCH/chain-late-anonymous-namespace.cpp<br>: 'RUN: at line 6';   /home/jdenny/ornl/llvm-mono-git-build/bin/clang -cc1 -internal-isystem /home/jdenny/ornl/llvm-mono-git-build/lib/clang/8.0.0/include -nostdsysteminc -chain-include /home/jdenny/ornl/llvm-mono-git/clang/test/PCH/chain-late-anonymous-namespace.cpp -chain-include /home/jdenny/ornl/llvm-mono-git/clang/test/PCH/chain-late-anonymous-namespace.cpp -fsyntax-only -fmodules /home/jdenny/ornl/llvm-mono-git/clang/test/PCH/chain-late-anonymous-namespace.cpp<br>--<br>Exit Code: 1<br><br>Command Output (stderr):<br>--<br>/home/jdenny/ornl/llvm-mono-git/clang/test/PCH/chain-late-anonymous-namespace.cpp:43:11: error: use of undeclared identifier 'x'<br>    (void)x;<br>          ^<br>/home/jdenny/ornl/llvm-mono-git/clang/test/PCH/chain-late-anonymous-namespace.cpp:51:9: error: use of undeclared identifier 'y'<br>  (void)y;<br>        ^<br>/home/jdenny/ornl/llvm-mono-git/clang/test/PCH/chain-late-anonymous-namespace.cpp:59:11: error: use of undeclared identifier 'z'<br>    (void)z;<br>          ^<br>3 errors generated.<br><br>--<br><br>********************<br>FAIL: Clang :: PCH/cxx-namespaces.cpp (7215 of 13760)<br>******************** TEST 'Clang :: PCH/cxx-namespaces.cpp' FAILED ********************<br>Script:<br>--<br>: 'RUN: at line 2';   /home/jdenny/ornl/llvm-mono-git-build/bin/clang -cc1 -internal-isystem /home/jdenny/ornl/llvm-mono-git-build/lib/clang/8.0.0/include -nostdsysteminc -include /home/jdenny/ornl/llvm-mono-git/clang/test/PCH/cxx-namespaces.h -fsyntax-only -verify /home/jdenny/ornl/llvm-mono-git/clang/test/PCH/cxx-namespaces.cpp<br>: 'RUN: at line 5';   /home/jdenny/ornl/llvm-mono-git-build/bin/clang -cc1 -internal-isystem /home/jdenny/ornl/llvm-mono-git-build/lib/clang/8.0.0/include -nostdsysteminc -x c++-header -emit-pch -o /home/jdenny/ornl/llvm-mono-git-build/tools/clang/test/PCH/Output/cxx-namespaces.cpp.tmp /home/jdenny/ornl/llvm-mono-git/clang/test/PCH/cxx-namespaces.h<br>: 'RUN: at line 6';   /home/jdenny/ornl/llvm-mono-git-build/bin/clang -cc1 -internal-isystem /home/jdenny/ornl/llvm-mono-git-build/lib/clang/8.0.0/include -nostdsysteminc -include-pch /home/jdenny/ornl/llvm-mono-git-build/tools/clang/test/PCH/Output/cxx-namespaces.cpp.tmp -fsyntax-only -verify /home/jdenny/ornl/llvm-mono-git/clang/test/PCH/cxx-namespaces.cpp<br>: 'RUN: at line 7';   /home/jdenny/ornl/llvm-mono-git-build/bin/clang -cc1 -internal-isystem /home/jdenny/ornl/llvm-mono-git-build/lib/clang/8.0.0/include -nostdsysteminc -include-pch /home/jdenny/ornl/llvm-mono-git-build/tools/clang/test/PCH/Output/cxx-namespaces.cpp.tmp -fsyntax-only -ast-dump-lookups -ast-dump-filter N /home/jdenny/ornl/llvm-mono-git/clang/test/PCH/cxx-namespaces.cpp | /home/jdenny/ornl/llvm-mono-git-build/bin/FileCheck /home/jdenny/ornl/llvm-mono-git/clang/test/PCH/cxx-namespaces.cpp<br>: 'RUN: at line 10';   /home/jdenny/ornl/llvm-mono-git-build/bin/clang -cc1 -internal-isystem /home/jdenny/ornl/llvm-mono-git-build/lib/clang/8.0.0/include -nostdsysteminc -fmodules -x c++-header -emit-pch -o /home/jdenny/ornl/llvm-mono-git-build/tools/clang/test/PCH/Output/cxx-namespaces.cpp.tmp /home/jdenny/ornl/llvm-mono-git/clang/test/PCH/cxx-namespaces.h<br>: 'RUN: at line 11';   /home/jdenny/ornl/llvm-mono-git-build/bin/clang -cc1 -internal-isystem /home/jdenny/ornl/llvm-mono-git-build/lib/clang/8.0.0/include -nostdsysteminc -fmodules -include-pch /home/jdenny/ornl/llvm-mono-git-build/tools/clang/test/PCH/Output/cxx-namespaces.cpp.tmp -fsyntax-only -verify /home/jdenny/ornl/llvm-mono-git/clang/test/PCH/cxx-namespaces.cpp<br>: 'RUN: at line 12';   /home/jdenny/ornl/llvm-mono-git-build/bin/clang -cc1 -internal-isystem /home/jdenny/ornl/llvm-mono-git-build/lib/clang/8.0.0/include -nostdsysteminc -fmodules -include-pch /home/jdenny/ornl/llvm-mono-git-build/tools/clang/test/PCH/Output/cxx-namespaces.cpp.tmp -fsyntax-only -ast-dump-lookups -ast-dump-filter N /home/jdenny/ornl/llvm-mono-git/clang/test/PCH/cxx-namespaces.cpp | /home/jdenny/ornl/llvm-mono-git-build/bin/FileCheck /home/jdenny/ornl/llvm-mono-git/clang/test/PCH/cxx-namespaces.cpp<br>--<br>Exit Code: 1<br><br>Command Output (stderr):<br>--<br>error: 'error' diagnostics seen but not expected: <br>  File /home/jdenny/ornl/llvm-mono-git/clang/test/PCH/cxx-namespaces.cpp Line 17: no member named 'x' in namespace 'N'<br>1 error generated.<br><br>--<br><br>********************<br>FAIL: Clang :: PCH/namespaces.cpp (7294 of 13760)<br>******************** TEST 'Clang :: PCH/namespaces.cpp' FAILED ********************<br>Script:<br>--<br>: 'RUN: at line 2';   /home/jdenny/ornl/llvm-mono-git-build/bin/clang -cc1 -internal-isystem /home/jdenny/ornl/llvm-mono-git-build/lib/clang/8.0.0/include -nostdsysteminc -x c++ -include /home/jdenny/ornl/llvm-mono-git/clang/test/PCH/Inputs/namespaces.h -fsyntax-only /home/jdenny/ornl/llvm-mono-git/clang/test/PCH/namespaces.cpp<br>: 'RUN: at line 5';   /home/jdenny/ornl/llvm-mono-git-build/bin/clang -cc1 -internal-isystem /home/jdenny/ornl/llvm-mono-git-build/lib/clang/8.0.0/include -nostdsysteminc -x c++ -emit-pch -o /home/jdenny/ornl/llvm-mono-git-build/tools/clang/test/PCH/Output/namespaces.cpp.tmp /home/jdenny/ornl/llvm-mono-git/clang/test/PCH/Inputs/namespaces.h<br>: 'RUN: at line 6';   /home/jdenny/ornl/llvm-mono-git-build/bin/clang -cc1 -internal-isystem /home/jdenny/ornl/llvm-mono-git-build/lib/clang/8.0.0/include -nostdsysteminc -x c++ -include-pch /home/jdenny/ornl/llvm-mono-git-build/tools/clang/test/PCH/Output/namespaces.cpp.tmp -fsyntax-only /home/jdenny/ornl/llvm-mono-git/clang/test/PCH/namespaces.cpp<br>--<br>Exit Code: 1<br><br>Command Output (stderr):<br>--<br>/home/jdenny/ornl/llvm-mono-git/clang/test/PCH/namespaces.cpp:18:1: error: unknown type name 't3'; did you mean 'N2::Inner::t3'?<br>t3 *ip5 = &int_val;<br>^~<br>N2::Inner::t3<br>/home/jdenny/ornl/llvm-mono-git/clang/test/PCH/Inputs/namespaces.h:19:17: note: 'N2::Inner::t3' declared here<br>    typedef int t3;<br>                ^<br>/home/jdenny/ornl/llvm-mono-git/clang/test/PCH/namespaces.cpp:20:18: error: use of undeclared identifier 'anon'<br>void(*funp1)() = anon;<br>                 ^<br>/home/jdenny/ornl/llvm-mono-git/clang/test/PCH/namespaces.cpp:25:1: error: unknown type name 'C'<br>C* cp1;<br>^<br>/home/jdenny/ornl/llvm-mono-git/clang/test/PCH/namespaces.cpp:33:5: error: no type named 'C' in namespace 'N3'<br>N3::C *cp2;<br>~~~~^<br>4 errors generated.<br><br>--</div><div>```</div><div><br></div><div></div><div>Joel</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
- Kim<br>
</blockquote></div></div></div>