Opened 19 years ago

Closed 19 years ago

#4158 closed defect (fixed)

GHC 6.4 Compile error

Reported by: mellon85@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: gwright@…
Port:

Description

I have installed GHC 6.4 binary version (when i was using fink), i have removed it to use the dports version, but i get this compile error when installing (with the +darwin_8 variant). Should I report it to ghc or can be solved?

/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_lang_ghc/work/ ghc-bootstrap/bin/ghc -H16m -O -I/usr/include -I/opt/local/include -L/usr/lib -L/opt/local/lib - istage1/utils -istage1/basicTypes -istage1/types -istage1/hsSyn -istage1/prelude -istage1/rename -istage1/typecheck -istage1/deSugar -istage1/coreSyn -istage1/specialise -istage1/simplCore - istage1/stranal -istage1/stgSyn -istage1/simplStg -istage1/codeGen -istage1/main -istage1/ profiling -istage1/parser -istage1/cprAnalysis -istage1/compMan -istage1/ndpFlatten -istage1/ iface -istage1/cmm -istage1/nativeGen -istage1/ghci -Istage1 -DGHCI -package template-haskell - cpp -fglasgow-exts -fno-generics -Rghc-timing -I. -IcodeGen -InativeGen -Iparser -package unix - package Cabal -recomp -Rghc-timing -H16M '-#include "hschooks.h"' -i../lib/compat -c simplCore/ SimplMonad.lhs -o stage1/simplCore/SimplMonad.o -ohi stage1/simplCore/SimplMonad.hi ghc-6.4: internal error: evacuate: strange closure type 37618

Please report this as a bug to glasgow-haskell-bugs@…, or http://www.sourceforge.net/projects/ghc/

make[2]: * [stage1/simplCore/SimplMonad.o] Error 254 make[1]: * [all] Error 1 make: * [build] Error 1

Change History (9)

comment:1 Changed 19 years ago by mellon85@…

Summary: GHC Compile errorGHC 6.4 Compile error

comment:2 Changed 19 years ago by gwright@…

Status: newassigned

Hi Dario,

I don't think this is a darwinports bug. I'll try building ghc again (I last built it 10.4.1).

You might want to check that all traces of the fink ghc are gone. Try removing /sw/bin (or wherever you have fink) from your path, clean and build ghc. Let me know if this helps.

Thanks, Greg

comment:3 Changed 19 years ago by mellon85@…

Fink is already gone, there are not trace of ghc. I tried to recompile (various times), it found error in various point of the compilation. Recalling the install command it continued building, but the result is a segmentation fault at each startup of ghci, while ghc seems to work

comment:4 Changed 19 years ago by gwright@…

Dario,

Can you send me the output of

gcc-3.3 --version

on your system?

Thanks. Greg

comment:5 Changed 19 years ago by mellon85@…

output of gcc-3.3 --version

gcc-3.3 (GCC) 3.3 20030304 (Apple Computer, Inc. build 1809) Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

comment:6 Changed 19 years ago by gwright@…

Hi Dario,

I built ghc-6.4 twice yesterday, both times successfully. I'm inclined to think that this might be a mangler problem. The mangler is a perl script that postprocesses the assembly code generated by ghc.

What is the output of

/opt/local/bin/perl --version

? (Substitute your DP path if it is not /opt/local.)

Another thing to check is the output of

find / -name "ghc-asm"

which will search your system for stray copies of the mangler script.

-Greg

comment:7 Changed 19 years ago by mellon85@…

/opt/local/bin/perl --version

This is perl, v5.8.7 built for darwin-2level ....

the find command has found no files

comment:8 Changed 19 years ago by gwright@…

Hi Dario,

My DP perl is 5.8.5. I will try upgrading and building ghc again. Maybe something subtle happened with the perl mangler script. It's not called the "evil mangler" for nothing!

Thanks! Greg

comment:9 Changed 19 years ago by mellon85@…

Resolution: fixed
Status: assignedclosed

Finally it compiled. I found a lot of temp file and some other dirty things in my /tmp, rebooting may have cleaned some other dirty things too, because now it works...

Note: See TracTickets for help on using tickets.