Unregistered build (was Re: AMD64)

Simon Marlow simonmar at microsoft.com
Wed Jun 16 06:32:36 EDT 2004


On 16 June 2004 11:00, Gerd M wrote:

> Simon Marlow wrote:
>> After hc-build, you should unpack a completely fresh GHC source tree,
>> somewhere else.  Then 'cd' into this tree, and issue the
>> configure/make commands.
> 
> I tried this and got as far as:
>
------------------------------------------------------------------------
> ==fptools== make all -wr;
> in ghc-test2/ghc-6.2.1/libraries/base
>
------------------------------------------------------------------------
> /usr/bin/ld -r -x -o HSbase.o Control/Concurrent_stub.o
> Control/Arrow.o Control/Concurrent.o Control/Concurrent/Chan.o
> Control/Concurrent/MVar.o Control/Concurrent/QSem.o
> Control/Concurrent/QSemN.o Control/Concurrent/SampleVar.o
> Control/Exception.o Control/Monad.o Control/Monad/Cont.o
> Control/Monad/Error.o Control/Monad/Fix.o Control/Monad/Identity.o
> Control/Monad/List.o Control/Monad/RWS.o Control/Monad/Reader.o
> Control/Monad/ST.o Control/Monad/ST/Lazy.o Control/Monad/ST/Strict.o
> Control/Monad/State.o Control/Monad/Trans.o Control/Monad/Writer.o
> Control/Parallel.o Data/Array.o Data/Array/Base.o Data/Array/Diff.o
> Data/Array/IArray.o Data/Array/IO.o Data/Array/IO/Internals.o
> Data/Array/MArray.o Data/Array/ST.o Data/Array/Storable.o
> Data/Array/Unboxed.o Data/Bits.o Data/Bool.o Data/Char.o
> Data/Complex.o Data/Dynamic.o Data/Either.o Data/FiniteMap.o
> Data/Generics.o Data/Generics/Aliases.o Data/Generics/Basics.o
> Data/Generics/Reify.o Data/Generics/Schemes.o Data/Generics/Text.o
> Data/Generics/Twins.o Data/Graph.o Data/HashTable.o Data/IORef.o
> Data/Int.o Data/Ix.o Data/List.o Data/Maybe.o Data/Monoid.o
> Data/PackedString.o Data/Ratio.o Data/STRef.o Data/STRef/Lazy.o
> Data/STRef/Strict.o Data/Set.o Data/Tree.o Data/Tuple.o
> Data/Typeable.o Data/Unique.o Data/Word.o Debug/Trace.o Foreign.o
> Foreign/C.o Foreign/C/Error.o Foreign/C/String.o Foreign/C/Types.o
> Foreign/Concurrent.o Foreign/ForeignPtr.o Foreign/Marshal.o
> Foreign/Marshal/Alloc.o Foreign/Marshal/Array.o
> Foreign/Marshal/Error.o Foreign/Marshal/Pool.o
> Foreign/Marshal/Utils.o Foreign/Ptr.o Foreign/StablePtr.o
> Foreign/Storable.o GHC/Arr.o GHC/Base.o GHC/Conc.o GHC/Dotnet.o
> GHC/Enum.o GHC/Err.o GHC/Exception.o GHC/Exts.o GHC/Float.o
> GHC/ForeignPtr.o GHC/Handle.o GHC/IO.o GHC/IOBase.o GHC/Int.o
> GHC/List.o GHC/Num.o GHC/PArr.o GHC/Pack.o GHC/PrimopWrappers.o
> GHC/Ptr.o GHC/Read.o GHC/Real.o GHC/ST.o GHC/STRef.o GHC/Show.o
> GHC/Stable.o GHC/Storable.o GHC/TopHandler.o GHC/Unicode.o GHC/Weak.o
> GHC/Word.o Numeric.o Prelude.o System/CPUTime.o System/Cmd.o
> System/Console/GetOpt.o System/Directory.o System/Environment.o
> System/Exit.o System/IO.o System/IO/Error.o System/IO/Unsafe.o
> System/Info.o System/Locale.o System/Mem.o System/Mem/StableName.o
> System/Mem/Weak.o System/Posix/Internals.o System/Posix/Signals.o
> System/Posix/Types.o System/Random.o System/Time.o Text/Html.o
> Text/Html/BlockTable.o Text/ParserCombinators/ReadP.o
> Text/ParserCombinators/ReadPrec.o Text/PrettyPrint.o
> Text/PrettyPrint/HughesPJ.o Text/Read.o Text/Read/Lex.o Text/Regex.o
> Text/Regex/Posix.o Text/Show.o Text/Show/Functions.o
> Control/Concurrent_stub.o System/CPUTime_hsc.o
> System/Posix/Signals_hsc.o System/Time_hsc.o Text/Regex/Posix_hsc.o
> Control/Concurrent_stub.o(.text+0x0): In function `forkOS_entry':    
>> multiple definition of `forkOS_entry'
> Control/Concurrent_stub.o(.text+0x0): first defined here
> make[2]: *** [HSbase.o] Error 1
> 
> Anything I can do about that?

It looks like HC bootstrapping is enabled in this tree; it shouldn't be.
Just use a completely fresh source tree, don't configure with
--enable-hc-boot, and don't unpack any HC files into it.

Cheers,
	Simon


More information about the Glasgow-haskell-users mailing list