<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Only the swift formula. But could be something with the same link name etc. etc.<div class=""><br class=""></div><div class="">If seen stranger things in my time.<div class=""><div><br class=""><blockquote type="cite" class=""><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I would certainly *hope* no brew package is causing a copy of the Swift stdlibs to end up in usr/local?<div class=""><br class=""></div><div class="">&nbsp;- Daniel</div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Jan 8, 2016, at 10:04 AM, Max Howell &lt;<a href="mailto:max.howell@apple.com" class="">max.howell@apple.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I’d guess that something in /usr/local/include or lib was getting selected instead of the correct swift libraries? Unless otherwise specified /usr/local is first in the search paths.<div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Jan 8, 2016, at 8:43 AM, Daniel Dunbar &lt;<a href="mailto:daniel_dunbar@apple.com" class="">daniel_dunbar@apple.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">That is very interesting information. I don't see offhand how a brew package could cause this problem, but if you see it again (esp. if you discover what package it was) please let us know!<div class=""><br class=""></div><div class="">&nbsp;- Daniel</div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Jan 8, 2016, at 7:32 AM, Ryan Lovelett &lt;<a href="mailto:swift-dev@ryan.lovelett.me" class="">swift-dev@ryan.lovelett.me</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class="">


<title class=""></title>

<div class=""><div class="">Ok that was a real facepalm then drag your hand down your face for emphasis moment.<br class=""></div>
<div class="">&nbsp;</div>
<div class="">The swift file I was trying to compile was called `test.swift` which would become `test` once a linked executable. However I was in the root of the&nbsp;<a href="https://github.com/apple/swift" class="">https://github.com/apple/swift</a>&nbsp;repository that already has a `test` directory. That is why it couldn't link. Sigh. Once I renamed it to `ryan` it compiled and linked just fine.<br class=""></div>
<div class="">&nbsp;</div>
<div class="">Which then led me back to the actual problem, i.e., could not build swiftpm. Still not sure <b class=""><i class="">exactly</i></b> what was causing the issue but I was able to get past it.<br class=""></div>
<div class="">&nbsp;</div>
<div class="">I started comparing the configuration, home brew, env config, etc, of my work laptop (that didn't work) and my personal laptop (that did work) and I noticed that my work machine had a bunch of homebrew packages that my personal didn't. I uninstalled everything on my work laptop that wasn't on my personal machine. Voila, it builds again.<br class=""></div>
<div class="">&nbsp;</div>
<div class="">Apologies for the radio silence. And thank you for all the support that you were not required to give; it is appreciated.</div>
<div class="">&nbsp;</div>
<div class="">&nbsp;</div>
<div class="">On Thu, Jan 7, 2016, at 11:37 AM, Max Howell wrote:<br class=""></div>
<blockquote type="cite" class=""><div class=""><blockquote type="cite" class=""><div class=""><span class="font" style="font-family:Helvetica"><span class="size" style="font-size:12px">ld: can't open output file for writing: test</span></span><br class=""></div>
</blockquote></div>
<div class="">swiftc can’t write the output to the current directory. When you run this is your current directory writable?<br class=""></div>
</blockquote><div class="">&nbsp;</div>
</div>

</div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div></div></body></html>