<div dir="ltr"><div>I don&#39;t know if it&#39;s related, but I recently added -ticky and -DTICKY_TICKY to that way in <a href="http://ways.mk">ways.mk</a>. Commit: 460abd75c</div><div> </div><div>I simultaneously hope this does and does not help :)</div>

<div> </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 3, 2013 at 10:42 AM, Gabor Greif <span dir="ltr">&lt;<a href="mailto:ggreif@gmail.com" target="_blank">ggreif@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Ian,<br>
<br>
I am getting linker errors when bootstrapping HEAD with a recent<br>
v7.7-20130220 GHC. This is a RHEL5 system:<br>
<br>
&quot;inplace/bin/ghc-stage1&quot; -package-name rts -shared -dynamic -dynload<br>
deploy -no-auto-link-packages -Lrts/dist/build -lffi  -optl-Wl,-rpath<br>
-optl-Wl,&#39;$ORIGIN&#39; `cat rts/libs.depend`<br>
rts/dist/build/Adjustor.debug_dyn_o rts/dist/build/Arena.debug_dyn_o<br>
rts/dist/build/Capability.debug_dyn_o<br>
rts/dist/build/ClosureFlags.debug_dyn_o<br>
rts/dist/build/Disassembler.debug_dyn_o<br>
rts/dist/build/FileLock.debug_dyn_o<br>
rts/dist/build/FrontPanel.debug_dyn_o<br>
rts/dist/build/Globals.debug_dyn_o rts/dist/build/Hash.debug_dyn_o<br>
rts/dist/build/Hpc.debug_dyn_o rts/dist/build/HsFFI.debug_dyn_o<br>
rts/dist/build/Inlines.debug_dyn_o<br>
rts/dist/build/Interpreter.debug_dyn_o<br>
rts/dist/build/LdvProfile.debug_dyn_o<br>
rts/dist/build/Linker.debug_dyn_o rts/dist/build/Messages.debug_dyn_o<br>
rts/dist/build/OldARMAtomic.debug_dyn_o<br>
rts/dist/build/Papi.debug_dyn_o rts/dist/build/Printer.debug_dyn_o<br>
rts/dist/build/ProfHeap.debug_dyn_o<br>
rts/dist/build/Profiling.debug_dyn_o<br>
rts/dist/build/Proftimer.debug_dyn_o<br>
rts/dist/build/RaiseAsync.debug_dyn_o<br>
rts/dist/build/RetainerProfile.debug_dyn_o<br>
rts/dist/build/RetainerSet.debug_dyn_o<br>
rts/dist/build/RtsAPI.debug_dyn_o<br>
rts/dist/build/RtsDllMain.debug_dyn_o<br>
rts/dist/build/RtsFlags.debug_dyn_o rts/dist/build/RtsMain.debug_dyn_o<br>
rts/dist/build/RtsMessages.debug_dyn_o<br>
rts/dist/build/RtsStartup.debug_dyn_o<br>
rts/dist/build/RtsUtils.debug_dyn_o<br>
rts/dist/build/Schedule.debug_dyn_o rts/dist/build/Sparks.debug_dyn_o<br>
rts/dist/build/Stable.debug_dyn_o rts/dist/build/Stats.debug_dyn_o<br>
rts/dist/build/StgCRun.debug_dyn_o<br>
rts/dist/build/StgPrimFloat.debug_dyn_o rts/dist/build/STM.debug_dyn_o<br>
rts/dist/build/Task.debug_dyn_o<br>
rts/dist/build/ThreadLabels.debug_dyn_o<br>
rts/dist/build/ThreadPaused.debug_dyn_o<br>
rts/dist/build/Threads.debug_dyn_o rts/dist/build/Ticky.debug_dyn_o<br>
rts/dist/build/Timer.debug_dyn_o rts/dist/build/Trace.debug_dyn_o<br>
rts/dist/build/Weak.debug_dyn_o rts/dist/build/WSDeque.debug_dyn_o<br>
rts/dist/build/hooks/FlagDefaults.debug_dyn_o<br>
rts/dist/build/hooks/MallocFail.debug_dyn_o<br>
rts/dist/build/hooks/OnExit.debug_dyn_o<br>
rts/dist/build/hooks/OutOfHeap.debug_dyn_o<br>
rts/dist/build/hooks/StackOverflow.debug_dyn_o<br>
rts/dist/build/sm/BlockAlloc.debug_dyn_o<br>
rts/dist/build/sm/Compact.debug_dyn_o<br>
rts/dist/build/sm/Evac.debug_dyn_o rts/dist/build/sm/GCAux.debug_dyn_o<br>
rts/dist/build/sm/GC.debug_dyn_o rts/dist/build/sm/GCUtils.debug_dyn_o<br>
rts/dist/build/sm/MarkWeak.debug_dyn_o<br>
rts/dist/build/sm/MBlock.debug_dyn_o<br>
rts/dist/build/sm/Sanity.debug_dyn_o<br>
rts/dist/build/sm/Scav.debug_dyn_o<br>
rts/dist/build/sm/Storage.debug_dyn_o<br>
rts/dist/build/sm/Sweep.debug_dyn_o<br>
rts/dist/build/eventlog/EventLog.debug_dyn_o<br>
rts/dist/build/posix/GetEnv.debug_dyn_o<br>
rts/dist/build/posix/GetTime.debug_dyn_o<br>
rts/dist/build/posix/Itimer.debug_dyn_o<br>
rts/dist/build/posix/OSMem.debug_dyn_o<br>
rts/dist/build/posix/OSThreads.debug_dyn_o<br>
rts/dist/build/posix/Select.debug_dyn_o<br>
rts/dist/build/posix/Signals.debug_dyn_o<br>
rts/dist/build/posix/TTY.debug_dyn_o<br>
rts/dist/build/Apply.debug_dyn_o rts/dist/build/Exception.debug_dyn_o<br>
rts/dist/build/HeapStackCheck.debug_dyn_o<br>
rts/dist/build/PrimOps.debug_dyn_o<br>
rts/dist/build/StgMiscClosures.debug_dyn_o<br>
rts/dist/build/StgStartup.debug_dyn_o<br>
rts/dist/build/StgStdThunks.debug_dyn_o<br>
rts/dist/build/Updates.debug_dyn_o<br>
rts/dist/build/AutoApply.debug_dyn_o  -o<br>
rts/dist/build/<a href="http://libHSrts_debug-ghc7.7.20130402.so" target="_blank">libHSrts_debug-ghc7.7.20130402.so</a><br>
/usr/bin/ld: rts/dist/build/Schedule.dyn_o: relocation R_X86_64_PC32<br>
against `StgRun&#39; can not be used when making a shared object;<br>
recompile with -fPIC<br>
/usr/bin/ld: final link failed: Bad value<br>
collect2: ld returned 1 exit status<br>
<br>
Apparently stage1 builds fine, not sure what can cause this.<br>
<br>
Any idea?<br>
<br>
Cheers,<br>
<br>
    Gabor<br>
<br>
_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/ghc-devs" target="_blank">http://www.haskell.org/mailman/listinfo/ghc-devs</a><br>
</blockquote></div><br></div>