I have now downloaded the 4.08.2 sources and .hc files and read some
more documentation, and it almost works on a centuries old NetBSD
1.3.2.  Here is the latest news:

 * I have run `gmake boot', but still I have to go to hslibs and run
   gmake by hand in order to obtain a libHSlang.a.  Maybe a missing
   dependency?

 * After having made libHSlang.a, there are still no interface files
   in ./hslibs, they are obviously not meant to be made by hand:

     | (ghc-4.08.2/hslibs/lang) $ gmake Int.hi
     | Panic! Int.o exists, but Int.hi does not. exit 1

   So where do I get the interface files from?  (I tried to copy the
   interface files from a precompiled linux-4.08.1 binary.  I did not
   think that was a smart idea, and ghc agreed.  Will I get rid of the
   assembler errors when I try injecting the linux-4.08.2 interfaces
   instead?)

 * On NetBSD 1.5, I did not get that far.  egcs-2.91.66 seems to be
   unhappy with the C code generated by the inplace-compiler.


 thanks again,
 Matthias



===============================================================================
[gmake all on NetBSD 1.5]

(ghc-4.08.2/ghc/lib/std) $ ../../../ghc/driver/ghc-inplace -v -recomp -cpp 
-fglasgow-exts -fvia-C -Rghc-timing -O -package-name std -static -split-objs    -c 
Array.hc -o Array.o -osuf o 
The Glorious Glasgow Haskell Compilation System, version 4.08.2
Found OPTIONS -fno-implicit-prelude in Array.hc

Effective command line: -fno-implicit-prelude -v -recomp -cpp -fglasgow-exts -fvia-C 
-Rghc-timing -O -package-name std -static -split-objs -c -o Array.o -osuf o

C compiler:
        gcc -v  -DDONT_WANT_WIN32_DLL_SUPPORT -S -Wimplicit -DUSE_SPLIT_MARKERS 
-DUSE_SPLIT_MARKERS -O -DSTOLEN_X86_REGS=4 -fomit-frame-pointer -fno-defer-pop  -I. 
-I/usr/lu/fis/ghc-4.08.2/ghc/driver/../includes ghc16273.c > /tmp/ghc16273.ccout 2>&1 
&& ( if [ ghc16273.s != /tmp/ghc16273_o.s ] ; then mv ghc16273.s /tmp/ghc16273_o.s ; 
else exit 0 ; fi )
Using builtin specs.
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
 /usr/libexec/cpp -lang-c -v -I. -I/usr/lu/fis/ghc-4.08.2/ghc/driver/../includes 
-undef -D__GNUC__=2 -D__GNUC_MINOR__=91 -Di386 -D__NetBSD__ -D__ELF__ 
-D__KPRINTF_ATTRIBUTE__ -D__i386__ -D__NetBSD__ -D__ELF__ -D__KPRINTF_ATTRIBUTE__ 
-D__i386 -Asystem(unix) -Asystem(NetBSD) -Acpu(i386) -Amachine(i386) -D__OPTIMIZE__ 
-Wimplicit -DDONT_WANT_WIN32_DLL_SUPPORT -DUSE_SPLIT_MARKERS -DUSE_SPLIT_MARKERS 
-DSTOLEN_X86_REGS=4 ghc16273.c /tmp/ccQXWe7y.i
GNU CPP version egcs-2.91.66 19990314 (egcs-1.1.2 release) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 .
 /usr/lu/fis/ghc-4.08.2/ghc/driver/../includes
 /usr/include
End of search list.
 /usr/libexec/cc1 /tmp/ccQXWe7y.i -quiet -dumpbase ghc16273.c -O -Wimplicit -version 
-fomit-frame-pointer -fno-defer-pop -o ghc16273.s
GNU C version egcs-2.91.66 19990314 (egcs-1.1.2 release) (i386-netbsd) compiled by GNU 
C version egcs-2.91.66 19990314 (egcs-1.1.2 release).
        0.87 real         0.64 user         0.09 sys
Funny global thing?: __stg_split_marker1:
Funny global thing?: _module_registered:
Funny global thing?: __init_Array:
Funny global thing?: __stg_split_marker2:
Funny global thing?: __stg_split_marker3:
Funny global thing?: __stg_split_marker4:
Funny global thing?: __stg_split_marker5:
Funny global thing?: __stg_split_marker6:
Funny global thing?: __stg_split_marker7:
Funny global thing?: __stg_split_marker8:
Prologue junk?: .globl __stg_split_marker2
__stg_split_marker2:
        ret
.Lfe3:
        .size    __stg_split_marker2,.Lfe3-__stg_split_marker2
.section        .rodata
        .align 4
        .type    Array_zdwzdslistArray_srt,@object
Array_zdwzdslistArray_srt:
        .long PrelArr_zdwtpl8_closure
        .long PrelArr_arrEleBottom_closure
        .long PrelArr_zdwtpl8_closure
        .long PrelArr_arrEleBottom_closure
        .size    Array_zdwzdslistArray_srt,16
.globl Array_zdwzdslistArray_closure
.data
        .align 4
        .type    Array_zdwzdslistArray_closure,@object
        .size    Array_zdwzdslistArray_closure,4
Array_zdwzdslistArray_closure:
        .long Array_zdwzdslistArray_info
        .long 0
.section        .rodata
        .align 4
        .type    c2cr_info,@object
        .size    c2cr_info,12
c2cr_info:
        .long 0
        .word 3
        .word 0
        .word 11
        .word 0
.text
        .align 4
        .type    c2cr_entry,@function
c2cr_entry:
        


-- 
Matthias Fischmann | Research Engineer               | +358 (9) 8565 7474
[EMAIL PROTECTED]         | SSH Communication Security Corp | +358 (40) 752 5291

_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to