Skip to content

building ghc7.0.1.20110217 under x86 solaris fails

creating libHSrts-ghc7.0.1.20110217.so with inplace/bin/ghc-stage1 fails with the solaris linker.

===--- finished updating makefiles
gmake -r --no-print-directory -f ghc.mk all
/bin/sh: cygpath: not found
"rm" -f rts/dist/build/libHSrts-ghc7.0.1.20110217.so
"inplace/bin/ghc-stage1" -package-name rts -shared -dynamic -dynload deploy -no-auto-link-packages `cat rts/libs.depend` rts/dist/build/STM.dyn_o rts/dist/build/Printer.dyn_o rts/dist/build/ThreadPaused.dyn_o rts/dist/build/Ticky.dyn_o rts/dist/build/RtsMain.dyn_o rts/dist/build/ThreadLabels.dyn_o rts/dist/build/Hpc.dyn_o rts/dist/build/HsFFI.dyn_o rts/dist/build/Timer.dyn_o rts/dist/build/RtsDllMain.dyn_o rts/dist/build/RtsMessages.dyn_o rts/dist/build/Proftimer.dyn_o rts/dist/build/Schedule.dyn_o rts/dist/build/Hash.dyn_o rts/dist/build/Threads.dyn_o rts/dist/build/Trace.dyn_o rts/dist/build/RaiseAsync.dyn_o rts/dist/build/Weak.dyn_o rts/dist/build/Task.dyn_o rts/dist/build/StgCRun.dyn_o rts/dist/build/LdvProfile.dyn_o rts/dist/build/ClosureFlags.dyn_o rts/dist/build/RetainerProfile.dyn_o rts/dist/build/Stats.dyn_o rts/dist/build/Interpreter.dyn_o rts/dist/build/FrontPanel.dyn_o rts/dist/build/Messages.dyn_o rts/dist/build/RtsUtils.dyn_o rts/dist/build/Capability.dyn_o rts/dist/build/Globals.dyn_o rts/dist/build/Adjustor.dyn_o rts/dist/build/RtsAPI.dyn_o rts/dist/build/Inlines.dyn_o rts/dist/build/WSDeque.dyn_o rts/dist/build/Linker.dyn_o rts/dist/build/Disassembler.dyn_o rts/dist/build/Profiling.dyn_o rts/dist/build/Papi.dyn_o rts/dist/build/StgPrimFloat.dyn_o rts/dist/build/RtsStartup.dyn_o rts/dist/build/RetainerSet.dyn_o rts/dist/build/Sparks.dyn_o rts/dist/build/RtsFlags.dyn_o rts/dist/build/Stable.dyn_o rts/dist/build/Arena.dyn_o rts/dist/build/ProfHeap.dyn_o rts/dist/build/hooks/RtsOpts.dyn_o rts/dist/build/hooks/StackOverflow.dyn_o rts/dist/build/hooks/RtsOptsEnabled.dyn_o rts/dist/build/hooks/OnExit.dyn_o rts/dist/build/hooks/FlagDefaults.dyn_o rts/dist/build/hooks/MallocFail.dyn_o rts/dist/build/hooks/OutOfHeap.dyn_o rts/dist/build/parallel/ParInit.dyn_o rts/dist/build/parallel/HLComms.dyn_o rts/dist/build/parallel/0Unpack.dyn_o rts/dist/build/parallel/LLComms.dyn_o rts/dist/build/parallel/GranSim.dyn_o rts/dist/build/parallel/Dist.dyn_o rts/dist/build/parallel/Global.dyn_o rts/dist/build/parallel/Parallel.dyn_o rts/dist/build/parallel/ParTicky.dyn_o rts/dist/build/parallel/0Hash.dyn_o rts/dist/build/parallel/ParallelDebug.dyn_o rts/dist/build/parallel/RBH.dyn_o rts/dist/build/parallel/Pack.dyn_o rts/dist/build/sm/Storage.dyn_o rts/dist/build/sm/Evac.dyn_o rts/dist/build/sm/Sanity.dyn_o rts/dist/build/sm/GC.dyn_o rts/dist/build/sm/MarkWeak.dyn_o rts/dist/build/sm/BlockAlloc.dyn_o rts/dist/build/sm/GCUtils.dyn_o rts/dist/build/sm/GCAux.dyn_o rts/dist/build/sm/Sweep.dyn_o rts/dist/build/sm/Compact.dyn_o rts/dist/build/sm/Scav.dyn_o rts/dist/build/sm/MBlock.dyn_o rts/dist/build/eventlog/EventLog.dyn_o rts/dist/build/posix/Select.dyn_o rts/dist/build/posix/Signals.dyn_o rts/dist/build/posix/TTY.dyn_o rts/dist/build/posix/Itimer.dyn_o rts/dist/build/posix/FileLock.dyn_o rts/dist/build/posix/OSThreads.dyn_o rts/dist/build/posix/GetTime.dyn_o rts/dist/build/posix/OSMem.dyn_o   rts/dist/build/StgMiscClosures.dyn_o rts/dist/build/HeapStackCheck.dyn_o rts/dist/build/StgStdThunks.dyn_o rts/dist/build/Exception.dyn_o rts/dist/build/Apply.dyn_o rts/dist/build/Updates.dyn_o rts/dist/build/PrimOps.dyn_o rts/dist/build/StgStartup.dyn_o rts/dist/build/AutoApply.dyn_o  -o rts/dist/build/libHSrts-ghc7.0.1.20110217.so
ld: warning: option -o appears more than once, first setting taken
ld: fatal: file libHSrts-ghc7.0.1.20110217.so: open failed: No such file or directory
ld: fatal: File processing errors. No output written to rts/dist/build/libHSrts-ghc7.0.1.20110217.so
gmake[1]: *** [rts/dist/build/libHSrts-ghc7.0.1.20110217.so] Error 1
gmake: *** [all] Error 2

The actual linker call looks as follows:

 /usr/ccs/bin/ld -V -G -dy -z text -Y P,/usr/ccs/lib:/usr/lib -Qy -o rts/dist/build/libHSrts-ghc7.0.1.20110217.so /usr/lib/crti.o /usr/lib/values-Xa.o /export/local/csw/gcc4/bin/../lib/gcc/i386-pc-solaris2.10/4.3.3/crtbegin.o -L/export/local/csw/gcc4/bin/../lib/gcc/i386-pc-solaris2.10/4.3.3 -L/export/local/csw/gcc4/bin/../lib/gcc -L/export/local/csw/gcc4/bin/../lib/gcc/i386-pc-solaris2.10/4.3.3/../../.. -soname libHSrts-ghc7.0.1.20110217.so rts/dist/build/STM.dyn_o rts/dist/build/Printer.dyn_o rts/dist/build/ThreadPaused.dyn_o rts/dist/build/Ticky.dyn_o rts/dist/build/RtsMain.dyn_o rts/dist/build/ThreadLabels.dyn_o rts/dist/build/Hpc.dyn_o rts/dist/build/HsFFI.dyn_o rts/dist/build/Timer.dyn_o rts/dist/build/RtsDllMain.dyn_o rts/dist/build/RtsMessages.dyn_o rts/dist/build/Proftimer.dyn_o rts/dist/build/Schedule.dyn_o rts/dist/build/Hash.dyn_o rts/dist/build/Threads.dyn_o rts/dist/build/Trace.dyn_o rts/dist/build/RaiseAsync.dyn_o rts/dist/build/Weak.dyn_o rts/dist/build/Task.dyn_o rts/dist/build/StgCRun.dyn_o rts/dist/build/LdvProfile.dyn_o rts/dist/build/ClosureFlags.dyn_o rts/dist/build/RetainerProfile.dyn_o rts/dist/build/Stats.dyn_o rts/dist/build/Interpreter.dyn_o rts/dist/build/FrontPanel.dyn_o rts/dist/build/Messages.dyn_o rts/dist/build/RtsUtils.dyn_o rts/dist/build/Capability.dyn_o rts/dist/build/Globals.dyn_o rts/dist/build/Adjustor.dyn_o rts/dist/build/RtsAPI.dyn_o rts/dist/build/Inlines.dyn_o rts/dist/build/WSDeque.dyn_o rts/dist/build/Linker.dyn_o rts/dist/build/Disassembler.dyn_o rts/dist/build/Profiling.dyn_o rts/dist/build/Papi.dyn_o rts/dist/build/StgPrimFloat.dyn_o rts/dist/build/RtsStartup.dyn_o rts/dist/build/RetainerSet.dyn_o rts/dist/build/Sparks.dyn_o rts/dist/build/RtsFlags.dyn_o rts/dist/build/Stable.dyn_o rts/dist/build/Arena.dyn_o rts/dist/build/ProfHeap.dyn_o rts/dist/build/hooks/RtsOpts.dyn_o rts/dist/build/hooks/StackOverflow.dyn_o rts/dist/build/hooks/RtsOptsEnabled.dyn_o rts/dist/build/hooks/OnExit.dyn_o rts/dist/build/hooks/FlagDefaults.dyn_o rts/dist/build/hooks/MallocFail.dyn_o rts/dist/build/hooks/OutOfHeap.dyn_o rts/dist/build/parallel/ParInit.dyn_o rts/dist/build/parallel/HLComms.dyn_o rts/dist/build/parallel/0Unpack.dyn_o rts/dist/build/parallel/LLComms.dyn_o rts/dist/build/parallel/GranSim.dyn_o rts/dist/build/parallel/Dist.dyn_o rts/dist/build/parallel/Global.dyn_o rts/dist/build/parallel/Parallel.dyn_o rts/dist/build/parallel/ParTicky.dyn_o rts/dist/build/parallel/0Hash.dyn_o rts/dist/build/parallel/ParallelDebug.dyn_o rts/dist/build/parallel/RBH.dyn_o rts/dist/build/parallel/Pack.dyn_o rts/dist/build/sm/Storage.dyn_o rts/dist/build/sm/Evac.dyn_o rts/dist/build/sm/Sanity.dyn_o rts/dist/build/sm/GC.dyn_o rts/dist/build/sm/MarkWeak.dyn_o rts/dist/build/sm/BlockAlloc.dyn_o rts/dist/build/sm/GCUtils.dyn_o rts/dist/build/sm/GCAux.dyn_o rts/dist/build/sm/Sweep.dyn_o rts/dist/build/sm/Compact.dyn_o rts/dist/build/sm/Scav.dyn_o rts/dist/build/sm/MBlock.dyn_o rts/dist/build/eventlog/EventLog.dyn_o rts/dist/build/posix/Select.dyn_o rts/dist/build/posix/Signals.dyn_o rts/dist/build/posix/TTY.dyn_o rts/dist/build/posix/Itimer.dyn_o rts/dist/build/posix/FileLock.dyn_o rts/dist/build/posix/OSThreads.dyn_o rts/dist/build/posix/GetTime.dyn_o rts/dist/build/posix/OSMem.dyn_o rts/dist/build/StgMiscClosures.dyn_o rts/dist/build/HeapStackCheck.dyn_o rts/dist/build/StgStdThunks.dyn_o rts/dist/build/Exception.dyn_o rts/dist/build/Apply.dyn_o rts/dist/build/Updates.dyn_o rts/dist/build/PrimOps.dyn_o rts/dist/build/StgStartup.dyn_o rts/dist/build/AutoApply.dyn_o -lm -lrt -ldl -lgcc_s -lgcc_s /export/local/csw/gcc4/bin/../lib/gcc/i386-pc-solaris2.10/4.3.3/crtend.o /usr/lib/crtn.o
ld: Software Generation Utilities - Solaris Link Editors: 5.10-1.500
ld: warning: option -o appears more than once, first setting taken
ld: fatal: file libHSrts-ghc7.0.1.20110217.so: open failed: No such file or directory
ld: fatal: File processing errors. No output written to rts/dist/build/libHSrts-ghc7.0.1.20110217.so
Trac metadata
Trac field Value
Version 7.0.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Build System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information