Linker error in stage2
Gabor Greif
ggreif at gmail.com
Wed Apr 3 11:42:08 CEST 2013
Hi Ian,
I am getting linker errors when bootstrapping HEAD with a recent
v7.7-20130220 GHC. This is a RHEL5 system:
"inplace/bin/ghc-stage1" -package-name rts -shared -dynamic -dynload
deploy -no-auto-link-packages -Lrts/dist/build -lffi -optl-Wl,-rpath
-optl-Wl,'$ORIGIN' `cat rts/libs.depend`
rts/dist/build/Adjustor.debug_dyn_o rts/dist/build/Arena.debug_dyn_o
rts/dist/build/Capability.debug_dyn_o
rts/dist/build/ClosureFlags.debug_dyn_o
rts/dist/build/Disassembler.debug_dyn_o
rts/dist/build/FileLock.debug_dyn_o
rts/dist/build/FrontPanel.debug_dyn_o
rts/dist/build/Globals.debug_dyn_o rts/dist/build/Hash.debug_dyn_o
rts/dist/build/Hpc.debug_dyn_o rts/dist/build/HsFFI.debug_dyn_o
rts/dist/build/Inlines.debug_dyn_o
rts/dist/build/Interpreter.debug_dyn_o
rts/dist/build/LdvProfile.debug_dyn_o
rts/dist/build/Linker.debug_dyn_o rts/dist/build/Messages.debug_dyn_o
rts/dist/build/OldARMAtomic.debug_dyn_o
rts/dist/build/Papi.debug_dyn_o rts/dist/build/Printer.debug_dyn_o
rts/dist/build/ProfHeap.debug_dyn_o
rts/dist/build/Profiling.debug_dyn_o
rts/dist/build/Proftimer.debug_dyn_o
rts/dist/build/RaiseAsync.debug_dyn_o
rts/dist/build/RetainerProfile.debug_dyn_o
rts/dist/build/RetainerSet.debug_dyn_o
rts/dist/build/RtsAPI.debug_dyn_o
rts/dist/build/RtsDllMain.debug_dyn_o
rts/dist/build/RtsFlags.debug_dyn_o rts/dist/build/RtsMain.debug_dyn_o
rts/dist/build/RtsMessages.debug_dyn_o
rts/dist/build/RtsStartup.debug_dyn_o
rts/dist/build/RtsUtils.debug_dyn_o
rts/dist/build/Schedule.debug_dyn_o rts/dist/build/Sparks.debug_dyn_o
rts/dist/build/Stable.debug_dyn_o rts/dist/build/Stats.debug_dyn_o
rts/dist/build/StgCRun.debug_dyn_o
rts/dist/build/StgPrimFloat.debug_dyn_o rts/dist/build/STM.debug_dyn_o
rts/dist/build/Task.debug_dyn_o
rts/dist/build/ThreadLabels.debug_dyn_o
rts/dist/build/ThreadPaused.debug_dyn_o
rts/dist/build/Threads.debug_dyn_o rts/dist/build/Ticky.debug_dyn_o
rts/dist/build/Timer.debug_dyn_o rts/dist/build/Trace.debug_dyn_o
rts/dist/build/Weak.debug_dyn_o rts/dist/build/WSDeque.debug_dyn_o
rts/dist/build/hooks/FlagDefaults.debug_dyn_o
rts/dist/build/hooks/MallocFail.debug_dyn_o
rts/dist/build/hooks/OnExit.debug_dyn_o
rts/dist/build/hooks/OutOfHeap.debug_dyn_o
rts/dist/build/hooks/StackOverflow.debug_dyn_o
rts/dist/build/sm/BlockAlloc.debug_dyn_o
rts/dist/build/sm/Compact.debug_dyn_o
rts/dist/build/sm/Evac.debug_dyn_o rts/dist/build/sm/GCAux.debug_dyn_o
rts/dist/build/sm/GC.debug_dyn_o rts/dist/build/sm/GCUtils.debug_dyn_o
rts/dist/build/sm/MarkWeak.debug_dyn_o
rts/dist/build/sm/MBlock.debug_dyn_o
rts/dist/build/sm/Sanity.debug_dyn_o
rts/dist/build/sm/Scav.debug_dyn_o
rts/dist/build/sm/Storage.debug_dyn_o
rts/dist/build/sm/Sweep.debug_dyn_o
rts/dist/build/eventlog/EventLog.debug_dyn_o
rts/dist/build/posix/GetEnv.debug_dyn_o
rts/dist/build/posix/GetTime.debug_dyn_o
rts/dist/build/posix/Itimer.debug_dyn_o
rts/dist/build/posix/OSMem.debug_dyn_o
rts/dist/build/posix/OSThreads.debug_dyn_o
rts/dist/build/posix/Select.debug_dyn_o
rts/dist/build/posix/Signals.debug_dyn_o
rts/dist/build/posix/TTY.debug_dyn_o
rts/dist/build/Apply.debug_dyn_o rts/dist/build/Exception.debug_dyn_o
rts/dist/build/HeapStackCheck.debug_dyn_o
rts/dist/build/PrimOps.debug_dyn_o
rts/dist/build/StgMiscClosures.debug_dyn_o
rts/dist/build/StgStartup.debug_dyn_o
rts/dist/build/StgStdThunks.debug_dyn_o
rts/dist/build/Updates.debug_dyn_o
rts/dist/build/AutoApply.debug_dyn_o -o
rts/dist/build/libHSrts_debug-ghc7.7.20130402.so
/usr/bin/ld: rts/dist/build/Schedule.dyn_o: relocation R_X86_64_PC32
against `StgRun' can not be used when making a shared object;
recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
Apparently stage1 builds fine, not sure what can cause this.
Any idea?
Cheers,
Gabor
More information about the ghc-devs
mailing list