As per usual, this is sun-sparc-solaris, and 4.02 (which didn't _appear_
to have any trouble compiling its own libraries...

Slan,
Alex.
______


bowen.ucc.ie:~/LVO: cat hi.hs

main = putStr "Hi."

bowen.ucc.ie:~/LVO: ghc -dshow-passes -v hi.hs
The Glorious Glasgow Haskell Compilation System, version 4.02, patchlevel 0

Effective command line: -dshow-passes -v

Ineffective C pre-processor:
        echo '{-# LINE 1 "hi.hs" -}' > /tmp/ghc576.cpp && cat hi.hs >> 
/tmp/ghc576.cpp

real        0.0
user        0.0
sys         0.0
ghc:compile:Interface file hi.hi doesn't exist

Haskell compiler:
        /usr/local/ghc-4.02/lib/hsc ,-W ,/tmp/ghc576.cpp  -dshow-passes 
-fignore-interface-pragmas -fomit-interface-pragmas -fsimplify [  
-ffloat-lets-exposing-whnf -ffloat-primops-ok -fcase-of-case -fdo-case-elim 
-freuse-con -fpedantic-bottoms -fmax-simplifier-iterations4  ]   
-fwarn-overlapping-patterns -fwarn-missing-methods -fwarn-duplicate-exports 
-fhi-version=402 -himap=.%.hi:/usr/local/ghc-4.02/lib/imports/std%.hi   -v 
-hifile=/tmp/ghc576.hi -C=/tmp/ghc576.hc -F=/tmp/ghc576_stb.c 
-FH=/tmp/ghc576_stb.h +RTS -H6000000 -K1000000
Glasgow Haskell Compiler, version 4.02, for Haskell 98
*** Reader:
*** Renamer:
*** TypeCheck:
*** DeSugar:
*** Desugar
*** Core2Core:
*** Simplify
*** Post-simplification pass
*** Tidy Core
*** Core2Stg:
*** Stg2Stg:
*** CodeGen:
*** CodeOutput:

real        5.0
user        4.8
sys         0.2

Pin on Haskell consistency info:
        echo 'static char ghc_hsc_ID[] = "@(#)hsc hi.hs 40.0,,";' >> 
/tmp/ghc576.hc

real        0.0
user        0.0
sys         0.0
*** New hi file follows...
__interface Main 402 where
import IO 1 :: putStr 1;
import PrelBase 1 :: String 1 addr2Integer 1 foldr 1 int2Integer 1 integer_0 1 
integer_1 1 integer_2 1 integer_m1 1;
import PrelIOBase 1 :: IO 1;
import PrelPack 1 :: packCStringzh 1 unpackAppendCStringzh 1 unpackCStringzh 1 
unpackFoldrCStringzh 1 unpackNByteszh 1;
__instimport IO ; __instimport PrelAddr ; __instimport PrelArr ; __instimport 
PrelBounded ; __instimport PrelCCall ; __instimport PrelConc ; __instimport 
PrelForeign ; __instimport PrelIOBase ; __instimport PrelNum ; __instimport 
PrelNumExtra ; __instimport PrelStable ; __instimport PrelTup ;

__export Main main;
main :: PrelIOBase.IO PrelBase.Z0T ;


ghc: module version unchanged at 1

Replace .hi file, if changed:
        cmp -s Main.hi /tmp/ghc576.hi-new || ( rm -f Main.hi && cp 
/tmp/ghc576.hi-new Main.hi )

real        0.0
user        0.0
sys         0.0

C compiler:
        gcc -v  -S -Wimplicit -O    -I. -I/usr/local/ghc-4.02/lib/includes 
-I/usr/local/ghc-4.02/lib/includes ghc576.c > /tmp/ghc576.ccout 2>&1 && ( if [ 
ghc576.s != /tmp/ghc576_o.s ] ; then mv ghc576.s /tmp/ghc576_o.s ; else exit 0 ; 
fi )
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/specs
gcc version 2.7.2
 /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/cpp -lang-c -v -I. 
-I/usr/local/ghc-4.02/lib/includes -I/usr/local/ghc-4.02/lib/includes -undef 
-D__GNUC__=2 -D__GNUC_MINOR__=7 -Dsun -Dsparc -Dunix -D__svr4__ -D__SVR4 
-D__GCC_NEW_VARARGS__ -D__sun__ -D__sparc__ -D__unix__ -D__svr4__ -D__SVR4 
-D__GCC_NEW_VARARGS__ -D__sun -D__sparc -D__unix -Asystem(unix) -Asystem(svr4) 
-Acpu(sparc) -Amachine(sparc) -D__OPTIMIZE__ -Wimplicit ghc576.c /tmp/cca0009I.i
GNU CPP version 2.7.2 (sparc)
#include "..." search starts here:
#include <...> search starts here:
 .
 /usr/local/ghc-4.02/lib/includes
 /usr/local/ghc-4.02/lib/includes
 /usr/local/include
 /usr/local/sparc-sun-solaris2.5/include
 /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include
 /usr/include
End of search list.
 /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/cc1 /tmp/cca0009I.i -quiet 
-dumpbase ghc576.c -O -Wimplicit -version -o ghc576.s
GNU C version 2.7.2 (sparc) compiled by GNU C version 2.5.6.

real        0.7
user        0.5
sys         0.1

Unix assembler:
        gcc -o hi.o -c  -I. -I/usr/local/ghc-4.02/lib/includes 
-I/usr/local/ghc-4.02/lib/includes /tmp/ghc576.s

real        0.0
user        0.0
sys         0.0

Linker:
        gcc -v -u PrelMain_mainIO_closure -u PrelBase_Izh_static_info -u  
PrelBase_Czh_static_info -u PrelBase_Fzh_static_info -u PrelBase_Dzh_static_info 
-u PrelAddr_Azh_static_info -u PrelAddr_Wzh_static_info -u 
PrelAddr_I64zh_static_info -u PrelAddr_W64zh_static_info -u 
PrelStable_StablePtr_static_info -u PrelBase_Izh_con_info -u 
PrelBase_Czh_con_info -u PrelBase_Fzh_con_info -u PrelBase_Dzh_con_info -u 
PrelAddr_Azh_con_info -u PrelAddr_Wzh_con_info -u PrelAddr_I64zh_con_info -u 
PrelAddr_W64zh_con_info -u PrelStable_StablePtr_con_info -u 
PrelBase_False_static_closure -u PrelBase_True_static_closure -u 
PrelPack_unpackCString_closure  hi.o  -L/usr/local/ghc-4.02/lib  -lHS -lHS_cbits 
-lHSrts -lgmp -lm
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/specs
gcc version 2.7.2
 /usr/ccs/bin/ld -V -Y P,/usr/ccs/lib:/usr/lib -Qy -u PrelMain_mainIO_closure -u 
PrelBase_Izh_static_info -u PrelBase_Czh_static_info -u PrelBase_Fzh_static_info 
-u PrelBase_Dzh_static_info -u PrelAddr_Azh_static_info -u 
PrelAddr_Wzh_static_info -u PrelAddr_I64zh_static_info -u 
PrelAddr_W64zh_static_info -u PrelStable_StablePtr_static_info -u 
PrelBase_Izh_con_info -u PrelBase_Czh_con_info -u PrelBase_Fzh_con_info -u 
PrelBase_Dzh_con_info -u PrelAddr_Azh_con_info -u PrelAddr_Wzh_con_info -u 
PrelAddr_I64zh_con_info -u PrelAddr_W64zh_con_info -u 
PrelStable_StablePtr_con_info -u PrelBase_False_static_closure -u 
PrelBase_True_static_closure -u PrelPack_unpackCString_closure 
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/crt1.o 
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/crti.o 
/usr/ccs/lib/values-Xa.o 
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/crtbegin.o 
-L/usr/local/ghc-4.02/lib -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2 
-L/usr/ccs/bin -L/usr/ccs/lib -L/usr/local/lib hi.o -lHS -lHS_cbits -lHSrts 
-lgmp -lm -lgcc -lc -lgcc 
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/crtend.o 
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/crtn.o
ld: Software Generation Utilities (SGU) SunOS/ELF (LK-2.0 (S/I) - versioning)
Undefined                       first referenced
 symbol                             in file
dunno_what_it_is                    
/usr/local/ghc-4.02/lib/libHSrts.a(Schedule.o)
ld: fatal: Symbol referencing errors. No output written to a.out

real        0.5
user        0.3
sys         0.0
deleting... a.out

rm -f /tmp/ghc576*

Reply via email to