RE: ghc build on HP-UX
> That was not the point. I think the compiler said "Module `GlaExts' does not export >`fromInt'" > because of the following import > > #if __GLASGOW_HASKELL__ >= 404 > import GlaExts( fromInt ) > #endif > > I commented this out in a couple of modules and will see... Now I got stuck at this point: /usr1/users/ki/bin/ghc -DOMIT_NATIVE_CODEGEN -cpp -fglasgow-exts -Rghc-timing -I. -IcodeGen -InativeGen -Iparser -iutils:basicTypes:types:hsSyn:prelude:rename:typecheck:deSugar:coreSyn:specialise:simplCore:strana l:stgSyn:simplStg:codeGen:absCSyn:main:profiling:parser:usageSP:cprAnalysis -recomp -c main/CodeOutput.lhs -o main/CodeOutput.o -osuf o CodeOutput.lhs:39: Variable not in scope: `stix_final' Compilation had errors gmake[2]: *** [main/CodeOutput.o] Error 1 gmake[1]: *** [all] Error 1 gmake: *** [all] Error 1 Matthias Mann JWG-Universität Frankfurt
RE: ghc build on HP-UX
> | > | No. "ghc --version" yields > | > | > | > | The Glorious Glasgow Haskell Compilation System, version > | > | 4.04, patchlevel 0 > | > > | > You might be able to improve matters by changing all uses of > | > fromInt to fromIntegral. This is a known issue with 4.04. > | > | If it's a known issue, what will be the *RIGHT* ghc-version > | to build ghc-4.06 without > | problems? > > Did you try changing uses of fromInt to fromIntegral? That > should make it possible to make progress with 4.04pl1. > We've used 4.04pl1 extensively to compile newer compilers, > although on x86 and sparc-solaris only. That was not the point. I think the compiler said "Module `GlaExts' does not export `fromInt'" because of the following import #if __GLASGOW_HASKELL__ >= 404 import GlaExts ( fromInt ) #endif I commented this out in a couple of modules and will see... Matthias Mann JWG-Universität Frankfurt
RE: ghc build on HP-UX
> | Const.lhs:51: Module `GlaExts' does not export `fromInt' > | > | Compilation had errors > | > | gmake[2]: *** [basicTypes/Const.o] Error 1 > | gmake[1]: *** [all] Error 1 > | gmake: *** [all] Error 1 > | > | > | This isn't an HP-specific error, or is it? > > It looks like a Haskell-version-specific error. What version > of ghc are you compiling with -- something old, like 3.02 or > 2.10 ? No. "ghc --version" yields The Glorious Glasgow Haskell Compilation System, version 4.04, patchlevel 0 Matthias Mann JWG-Universität Frankfurt
RE: ghc build on HP-UX
| Const.lhs:51: Module `GlaExts' does not export `fromInt' | | Compilation had errors | | gmake[2]: *** [basicTypes/Const.o] Error 1 | gmake[1]: *** [all] Error 1 | gmake: *** [all] Error 1 | | | This isn't an HP-specific error, or is it? It looks like a Haskell-version-specific error. What version of ghc are you compiling with -- something old, like 3.02 or 2.10 ? J
RE: ghc build on HP-UX
> sorry, I think Julian meant > > make EXTRA_HC_OPTS=-v O.k. "verbose" does make sense, so here it is: ../driver/ghc-inplace -I../includes -I. -Iparallel -optc-Wall -optc-W -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return -optc-Wpointer-arith -optc-Wbad-function-cast -O2 -optc-DCOMPILING_RTS -static -v -O2 -optc-fomit-frame-pointer-c universal_call_c.S -o universal_call_c.o The Glorious Glasgow Haskell Compilation System, version 4.06 Effective command line: -I../includes -I. -Iparallel -optc-Wall -optc-W -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return -optc-Wpointer-arith -optc-Wbad-function-cast -O2 -optc-DCOMPILING_RTS -static -v -O2 -optc-fomit-frame-pointer -c -o universal_call_c.o Unix assembler: gcc -o universal_call_c.o -c -I. -I../includes -I. -Iparallel -I/usr1/users/mann/src/fptools/ghc/driver/../includes universal_call_c.S as: "universal_call_c.S", line 15: error 1052: Directive name not recognized - FILE as: warning 31: Empty source file(s) real0.2 user0.0 sys 0.0 deleting... universal_call_c.o rm -f /tmp/ghc3698* gmake[2]: *** [universal_call_c.o] Error 1 gmake[1]: *** [all] Error 1 gmake: *** [all] Error 1 In the meantime I commented out the whole "universal_call_c.S" and got the following error later on: /usr1/users/ki/bin/ghc -DOMIT_NATIVE_CODEGEN -cpp -fglasgow-exts -Rghc-timing -I. -IcodeGen -InativeGen -Iparser -iutils:basicTypes:types:hsSyn:prelude:rename:typecheck:deSugar:coreSyn:specialise:simplCore:s tranal:stgSyn:simplStg:codeGen:absCSyn:main:profiling:parser:usageSP:cprAnalysis -recomp -c basicTypes/Const.lhs -o basicTypes/Const.o -osuf o Const.lhs:51: Module `GlaExts' does not export `fromInt' Compilation had errors gmake[2]: *** [basicTypes/Const.o] Error 1 gmake[1]: *** [all] Error 1 gmake: *** [all] Error 1 This isn't an HP-specific error, or is it? Matthias Mann JWG-Universität Frankfurt
RE: ghc build on HP-UX
> > Hmm. I would guess that your gcc is using the native HP/UX > > assembler and not GNU as, so it doesn't understand the .file > > directive. If you sent us the output of > > > >make EXTRA_HC_OPTS=-optc-v > > > > we could check that hypothesis. However ... > > Here it is, hope it helps: sorry, I think Julian meant make EXTRA_HC_OPTS=-v Simon