<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin-top:6.0pt;
margin-right:0cm;
margin-bottom:6.0pt;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Plain Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p.Code, li.Code, div.Code
{mso-style-name:Code;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:9.0pt;
font-family:"Courier New";}
span.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:"Courier New";
mso-fareast-language:EN-GB;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
.MsoPapDefault
{mso-style-type:export-only;
margin-top:6.0pt;
margin-right:0cm;
margin-bottom:6.0pt;
margin-left:0cm;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 86.95pt 72.0pt 86.95pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoPlainText">If I add -v3 to the compile line for CString I see ..<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">*** Linker:<o:p></o:p></p>
<p class="MsoPlainText">gcc -fno-stack-protector -DTABLES_NEXT_TO_CODE '-fuse-ld=gold' -Wl,--no-as-needed -nostdlib -Wl,-r -no-pie -nodefaultlibs -Wl<b><span style="color:red">,-no-relax</span></b><span style="color:red">
</span>'-Wl,--build-id=none' -o libraries/ghc-prim/dist-install/build/GHC/CString.o /tmp/ghc17344_0/ghc_4.ldscript<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">and no CString.o is created.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">But previously we had<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">gcc -fno-stack-protector -DTABLES_NEXT_TO_CODE '-fuse-ld=gold' -Wl,--no-as-needed -nostdlib -Wl,-r -no-pie -nodefaultlibs '-Wl,--build-id=none' -o libraries/ghc-prim/dist-install/build/GHC/CString.o /tmp/ghc57765_0/ghc_4.ldscript<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">So maybe it’s that ‘no-relax’ business.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">S<o:p></o:p></p>
<p class="MsoPlainText">| <span lang="EN-US">-----Original Message-----</span></p>
<p class="MsoPlainText">| <span lang="EN-US">From: Simon Peyton Jones</span></p>
<p class="MsoPlainText">| <span lang="EN-US">Sent: 22 August 2018 12:17</span></p>
<p class="MsoPlainText">| <span lang="EN-US">To: Simon Peyton Jones <simonpj@microsoft.com>; ghc-devs <ghc-</span></p>
<p class="MsoPlainText">| <span lang="EN-US">devs@haskell.org></span></p>
<p class="MsoPlainText">| <span lang="EN-US">Subject: RE: Build entirely broken</span></p>
<p class="MsoPlainText">| </p>
<p class="MsoPlainText">| Sigh. I spoke too soon.</p>
<p class="MsoPlainText">| </p>
<p class="MsoPlainText">| Exactly the same thing has happened starting from a clean build.</p>
<p class="MsoPlainText">| </p>
<p class="MsoPlainText">| I'm utterly stuck. Why is CString.o not being built?</p>
<p class="MsoPlainText">| </p>
<p class="MsoPlainText">| S</p>
<p class="MsoPlainText">| </p>
<p class="MsoPlainText">| | -----Original Message-----</p>
<p class="MsoPlainText">| | From: ghc-devs <<a href="mailto:ghc-devs-bounces@haskell.org"><span style="color:windowtext;text-decoration:none">ghc-devs-bounces@haskell.org</span></a>> On Behalf Of Simon</p>
<p class="MsoPlainText">| | Peyton Jones via ghc-devs</p>
<p class="MsoPlainText">| | Sent: 22 August 2018 12:06</p>
<p class="MsoPlainText">| | To: Ömer Sinan Ağacan <<a href="mailto:omeragacan@gmail.com"><span style="color:windowtext;text-decoration:none">omeragacan@gmail.com</span></a>></p>
<p class="MsoPlainText">| | Cc: ghc-devs <<a href="mailto:ghc-devs@haskell.org"><span style="color:windowtext;text-decoration:none">ghc-devs@haskell.org</span></a>></p>
<p class="MsoPlainText">| | Subject: RE: Build entirely broken</p>
<p class="MsoPlainText">| |</p>
<p class="MsoPlainText">| | Panic over. Removing the entire build tree and starting again solved</p>
<p class="MsoPlainText">| it.</p>
<p class="MsoPlainText">| | I have no idea what the original problem was.</p>
<p class="MsoPlainText">| |</p>
<p class="MsoPlainText">| | Sorry for false alarm</p>
<p class="MsoPlainText">| |</p>
<p class="MsoPlainText">| | Simon</p>
<p class="MsoPlainText">| |</p>
<p class="MsoPlainText">| | | -----Original Message-----</p>
<p class="MsoPlainText">| | | From: Ömer Sinan Ağacan <<a href="mailto:omeragacan@gmail.com"><span style="color:windowtext;text-decoration:none">omeragacan@gmail.com</span></a>> | Sent: 22 August</p>
<p class="MsoPlainText">| | 2018 11:37 | To: Simon Peyton Jones <<a href="mailto:simonpj@microsoft.com"><span style="color:windowtext;text-decoration:none">simonpj@microsoft.com</span></a>> | Cc:</p>
<p class="MsoPlainText">| | ghc-devs <<a href="mailto:ghc-devs@haskell.org"><span style="color:windowtext;text-decoration:none">ghc-devs@haskell.org</span></a>> | Subject: Re: Build entirely broken</p>
<p class="MsoPlainText">| | | | I wonder if this could be a problem with your tree? I just did</p>
<p class="MsoPlainText">| | |</p>
<p class="MsoPlainText">| | | git pull</p>
<p class="MsoPlainText">| | | git submodule update --init</p>
<p class="MsoPlainText">| | | make distclean</p>
<p class="MsoPlainText">| | | ./boot</p>
<p class="MsoPlainText">| | | ./configure</p>
<p class="MsoPlainText">| | | make</p>
<p class="MsoPlainText">| | |</p>
<p class="MsoPlainText">| | | and it worked. Note that I tried with "quick" build flavor.</p>
<p class="MsoPlainText">| | |</p>
<p class="MsoPlainText">| | | Ömer</p>
<p class="MsoPlainText">| | |</p>
<p class="MsoPlainText">| | | Simon Peyton Jones via ghc-devs <<a href="mailto:ghc-devs@haskell.org"><span style="color:windowtext;text-decoration:none">ghc-devs@haskell.org</span></a>>, 22 Ağu</p>
<p class="MsoPlainText">| | 2018 | Çar, | 13:12 tarihinde şunu yazdı:</p>
<p class="MsoPlainText">| | | ></p>
<p class="MsoPlainText">| | | > From a clean build I’m getting this > > ld: cannot find |</p>
<p class="MsoPlainText">| | libraries/ghc-prim/dist-install/build/GHC/CString.o:</p>
<p class="MsoPlainText">| | | > No such file or directory</p>
<p class="MsoPlainText">| | | ></p>
<p class="MsoPlainText">| | | > ld: cannot find libraries/ghc-prim/dist-</p>
<p class="MsoPlainText">| install/build/GHC/Classes.o:</p>
<p class="MsoPlainText">| | | > No such file or directory</p>
<p class="MsoPlainText">| | | ></p>
<p class="MsoPlainText">| | | > ld: cannot find libraries/ghc-prim/dist-</p>
<p class="MsoPlainText">| install/build/GHC/Debug.o:</p>
<p class="MsoPlainText">| | | No > such file or directory > > ld: cannot find |</p>
<p class="MsoPlainText">| | libraries/ghc-prim/dist-install/build/GHC/IntWord64.o:</p>
<p class="MsoPlainText">| | | > No such file or directory</p>
<p class="MsoPlainText">| | | ></p>
<p class="MsoPlainText">| | | > ld: cannot find libraries/ghc-prim/dist-</p>
<p class="MsoPlainText">| install/build/GHC/Magic.o:</p>
<p class="MsoPlainText">| | | No > such file or directory > > ld: cannot find > |</p>
<p class="MsoPlainText">| | libraries/ghc-prim/dist-install/build/GHC/PrimopWrappers.o: No such ></p>
<p class="MsoPlainText">| | | file or directory > > ld: cannot find |</p>
<p class="MsoPlainText">| | libraries/ghc-prim/dist-install/build/GHC/Tuple.o: No > such file or</p>
<p class="MsoPlainText">| | | directory > > ld: cannot find |</p>
<p class="MsoPlainText">| | libraries/ghc-prim/dist-install/build/GHC/Types.o: No > such file or</p>
<p class="MsoPlainText">| | | directory > > > > And indeed those files don’t exist. In</p>
<p class="MsoPlainText">| | earlier | builds they were there.</p>
<p class="MsoPlainText">| | | ></p>
<p class="MsoPlainText">| | | > The command line for eg CString was > > "inplace/bin/ghc-</p>
<p class="MsoPlainText">| stage1"</p>
<p class="MsoPlainText">| | | -hisuf hi -osuf o -hcsuf hc -static -O0 -</p>
<p class="MsoPlainText">| | | H64m -Wall -fllvm-fill-undef-with-garbage -Werror -this-unit-</p>
<p class="MsoPlainText">| id</p>
<p class="MsoPlainText">| | | ghc-prim-0.5.3 -hide-all-packages -i -ilibraries/ghc-prim/. - |</p>
<p class="MsoPlainText">| | ilibraries/ghc-prim/dist-install/build -Ilibraries/ghc-prim/dist- |</p>
<p class="MsoPlainText">| | install/build -ilibraries/ghc-prim/dist-install/build/./autogen - |</p>
<p class="MsoPlainText">| | Ilibraries/ghc-prim/dist-install/build/./autogen -Ilibraries/ghc-prim/.</p>
<p class="MsoPlainText">| | | -optP-include -optPlibraries/ghc-prim/dist- |</p>
<p class="MsoPlainText">| | install/build/./autogen/cabal_macros.h -package-id rts -this-unit-id</p>
<p class="MsoPlainText">| | | ghc- prim -XHaskell2010 -O -dcore-lint -dno-debug-output -ticky</p>
<p class="MsoPlainText">| | -no-</p>
<p class="MsoPlainText">| | user-</p>
<p class="MsoPlainText">| | | package-db -rtsopts -Wno-trustworthy-safe -Wno-deprecated-flags</p>
<p class="MsoPlainText">| -</p>
<p class="MsoPlainText">| | | Wnoncanonical-monad-instances -odir libraries/ghc-prim/dist- |</p>
<p class="MsoPlainText">| | install/build -hidir libraries/ghc-prim/dist-install/build -stubdir |</p>
<p class="MsoPlainText">| | libraries/ghc-prim/dist-install/build -split-objs -dynamic-too -c |</p>
<p class="MsoPlainText">| | libraries/ghc-prim/./GHC/CString.hs -o libraries/ghc-prim/dist- |</p>
<p class="MsoPlainText">| | install/build/GHC/CString.o -dyno libraries/ghc-prim/dist- |</p>
<p class="MsoPlainText">| | install/build/GHC/CString.dyn_o > > which looks right.</p>
<p class="MsoPlainText">| | | ></p>
<p class="MsoPlainText">| | | > What’s going on?</p>
<p class="MsoPlainText">| | | ></p>
<p class="MsoPlainText">| | | > This has me totally stalled.</p>
<p class="MsoPlainText">| | | ></p>
<p class="MsoPlainText">| | | > Simonb</p>
<p class="MsoPlainText">| | | ></p>
<p class="MsoPlainText">| | | > _______________________________________________</p>
<p class="MsoPlainText">| | | > ghc-devs mailing list</p>
<p class="MsoPlainText">| | | > <a href="mailto:ghc-devs@haskell.org"><span style="color:windowtext;text-decoration:none">ghc-devs@haskell.org</span></a></p>
<p class="MsoPlainText">| | | ></p>
<p class="MsoPlainText">| | |</p>
<p class="MsoPlainText">| | <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmail.h">
<span style="color:windowtext;text-decoration:none">https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmail.h</span></a></p>
<p class="MsoPlainText">| | | ></p>
<p class="MsoPlainText">| | |</p>
<p class="MsoPlainText">| | askell.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fghc-devs&data=02%7C01%</p>
<p class="MsoPlainText">| | | ></p>
<p class="MsoPlainText">| | |</p>
<p class="MsoPlainText">| | 7Csimonpj%40microsoft.com%7Cd431698f245d4a5027b808d6081b3d6f%7C72f988b</p>
<p class="MsoPlainText">| | | ></p>
<p class="MsoPlainText">| | |</p>
<p class="MsoPlainText">| | f86f141af91ab2d7cd011db47%7C1%7C0%7C636705310415122065&sdata=B3njA</p>
<p class="MsoPlainText">| | | > GGeNNhNxfIkKrXOf7C2ujZzqgA5VN%2BynWL2wZ4%3D&reserved=0</p>
<p class="MsoPlainText">| | _______________________________________________</p>
<p class="MsoPlainText">| | ghc-devs mailing list</p>
<p class="MsoPlainText">| | <a href="mailto:ghc-devs@haskell.org"><span style="color:windowtext;text-decoration:none">ghc-devs@haskell.org</span></a></p>
<p class="MsoPlainText">| |</p>
<p class="MsoPlainText">| | <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmail.h">
<span style="color:windowtext;text-decoration:none">https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmail.h</span></a></p>
<p class="MsoPlainText">| | ask</p>
<p class="MsoPlainText">| | ell.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fghc-</p>
<p class="MsoPlainText">| |</p>
<p class="MsoPlainText">| | devs&data=02%7C01%7Csimonpj%40microsoft.com%7C776e01d283e64a772dbf</p>
<p class="MsoPlainText">| | 08d</p>
<p class="MsoPlainText">| |</p>
<p class="MsoPlainText">| | 6081f3cd0%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636705327589276</p>
<p class="MsoPlainText">| | 520</p>
<p class="MsoPlainText">| | &sdata=Q0OxveXyo8vJZwVIuShj%2Fhur1YOjTfa4EYViHLEUPSA%3D&reserv</p>
<p class="MsoPlainText">| | ed=</p>
<p class="MsoPlainText">| | 0</p>
<p class="MsoPlainText"><o:p> </o:p></p>
</div>
</body>
</html>