<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>At the end of the configure step there might be a message that 
starts with “Don’t worry! This will not affect your build in any way”. 
That’s as less alarming as I could make it :).</div></blockquote><div><br></div><div>I do see that message, but apparently it refers only to the immediately preceding warning, namely</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>configure: WARNING:<br>There are some differences between the toolchain configured by "configure" (hadrian/cfg/default.target) and the toolchain configured by the "ghc-toolchain" program (hadrian/cfg/default.target.ghc-toolchain).</div></blockquote><div><br></div><div>It did nothing to reassure me about earlier errors in the configure stuff; it seemed to be about something different.</div><div><br></div><div>Suggestion</div><div><ul><li>Instead of "This will not affect..." say "This difference in toolchain output won't affect...", so the target of "This" is clearer.</li><li>Suppress these gcc errors.  You can switch them on in your build!</li></ul><div>Simon<br></div></div><div><br></div><div><br></div>

</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 7 Aug 2023 at 10:57, Rodrigo Mesquita <<a href="mailto:rodrigo.m.mesquita@gmail.com">rodrigo.m.mesquita@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"><div>Thanks for pointing this out, Simon<div><br></div><div>What you’ve pasted is the trace of the ghc-toolchain program.</div><div>We should probably lower the verbosity after !10976 lands, but in the meantime it’s just useful to debug mostly CI.</div><div><br></div><div>At the end of the configure step there might be a message that starts with “Don’t worry! This will not affect your build in any way”. That’s as less alarming as I could make it :).</div><div><br></div><div>If you do see the warning, it’s due to a discrepancy between the output produced by configure and the one produced by ghc-toolchain:</div><div>We’re fixing all the discrepancies caught by CI in !10976 — after which we’ll always validate these discrepancies in CI, to ensure ghc-toolchain is kept up to date with configure, while configure still configures toolchains.</div><div><br></div><div>I’ve also been busy writing the blog about this. It should come out soon enough.</div><div><br></div><div>Rodrigo<br><div><br><blockquote type="cite"><div>On 7 Aug 2023, at 10:50, Simon Peyton Jones <<a href="mailto:simon.peytonjones@gmail.com" target="_blank">simon.peytonjones@gmail.com</a>> wrote:</div><br><div><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Rodrigo</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">I'm getting lots of errors from ./configure, see below. <br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Seems to be something to do with your toolchain stuff?  I'm lost.  Should I worry? If not, could they be made to look less alarming somehow?</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Simon</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Entering: checking for C compiler<br>  checking for -Qunused-arguments support...<br>  Entering: checking for -Qunused-arguments support<br>    Execute: /usr/bin/gcc -Qunused-arguments -c -o /tmp/tmp0/test.o /tmp/tmp0/test.o.c<br>    Command failed: /usr/bin/gcc -Qunused-arguments -c -o /tmp/tmp0/test.o /tmp/tmp0/test.o.c<br>Exited with code 1<br><br>  found for -Qunused-arguments support: Cc {ccProgram = Program {prgPath = "/usr/bin/gcc", prgFlags = []}}<br>  checking whether Cc supports --target...<br>  Entering: checking whether Cc supports --target<br>    Execute: /usr/bin/gcc -Werror --target=x86_64-unknown-linux -c -o /tmp/tmp0/test.o /tmp/tmp0/test.o.c<br>    Command failed: /usr/bin/gcc -Werror --target=x86_64-unknown-linux -c -o /tmp/tmp0/test.o /tmp/tmp0/test.o.c<br>Exited with code 1<br><br>  found whether Cc supports --target: Cc {ccProgram = Program {prgPath = "/usr/bin/gcc", prgFlags = []}}<br>  checking whether Cc works...<br>  Entering: checking whether Cc works<br>    Execute: /usr/bin/gcc -c -o /tmp/tmp0/test.o /tmp/tmp0/test.o.c<br>  found whether Cc works: ()<br>  checking for C99 support...<br>  Entering: checking for C99 support<br>    Execute: /usr/bin/gcc -c -o /tmp/tmp0/test.o /tmp/tmp0/test.o.c<br>  found for C99 support: ()<br>  checking whether cc supports extra via-c flags...<br>  Entering: checking whether cc supports extra via-c flags<br>    Execute: /usr/bin/gcc -c -fwrapv -fno-builtin -Werror -x c -o /tmp/tmp0/test.o /tmp/tmp0/test.c<br>  found whether cc supports extra via-c flags: ()<br>found for C compiler: Cc {ccProgram = Program {prgPath = "/usr/bin/gcc", prgFlags = []}}<br>checking for C++ compiler...<br>Entering: checking for C++ compiler<br>  x86_64-unknown-linux-g++ not found in search path<br>  x86_64-unknown-linux-clang++ not found in search path<br>  x86_64-unknown-linux-c++ not found in search path<br>  checking whether C++ supports --target...<br>  Entering: checking whether C++ supports --target<br>    Execute: /usr/bin/g++ -Werror --target=x86_64-unknown-linux -c -o /tmp/tmp0/test.o /tmp/tmp0/test.o.cpp<br>    Command failed: /usr/bin/g++ -Werror --target=x86_64-unknown-linux -c -o /tmp/tmp0/test.o /tmp/tmp0/test.o.cpp<br>Exited with code 1<br><br>  found whether C++ supports --target: Cxx {cxxProgram = Program {prgPath = "/usr/bin/g++", prgFlags = []}}<br>  Execute: /usr/bin/g++ -c -o /tmp/tmp0/test.o /tmp/tmp0/test.o.cpp<br>found for C++ compiler: Cxx {cxxProgram = Program {prgPath = "/usr/bin/g++", prgFlags = []}}<br>checking for C preprocessor...<br></div></div>
</div></blockquote></div><br></div></div></blockquote></div>