Failed to load interface for `Prelude'
Pepe already told me that I need SplitObj=NO on Mac OSX. Can someone tell me why? Is the error below due to split objs? Thanks, Joel -- ../compiler/stage1/ghc-inplace -H32m -O2 -istage2/utils -istage2/ basicTypes -istage2/types -istage2/hsSyn -istage2/prelude - istage2/rename -istage2/typecheck -istage2/deSugar -istage2/ coreSyn -istage2/specialise -istage2/simplCore -istage2/stranal - istage2/stgSyn -istage2/simplStg -istage2/codeGen -istage2/main - istage2/profiling -istage2/parser -istage2/cprAnalysis -istage2/ ndpFlatten -istage2/iface -istage2/cmm -istage2/nativeGen - istage2/ghci -Istage2 -DGHCI -package template-haskell -DDEBUGGER - DGHCI_TABLES_NEXT_TO_CODE -threaded -package readline -DUSE_READLINE - cpp -fglasgow-exts -fno-generics -Rghc-timing -I. -Iparser -package unix -package Cabal -package regex-compat -ignore-package lang - recomp -Rghc-timing -H16M '-#include "cutils.h"' -package-name ghc-6.7.20070404 -fgenerics -c basicTypes/OccName.lhs-boot -o stage2/basicTypes/OccName.o-boot -ohi stage2/basicTypes/OccName.hi-boot ../compiler/stage1/ghc-inplace -H32m -O2 -istage2/utils -istage2/ basicTypes -istage2/types -istage2/hsSyn -istage2/prelude - istage2/rename -istage2/typecheck -istage2/deSugar -istage2/ coreSyn -istage2/specialise -istage2/simplCore -istage2/stranal - istage2/stgSyn -istage2/simplStg -istage2/codeGen -istage2/main - istage2/profiling -istage2/parser -istage2/cprAnalysis -istage2/ ndpFlatten -istage2/iface -istage2/cmm -istage2/nativeGen - istage2/ghci -Istage2 -DGHCI -package template-haskell -DDEBUGGER - DGHCI_TABLES_NEXT_TO_CODE -threaded -package readline -DUSE_READLINE - cpp -fglasgow-exts -fno-generics -Rghc-timing -I. -Iparser -package unix -package Cabal -package regex-compat -ignore-package lang - recomp -Rghc-timing -H16M '-#include "cutils.h"' -package-name ghc-6.7.20070404 -fgenerics -O -c utils/Encoding.hs -o stage2/ utils/Encoding.o -ohi stage2/utils/Encoding.hi basicTypes/OccName.lhs-boot:1:0: Failed to load interface for `Prelude': Use -v to see a list of the files searched for. <<ghc: 19113508 bytes, 4 GCs, 123616/123616 avg/max bytes residency (1 samples), 16M in use, 0.01 INIT (0.00 elapsed), 0.03 MUT (0.10 elapsed), 0.02 GC (0.02 elapsed) :ghc>> make[2]: *** [stage2/basicTypes/OccName.o-boot] Error 1 make[2]: *** Waiting for unfinished jobs.... utils/Encoding.hs:1:0: Failed to load interface for `Prelude': Use -v to see a list of the files searched for. <<ghc: 25147464 bytes, 4 GCs, 123268/123268 avg/max bytes residency (1 samples), 16M in use, 0.01 INIT (0.00 elapsed), 0.03 MUT (0.12 elapsed), 0.02 GC (0.02 elapsed) :ghc>> make[2]: *** [stage2/utils/Encoding.o] Error 1 make[1]: *** [stage2] Error 2 make: *** [bootstrap2] Error 2 -- http://wagerlabs.com/
Hello, A long shot, but perhaps worth looking into: The reaction that you report here seems similar to the one reported in trac #1195 Build error on MacOSX (Intel) 10.4.8 for HEAD from 2007-03-05 when compiling with ghc-6.6: http://hackage.haskell.org/trac/ghc/ticket/1195 That ticket reports two cases where some error was apparently ignored, leading to a sequence of error reports like the one you quote. But the first error, which is probably the interesting one, is buried somewhere earlier in the output and needs to be found "manually", somehow. If you find your problem related to #1195, please attach any additional details that may be relevant to that ticket. Best regards Thorkil On Thursday 05 April 2007 15:26, Joel Reymont wrote:
Pepe already told me that I need SplitObj=NO on Mac OSX.
Can someone tell me why?
Is the error below due to split objs?
Thanks, Joel
-- ../compiler/stage1/ghc-inplace -H32m -O2 -istage2/utils -istage2/ basicTypes -istage2/types -istage2/hsSyn -istage2/prelude - istage2/rename -istage2/typecheck -istage2/deSugar -istage2/ coreSyn -istage2/specialise -istage2/simplCore -istage2/stranal - istage2/stgSyn -istage2/simplStg -istage2/codeGen -istage2/main - istage2/profiling -istage2/parser -istage2/cprAnalysis -istage2/ ndpFlatten -istage2/iface -istage2/cmm -istage2/nativeGen - istage2/ghci -Istage2 -DGHCI -package template-haskell -DDEBUGGER - DGHCI_TABLES_NEXT_TO_CODE -threaded -package readline -DUSE_READLINE - cpp -fglasgow-exts -fno-generics -Rghc-timing -I. -Iparser -package unix -package Cabal -package regex-compat -ignore-package lang - recomp -Rghc-timing -H16M '-#include "cutils.h"' -package-name ghc-6.7.20070404 -fgenerics -c basicTypes/OccName.lhs-boot -o stage2/basicTypes/OccName.o-boot -ohi stage2/basicTypes/OccName.hi-boot ../compiler/stage1/ghc-inplace -H32m -O2 -istage2/utils -istage2/ basicTypes -istage2/types -istage2/hsSyn -istage2/prelude - istage2/rename -istage2/typecheck -istage2/deSugar -istage2/ coreSyn -istage2/specialise -istage2/simplCore -istage2/stranal - istage2/stgSyn -istage2/simplStg -istage2/codeGen -istage2/main - istage2/profiling -istage2/parser -istage2/cprAnalysis -istage2/ ndpFlatten -istage2/iface -istage2/cmm -istage2/nativeGen - istage2/ghci -Istage2 -DGHCI -package template-haskell -DDEBUGGER - DGHCI_TABLES_NEXT_TO_CODE -threaded -package readline -DUSE_READLINE - cpp -fglasgow-exts -fno-generics -Rghc-timing -I. -Iparser -package unix -package Cabal -package regex-compat -ignore-package lang - recomp -Rghc-timing -H16M '-#include "cutils.h"' -package-name ghc-6.7.20070404 -fgenerics -O -c utils/Encoding.hs -o stage2/ utils/Encoding.o -ohi stage2/utils/Encoding.hi
basicTypes/OccName.lhs-boot:1:0: Failed to load interface for `Prelude': Use -v to see a list of the files searched for. <<ghc: 19113508 bytes, 4 GCs, 123616/123616 avg/max bytes residency (1 samples), 16M in use, 0.01 INIT (0.00 elapsed), 0.03 MUT (0.10 elapsed), 0.02 GC (0.02 elapsed) :ghc>> make[2]: *** [stage2/basicTypes/OccName.o-boot] Error 1 make[2]: *** Waiting for unfinished jobs....
utils/Encoding.hs:1:0: Failed to load interface for `Prelude': Use -v to see a list of the files searched for. <<ghc: 25147464 bytes, 4 GCs, 123268/123268 avg/max bytes residency (1 samples), 16M in use, 0.01 INIT (0.00 elapsed), 0.03 MUT (0.12 elapsed), 0.02 GC (0.02 elapsed) :ghc>> make[2]: *** [stage2/utils/Encoding.o] Error 1 make[1]: *** [stage2] Error 2 make: *** [bootstrap2] Error 2
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
I think this is the reason. What's my next step? This is Mac OSX 10.4.9 Intel. == make all -r -f Makefile; in /Users/joelr/work/haskell/ghc/ libraries/ base-------------------------------------------------------------------- ----../../compiler/ghc-inplace -H32m -O2 -fglasgow-exts -cpp - Iinclude -"#include" HsBase.h -funbox-strict-fields -package-name base-2.0 -fgenerics -split-objs -c GHC/Err.lhs-boot -o GHC/Err.o- boot -ohi GHC/Err.hi-boot../../compiler/ghc-inplace -H32m -O2 - fglasgow-exts -cpp -Iinclude -"#include" HsBase.h -funbox-strict- fields -package-name base-2.0 -fgenerics -split-objs -c GHC/ PrimopWrappers.hs -o GHC/PrimopWrappers.o -ohi GHC/ PrimopWrappers.higcc -O -c System/CPUTime_hsc.c -o System/ CPUTime_hsc.ogcc -O -c System/Time_hsc.c -o System/Time_hsc.o../../ compiler/ghc-inplace -H32m -O2 -fglasgow-exts -cpp -Iinclude -"#include" HsBase.h -funbox-strict-fields -package-name base-2.0 - fgenerics -split-objs -c GHC/Base.lhs -o GHC/Base.o -ohi GHC/ Base.hi/tmp/ghc4826_0/ghc4826_0.split__178.s:unknown:missing indirect symbols for section (__TEXT,__symbol_stub)make[2]: *** [GHC/ PrimopWrappers.o] Error 1make[2]: *** -- http://wagerlabs.com/
Hello, I'm afraid that this is outside my direct experience. However, looking at http://lists.apple.com/archives/xcode-users/2006/Oct/msg00578.html that google was kind enough to find for me, some assembler code generation error seems indicated. I can see that you use -O2, but not whether -fasm or -fvia-C (if any) is used. As I recall, the default selection between -fasm and -fvia-C at some point depended on the -O level, but also has changed recently. I would therefore suggest that you experiment with -O2 versus -O0 and -fasm versus -fvia-C to see if some combination will not carry you through. Also: 1. It would probably be useful to give us the exact version of ghc that you are using and also the version you are building. (Sorry if you reported it and I missed it, but I cannot find it right now.) 2. The report that you give contains what seems to be fragments of command lines. It would be useful to have the complete command lines. 3. In #1195, igloo reports that he has included some code to provide additional information in case of ignored errors (which seems involved here). Some additional context that surrounds the first error report would therefore also be useful, I guess. Best regards Thorkil On Thursday 05 April 2007 21:46, Joel Reymont wrote:
I think this is the reason. What's my next step?
This is Mac OSX 10.4.9 Intel.
== make all -r -f Makefile; in /Users/joelr/work/haskell/ghc/ libraries/ base-------------------------------------------------------------------- ----../../compiler/ghc-inplace -H32m -O2 -fglasgow-exts -cpp - Iinclude -"#include" HsBase.h -funbox-strict-fields -package-name base-2.0 -fgenerics -split-objs -c GHC/Err.lhs-boot -o GHC/Err.o- boot -ohi GHC/Err.hi-boot../../compiler/ghc-inplace -H32m -O2 - fglasgow-exts -cpp -Iinclude -"#include" HsBase.h -funbox-strict- fields -package-name base-2.0 -fgenerics -split-objs -c GHC/ PrimopWrappers.hs -o GHC/PrimopWrappers.o -ohi GHC/ PrimopWrappers.higcc -O -c System/CPUTime_hsc.c -o System/ CPUTime_hsc.ogcc -O -c System/Time_hsc.c -o System/Time_hsc.o../../ compiler/ghc-inplace -H32m -O2 -fglasgow-exts -cpp -Iinclude -"#include" HsBase.h -funbox-strict-fields -package-name base-2.0 - fgenerics -split-objs -c GHC/Base.lhs -o GHC/Base.o -ohi GHC/ Base.hi/tmp/ghc4826_0/ghc4826_0.split__178.s:unknown:missing indirect symbols for section (__TEXT,__symbol_stub)make[2]: *** [GHC/ PrimopWrappers.o] Error 1make[2]: ***
On Sat, Apr 07, 2007 at 12:27:47PM +0200, Thorkil Naur wrote:
1. It would probably be useful to give us the exact version of ghc that you are using and also the version you are building. (Sorry if you reported it and I missed it, but I cannot find it right now.)
Ditto.
3. In #1195, igloo reports that he has included some code to provide additional information in case of ignored errors (which seems involved here). Some additional context that surrounds the first error report would therefore also be useful, I guess.
Yes, if you are building a GHC which includes this patch then a full build log would be useful.
== make all -r -f Makefile; in /Users/joelr/work/haskell/ghc/ libraries/ base-------------------------------------------------------------------- ----../../compiler/ghc-inplace -H32m -O2 -fglasgow-exts -cpp - Iinclude -"#include" HsBase.h -funbox-strict-fields -package-name base-2.0 -fgenerics -split-objs -c GHC/Err.lhs-boot -o GHC/Err.o- boot -ohi GHC/Err.hi-boot../../compiler/ghc-inplace -H32m -O2 - fglasgow-exts -cpp -Iinclude -"#include" HsBase.h -funbox-strict- fields -package-name base-2.0 -fgenerics -split-objs -c GHC/ PrimopWrappers.hs -o GHC/PrimopWrappers.o -ohi GHC/ PrimopWrappers.higcc -O -c System/CPUTime_hsc.c -o System/ CPUTime_hsc.ogcc -O -c System/Time_hsc.c -o System/Time_hsc.o../../ compiler/ghc-inplace -H32m -O2 -fglasgow-exts -cpp -Iinclude -"#include" HsBase.h -funbox-strict-fields -package-name base-2.0 - fgenerics -split-objs -c GHC/Base.lhs -o GHC/Base.o -ohi GHC/ Base.hi/tmp/ghc4826_0/ghc4826_0.split__178.s:unknown:missing indirect symbols for section (__TEXT,__symbol_stub)make[2]: *** [GHC/ PrimopWrappers.o] Error 1make[2]: ***
It's possible that this could be caused by a broken splitter, yes. Adding -v -keep-tmp-files to the above commandline should help clarify things, with the help of the command ouput and the intermediate file contents. Thanks Ian
On Apr 5, 2007, at 5:21 PM, Thorkil Naur wrote:
So I found this bug. How do I deal with it? Thanks, Joel -- http://wagerlabs.com/
participants (3)
-
Ian Lynagh -
Joel Reymont -
Thorkil Naur