******************** Testing: 0 .. 10.. FAIL: Clang :: Modules/compiler_builtins.m (3748 of 19252) ******************** TEST 'Clang :: Modules/compiler_builtins.m' FAILED ******************** Script: -- rm -rf E:\llvm_build\tools\clang\test\Modules\Output\compiler_builtins.m.tmp E:/llvm_build/./bin/clang.EXE -fsyntax-only -fmodules -fmodules-cache-path=E:\llvm_build\tools\clang\test\Modules\Output\compiler_builtins.m.tmp -D__need_wint_t E:\llvm\tools\clang\test\Modules\compiler_builtins.m -Xclang -verify E:/llvm_build/./bin/clang.EXE -fsyntax-only -std=c99 -fmodules -fmodules-cache-path=E:\llvm_build\tools\clang\test\Modules\Output\compiler_builtins.m.tmp -D__need_wint_t E:\llvm\tools\clang\test\Modules\compiler_builtins.m -Xclang -verify -- Exit Code: 1 Command Output (stdout): -- Command 0: "rm" "-rf" "E:\llvm_build\tools\clang\test\Modules\Output\compiler_builtins.m.tmp" Command 0 Result: 0 Command 0 Output: Command 0 Stderr: Command 1: "E:/llvm_build/./bin/clang.EXE" "-fsyntax-only" "-fmodules" "-fmodules-cache-path=E:\llvm_build\tools\clang\test\Modules\Output\compiler_builtins.m.tmp" "-D__need_wint_t" "E:\llvm\tools\clang\test\Modules\compiler_builtins.m" "-Xclang" "-verify" Command 1 Result: 1 Command 1 Output: Command 1 Stderr: error: 'error' diagnostics seen but not expected: File E:\llvm\tools\clang\test\Modules\compiler_builtins.m Line 7: could not build module '_Builtin_intrinsics' 1 error generated. --
Which compiler are you using?
(In reply to comment #1) > Which compiler are you using? MinGW-W64 GCC 4.7.2 (Target: i686-w64-mingw32).
I see same problem when built with newer mingw-w64 4.9.1. Something does not work wth the mingw-w64 header files, but the module diagnostic only says File C:\\llvm\\tools\\clang\\test\\Modules\\compiler_builtins.m Line 7: could not build module '_Builtin_intrinsics' which is not very helpful understanding the problem. I had tried to compile small samples using the intrinsics (not as modules) which did work ok. I xfailed the test in r224453.
This may be the result of identical module.modulemap being loaded twice from two different directories.
It has been XPASSsing for me. http://bb.pgr.jp/builders/ninja-clang-x64-mingw64-RA/builds/5588
r224515 Enabling this test again on mingw. The problem seems to happen when two identical module.modulemap are available on the include path and so should be fixed in the mingw driver includes, when we'll have it.
r226754 fixed this for me. Yaron, Amine, can you check if this fixes it for you too?
It seems fixed for me. I get 6 Unexpected Failures now and it's not among them: Failing Tests (6): Clang :: Driver/cl-inputs.c Clang :: Driver/darwin-sdkroot.c Clang :: Driver/warning-options.cpp Clang :: Frontend/source-col-map.c Clang :: Index/crash-recovery.c LLVM :: ExecutionEngine/frem.ll What should I do with the current failures ?
As of r226931, all tests pass when built with mingw gcc 4.9.1 32 bit. Regarding darwin-sdkroot.c, you probably need to replace env.exe, see http://llvm.org/viewvc/llvm-project?view=revision&revision=215298 http://llvm.org/viewvc/llvm-project?view=revision&revision=221271 About the rest, if they still fail try rebuilding everything.