#5649: O2 / HPC collision
-------------------------------+--------------------------------------------
    Reporter:  mjo             |       Owner:                    
        Type:  bug             |      Status:  new               
    Priority:  normal          |   Component:  Compiler          
     Version:  7.2.1           |    Keywords:                    
    Testcase:                  |   Blockedby:                    
          Os:  Linux           |    Blocking:                    
Architecture:  x86_64 (amd64)  |     Failure:  Compile-time crash
-------------------------------+--------------------------------------------
 This works,

 {{{
 $ ghc -O2 --make src/*.hs
 }}}

 And this works,

 {{{
 $ ghc -fhpc --make src/*.hs
 }}}

 However, it seems I cannot invite -O2 and -fhpc to the same party:

 {{{
  $ ghc -O2 -fhpc --make src/*.hs
 [ 1 of 17] Compiling ScaleFactor      ( src/ScaleFactor.hs,
 src/ScaleFactor.o )
 [ 2 of 17] Compiling Values           ( src/Values.hs, src/Values.o )
 [ 3 of 17] Compiling RealFunction     ( src/RealFunction.hs,
 src/RealFunction.o )
 [ 4 of 17] Compiling MRI              ( src/MRI.hs, src/MRI.o )
 [ 5 of 17] Compiling Point            ( src/Point.hs, src/Point.o )
 [ 6 of 17] Compiling Misc             ( src/Misc.hs, src/Misc.o )
 [ 7 of 17] Compiling Examples         ( src/Examples.hs, src/Examples.o )
 [ 8 of 17] Compiling Face             ( src/Face.hs, src/Face.o )
 [ 9 of 17] Compiling Cardinal         ( src/Cardinal.hs, src/Cardinal.o )
 [10 of 17] Compiling Comparisons      ( src/Comparisons.hs,
 src/Comparisons.o )
 [11 of 17] Compiling Assertions       ( src/Assertions.hs,
 src/Assertions.o )
 [12 of 17] Compiling FunctionValues   ( src/FunctionValues.hs,
 src/FunctionValues.o )
 [13 of 17] Compiling Tetrahedron      ( src/Tetrahedron.hs,
 src/Tetrahedron.o )
 /tmp/ghc2452_0/ghc2452_0.s: Assembler messages:

 /tmp/ghc2452_0/ghc2452_0.s:48147:0:
      Error: symbol `d2jn_info' is already defined

 /tmp/ghc2452_0/ghc2452_0.s:48158:0:
      Error: symbol `d2jl_info' is already defined

 /tmp/ghc2452_0/ghc2452_0.s:48169:0:
      Error: symbol `d2jh_info' is already defined

 /tmp/ghc2452_0/ghc2452_0.s:48180:0:
      Error: symbol `d2jb_info' is already defined

 ...
 }}}

 Tested with both GHC 7.2.1 and GHC 7.2.2.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5649>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

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

Reply via email to