Opened 9 years ago

Closed 9 years ago

Last modified 44 years ago

#296 closed bug (Fixed)

internal error: getMBlock: mmap: Invalid argument

Reported by: ggd Owned by: simonmar
Priority: normal Milestone:
Component: None Version: None
Keywords: Cc:
Operating System: Architecture:
Type of failure: Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

In an attempt to compile latest HaRe snapshot on amd64 platform 
(ghc-6.2.2, happy-1.15) I get the following error: 
 
gour@gaura-nitai ~/projects/haskell/hare $ make  
cp -r diffs/tools/* tools  
mkdir -p refactorer/hidir/`uname`  
mkdir -p refactorer/odir/`uname`  
cd editors; ./localpaths "HaRe 03/12/2004"  
cd editors; ghc --make -fglasgow-exts GenEditorInterfaces -o  
GenEditorInterfaces  
Chasing modules from: GenEditorInterfaces  
Compiling LocalSettings    ( ./LocalSettings.hs, ./LocalSettings.o )  
ghc-6.2.2: internal error: getMBlock: mmap: Invalid argument  
    Please report this as a bug to glasgow-haskell-bugs@haskell.org,  
    or http://www.sourceforge.net/projects/ghc/  
make: *** [editors/GenEditorInterfaces] Error 254  
 
 
Sincerely, 
Gour 
  

Change History (8)

comment:1 Changed 9 years ago by juhp

Logged In: YES 
user_id=139853

I see this error with 6.3.20050125 on x86_64 too
when compiling Hello.hs.

comment:2 Changed 9 years ago by simonmar

Logged In: YES 
user_id=48280

I'll take this one, but  I can't look at it just yet (x86_64
hardware still on the way...)

comment:3 Changed 9 years ago by ggd

Logged In: YES 
user_id=728695

>I'll take this one, but  I can't look at it just yet (x86_64 
hardware still on the way...) 
 
Maybe I should start praying to arrive sooner :-) 
 
Sincerely, 
Gour 
 

comment:4 Changed 9 years ago by simonmar

Logged In: YES 
user_id=48280

This is most likely due to an interface file from a build on
a 32-bit machine left over in your source tree.

I've fixed GHC so that this will generate a nice error
message rather than a crash in the future.

comment:5 Changed 9 years ago by ggd

Logged In: YES 
user_id=728695

Hi Simon!  
  
Something interesting for you:  
  
 gour@gaura-nitai ~/projects/haskell/hare $ make 
cp -r diffs/tools/* tools 
mkdir -p refactorer/hidir/`uname` 
mkdir -p refactorer/odir/`uname` 
cd editors; ./localpaths "HaRe 03/12/2004" 
cd editors; ghc --make -fglasgow-exts 
GenEditorInterfaces -o GenEditorInterfaces 
Chasing modules from: GenEditorInterfaces 
Compiling LocalSettings    
( ./LocalSettings.hs, ./LocalSettings.o ) 
ghc-6.4: internal error: getMBlock: mmap: Invalid 
argument 
    Please report this as a bug to 
glasgow-haskell-bugs@haskell.org, 
    or http://www.sourceforge.net/projects/ghc/ 
make: *** [editors/GenEditorInterfaces] Error 254 
 
 
This is with the test x86_64 snapshot you posted on the 
list yesterday. 
 
 
Sincerely, 
Gour 
 

comment:6 Changed 9 years ago by simonmar

Logged In: YES 
user_id=48280

Can you confirm that removing the old .hi files in the
distribution fixes the problem?

My previous fix for this didn't work.  I've committed
another attempt.


comment:7 Changed 9 years ago by ggd

Logged In: YES 
user_id=728695

<quote>Can you confirm that removing the old .hi files  
in the distribution fixes the problem?</quote>  
  
You mean in HaRe?  
  
Well, I did 'make 'clean' and now I extracted the archive  
from the scratch - same error.  
  
So, there are no old *.hi files and the problem persists. 
 
Sincerely,  
Gour  
  
  

comment:8 Changed 9 years ago by ggd

  • Status changed from assigned to closed
Logged In: YES 
user_id=728695

Ahh...didn't notice that there are old *.hi files in the 
distribution itself :-( 
 
* embarrased*  
 
Pls. excuse me for making noise. 
 
Sincerely, 
Gour 
 
Note: See TracTickets for help on using tickets.