<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 15, 2017 at 5:25 AM, Sumit Raja <span dir="ltr"><<a href="mailto:sumitraja@gmail.com" target="_blank">sumitraja@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I've been playing with ghc 8.2.1 and clang + lld on FreeBSD 11. I<br>
wasn't able to get the installation as per release notes to select lld<br>
instead of gold (will spend more time exploring why when I get a<br>
chance) so I modified the settings file after install. I have builds<br>
running okay but I keep seeing the following:<br>
<br>
[1 of 1] Compiling Main ( hs.hs, hs.o )<br>
Linking hs ...<br>
<br>
<no location info>: error:<br>
Warning: Couldn't figure out linker information!<br>
Make sure you're using GNU ld, GNU gold or the built in<br>
OS X linker, etc.<br>
<br>
I've set up ld.lld39 as the shipped lld is 4.0. Although not<br>
affecting the actual build ("Hello World") but was interested to know<br>
why this was happening. Settings file is below:<br>
<br>
[("GCC extra via C opts", " -fwrapv -fno-builtin"),<br>
("C compiler command", "clang"),<br>
("C compiler flags", " -fno-stack-protector"),<br>
("C compiler link flags", "-L/usr/local/lib -fuse-ld=lld39"),<br>
("C compiler supports -no-pie", "NO"),<br>
("Haskell CPP command","clang"),<br>
("Haskell CPP flags","-E -undef -traditional"),<br>
("ld command", "ld.lld"),<br>
("ld flags", "-L/usr/local/lib"),<br>
("ld supports compact unwind", "YES"),<br>
("ld supports build-id", "YES"),<br>
("ld supports filelist", "NO"),<br>
("ld is GNU ld", "YES"),<br>
("ar command", "/usr/bin/ar"),<br>
("ar flags", "clqs"),<br>
("ar supports at file", "NO"),<br>
("touch command", "touch"),<br>
("dllwrap command", "/bin/false"),<br>
("windres command", "/bin/false"),<br>
("libtool command", "libtool"),<br>
("perl command", "/usr/local/bin/perl"),<br>
("cross compiling", "NO"),<br>
("target os", "OSFreeBSD"),<br>
("target arch", "ArchX86_64"),<br>
("target word size", "8"),<br>
("target has GNU nonexec stack", "True"),<br>
("target has .ident directive", "True"),<br>
("target has subsections via symbols", "False"),<br>
("target has RTS linker", "@HaskellHaveRTSLinker@"),<br>
("Unregisterised", "NO"),<br>
("LLVM llc command", "llc39"),<br>
("LLVM opt command", "opt39")<br>
]<br>
<br>
<br>
Thanks<br>
<br>
Sumit<br>
______________________________<wbr>_________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/haskell-<wbr>cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div><br></div><div class="gmail_extra">On a quest for building GHC with clang, I've fixed almost identical warning, see <a href="https://phabricator.haskell.org/D3840">https://phabricator.haskell.org/D3840</a><br></div><div class="gmail_extra">There should be a similar case expression for a linker tool too, I presume.<br></div></div>