<div dir="ltr">The primitive log is empty, nothing is printed to it. The version of vector I'm trying to build is 0.10.9.1, which is currently on hackage. I've also tried building primitive 0.5.2.0 by hand - cloning it from github and then running arm-apple-darwin10-cabal install and it stops at the same error. Nothing is printed to the log file. If I try each step separately (configure, build, install) I can configure fine and building gives this output:<br>








<p class="">Building primitive-0.5.2.0...</p>
<p class="">Preprocessing library primitive-0.5.2.0...</p>
<p class="">[ 1 of 10] Compiling Data.Primitive.Internal.Compat ( Data/Primitive/Internal/Compat.hs, dist-arm/build/Data/Primitive/Internal/Compat.o )</p>
<p class="">[ 2 of 10] Compiling Data.Primitive.MachDeps ( Data/Primitive/MachDeps.hs, dist-arm/build/Data/Primitive/MachDeps.o )</p>
<p class="">[ 3 of 10] Compiling Data.Primitive.Internal.Operations ( Data/Primitive/Internal/Operations.hs, dist-arm/build/Data/Primitive/Internal/Operations.o )</p>
<p class="">[ 4 of 10] Compiling Control.Monad.Primitive ( Control/Monad/Primitive.hs, dist-arm/build/Control/Monad/Primitive.o )</p>
<p class="">[ 5 of 10] Compiling Data.Primitive.Types ( Data/Primitive/Types.hs, dist-arm/build/Data/Primitive/Types.o )</p>
<p class="">[ 6 of 10] Compiling Data.Primitive.Array ( Data/Primitive/Array.hs, dist-arm/build/Data/Primitive/Array.o )</p>
<p class="">[ 7 of 10] Compiling Data.Primitive.ByteArray ( Data/Primitive/ByteArray.hs, dist-arm/build/Data/Primitive/ByteArray.o )</p>
<p class="">[ 8 of 10] Compiling Data.Primitive.Addr ( Data/Primitive/Addr.hs, dist-arm/build/Data/Primitive/Addr.o )</p>
<p class="">[ 9 of 10] Compiling Data.Primitive   ( Data/Primitive.hs, dist-arm/build/Data/Primitive.o )</p>
<p class="">[10 of 10] Compiling Data.Primitive.MutVar ( Data/Primitive/MutVar.hs, dist-arm/build/Data/Primitive/MutVar.o )</p>
<p class="">/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: archive library: dist-arm/build/libHSprimitive-0.5.2.0.a will be fat and ar(1) will not be able to operate on it</p>

<div>In-place registering primitive-0.5.2.0...</div><div><br></div><div>And then installing gives:</div><div>







<p class="">Resolving dependencies...</p>
<p class="">Configuring primitive-0.5.2.0...</p>
<p class="">Failed to install primitive-0.5.2.0</p>
<p class="">Last 10 lines of the build log ( /Users/schell/.cabal/logs/primitive-0.5.2.0.log ):</p>
<p class="">cabal: Error: some packages failed to install:</p>
<p class="">primitive-0.5.2.0 failed during the configure step. The exception was:</p>
<p class="">ExitFailure 127</p></div><div><br></div><div>To me it seems like the line "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: archive library: dist-arm/build/libHSprimitive-0.5.2.0.a will be fat and ar(1) will not be able to operate on it" could be important? Does that sound like it may have something to do with the install failure?</div>
<div> </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Dec 22, 2013 at 2:49 PM, Carter Schonwald <span dir="ltr"><<a href="mailto:carter.schonwald@gmail.com" target="_blank">carter.schonwald@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Oooooo.   What version of vector are you using?  It needs to be the one for ghc HEAD. <div class="HOEnZb"><div class="h5">
<span></span><br><br>On Sunday, December 22, 2013, Carter Schonwald  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Could you also share the primitive log?  Seems like something is happening there. <div>Can't you just build primitive by hand then vector?<span></span><br><br>On Sunday, December 22, 2013, Schell Scivally  wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13.333333969116211px">Ah, cool - I didn't know that the verbosity arg took a parameter. Here is the full output: </span><a href="https://gist.github.com/schell/7c08631f52e1e6f54a39" style="font-family:arial,sans-serif;font-size:13.333333969116211px" target="_blank">https://gist.github.com/schell/7c08631f52e1e6f54a39</a><br>



</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Dec 22, 2013 at 1:13 PM, Carter Schonwald <span dir="ltr"><<a>carter.schonwald@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The -v flag is for cabal.  Be sure to post a link to the full output.  <div><span></span><br><br>On Sunday, December 22, 2013, Schell Scivally  wrote:<br>



</div><div><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hey guys, I thought I had fixed my issues by rebuilding HEAD but it looks like I just went in a circle and now I'm back at the same problem from my first message: <a href="http://www.haskell.org/pipermail/iphone/2013-December/000345.html" target="_blank">http://www.haskell.org/pipermail/iphone/2013-December/000345.html</a><div>





<div><br></div><div>I'm trying to cabal install vector but it's failing while installing primitive. The log file shows no error, so it looks like it's silently erring. My setup is here: <a href="https://gist.github.com/schell/f3a737171ce2f6b1119c" target="_blank">https://gist.github.com/schell/f3a737171ce2f6b1119c</a></div>





<div><div>Just for posterity I'll post the output from `arm-apple-darwin10-cabal install vector`:</div><div><p>Resolving dependencies...</p><p>Configuring primitive-0.5.1.0...</p><p>Failed to install primitive-0.5.1.0</p>





<p>Last 10 lines of the build log ( /Users/schell/.cabal/logs/primitive-0.5.1.0.log ):</p><p>cabal: Error: some packages failed to install:</p><p>primitive-0.5.1.0 failed during the configure step. The exception was:</p>





<p>ExitFailure 127</p><p>vector-0.10.9.1 depends on primitive-0.5.1.0 which failed to install.</p><p>The build log is empty.</p></div></div><div>Furthermore, for a while I was trying to use cabal like `arm-apple-darwin10-cabal --config-file=arm.config install vector`, pointing it to a custom cabal file (one that was just autogenerated the first time I issued the command). This looked like it was working, but it says that the package is already installed. If I don't include the --config-file option it errs like above. </div>





<div><br></div><div>Using arm-apple-darwin10-ghc to build my project is failing because it can't find Data.Vector.Storable but I can't seem to get cabal to install it in the correct location.<br clear="all"><div>




<br>
</div>-- <br>Schell Scivally<br><a href="http://blog.efnx.com" target="_blank">http://blog.efnx.com</a><br><a href="http://github.com/schell" target="_blank">http://github.com/schell</a><br><a href="http://twitter.com/schellsan" target="_blank">http://twitter.com/schellsan</a>
</div></div></div>
</blockquote>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Schell Scivally<br><a href="http://blog.efnx.com" target="_blank">http://blog.efnx.com</a><br><a href="http://github.com/schell" target="_blank">http://github.com/schell</a><br>



<a href="http://twitter.com/schellsan" target="_blank">http://twitter.com/schellsan</a>
</div>
</blockquote></div>
</blockquote>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Schell Scivally<br><a href="http://blog.efnx.com" target="_blank">http://blog.efnx.com</a><br><a href="http://github.com/schell" target="_blank">http://github.com/schell</a><br>
<a href="http://twitter.com/schellsan" target="_blank">http://twitter.com/schellsan</a>
</div>