ghc HEAD can't validate with xcode 6 clang on OS X

Hey all, on OS X 10.9 if i do git clone --recursive git://git.haskell.org/ghc.git ghc-valifail cd ghc-valifail perl boot ./configure --with-gcc=clang # the with gcc bit isnt needed, but making it clearly pick up clang is the point ./validate --fast then within a minute or two i get error: unknown warning option '-Werror=unused-but-set-variable'; did you mean '-Werror=unused-const-variable'? [-Werror,-Wunknown-warning-option] which makes me think that the clang warning flags have changed in that release (which corresponds with clang Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)). SO maybe clang 3.5 / 3.6 will also fail when used in validate builds? s/hpc/dist-boot/build/autogen/cabal_macros.h libraries/hpc/./Trace/Hpc/Reflect.hsc -o libraries/hpc/dist-boot/build/Trace/Hpc/Reflect.hs error: unknown warning option '-Werror=unused-but-set-variable'; did you mean '-Werror=unused-const-variable'? [-Werror,-Wunknown-warning-option] compiling compiler/stage1/build/Fingerprint_hsc_make.c failed (exit code 1) command was: clang -c compiler/stage1/build/Fingerprint_hsc_make.c -o compiler/stage1/build/Fingerprint_hsc_make.o -Werror -Wall -m64 -fno-stack-protector -m64 -Dx86_64_HOST_ARCH=1 -Ddarwin_HOST_OS=1 -D__GLASGOW_HASKELL__=708 -m64 -fno-stack-protector -error: unknown warning option '-Werror=unused-but-set-variable'; did you mean '-Werror=unused-const-variable'? [-Werror,-Wunknown-warning-option] Werror -Wall -Icompiler/. -Icompiler/parser -Icompiler/utils -Icompiler/stage1 -isystem/usr/local/lib/ghc-7.8.3/process-1.2.0.0/include -isystem/usr/local/lib/ghc-7.8.3/directory-1.2.1.0/include -isystem/usr/local/lib/ghc-7.8.3/unix-2.7.0.1/include -isystem/usr/local/lib/ghc-7.8.3/time-1.4.2/include -isystem/usr/loccalo/mlpiibl/ignhgc -l7i.b8r.a3r/ibeyst/ehsptc/dist-boot/build/Trace/Hpc/Reflect_hsc_make.c fring-0.10.4.0/include -isystemailed (exit c/usr/local/liode 1) commab/ghc-7.8.3/band was: clanse-4.7.0.1/ing -c librariclude -isystees/hpc/dist-m/usr/localboot/build/T/lib/ghc-7.8race/Hpc/Ref.3/inlteecgte_rh-sgcm_pm-a0k.e5.1.0/include -isys.c -o libraries/hpc/dist-boott/bueiml/du/sTrr/acel/Hopcca/l/lib/ghc-7.8.3/include -Werror=unused-but-sReet-variabflel e-Wcnto_-hesrcr_omra=kien.loi n-eW e-rIrcoorm p-iWlaelrl/ s-tma6g4e 1-/fbnuoi-lsdt/aacukt-opgreont e-citnocrl u-dme6 4c o-mDpxi8l6e_r6/4s_tHaOgSeT1_/AbRuCiHl=d1/ a-uDtdoagrewni/nc_aHbOaSlT__mOaSc=r1o s-.Dh_ _-GIL/AUSsGeOrWs_/HcAaSrKtEeLrL/_D_e=s7k0t8o p-/mr6e4p o-Sfcnor-asttcahcekr-/pgrhoct-evcatloirf a-iWle/rirnoprl a-cWea/llli b-/Iilnicblrudaer/i es/hpc/. -isystem/usr/local/lib/ghc-7.8.3/directory-1.2.1.0/include -isystem/usr/local/lib/ghc-7.8.3/unix-2.7.0.1/include -isystem/usr/local/lib/ghc-7.8.3/time-1.4.2/include -isystem/usr/local/lib/ghc-7.8.3/bytestring-0.10.4.0/include -isystem/usr/local/lib/ghc-7.8.3/base-4.7.0.1/include -isystem/usr/local/lib/ghc-7.8.3/integer-gmp-0.5.1.0/include -isystem/usr/local/lib/ghc-7.8.3/include -Werror=unused-but-set-variable -Wno-error=inline -Ilibraries/hpc/dist-boot/build/autogen -include libraries/hpc/dist-boot/build/amake[1]: *** [compiler/stage1/build/Fingerprint.hs] Error 1 make[1]: *** Waiting for unfinished jobs.... utogen/cabal_macros.h -I/Users/carter/Desktop/repoScratcher/ghc-valifail/inplace/lib/include/ make[1]: *** [libraries/hpc/dist-boot/build/Trace/Hpc/Reflect.hs] Error 1 make: *** [all] Error 2

Hi Carter,
on OS X 10.9 if i do git clone --recursive git://git.haskell.org/ghc.git ghc-valifail cd ghc-valifail perl boot ./configure --with-gcc=clang # the with gcc bit isnt needed, but making it clearly pick up clang is the point ./validate --fast
No problem on my OS X 10.9. The result of "CPUS=10 sh validate" today: OVERALL SUMMARY for test run started at Wed Nov 26 13:50:48 2014 JST 0:04:28 spent to go through 4235 total tests, which gave rise to 16491 test cases, of which 12593 were skipped 56 had missing libraries 3768 expected passes 67 expected failures 0 caused framework failures 0 unexpected passes 6 unexpected failures 1 unexpected stat failures Unexpected failures: cabal/cabal01 cabal01 [bad exit code] (normal) cabal/cabal06 cabal06 [bad stdout] (normal) llvm/should_compile T5681 [exit code non-0] (optllvm) llvm/should_compile T7571 [exit code non-0] (optllvm) llvm/should_run/subsections_via_symbols subsections_via_symbols [bad exit code] (normal) rts T5435_dyn_asm [bad stdout] (normal) Unexpected stat failures: perf/compiler T4801 [stat too good] (normal) --Kazu
participants (2)
-
Carter Schonwald
-
Kazu Yamamoto