Mikael Holmén via llvm-dev
2016-Mar-09 08:48 UTC
[llvm-dev] Any buildbots building clang/llvm with gcc?
Hi, Are there any buildbots that build clang/llvm with gcc and run tests nowadays? When testing our out-of-tree target we are regularly building the compiler with both clang and gcc and lately we have noticed an increasing number of problems when using gcc which the rest of the community doesn't seem to notice? E.g. for some days now at top-of-tree, if building with gcc 4.9.1 or 5.1.0 one test case fails with SEGV: FAIL: Clang-Unit :: ASTMatchers/ASTMatchersTests/IsAnyPointer.MatchesObjcPointer (8218 of 25131) ******************** TEST 'Clang-Unit :: ASTMatchers/ASTMatchersTests/IsAnyPointer.MatchesObjcPointer' FAILED ******************** Note: Google Test filter = IsAnyPointer.MatchesObjcPointer [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from IsAnyPointer [ RUN ] IsAnyPointer.MatchesObjcPointer #0 0x00000000005b4f15 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/repo/bbijenkins/bbi-sw-stable-jenkins/workspace/llvm-master/build-all-gcc49/tools/clang/unittests/ASTMatchers/ASTMatchersTests+0x5b4f15) #1 0x00000000005b2bc6 llvm::sys::RunSignalHandlers() (/repo/bbijenkins/bbi-sw-stable-jenkins/workspace/llvm-master/build-all-gcc49/tools/clang/unittests/ASTMatchers/ASTMatchersTests+0x5b2bc6) #2 0x00000000005b2dda SignalHandler(int) (/repo/bbijenkins/bbi-sw-stable-jenkins/workspace/llvm-master/build-all-gcc49/tools/clang/unittests/ASTMatchers/ASTMatchersTests+0x5b2dda) #3 0x00007f194f891810 __restore_rt (/lib64/libpthread.so.0+0xf810) #4 0x00000000005463a0 clang::ast_matchers::IsAnyPointer_MatchesObjcPointer_Test::TestBody() (/repo/bbijenkins/bbi-sw-stable-jenkins/workspace/llvm-master/build-all-gcc49/tools/clang/unittests/ASTMatchers/ASTMatchersTests+0x5463a0) #5 0x00000000005d3e02 testing::Test::Run() (/repo/bbijenkins/bbi-sw-stable-jenkins/workspace/llvm-master/build-all-gcc49/tools/clang/unittests/ASTMatchers/ASTMatchersTests+0x5d3e02) So, are there any buildbots that should notice this or have everyone stopped using gcc? Best regards, Mikael
Markus Trippelsdorf via llvm-dev
2016-Mar-09 10:30 UTC
[llvm-dev] Any buildbots building clang/llvm with gcc?
On 2016.03.09 at 09:48 +0100, Mikael Holmén via llvm-dev wrote:> Hi, > > Are there any buildbots that build clang/llvm with gcc and run tests > nowadays? > > When testing our out-of-tree target we are regularly building the compiler > with both clang and gcc and lately we have noticed an increasing number of > problems when using gcc which the rest of the community doesn't seem to > notice? > > E.g. for some days now at top-of-tree, if building with gcc 4.9.1 or 5.1.0 > one test case fails with SEGV:There are also undefined behavior issues left. Upcoming gcc-6 will be much more aggressive in optimizing some of them, e.g.: SemaTemplateVariadic.cpp:609:77: runtime error: member call on null pointer of type 'struct LocalInstantiationScope' will lead to segfaults in clang. (https://llvm.org/bugs/show_bug.cgi?id=24531) -- Markus