Re: [GHC] #4034: GHC 6.12.2 fails to build on PowerPC / MacOS X Leopard

2010-09-28 Thread GHC
#4034: GHC 6.12.2 fails to build on PowerPC / MacOS X Leopard
--+-
  Reporter:  PHO  |  Owner: 
  Type:  bug  | Status:  new
  Priority:  low  |  Milestone:  7.0.1  
 Component:  Compiler |Version:  6.12.2 
Resolution:   |   Keywords: 
  Testcase:   |  Blockedby: 
Difficulty:   | Os:  MacOS X
  Blocking:   |   Architecture:  powerpc
   Failure:  Building GHC failed  |  
--+-
Changes (by maeder):

  * status:  closed = new
  * resolution:  fixed =


Comment:

 my attempt to build ghc-7.0.0.20100924 on powerpc (leopard) failed with:

 {{{
 inplace/bin/ghc-stage1 -M -dep-makefile
 utils/compare_sizes/dist/build/.depend.haskell.tmp  -include-pkg-deps
 -H32m -O -hide-all-packages -i -iutils/compare_sizes/.
 -iutils/compare_sizes/dist/build -iutils/compare_sizes/dist/build/autogen
 -Iutils/compare_sizes/dist/build -Iutils/compare_sizes/dist/build/autogen
 -optP-include -optPutils/compare_sizes/dist/build/autogen/cabal_macros.h
 -package base-4.3.0.0 -package directory-1.1.0.0 -package filepath-1.2.0.0
 -no-user-package-conf -rtsopts -odir utils/compare_sizes/dist/build -hidir
 utils/compare_sizes/dist/build -stubdir utils/compare_sizes/dist/build
 -hisuf hi -osuf o -hcsuf hc  utils/compare_sizes/./Main.hs
 ghc-stage1: internal error: evacuate(static): strange closure type 19216
 (GHC version 6.10.4 for powerpc_apple_darwin)
 Please report this as a GHC bug:
 http://www.haskell.org/ghc/reportabug
 make[1]: *** [utils/compare_sizes/dist/build/.depend.haskell] Abort trap
 make: *** [all] Error 2
 }}}

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/4034#comment:8
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #4034: GHC 6.12.2 fails to build on PowerPC / MacOS X Leopard

2010-06-24 Thread GHC
#4034: GHC 6.12.2 fails to build on PowerPC / MacOS X Leopard
--+-
  Reporter:  PHO  |  Owner: 
  Type:  bug  | Status:  closed 
  Priority:  low  |  Milestone:  6.14.1 
 Component:  Compiler |Version:  6.12.2 
Resolution:  fixed|   Keywords: 
Difficulty:   | Os:  MacOS X
  Testcase:   |   Architecture:  powerpc
   Failure:  Building GHC failed  |  
--+-
Changes (by igloo):

  * status:  new = closed
  * resolution:  = fixed


Comment:

 Closing, as it doesn't happen in the HEAD.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/4034#comment:7
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #4034: GHC 6.12.2 fails to build on PowerPC / MacOS X Leopard

2010-05-10 Thread GHC
#4034: GHC 6.12.2 fails to build on PowerPC / MacOS X Leopard
-+--
Reporter:  PHO   |Owner: 
Type:  bug   |   Status:  new
Priority:  normal|Milestone:  6.12.3 
   Component:  Compiler  |  Version:  6.12.2 
Keywords:|   Difficulty: 
  Os:  MacOS X   | Testcase: 
Architecture:  powerpc   |  Failure:  Building GHC failed
-+--

Comment(by PHO):

 Thank you for your suggestion.
 In fact, I tried +RTS -DS before posting this report but that didn't make
 any differences. (-DS needs -debug rts and it behaves just like the normal
 -debug rts; the SEGV.)

 Btw, I found the problem didn't occur at all on the current darcs HEAD.
 I'll try to find the testsuite that fails when I stumble on it again.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/4034#comment:5
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #4034: GHC 6.12.2 fails to build on PowerPC / MacOS X Leopard

2010-05-06 Thread GHC
#4034: GHC 6.12.2 fails to build on PowerPC / MacOS X Leopard
-+--
Reporter:  PHO   |Owner: 
Type:  bug   |   Status:  new
Priority:  normal|Milestone:  6.12.3 
   Component:  Compiler  |  Version:  6.12.2 
Keywords:|   Difficulty: 
  Os:  MacOS X   | Testcase: 
Architecture:  powerpc   |  Failure:  Building GHC failed
-+--
Changes (by simonmar):

  * milestone:  = 6.12.3


Comment:

 You can narrow down the problem by compiling individual modules in the RTS
 with or without -optc-O2.  Also try the sanity checker (+RTS -DS).  It
 will make things easier if you find a smaller program from the testsuite
 that fails, rather than GHC itself.

 I'd like to point out that it's not unknown for GCC to have bugs - we've
 had to work around them in the past, e.g. look in `LdvProfile.c`.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/4034#comment:4
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #4034: GHC 6.12.2 fails to build on PowerPC / MacOS X Leopard

2010-05-02 Thread GHC
#4034: GHC 6.12.2 fails to build on PowerPC / MacOS X Leopard
+---
Reporter:  PHO  |   Owner: 
Type:  bug  |  Status:  new
Priority:  normal   |   Component:  Compiler   
 Version:  6.12.2   |Keywords: 
  Os:  MacOS X  |Testcase: 
Architecture:  powerpc  | Failure:  Building GHC failed
+---

Comment(by PHO):

 I found I can avoid the problem by putting the following options to
 mk/build.mk:
 {{{
 GhcRtsHcOpts = -optc-O0 -optc-g
 GhcRtsCcOpts = -O0 -g
 }}}

 This is my observation so far:
  * Optimized libHSrts_thr.a causes an evacuate() error.
  * libHSrts_debug.a causes a segmentation fault.
  * Unoptimized libHSrts_thr.a looks working.
 ...so the problem is not likely in gcc's optimizer but in rts. GCC is just
 revealing the hidden rts bug.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/4034#comment:3
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #4034: GHC 6.12.2 fails to build on PowerPC / MacOS X Leopard

2010-04-30 Thread GHC
#4034: GHC 6.12.2 fails to build on PowerPC / MacOS X Leopard
+---
Reporter:  PHO  |   Owner: 
Type:  bug  |  Status:  new
Priority:  normal   |   Component:  Compiler   
 Version:  6.12.2   |Keywords: 
  Os:  MacOS X  |Testcase: 
Architecture:  powerpc  | Failure:  Building GHC failed
+---

Comment(by PHO):

 Here is the assembly code that caused a SegFault:
 {{{
 0x012a42c4 s1ht_info+0:   lis r31,298
 0x012a42c8 s1ht_info+4:   addir31,r31,16880
 0x012a42cc s1ht_info+8:   stw r31,0(r22)
 0x012a42d0 s1ht_info+12:  andi.   r31,r14,3
 0x012a42d4 s1ht_info+16:  cmpwi   r31,0
 0x012a42d8 s1ht_info+20:  bne-0x12a42e8 s1ht_info+36
 0x012a42dc s1ht_info+24:  lwz r31,0(r14) ; CRASHES HERE
 0x012a42e0 s1ht_info+28:  mtctr   r31
 0x012a42e4 s1ht_info+32:  bctr
 0x012a42e8 s1ht_info+36:  b   0x12a41f0 s1wl_info
 0x012a42ec s1ht_info+40:  .long 0xc
 }}}
 SegFault occurs at s1ht_info+24 trying to load a word pointed by r14 (STG
 R1 register) but the value of r14 is zero.

 The corresponding C-- code is:
 {{{
 s1ht_ret()
 { has static closure: False update_frame: none
   type: 0
   desc: 0
   tag: 34
   stack: [Nothing]
   srt: (ghczm6zi12zi2_UniqFM_lookUp_srt,0,1)
 }
 c1Mq:
 I32[Sp + 0] = s1wl_info;
 if (R1  3 != 0) goto c1Mt;
 jump I32[R1] (); /* CRASHES HERE */
 c1Mt: jump s1wl_info ();
 }
 }}}

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/4034#comment:2
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #4034: GHC 6.12.2 fails to build on PowerPC / MacOS X Leopard (was: GHC 6.12.2 crashes on PowerPC / MacOS X Leopard)

2010-04-29 Thread GHC
#4034: GHC 6.12.2 fails to build on PowerPC / MacOS X Leopard
+---
Reporter:  PHO  |   Owner: 
Type:  bug  |  Status:  new
Priority:  normal   |   Component:  Compiler   
 Version:  6.12.2   |Keywords: 
  Os:  MacOS X  |Testcase: 
Architecture:  powerpc  | Failure:  Building GHC failed
+---

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/4034#comment:1
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs