Subject: pkg/11700: lang/ghc-4.04 fails to compile on i386
To: None <>
From: Brian <>
List: netbsd-bugs
Date: 12/11/2000 19:00:17
>Number:         11700
>Category:       pkg
>Synopsis:       lang/ghc-4.04 fails to compile on i386
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 11 19:00:00 PST 2000
>Originator:     Brian Gregor
>Release:        1.5
System: NetBSD bsd 1.5 NetBSD 1.5 (BSD) #0: Thu Dec 7 13:47:32 EST 2000 root@bsd:/usr/src/sys/arch/i386/compile/BSD i386

	The lang/ghc-4.04 package fails to compile, using either egcs-1.1.2 or gcc-2.95.2 on
	i386.  Trying ghc-4.08.1 from the GHC source code fails in the same fashion, a
	slew of assembler/linker errors:

	rm -f Array.o ; if [ ! -d Array ]; then mkdir Array; else /usr/bin/find Array -name '*.o' -print | xargs rm -f __rm_food ;
 	fi ;   
	../../driver/ghc-inplace -recomp -cpp -fglasgow-exts -fvia-C -Rghc-timing -O -package-name std -static -split-objs    -c Array.hc -o Array.o -osuf o
Prologue junk?: .globl __stg_split_marker2
        .size    __stg_split_marker2,.Lfe3-__stg_split_marker2
.section        .rodata
        .align 4
        .type    Array_zdwzdslistArray_srt,@object
        .long PrelArr_zdwtpl8_closure
        .long PrelArr_arrEleBottom_closure
        .long PrelArr_zdwtpl8_closure
        .long PrelArr_arrEleBottom_closure
        .size    Array_zdwzdslistArray_srt,16

  	Try to build lang/ghc-4.04
	None known.  I've tried egcs-1.1.2, gcc-2.95.2, perl-5.004004 and perl-5.60, to no
	avail.  The same code (using the ghc-4.08.1 source distribution) compiles under
	Linux & FreeBSD using the same compilers listed with no problems.