Package Details: clang39 3.9.1-5

Git Clone URL: https://aur.archlinux.org/llvm39.git (read-only, click to copy)
Package Base: llvm39
Description: C language family frontend for LLVM (3.9.x)
Upstream URL: http://clang.llvm.org/
Licenses: custom:University of Illinois/NCSA Open Source License
Conflicts: clang, clang35
Provides: clang=3.9.1-5
Replaces: clang, clang35
Submitter: foutrelis
Maintainer: None
Last Packager: ftschindler
Votes: 1
Popularity: 0.000000
First Submitted: 2018-02-07 17:03
Last Updated: 2018-08-04 21:27

Required by (588)

Sources (8)

Latest Comments

mirh commented on 2020-08-08 13:08

You can build the thing again with this patch I back-backported from freebsd

r291939 | malcolm.parsons | 2017-01-13 19:55:32 +0100 (Fri, 13 Jan 2017) | 1 line

Remove unused lambda captures. NFC

Index: tools/clang/lib/AST/CXXInheritance.cpp
===================================================================
--- tools/clang/lib/AST/CXXInheritance.cpp  (revision 291938)
+++ tools/clang/lib/AST/CXXInheritance.cpp  (revision 291939)
@@ -88,7 +88,7 @@ bool CXXRecordDecl::isDerivedFrom(const CXXRecordD
   const CXXRecordDecl *BaseDecl = Base->getCanonicalDecl();
   // FIXME: Capturing 'this' is a workaround for name lookup bugs in GCC 4.7.
   return lookupInBases(
-      [this, BaseDecl](const CXXBaseSpecifier *Specifier, CXXBasePath &Path) {
+      [BaseDecl](const CXXBaseSpecifier *Specifier, CXXBasePath &Path) {
         return FindBaseClass(Specifier, Path, BaseDecl);
       },
       Paths);
@@ -109,7 +109,7 @@ bool CXXRecordDecl::isVirtuallyDerivedFrom(const C
   const CXXRecordDecl *BaseDecl = Base->getCanonicalDecl();
   // FIXME: Capturing 'this' is a workaround for name lookup bugs in GCC 4.7.
   return lookupInBases(
-      [this, BaseDecl](const CXXBaseSpecifier *Specifier, CXXBasePath &Path) {
+      [BaseDecl](const CXXBaseSpecifier *Specifier, CXXBasePath &Path) {
         return FindVirtualBaseClass(Specifier, Path, BaseDecl);
       },
       Paths);
Index: tools/clang/lib/AST/MicrosoftMangle.cpp
===================================================================
--- tools/clang/lib/AST/MicrosoftMangle.cpp (revision 291938)
+++ tools/clang/lib/AST/MicrosoftMangle.cpp (revision 291939)
@@ -2997,7 +2997,7 @@ void MicrosoftMangleContextImpl::mangleStringLiter
   // N.B. The length is in terms of bytes, not characters.
   Mangler.mangleNumber(SL->getByteLength() + SL->getCharByteWidth());

-  auto GetLittleEndianByte = [&Mangler, &SL](unsigned Index) {
+  auto GetLittleEndianByte = [&SL](unsigned Index) {
     unsigned CharByteWidth = SL->getCharByteWidth();
     uint32_t CodeUnit = SL->getCodeUnit(Index / CharByteWidth);
     unsigned OffsetInCodeUnit = Index % CharByteWidth;
@@ -3004,7 +3004,7 @@ void MicrosoftMangleContextImpl::mangleStringLiter
     return static_cast<char>((CodeUnit >> (8 * OffsetInCodeUnit)) & 0xff);
   };

-  auto GetBigEndianByte = [&Mangler, &SL](unsigned Index) {
+  auto GetBigEndianByte = [&SL](unsigned Index) {
     unsigned CharByteWidth = SL->getCharByteWidth();
     uint32_t CodeUnit = SL->getCodeUnit(Index / CharByteWidth);
     unsigned OffsetInCodeUnit = (CharByteWidth - 1) - (Index % CharByteWidth);
Index: tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
===================================================================
--- tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp (revision 291938)
+++ tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp (revision 291939)
@@ -4006,8 +4006,8 @@ void CGOpenMPRuntime::emitTaskCall(CodeGenFunction
     DepTaskArgs[5] = CGF.Builder.getInt32(0);
     DepTaskArgs[6] = llvm::ConstantPointerNull::get(CGF.VoidPtrTy);
   }
-  auto &&ThenCodeGen = [this, Loc, &Data, TDBase, KmpTaskTQTyRD,
-                        NumDependencies, &TaskArgs,
+  auto &&ThenCodeGen = [this, &Data, TDBase, KmpTaskTQTyRD, NumDependencies,
+                        &TaskArgs,
                         &DepTaskArgs](CodeGenFunction &CGF, PrePostActionTy &) {
     if (!Data.Tied) {
       auto PartIdFI = std::next(KmpTaskTQTyRD->field_begin(), KmpTaskTPartId);
@@ -4562,7 +4562,7 @@ void CGOpenMPRuntime::emitReduction(CodeGenFunctio
       }
       if (XExpr) {
         auto *VD = cast<VarDecl>(cast<DeclRefExpr>(*ILHS)->getDecl());
-        auto &&AtomicRedGen = [BO, VD, IPriv,
+        auto &&AtomicRedGen = [BO, VD,
                                Loc](CodeGenFunction &CGF, const Expr *XExpr,
                                     const Expr *EExpr, const Expr *UpExpr) {
           LValue X = CGF.EmitLValue(XExpr);
@@ -4572,7 +4572,7 @@ void CGOpenMPRuntime::emitReduction(CodeGenFunctio
           CGF.EmitOMPAtomicSimpleUpdateExpr(
               X, E, BO, /*IsXLHSInRHSPart=*/true,
               llvm::AtomicOrdering::Monotonic, Loc,
-              [&CGF, UpExpr, VD, IPriv, Loc](RValue XRValue) {
+              [&CGF, UpExpr, VD, Loc](RValue XRValue) {
                 CodeGenFunction::OMPPrivateScope PrivateScope(CGF);
                 PrivateScope.addPrivate(
                     VD, [&CGF, VD, XRValue, Loc]() -> Address {
@@ -5988,8 +5988,8 @@ void CGOpenMPRuntime::emitTargetCall(CodeGenFuncti
                         OffloadError);

   // Fill up the pointer arrays and transfer execution to the device.
-  auto &&ThenGen = [&Ctx, &BasePointers, &Pointers, &Sizes, &MapTypes, Device,
-                    OutlinedFnID, OffloadError, OffloadErrorQType,
+  auto &&ThenGen = [&BasePointers, &Pointers, &Sizes, &MapTypes, Device,
+                    OutlinedFnID, OffloadError,
                     &D](CodeGenFunction &CGF, PrePostActionTy &) {
     auto &RT = CGF.CGM.getOpenMPRuntime();
     // Emit the offloading arrays.
@@ -6073,7 +6073,7 @@ void CGOpenMPRuntime::emitTargetDataCall
   // Generate the code for the opening of the data environment. Capture all the
   // arguments of the runtime call by reference because they are used in the
   // closing of the region.
-  auto &&BeginThenGen = [&D, &CGF, &BasePointersArray, &PointersArray,
+  auto &&BeginThenGen = [&D, &BasePointersArray, &PointersArray,
                          &SizesArray, &MapTypesArray, Device,
                          &NumOfPtrs](CodeGenFunction &CGF, PrePostActionTy &) {
     // Fill up the arrays with all the mapped variables.
@@ -6121,7 +6121,7 @@ void CGOpenMPRuntime::emitTargetDataCall
   };

   // Generate code for the closing of the data region.
-  auto &&EndThenGen = [&CGF, &BasePointersArray, &PointersArray, &SizesArray,
+  auto &&EndThenGen = [&BasePointersArray, &PointersArray, &SizesArray,
                        &MapTypesArray, Device,
                        &NumOfPtrs](CodeGenFunction &CGF, PrePostActionTy &) {
     assert(BasePointersArray && PointersArray && SizesArray && MapTypesArray &&
@@ -6401,7 +6400,7 @@ void CGOpenMPRuntime::emitTargetDataStandAloneCall
          "Expecting either target enter, exit data, or update directives.");

   // Generate the code for the opening of the data environment.
-  auto &&ThenGen = [&D, &CGF, Device](CodeGenFunction &CGF, PrePostActionTy &) {
+  auto &&ThenGen = [&D, Device](CodeGenFunction &CGF, PrePostActionTy &) {
     // Fill up the arrays with all the mapped variables.
     MappableExprsHandler::MapBaseValuesArrayTy BasePointers;
     MappableExprsHandler::MapValuesArrayTy Pointers;
Index: tools/clang/lib/CodeGen/CGStmtOpenMP.cpp
===================================================================
--- tools/clang/lib/CodeGen/CGStmtOpenMP.cpp    (revision 291938)
+++ tools/clang/lib/CodeGen/CGStmtOpenMP.cpp    (revision 291939)
@@ -986,7 +986,7 @@ void CodeGenFunction::EmitOMPReductionClauseInit(
                         OriginalBaseLValue);
         // Store the address of the original variable associated with the LHS
         // implicit variable.
-        PrivateScope.addPrivate(LHSVD, [this, OASELValueLB]() -> Address {
+        PrivateScope.addPrivate(LHSVD, [OASELValueLB]() -> Address {
           return OASELValueLB.getAddress();
         });
         // Emit reduction copy.
@@ -1040,9 +1040,8 @@ void CodeGenFunction::EmitOMPReductionClauseInit(
             *this, OrigVD->getType(), ASELValue.getType(), OriginalBaseLValue);
         // Store the address of the original variable associated with the LHS
         // implicit variable.
-        PrivateScope.addPrivate(LHSVD, [this, ASELValue]() -> Address {
-          return ASELValue.getAddress();
-        });
+        PrivateScope.addPrivate(
+            LHSVD, [ASELValue]() -> Address { return ASELValue.getAddress(); });
         // Emit reduction copy.
         bool IsRegistered = PrivateScope.addPrivate(
             OrigVD, [this, OrigVD, PrivateVD, BaseLValue, ASELValue,
@@ -2633,7 +2632,7 @@ void CodeGenFunction::EmitOMPTaskBasedDirective(co
   for (const auto *C : S.getClausesOfKind<OMPDependClause>())
     for (auto *IRef : C->varlists())
       Data.Dependences.push_back(std::make_pair(C->getDependencyKind(), IRef));
-  auto &&CodeGen = [PartId, &S, &Data, CS, &BodyGen, &LastprivateDstsOrigs](
+  auto &&CodeGen = [&Data, CS, &BodyGen, &LastprivateDstsOrigs](
       CodeGenFunction &CGF, PrePostActionTy &Action) {
     // Set proper addresses for generated private copies.
     OMPPrivateScope Scope(CGF);
@@ -3250,7 +3249,7 @@ static void EmitOMPAtomicCaptureExpr(CodeGenFuncti
     NewVValType = XRValExpr->getType();
     auto *ERValExpr = IsXLHSInRHSPart ? RHS : LHS;
     auto &&Gen = [&CGF, &NewVVal, UE, ExprRValue, XRValExpr, ERValExpr,
-                  IsSeqCst, IsPostfixUpdate](RValue XRValue) -> RValue {
+                  IsPostfixUpdate](RValue XRValue) -> RValue {
       CodeGenFunction::OpaqueValueMapping MapExpr(CGF, ERValExpr, ExprRValue);
       CodeGenFunction::OpaqueValueMapping MapX(CGF, XRValExpr, XRValue);
       RValue Res = CGF.EmitAnyExpr(UE);
@@ -3277,7 +3276,7 @@ static void EmitOMPAtomicCaptureExpr(CodeGenFuncti
     NewVValType = X->getType().getNonReferenceType();
     ExprRValue = convertToType(CGF, ExprRValue, E->getType(),
                                X->getType().getNonReferenceType(), Loc);
-    auto &&Gen = [&CGF, &NewVVal, ExprRValue](RValue XRValue) -> RValue {
+    auto &&Gen = [&NewVVal, ExprRValue](RValue XRValue) -> RValue {
       NewVVal = XRValue;
       return ExprRValue;
     };

ftschindler commented on 2019-10-08 13:51

I do not require this package any more, feel free to pick up!

ftschindler commented on 2018-08-04 21:29

I could not solve the problem and have thus disabled the failing test. This is of course not optimal and I am open to suggestions.

ftschindler commented on 2018-08-04 07:10

I can reproduce the issue. I will try to investigate, input welcome!

alfredo.ardito commented on 2018-08-03 16:00

Hello i rebuilt the package in clean chroots and it failed reporting this error:

[100%] Running the LLVM regression tests -- Testing: 17222 tests, 4 threads -- Testing: FAIL: LLVM-Unit :: ADT/ADTTests/ArrayRefTest.InitializerList (95 of 17222) **** TEST 'LLVM-Unit :: ADT/ADTTests/ArrayRefTest.InitializerList' FAILED ****** Note: Google Test filter = ArrayRefTest.InitializerList [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from ArrayRefTest [ RUN ] ArrayRefTest.InitializerList /build/llvm39/src/llvm-3.9.1.src/unittests/ADT/ArrayRefTest.cpp:139: Failure Value of: A[i] Actual: 0 Expected: i Which is: 1 /build/llvm39/src/llvm-3.9.1.src/unittests/ADT/ArrayRefTest.cpp:139: Failure Value of: A[i] Actual: 1175747072 Expected: i Which is: 2 /build/llvm39/src/llvm-3.9.1.src/unittests/ADT/ArrayRefTest.cpp:139: Failure Value of: A[i] Actual: 22097 Expected: i Which is: 3 /build/llvm39/src/llvm-3.9.1.src/unittests/ADT/ArrayRefTest.cpp:139: Failure Value of: A[i] Actual: 1175522016 Expected: i Which is: 4 [ FAILED ] ArrayRefTest.InitializerList (1 ms) [----------] 1 test from ArrayRefTest (1 ms total)

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

1 FAILED TEST


Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. Testing Time: 189.38s


Failing Tests (1): LLVM-Unit :: ADT/ADTTests/ArrayRefTest.InitializerList

Expected Passes : 16758 Expected Failures : 124 Unsupported Tests : 339 Unexpected Failures: 1 make[3]: [test/CMakeFiles/check-llvm.dir/build.make:58: test/CMakeFiles/check-llvm] Error 1 make[2]: [CMakeFiles/Makefile2:69058: test/CMakeFiles/check-llvm.dir/all] Error 2 make[1]: [CMakeFiles/Makefile2:69065: test/CMakeFiles/check-llvm.dir/rule] Error 2 make: [Makefile:15552: check-llvm] Error 2 ==> ERROR: A failure occurred in check(). Aborting...

alfredo.ardito commented on 2018-08-03 13:01

got this error when building Scanning dependencies of target check-llvm [100%] Running the LLVM regression tests FAIL: LLVM-Unit :: ADT/ADTTests/ArrayRefTest.InitializerList (93 of 17358) **** TEST 'LLVM-Unit :: ADT/ADTTests/ArrayRefTest.InitializerList' FAILED ****** Note: Google Test filter = ArrayRefTest.InitializerList [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from ArrayRefTest [ RUN ] ArrayRefTest.InitializerList /home/xxxxxxxxx/.cache/aurman/llvm39/src/llvm-3.9.1.src/unittests/ADT/ArrayRefTest.cpp:139: Failure Value of: A[i] Actual: 0 Expected: i Which is: 1 /home/xxxxxxxxxxx/.cache/aurman/llvm39/src/llvm-3.9.1.src/unittests/ADT/ArrayRefTest.cpp:139: Failure Value of: A[i] Actual: 1483131408 Expected: i Which is: 2 /home/xxxxxxxxxxx/.cache/aurman/llvm39/src/llvm-3.9.1.src/unittests/ADT/ArrayRefTest.cpp:139: Failure Value of: A[i] Actual: 22006 Expected: i Which is: 3 /home/xxxxxxxxxxx/.cache/aurman/llvm39/src/llvm-3.9.1.src/unittests/ADT/ArrayRefTest.cpp:139: Failure Value of: A[i] Actual: 1482906304 Expected: i Which is: 4 [ FAILED ] ArrayRefTest.InitializerList (0 ms) [----------] 1 test from ArrayRefTest (0 ms total)

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

1 FAILED TEST


Testing Time: 175.59s


Failing Tests (1): LLVM-Unit :: ADT/ADTTests/ArrayRefTest.InitializerList

Expected Passes : 16895 Expected Failures : 124 Unsupported Tests : 338 Unexpected Failures: 1 make[3]: [test/CMakeFiles/check-llvm.dir/build.make:58: test/CMakeFiles/check-llvm] Error 1 make[2]: [CMakeFiles/Makefile2:69302: test/CMakeFiles/check-llvm.dir/all] Error 2 make[1]: [CMakeFiles/Makefile2:69309: test/CMakeFiles/check-llvm.dir/rule] Error 2 make: [Makefile:15565: check-llvm] Error 2 ==> ERROR: A failure occurred in check(). Aborting...

Any Clue?