LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 20995 - TEST 'Clang :: Modules/compiler_builtins.m' FAILED
Summary: TEST 'Clang :: Modules/compiler_builtins.m' FAILED
Status: RESOLVED FIXED
Alias: None
Product: clang
Classification: Unclassified
Component: -New Bugs (show other bugs)
Version: trunk
Hardware: PC Windows NT
: P normal
Assignee: Unassigned Clang Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-18 12:23 PDT by Amine Khaldi
Modified: 2015-01-23 15:37 PST (History)
4 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Amine Khaldi 2014-09-18 12:23:55 PDT
********************
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.



--
Comment 1 Yaron Keren 2014-12-17 08:12:03 PST
Which compiler are you using?
Comment 2 Amine Khaldi 2014-12-17 11:27:08 PST
(In reply to comment #1)
> Which compiler are you using?

MinGW-W64 GCC 4.7.2 (Target: i686-w64-mingw32).
Comment 3 Yaron Keren 2014-12-17 14:19:00 PST
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.
Comment 4 Yaron Keren 2014-12-17 16:42:11 PST
This may be the result of identical module.modulemap being loaded twice from two different directories.
Comment 5 NAKAMURA Takumi 2014-12-18 06:00:32 PST
It has been XPASSsing for me.

http://bb.pgr.jp/builders/ninja-clang-x64-mingw64-RA/builds/5588
Comment 6 Yaron Keren 2014-12-18 06:14:05 PST
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.
Comment 7 Hans Wennborg 2015-01-22 10:45:45 PST
r226754 fixed this for me.

Yaron, Amine, can you check if this fixes it for you too?
Comment 8 Amine Khaldi 2015-01-23 04:44:00 PST
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 ?
Comment 9 Yaron Keren 2015-01-23 15:37:58 PST
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.