LLVM 3.0rc3 Testing Beginning

Good day, LLVMers!

We are starting on our third (and hopefully last) round of testing for LLVM 3.0. Please visit:

  http://llvm.org/pre-releases/3.0/rc3/

for the sources. There are also binaries for Darwin up there, with more to come during the week. Please build this release candidate, test it out on your projects, and let us know if you find any regressions from the 2.9 release.

Please keep in mind that we are not taking any more fixes except for those issues which are critical for the release.

Share and enjoy!
-bw

Especially if you're running Linux, please give Clang in RC3 a spin, even if you previously tested RC2. We've updated the header-search logic to try to make Clang more robust against different system include directory layouts, and need help with more widespread testing.

  - Doug

Which files are needed to build clang? Is it clang-3.0rc2 and llvm-3.0rc3 or do I need the whole test suite?

John

Dr John P. Fletcher Tel: (44) 121 204 3389 (direct line), FAX: (44) 121 204 3678
Chemical Engineering and Applied Chemistry (CEAC),
Associate Dean - External Relations,
School of Engineering and Applied Science (EAS),
Aston University, Aston Triangle, BIRMINGHAM B4 7ET U.K.

I've done a "make -j2 all check-all", llvm + clang, Release build, on
Ubuntu Linux 11.04 x86_64. I got one test failure:

Failing Tests (1):
    Clang-Unit :: AST/Release/ASTTests/APValue.Diagnostics

I've pasted the output of the test below.

Jay.

FAIL: Clang-Unit :: AST/Release/ASTTests/APValue.Diagnostics (3931 of 9598)
******************** TEST 'Clang-Unit ::
AST/Release/ASTTests/APValue.Diagnostics' FAILED ********************
Note: Google Test filter = APValue.Diagnostics
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from APValue
[ RUN ] APValue.Diagnostics
/home/jay/llvm/clang-3.0rc3.src/unittests/AST/APValueTest.cpp:62: Failure
Value of: GetDiagnosticOutput(APValue())
  Actual: ""
Expected: "Uninitialized"
/home/jay/llvm/clang-3.0rc3.src/unittests/AST/APValueTest.cpp:63: Failure
Value of: GetDiagnosticOutput(APValue(APSInt(APInt(16, 5))))
  Actual: ""
Expected: "5"
/home/jay/llvm/clang-3.0rc3.src/unittests/AST/APValueTest.cpp:66: Failure
Value of: GetDiagnosticOutput(APValue(APFloat(APFloat::IEEEdouble, "3.14159")))
  Actual: ""
Expected: "3.141590e+00"
/home/jay/llvm/clang-3.0rc3.src/unittests/AST/APValueTest.cpp:69: Failure
Value of: GetDiagnosticOutput(APValue(APSInt(APInt(16, 3)),
APSInt(APInt(16, 4))))
  Actual: ""
Expected: "3+4i"
/home/jay/llvm/clang-3.0rc3.src/unittests/AST/APValueTest.cpp:73: Failure
Value of: GetDiagnosticOutput(APValue( APFloat(APFloat::IEEEdouble,
"3.2"), APFloat(APFloat::IEEEdouble, "5.7")))
  Actual: ""
Expected: "3.200000e+00+5.700000e+00i"
/home/jay/llvm/clang-3.0rc3.src/unittests/AST/APValueTest.cpp:80: Failure
Value of: GetDiagnosticOutput(APValue(V, array_lengthof(V)))
  Actual: ""
Expected: "[3, 4, 5]"
[ FAILED ] APValue.Diagnostics (1 ms)
[----------] 1 test from APValue (16 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (16 ms total)
[ PASSED ] 0 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] APValue.Diagnostics

1 FAILED TEST

Both clang-3.0rc3 and llvm-3.0rc3. The test-suite sources are only needed if you're going to run the full test suite.

  - Doug

You probably don't need the whole test-suite. There's a symlink to it, but I think it'll be ignored.

-bw

We are starting on our third (and hopefully last) round of testing for LLVM 3.0. Please visit:

       http://llvm.org/pre-releases/3.0/rc3/

for the sources. There are also binaries for Darwin up there, with more to come during the week. Please build this release candidate, test it out on your projects, and let us know if you find any regressions from the 2.9 release.

I've done a "make -j2 all check-all", llvm + clang, Release build, on
Ubuntu Linux 11.04 x86_64. I got one test failure:

Failing Tests (1):
   Clang-Unit :: AST/Release/ASTTests/APValue.Diagnostics

I've pasted the output of the test below.

Jay,

Did you see these failures for rc2?

Chandler,

Could these be related to your changes?

-bw

Extremely unlikely. I’ll investigate though.

I never tried rc2. I could give it a go tomorrow, if it's still
available for download.

Jay.

It's there. Thanks! :slight_smile:

-bw

On Linux Debian testing, gcc-4.6.1:

Built fine, with warnings listed below

make check-all passed

I couldn't figure out how to run the test-suite. Are there up-to-date
instructions somewhere? llvm-gcc doesn't exist anymore...

                      -Dave

I get the following warnings building llvm+clang (default configure,
default make target):

/home/greened/src/llvm-30-rc3/llvm/lib/Support/Mutex.cpp: In constructor ‘llvm::sys::MutexImpl::MutexImpl(bool)’:
/home/greened/src/llvm-30-rc3/llvm/lib/Support/Mutex.cpp:69:9: warning: variable ‘errorcode’ set but not used [-Wunused-but-set-variable]

/home/greened/src/llvm-30-rc3/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp: In member function ‘llvm::SDValue {anonymous}::SelectionDAGLegalize::LegalizeOp(llvm::SDValue)’:
/home/greened/src/llvm-30-rc3/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1652:19: warning: variable ‘EltVT’ set but not used [-Wunused-but-set-variable]
/home/greened/src/llvm-30-rc3/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1632:15: warning: variable ‘WideScalarVT’ set but not used [-Wunused-but-set-variable]

/home/greened/src/llvm-30-rc3/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp: In member function ‘llvm::SDNode* {anonymous}::ARMDAGToDAGISel::SelectABSOp(llvm::SDNode*)’:
/home/greened/src/llvm-30-rc3/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp:2319:12: warning: variable ‘DL’ set but not used [-Wunused-but-set-variable]

/home/greened/src/llvm-30-rc3/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp: In member function ‘bool {anonymous}::ARMAsmParser::tryParseRegisterWithWriteBack(llvm::SmallVectorImpl<llvm::MCParsedAsmOperand*>&)’:
/home/greened/src/llvm-30-rc3/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp:1979:11: warning: variable ‘ExprLoc’ set but not used [-Wunused-but-set-variable]

/home/greened/src/llvm-30-rc3/llvm/lib/Target/ARM/Disassembler/ARMDisassembler.cpp: In function ‘DecodeStatus DecodeCopMemInstruction(llvm::MCInst&, unsigned int, uint64_t, const void*)’:
/home/greened/src/llvm-30-rc3/llvm/lib/Target/ARM/Disassembler/ARMDisassembler.cpp:1241:12: warning: variable ‘idx_mode’ set but not used [-Wunused-but-set-variable]

/home/greened/src/llvm-30-rc3/clang-3.0rc3.src/lib/Lex/Lexer.cpp: In static member function ‘static clang::SourceLocation clang::Lexer::GetBeginningOfToken(clang::SourceLocation, const clang::SourceManager&, const clang::LangOptions&)’:
/home/greened/src/llvm-30-rc3/clang-3.0rc3.src/lib/Lex/Lexer.cpp:489:30: warning: variable ‘FileLocInfo’ set but not used [-Wunused-but-set-variable]
/home/greened/src/llvm-30-rc3/clang-3.0rc3.src/lib/Lex/Lexer.cpp:490:30: warning: variable ‘BeginFileLocInfo’ set but not used [-Wunused-but-set-variable]

/home/greened/src/llvm-30-rc3/clang-3.0rc3.src/lib/AST/Decl.cpp: In member function ‘unsigned int clang::FieldDecl::getFieldIndex() const’:
/home/greened/src/llvm-30-rc3/clang-3.0rc3.src/lib/AST/Decl.cpp:2209:53: warning: variable ‘e’ set but not used [-Wunused-but-set-variable]

/home/greened/src/llvm-30-rc3/clang-3.0rc3.src/lib/Sema/SemaExpr.cpp: In member function ‘clang::QualType clang::Sema::CheckVectorCompareOperands(clang::ExprResult&, clang::ExprResult&, clang::SourceLocation, bool)’:
/home/greened/src/llvm-30-rc3/clang-3.0rc3.src/lib/Sema/SemaExpr.cpp:6698:12: warning: variable ‘RHSType’ set but not used [-Wunused-but-set-variable]

/home/greened/src/llvm-30-rc3/clang-3.0rc3.src/lib/StaticAnalyzer/Core/RegionStore.cpp: In member function ‘clang::ento::SVal {anonymous}::RegionStoreManager::RetrieveStruct(clang::ento::Store, const clang::ento::TypedValueRegion*)’:
/home/greened/src/llvm-30-rc3/clang-3.0rc3.src/lib/StaticAnalyzer/Core/RegionStore.cpp:1280:12: warning: variable ‘T’ set but not used [-Wunused-but-set-variable]

/home/greened/src/llvm-30-rc3/clang-3.0rc3.src/lib/Sema/SemaTemplateInstantiateDecl.cpp: In member function ‘clang::NamedDecl* clang::Sema::FindInstantiatedDecl(clang::SourceLocation, clang::NamedDecl*, const clang::MultiLevelTemplateArgumentList&)’:
/home/greened/src/llvm-30-rc3/clang-3.0rc3.src/lib/Sema/SemaTemplateInstantiateDecl.cpp:3170:12: warning: variable ‘SawNonDependentContext’ set but not used [-Wunused-but-set-variable]

/home/greened/src/llvm-30-rc3/clang-3.0rc3.src/lib/CodeGen/CGRecordLayoutBuilder.cpp: In member function ‘void {anonymous}::CGRecordLayoutBuilder::LayoutUnion(const clang::RecordDecl*)’:
/home/greened/src/llvm-30-rc3/clang-3.0rc3.src/lib/CodeGen/CGRecordLayoutBuilder.cpp:528:8: warning: variable ‘hasOnlyZeroSizedBitFields’ set but not used [-Wunused-but-set-variable]

Easiest is to check out the test-suite branch into projects and then after you configure and build from the top level, go into build/projects/test-suite and do a ‘make TEST=simple report’.

-eric

Yes.

Jay.

Eric Christopher <echristo@apple.com> writes:

    I couldn't figure out how to run the test-suite. Are there up-to-date
    instructions somewhere? llvm-gcc doesn't exist anymore...

Easiest is to check out the test-suite branch into projects and then after you configure and build from the top level, go into build/projects/
test-suite and do a 'make TEST=simple report'.

This fails miserably for me:

make -j1 TEST=simple
make[1]: Entering directory `/home/greened/src/llvm-30-rc3/build/projects/llvm-test'
make[2]: Entering directory `/home/greened/src/llvm-30-rc3/build/projects/llvm-test/SingleSource'
make[3]: Entering directory `/home/greened/src/llvm-30-rc3/build/projects/llvm-test/SingleSource/UnitTests'
make[4]: Entering directory `/home/greened/src/llvm-30-rc3/build/projects/llvm-test/SingleSource/UnitTests/Vector'
make[5]: Entering directory `/home/greened/src/llvm-30-rc3/build/projects/llvm-test/SingleSource/UnitTests/Vector/SSE'
/home/greened/src/llvm-30-rc3/build/projects/llvm-test/../../../llvm/projects/llvm-test/RunSafely.sh 500 0 /dev/null Output/sse.expandfft.llvm.o.compil
e \
           -I/home/greened/src/llvm-30-rc3/build/projects/llvm-test/SingleSource/UnitTests/Vector/SSE -I/home/greened/src/llvm-30-rc3/test-suite-3.0rc3
.src/SingleSource/UnitTests/Vector/SSE -I/home/greened/src/llvm-30-rc3/build/projects/llvm-test/../../../llvm/projects/llvm-test/include -I../../../../
include -I/home/greened/src/llvm-30-rc3/build/include -I/home/greened/src/llvm-30-rc3/llvm/include -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -DNDEBUG -O3 -m
sse2 -c /home/greened/src/llvm-30-rc3/test-suite-3.0rc3.src/SingleSource/UnitTests/Vector/SSE/sse.expandfft.c -o Output/sse.expandfft.llvm.o
basename: invalid option -- 'I'
Try `basename --help' for more information.
/home/greened/src/llvm-30-rc3/build/projects/llvm-test/../../../llvm/projects/llvm-test/RunSafely.sh: 95: [: =: unexpected operator
TEST -I/home/greened/src/llvm-30-rc3/build/projects/llvm-test/SingleSource/UnitTests/Vector/SSE FAILED: command not found (exit status 127)!
/bin/cp Output/sse.expandfft.llvm.o.compile.time Output/sse.expandfft.simple.compile.time
o Output/sse.expandfft.simple Output/sse.expandfft.llvm.o -lm -msse2
make[5]: o: Command not found
make[5]: [Output/sse.expandfft.simple] Error 127 (ignored)
/home/greened/src/llvm-30-rc3/build/projects/llvm-test/../../../llvm/projects/llvm-test/RunSafely.sh 500 0 /dev/null Output/sse.expandfft.out-simple Ou
tput/sse.expandfft.simple
TEST Output/sse.expandfft.simple FAILED: command not found (exit status 127)!

                                   -Dave

Doesn't appear to be finding your built compiler. Can you send me a private email with the output of config.log when you reconfigure and your source checkout lines?

Thanks!

-eric

I’m not sure if this makes a difference but I ran this

make -j 2 -k LLVMCC_OPTION=clang ENABLE_BUILT_CLANG=1 ENABLE_PARALLEL_REPORT=1 TEST=simple report > …/…/report.txt 2>&1

inside

rc3/Phase3/Release/llvmCore-3.0-rc2.obj/projects/llvm-test

Nikola Smiljanic <popizdeh@gmail.com> writes:

I'm not sure if this makes a difference but I ran this

make -j 2 -k LLVMCC_OPTION=clang ENABLE_BUILT_CLANG=1 ENABLE_PARALLEL_REPORT=1 TEST=simple report > ../../report.txt 2>&1

That does indeed seem to get me further. Thanks!

                              -Dave

greened@obbligato.org (David A. Greene) writes:

Nikola Smiljanic <popizdeh@gmail.com> writes:

I'm not sure if this makes a difference but I ran this

make -j 2 -k LLVMCC_OPTION=clang ENABLE_BUILT_CLANG=1 ENABLE_PARALLEL_REPORT=1 TEST=simple report > ../../report.txt 2>&1

That does indeed seem to get me further. Thanks!

Failures below.

                                  -Dave

******************** TEST (simple) 'sse.expandfft' FAILED! ********************
Execution Context Diff:
/home/greened/src/llvm-30-rc3/build/Release/bin/fpcmp: Compared: 1.139094e-07 and 1.159249e-07
abs. diff = 2.015500e-09 rel.diff = 1.738626e-02
Out of tolerance: rel/abs: 1.600000e-02/0.000000e+00

TEST-FAIL: exec /home/greened/src/llvm-30-rc3/build/projects/llvm-test/SingleSource/UnitTests/Vector/SSE/sse.expandfft

******************** TEST (simple) 'sse.stepfft' FAILED! ********************
Execution Context Diff:
/home/greened/src/llvm-30-rc3/build/Release/bin/fpcmp: Compared: 1.139094e-07 and 1.159249e-07
abs. diff = 2.015500e-09 rel.diff = 1.738626e-02
Out of tolerance: rel/abs: 1.600000e-02/0.000000e+00

TEST-FAIL: exec /home/greened/src/llvm-30-rc3/build/projects/llvm-test/SingleSource/UnitTests/Vector/SSE/sse.stepfft

That test passes for me on Fedora 15 x86_64 (gcc-4.6.1-9.fc15.x86_64).

The one change I had to do is remove the compiler flags pointing Clang
to the system C/C++ headers, otherwise the related test fails:

FAIL: Clang :: Driver/linux-ld.c (1949 of 3941)

Regards,

- --
Michel Alexandre Salim
Fedora Project Contributor: http://fedoraproject.org/

Email: salimma@fedoraproject.org | GPG key ID: 78884778
Jabber: hircus@jabber.ccc.de | IRC: hircus@irc.freenode.net

() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments

Hello:

Newbie here. I just tested the LLVM 2.9 today and found the in-line assembly of clang/llvm do not handle 128-bit integer very well (as gcc-does).
Both Apple and Linux version seem affected. I will try 3.0rc3 tomorrow to see if fixed.

Thanks.

Huaxia Zhao