[Pkg-haskell-maintainers] Bug#751479: ghc 7.8.2 FTBFS for mips/mipsel

Dejan Latinovic Dejan.Latinovic at imgtec.com
Fri Jun 13 11:42:27 UTC 2014


Package: ghc
Version: 7.8.20140411-5
Tags: experimental patch
Severity: important
Justification: FTBFS
User: debian-mips-dev-discuss at lists.alioth.debian.org
Usertags: mips-patch


While trying to build ghc 7.8.2 on mips/mipsel architecture,
build fails on testing with an error:

> "inplace/bin/ghc-stage1" -package-name rts -shared -dynamic -dynload deploy -no-auto-link-packages  `cat rts/dist/libs.depend` rts/dist/build/Globals.dyn_o rts/dist/build/RtsUtils.dyn_o rts/dist/build/Weak.dyn_o rts/dist/build/Sparks.dyn_o rts/dist/build/Interpreter.dyn_o rts/dist/build/Arena.dyn_o rts/dist/build/Trace.dyn_o rts/dist/build/Hash.dyn_o rts/dist/build/RaiseAsync.dyn_o rts/dist/build/Proftimer.dyn_o rts/dist/build/RtsFlags.dyn_o rts/dist/build/RtsMessages.dyn_o rts/dist/build/RetainerSet.dyn_o rts/dist/build/Task.dyn_o rts/dist/build/RtsDllMain.dyn_o rts/dist/build/StgPrimFloat.dyn_o rts/dist/build/Papi.dyn_o rts/dist/build/HsFFI.dyn_o rts/dist/build/Stats.dyn_o rts/dist/build/StgCRun.dyn_o rts/dist/build/OldARMAtomic.dyn_o rts/dist/build/FileLock.dyn_o rts/dist/build/Disassembler.dyn_o rts/dist/build/WSDeque.dyn_o rts/dist/build/ProfHeap.dyn_o rts/dist/build/Stable.dyn_o rts/dist/build/RtsMain.dyn_o rts/dist/build/Schedule.dyn_o rts/dist/build/RtsAPI.dyn_o rts/dist/build/RtsStartup.dyn_o rts/dist/build/Capability.dyn_o rts/dist/build/Threads.dyn_o rts/dist/build/Hpc.dyn_o rts/dist/build/ThreadLabels.dyn_o rts/dist/build/Messages.dyn_o rts/dist/build/Inlines.dyn_o rts/dist/build/LdvProfile.dyn_o rts/dist/build/Ticky.dyn_o rts/dist/build/Adjustor.dyn_o rts/dist/build/Linker.dyn_o rts/dist/build/RetainerProfile.dyn_o rts/dist/build/ClosureFlags.dyn_o rts/dist/build/CheckUnload.dyn_o rts/dist/build/Profiling.dyn_o rts/dist/build/Timer.dyn_o rts/dist/build/ThreadPaused.dyn_o rts/dist/build/Printer.dyn_o rts/dist/build/STM.dyn_o rts/dist/build/hooks/OutOfHeap.dyn_o rts/dist/build/hooks/MallocFail.dyn_o rts/dist/build/hooks/FlagDefaults.dyn_o rts/dist/build/hooks/OnExit.dyn_o rts/dist/build/hooks/StackOverflow.dyn_o rts/dist/build/sm/MBlock.dyn_o rts/dist/build/sm/Scav.dyn_o rts/dist/build/sm/Compact.dyn_o rts/dist/build/sm/Sweep.dyn_o rts/dist/build/sm/GCAux.dyn_o rts/dist/build/sm/GCUtils.dyn_o rts/dist/build/sm/BlockAlloc.dyn_o rts/dist/build/sm/MarkWeak.dyn_o rts/dist/build/sm/GC.dyn_o rts/dist/build/sm/Sanity.dyn_o rts/dist/build/sm/Evac.dyn_o rts/dist/build/sm/Storage.dyn_o rts/dist/build/eventlog/EventLog.dyn_o rts/dist/build/posix/OSMem.dyn_o rts/dist/build/posix/GetTime.dyn_o rts/dist/build/posix/OSThreads.dyn_o rts/dist/build/posix/Itimer.dyn_o rts/dist/build/posix/TTY.dyn_o rts/dist/build/posix/Signals.dyn_o rts/dist/build/posix/Select.dyn_o rts/dist/build/posix/GetEnv.dyn_o   rts/dist/build/PrimOps.dyn_o rts/dist/build/StgStartup.dyn_o rts/dist/build/Exception.dyn_o rts/dist/build/StgStdThunks.dyn_o rts/dist/build/Apply.dyn_o rts/dist/build/HeapStackCheck.dyn_o rts/dist/build/Updates.dyn_o rts/dist/build/StgMiscClosures.dyn_o rts/dist/build/AutoApply.dyn_o  -o rts/dist/build/libHSrts-ghc7.8.2.so
> /usr/bin/ld: rts/dist/build/Globals.dyn_o: relocation R_MIPS_HI16 against `__gnu_local_gp' can not be used when making a shared object; recompile with -> fPIC
> rts/dist/build/Globals.dyn_o: error adding symbols: Bad value
> collect2: error: ld returned 1 exit status
> make[2]: *** [rts/dist/build/libHSrts-ghc7.8.2.so] Error 1


A patch that adds mips and mipsel into NoSharedLibsPlatformList 
is attached.

After applying this patch,
I was able to successfully build ghc 7.8.2 for mips nad mipsel.


Could you please consider including this patch?

Best regards,
Dejan


More information about the Pkg-haskell-maintainers mailing list