mismatched interface file ways
Dustin DeWeese
dustin.deweese at gmail.com
Mon Mar 17 01:25:07 EDT 2008
I'm working on a registerised port of GHC 6.8.2 to an ARM CPU. After making the changes needed (listed in the 'Porting GHC' wiki page), I am trying to compile GHC.
The build fails while compiling the stage 2 compiler with this error message:
basicTypes/OccName.lhs-boot:1:0:
Bad interface file: /home/dusty/deb-src2/ghc6-6.8.2/libraries/base/dist/build/Prelude.hi
mismatched interface file ways: expected , found u
I am pretty sure that Prelude is registerised because ghc-asm prints out some diagnostics while compiling it.
Does anyone know what's going on or how I can fix it? How can I check a .hi file to see if it is unregisterised?
Thanks,
Dusty
Here is my build.mk:
XMLDocWays := html
HADDOCK_DOCS := YES
GhcRTSWays += debug_p thr_debug thr_debug_p
XSLTPROC_OPTS += --nonet
GhcUnregisterised=NO
GhcWithNativeCodeGen=NO
GhcWithInterpreter=NO
SplitObjs=NO
GhcRTSWays := $(shell echo $(GhcRTSWays) | sed "s/\<[a-z_]*thr[a-z_]*\>//g")
GhcNotThreaded=YES
bindir := ${libdir}/bin
docdir := $(datarootdir)/doc/ghc6-doc
htmldir := $(docdir)
dvidir := $(docdir)
pdfdir := $(docdir)
psdir := $(docdir)
SRC_HC_OPTS += -optc-mcpu=arm1136j-s -optc-mfpu=vfp -optc-mfloat-abi=softfp -opta-mcpu=arm1136j-s -opta-mfpu=vfp -opta-mfloat-abi=softfp
Here's the output from the build:
../compiler/stage1/ghc-inplace -H16m -O -optc-mcpu=arm1136j-s -optc-mfpu=vfp -optc-mfloat-abi=softfp -opta-mcpu=arm1136j-s -opta-mfpu=vfp -opta-mfloat-abi=softfp -istage2/utils -istage2/basicTypes -istage2/types -istage2/hsSyn -istage2/prelude -istage2/rename -istage2/typecheck -istage2/deSugar -istage2/coreSyn -istage2/vectorise -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 -Wall -fno-warn-name-shadowing -fno-warn-orphans -Istage2 -DOMIT_NATIVE_CODEGEN -package hpc -package bytestring -cpp -fglasgow-exts -fno-generics -Rghc-timing -I. -Iparser -package unix -package Cabal -ignore-package lang -recomp -Rghc-timing -H16M '-#include "cutils.h"' -package-name ghc-6.8.2 -fgenerics -c basicTypes/OccName.lhs-boot -o stage2/basicTypes/OccName.o-boot -ohi stage2/basicTypes/OccName.hi-boot
basicTypes/OccName.lhs-boot:1:0:
Bad interface file: /home/dusty/deb-src2/ghc6-6.8.2/libraries/base/dist/build/Prelude.hi
mismatched interface file ways: expected , found u
<<ghc: 15848512 bytes, 4 GCs, 131072/131072 avg/max bytes residency (1 samples), 16M in use, 0.02 INIT (0.00 elapsed), 0.61 MUT (0.67 elapsed), 0.07 GC (0.08 elapsed) :ghc>>
make[2]: *** [stage2/basicTypes/OccName.o-boot] Error 1
make[2]: Leaving directory `/home/dusty/deb-src2/ghc6-6.8.2/compiler'
make[1]: *** [stage2] Error 2
make[1]: Leaving directory `/home/dusty/deb-src2/ghc6-6.8.2'
make: *** [bootstrap2] Error 2
More information about the Cvs-ghc
mailing list