#3957: Validating on a PPC Mac OS X: Fix 2 errors and a warning
----------------------------+-----------------------------------------------
    Reporter:  thorkilnaur  |       Owner:                     
        Type:  bug          |      Status:  new                
    Priority:  normal       |   Component:  Compiler           
     Version:  6.13         |    Keywords:                     
          Os:  MacOS X      |    Testcase:                     
Architecture:  powerpc      |     Failure:  Building GHC failed
----------------------------+-----------------------------------------------
 Validating a recent HEAD with
 {{{
 $ uname -a
 Darwin thorkil-naurs-mac-mini.local 9.8.0 Darwin Kernel Version 9.8.0: Wed
 Jul 15 16:57:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_PPC Power Macintosh
 $ ghc --version
 The Glorious Glasgow Haskell Compilation System, version 6.10.4
 $
 }}}
 produces:
 {{{
 "/Users/thorkilnaur/tn/install/ghc-6.10.4/bin/ghc"   -H32m -O -Wall
 -Werror -H64m -O0  -package-conf libraries/bootstrapping.conf  -package-
 name ghc-6.13 -hide-all-packages -i -icompiler/nativeGen
 -icompiler/basicTypes -icompiler/cmm -icompiler/codeGen -icompiler/coreSyn
 -icompiler/deSugar -icompiler/ghci -icompiler/hsSyn -icompiler/iface
 -icompiler/main -icompiler/parser -icompiler/prelude -icompiler/profiling
 -icompiler/rename -icompiler/simplCore -icompiler/simplStg
 -icompiler/specialise -icompiler/stgSyn -icompiler/stranal
 -icompiler/typecheck -icompiler/types -icompiler/utils
 -icompiler/vectorise -icompiler/stage1/build
 -icompiler/stage1/build/autogen -Icompiler/stage1/build
 -Icompiler/stage1/build/autogen -Icompiler/stage1
 -Icompiler/../libraries/base/cbits -Icompiler/../libraries/base/include
 -Icompiler/. -Icompiler/parser -Icompiler/utils    -optP-include
 -optPcompiler/stage1/build/autogen/cabal_macros.h -package Cabal-1.9.0
 -package array-0.2.0.0 -package base-4.1.0.0 -package bin-package-
 db-0.0.0.0 -package bytestring-0.9.1.4 -package containers-0.2.0.1
 -package directory-1.0.0.3 -package filepath-1.1.0.2 -package hpc-0.5.0.5
 -package old-time-1.0.0.2 -package process-1.0.1.1 -package unix-2.3.2.0
 -Wall -fno-warn-name-shadowing -fno-warn-orphans -XCPP -XMagicHash
 -XUnboxedTuples -XPatternGuards -XForeignFunctionInterface
 -XEmptyDataDecls -XTypeSynonymInstances -XMultiParamTypeClasses
 -XFlexibleInstances -XRank2Types -XScopedTypeVariables
 -XDeriveDataTypeable -XRelaxedPolyRec -#include cutils.h -DSTAGE=1 -O
 -odir compiler/stage1/build -hidir compiler/stage1/build -stubdir
 compiler/stage1/build -hisuf hi -osuf  o -hcsuf hc -c
 compiler/nativeGen/AsmCodeGen.lhs -o compiler/stage1/build/AsmCodeGen.o

 compiler/nativeGen/AsmCodeGen.lhs:637:16:
     Not in scope: data constructor `DestBlockId'

 compiler/nativeGen/AsmCodeGen.lhs:875:31:
     Not in scope: `mkRtsCodeLabel'

 compiler/nativeGen/AsmCodeGen.lhs:879:31:
     Not in scope: `mkRtsCodeLabel'

 compiler/nativeGen/AsmCodeGen.lhs:883:31:
     Not in scope: `mkRtsCodeLabel'
 make[1]: *** [compiler/stage1/build/AsmCodeGen.o] Error 1
 make[1]: *** Waiting for unfinished jobs....
 make: *** [all] Error 2
 }}}
 I attach two patches to fix those error messages.

 Continuing after this fix produces:
 {{{
 "inplace/bin/ghc-stage1" -optc-m32 -optc-Wall -optc-Werror -optc-Wall
 -optc-Wextra -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-
 Wmissing-declarations -optc-Winline -optc-Waggregate-return -optc-
 Wpointer-arith -optc-Wmissing-noreturn -optc-Wnested-externs -optc-
 Wredundant-decls -optc-Iincludes -optc-Irts -optc-DCOMPILING_RTS -optc-
 fno-strict-aliasing -optc-fno-common -optc-Ilibffi/build/include -optc-
 DDTRACE -optc-fomit-frame-pointer -optc-DRtsWay=\"rts_v\"   -H32m -O -Wall
 -Werror -H64m -O0 -Iincludes -Irts -DCOMPILING_RTS -package-name rts
 -optc-fno-stack-protector -dcmm-lint  -Ilibffi/build/include -DDTRACE
 -i -irts -irts/dist/build -irts/dist/build/autogen -Irts/dist/build
 -Irts/dist/build/autogen          -optc-O2   -c rts/Linker.c -o
 rts/dist/build/Linker.o
 cc1: warnings being treated as errors
 rts/Linker.c: In function 'machoInitSymbolsWithoutUnderscore':

 rts/Linker.c:4756:0:
      warning: nested extern declaration of 'symbolsWithoutUnderscore'
 make[1]: *** [rts/dist/build/Linker.o] Error 1
 make[1]: *** Waiting for unfinished jobs....
 make: *** [all] Error 2
 }}}
 I attach a third patch that fixes this problem.

 I should stress that validate for PPC Mac OS X still doesn't succeed: For
 the PPC Mac, we are stuck at #3260. But the patches do not affect the
 result of a validate on an Intel Mac.

 Best regards
 Thorkil

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3957>
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