Trunk build failure at commit 206147, 206148, 206149

Jiangning Liu liujiangning1 at gmail.com
Sun Apr 13 23:54:04 PDT 2014


Chandler,

Build can pass now! Thank you!

-Jiangning


2014-04-14 14:49 GMT+08:00 Chandler Carruth <chandlerc at gmail.com>:

> Anyways, should be fixed by r206152. AFAICT, this is a GCC bug. =/
>
>
> On Mon, Apr 14, 2014 at 7:44 AM, Eric Christopher <echristo at gmail.com>wrote:
>
>> I can duplicate this using gcc 4.9. Not sure what the issue is, but...
>>
>> -eric
>>
>> On Sun, Apr 13, 2014 at 11:39 PM, Jiangning Liu <liujiangning1 at gmail.com>
>> wrote:
>> > jialiu01 at jialiu01-server:~/llvm/llvm$ git status
>> > # On branch master
>> > nothing to commit, working directory clean
>> > jialiu01 at jialiu01-server:~/llvm/llvm$ git pull
>> > Already up-to-date.
>> > jialiu01 at jialiu01-server:~/llvm/llvm$ cd tools/clang
>> > jialiu01 at jialiu01-server:~/llvm/llvm/tools/clang$ git status
>> > # On branch master
>> > nothing to commit, working directory clean
>> > jialiu01 at jialiu01-server:~/llvm/llvm/tools/clang$ git pull
>> > Already up-to-date.
>> > jialiu01 at jialiu01-server:~/llvm/llvm/tools/clang$ cd ..
>> > jialiu01 at jialiu01-server:~/llvm/llvm/tools$ cd ../../build
>> > jialiu01 at jialiu01-server:~/llvm/build$ rm -rf *
>> > jialiu01 at jialiu01-server:~/llvm/build$ cmake ../llvm
>> > -- The C compiler identification is GNU 4.8.1
>> > -- The CXX compiler identification is GNU 4.8.1
>> > -- Check for working C compiler: /usr/bin/cc
>> > -- Check for working C compiler: /usr/bin/cc -- works
>> > -- Detecting C compiler ABI info
>> > -- Detecting C compiler ABI info - done
>> > -- Check for working CXX compiler: /usr/bin/c++
>> > -- Check for working CXX compiler: /usr/bin/c++ -- works
>> > -- Detecting CXX compiler ABI info
>> > -- Detecting CXX compiler ABI info - done
>> > -- Looking for C++ include cxxabi.h
>> > -- Looking for C++ include cxxabi.h - found
>> > -- Looking for dirent.h
>> > -- Looking for dirent.h - found
>> > -- Looking for dlfcn.h
>> > -- Looking for dlfcn.h - found
>> > -- Looking for errno.h
>> > -- Looking for errno.h - found
>> > -- Looking for execinfo.h
>> > -- Looking for execinfo.h - found
>> > -- Looking for fcntl.h
>> > -- Looking for fcntl.h - found
>> > -- Looking for inttypes.h
>> > -- Looking for inttypes.h - found
>> > -- Looking for limits.h
>> > -- Looking for limits.h - found
>> > -- Looking for malloc.h
>> > -- Looking for malloc.h - found
>> > -- Looking for malloc/malloc.h
>> > -- Looking for malloc/malloc.h - not found
>> > -- Looking for ndir.h
>> > -- Looking for ndir.h - not found
>> > -- Looking for pthread.h
>> > -- Looking for pthread.h - found
>> > -- Looking for signal.h
>> > -- Looking for signal.h - found
>> > -- Looking for stdint.h
>> > -- Looking for stdint.h - found
>> > -- Looking for sys/dir.h
>> > -- Looking for sys/dir.h - found
>> > -- Looking for sys/ioctl.h
>> > -- Looking for sys/ioctl.h - found
>> > -- Looking for sys/mman.h
>> > -- Looking for sys/mman.h - found
>> > -- Looking for sys/ndir.h
>> > -- Looking for sys/ndir.h - not found
>> > -- Looking for sys/param.h
>> > -- Looking for sys/param.h - found
>> > -- Looking for sys/resource.h
>> > -- Looking for sys/resource.h - found
>> > -- Looking for sys/stat.h
>> > -- Looking for sys/stat.h - found
>> > -- Looking for sys/time.h
>> > -- Looking for sys/time.h - found
>> > -- Looking for sys/uio.h
>> > -- Looking for sys/uio.h - found
>> > -- Looking for sys/wait.h
>> > -- Looking for sys/wait.h - found
>> > -- Looking for termios.h
>> > -- Looking for termios.h - found
>> > -- Looking for unistd.h
>> > -- Looking for unistd.h - found
>> > -- Looking for utime.h
>> > -- Looking for utime.h - found
>> > -- Looking for valgrind/valgrind.h
>> > -- Looking for valgrind/valgrind.h - not found
>> > -- Looking for zlib.h
>> > -- Looking for zlib.h - found
>> > -- Looking for fenv.h
>> > -- Looking for fenv.h - found
>> > -- Looking for FE_ALL_EXCEPT
>> > -- Looking for FE_ALL_EXCEPT - found
>> > -- Looking for FE_INEXACT
>> > -- Looking for FE_INEXACT - found
>> > -- Looking for mach/mach.h
>> > -- Looking for mach/mach.h - not found
>> > -- Looking for mach-o/dyld.h
>> > -- Looking for mach-o/dyld.h - not found
>> > -- Looking for pthread_create in pthread
>> > -- Looking for pthread_create in pthread - found
>> > -- Looking for pthread_getspecific in pthread
>> > -- Looking for pthread_getspecific in pthread - found
>> > -- Looking for pthread_rwlock_init in pthread
>> > -- Looking for pthread_rwlock_init in pthread - found
>> > -- Looking for pthread_mutex_lock in pthread
>> > -- Looking for pthread_mutex_lock in pthread - found
>> > -- Looking for dlopen in dl
>> > -- Looking for dlopen in dl - found
>> > -- Looking for clock_gettime in rt
>> > -- Looking for clock_gettime in rt - found
>> > -- Looking for compress2 in z
>> > -- Looking for compress2 in z - found
>> > -- Looking for el_init in edit
>> > -- Looking for el_init in edit - not found
>> > -- Looking for setupterm in tinfo
>> > -- Looking for setupterm in tinfo - found
>> > -- Looking for arc4random
>> > -- Looking for arc4random - not found
>> > -- Looking for backtrace
>> > -- Looking for backtrace - found
>> > -- Looking for getpagesize
>> > -- Looking for getpagesize - found
>> > -- Looking for getrusage
>> > -- Looking for getrusage - found
>> > -- Looking for setrlimit
>> > -- Looking for setrlimit - found
>> > -- Looking for isatty
>> > -- Looking for isatty - found
>> > -- Looking for isinf
>> > -- Looking for isinf - not found
>> > -- Looking for isinf
>> > -- Looking for isinf - found
>> > -- Looking for finite
>> > -- Looking for finite - not found
>> > -- Looking for isnan
>> > -- Looking for isnan - not found
>> > -- Looking for isnan
>> > -- Looking for isnan - found
>> > -- Looking for ceilf
>> > -- Looking for ceilf - found
>> > -- Looking for floorf
>> > -- Looking for floorf - found
>> > -- Looking for fmodf
>> > -- Looking for fmodf - found
>> > -- Looking for log
>> > -- Looking for log - found
>> > -- Looking for log2
>> > -- Looking for log2 - found
>> > -- Looking for log10
>> > -- Looking for log10 - found
>> > -- Looking for exp
>> > -- Looking for exp - found
>> > -- Looking for exp2
>> > -- Looking for exp2 - found
>> > -- Looking for exp10
>> > -- Looking for exp10 - not found
>> > -- Looking for futimens
>> > -- Looking for futimens - found
>> > -- Looking for futimes
>> > -- Looking for futimes - found
>> > -- Looking for writev
>> > -- Looking for writev - found
>> > -- Looking for nearbyintf
>> > -- Looking for nearbyintf - found
>> > -- Looking for mallinfo
>> > -- Looking for mallinfo - found
>> > -- Looking for malloc_zone_statistics
>> > -- Looking for malloc_zone_statistics - not found
>> > -- Looking for mkdtemp
>> > -- Looking for mkdtemp - found
>> > -- Looking for mkstemp
>> > -- Looking for mkstemp - found
>> > -- Looking for mktemp
>> > -- Looking for mktemp - found
>> > -- Looking for closedir
>> > -- Looking for closedir - found
>> > -- Looking for opendir
>> > -- Looking for opendir - found
>> > -- Looking for readdir
>> > -- Looking for readdir - found
>> > -- Looking for getcwd
>> > -- Looking for getcwd - found
>> > -- Looking for gettimeofday
>> > -- Looking for gettimeofday - found
>> > -- Looking for getrlimit
>> > -- Looking for getrlimit - found
>> > -- Looking for posix_spawn
>> > -- Looking for posix_spawn - found
>> > -- Looking for pread
>> > -- Looking for pread - found
>> > -- Looking for realpath
>> > -- Looking for realpath - found
>> > -- Looking for sbrk
>> > -- Looking for sbrk - found
>> > -- Looking for srand48
>> > -- Looking for srand48 - found
>> > -- Looking for lrand48
>> > -- Looking for lrand48 - found
>> > -- Looking for drand48
>> > -- Looking for drand48 - found
>> > -- Looking for strtoll
>> > -- Looking for strtoll - found
>> > -- Looking for strtoq
>> > -- Looking for strtoq - found
>> > -- Looking for strerror
>> > -- Looking for strerror - found
>> > -- Looking for strerror_r
>> > -- Looking for strerror_r - found
>> > -- Looking for strerror_s
>> > -- Looking for strerror_s - not found
>> > -- Looking for setenv
>> > -- Looking for setenv - found
>> > -- Looking for dlerror
>> > -- Looking for dlerror - found
>> > -- Looking for dlopen
>> > -- Looking for dlopen - found
>> > -- Looking for __GLIBC__
>> > -- Looking for __GLIBC__ - found
>> > -- Performing Test HAVE_INT64_T
>> > -- Performing Test HAVE_INT64_T - Success
>> > -- Performing Test HAVE_UINT64_T
>> > -- Performing Test HAVE_UINT64_T - Success
>> > -- Performing Test HAVE_U_INT64_T
>> > -- Performing Test HAVE_U_INT64_T - Success
>> > -- Performing Test LLVM_HAS_ATOMICS
>> > -- Performing Test LLVM_HAS_ATOMICS - Success
>> > -- Could NOT find LibXml2 (missing:  LIBXML2_LIBRARIES
>> LIBXML2_INCLUDE_DIR)
>> > -- Performing Test SUPPORTS_NO_VARIADIC_MACROS_FLAG
>> > -- Performing Test SUPPORTS_NO_VARIADIC_MACROS_FLAG - Success
>> > -- Performing Test HAS_MAYBE_UNINITIALIZED
>> > -- Performing Test HAS_MAYBE_UNINITIALIZED - Success
>> > -- Target triple: x86_64-unknown-linux-gnu
>> > -- Native target architecture is X86
>> > -- Threads enabled.
>> > -- Doxygen disabled.
>> > -- Performing Test C_SUPPORTS_FLAG
>> > -- Performing Test C_SUPPORTS_FLAG - Success
>> > -- Performing Test CXX_SUPPORTS_FLAG
>> > -- Performing Test CXX_SUPPORTS_FLAG - Success
>> > -- Building with -fPIC
>> > -- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG
>> > -- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG - Success
>> > -- Performing Test CXX_SUPPORTS_MISSING_FIELD_INITIALIZERS_FLAG
>> > -- Performing Test CXX_SUPPORTS_MISSING_FIELD_INITIALIZERS_FLAG -
>> Success
>> > -- Performing Test CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG
>> > -- Performing Test CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG - Failed
>> > -- Performing Test C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG
>> > -- Performing Test C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG - Failed
>> > -- Performing Test CXX_SUPPORTS_NON_VIRTUAL_DTOR_FLAG
>> > -- Performing Test CXX_SUPPORTS_NON_VIRTUAL_DTOR_FLAG - Success
>> > -- Performing Test CXX_SUPPORTS_CXX11
>> > -- Performing Test CXX_SUPPORTS_CXX11 - Success
>> > -- Performing Test C_SUPPORTS_FNO_FUNCTION_SECTIONS
>> > -- Performing Test C_SUPPORTS_FNO_FUNCTION_SECTIONS - Success
>> > -- Performing Test C_SUPPORTS_FFUNCTION_SECTIONS
>> > -- Performing Test C_SUPPORTS_FFUNCTION_SECTIONS - Success
>> > -- Performing Test CXX_SUPPORTS_FFUNCTION_SECTIONS
>> > -- Performing Test CXX_SUPPORTS_FFUNCTION_SECTIONS - Success
>> > -- Performing Test C_SUPPORTS_FDATA_SECTIONS
>> > -- Performing Test C_SUPPORTS_FDATA_SECTIONS - Success
>> > -- Performing Test CXX_SUPPORTS_FDATA_SECTIONS
>> > -- Performing Test CXX_SUPPORTS_FDATA_SECTIONS - Success
>> > -- Found PythonInterp: /usr/bin/python (found version "2.7.5")
>> > -- Constructing LLVMBuild project information
>> > -- Targeting AArch64
>> > -- Targeting ARM64
>> > -- Targeting ARM
>> > -- Targeting CppBackend
>> > -- Targeting Hexagon
>> > -- Targeting Mips
>> > -- Targeting MSP430
>> > -- Targeting NVPTX
>> > -- Targeting PowerPC
>> > -- Targeting R600
>> > -- Targeting Sparc
>> > -- Targeting SystemZ
>> > -- Targeting X86
>> > -- Targeting XCore
>> > -- Clang version: 3.5.0
>> > -- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG
>> > -- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG - Failed
>> > -- Found Subversion: /usr/bin/svn (found version "1.7.9")
>> > -- Configuring done
>> > -- Generating done
>> > -- Build files have been written to: /home/jialiu01/llvm/build
>> > jialiu01 at jialiu01-server:~/llvm/build$ make -j8
>> > Scanning dependencies of target libclang_exports
>> > Scanning dependencies of target LLVMHello_exports
>> > Scanning dependencies of target count
>> > Scanning dependencies of target BugpointPasses_exports
>> > Scanning dependencies of target LTO_exports
>> > Scanning dependencies of target LLVMSupport
>> > [  0%] [  0%] [  0%] [  0%] Creating export file for libclang
>> > Creating export file for LLVMHello
>> > Creating export file for BugpointPasses
>> > Creating export file for LTO
>> > [  0%] [  0%] [  0%] Built target libclang_exports
>> > Built target LLVMHello_exports
>> > Built target BugpointPasses_exports
>> > [  0%] Scanning dependencies of target LLVMHello
>> > Building C object utils/count/CMakeFiles/count.dir/count.c.o
>> > [  0%] Built target LTO_exports
>> > [  0%] Scanning dependencies of target obj.LTO
>> > Building CXX object
>> > lib/Transforms/Hello/CMakeFiles/LLVMHello.dir/Hello.cpp.o
>> > Linking C executable ../../bin/count
>> > [  0%] [  0%] Building CXX object
>> > tools/lto/CMakeFiles/obj.LTO.dir/LTODisassembler.cpp.o
>> > Building CXX object tools/lto/CMakeFiles/obj.LTO.dir/lto.cpp.o
>> > [  0%] Built target count
>> > In file included from
>> > /home/jialiu01/llvm/llvm/include/llvm/ADT/StringRef.h:13:0,
>> >                  from
>> /home/jialiu01/llvm/llvm/include/llvm/ADT/Twine.h:13,
>> >                  from
>> > /home/jialiu01/llvm/llvm/include/llvm/IR/Argument.h:17,
>> >                  from
>> > /home/jialiu01/llvm/llvm/include/llvm/IR/Function.h:22,
>> >                  from
>> > /home/jialiu01/llvm/llvm/lib/Transforms/Hello/Hello.cpp:17:
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h: In member
>> > function 'void llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize,
>> > SizeThreshold>::PrintStats() const':
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:206:69: error:
>> > default argument for template parameter for class enclosing 'void
>> > llvm::printBumpPtrAllocatorStats(unsigned int, size_t, size_t)'
>> >          unsigned NumSlabs, size_t BytesAllocated, size_t TotalMemory);
>> >                                                                      ^
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h: At global
>> scope:
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:289:30: error:
>> > wrong number of template arguments (0, should be 3)
>> >  typedef BumpPtrAllocatorImpl<> BumpPtrAllocator;
>> >                               ^
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:86:7: error:
>> > provided for 'template<class AllocatorT, long unsigned int SlabSize,
>> long
>> > unsigned int SizeThreshold> class llvm::BumpPtrAllocatorImpl'
>> >  class BumpPtrAllocatorImpl {
>> >        ^
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:289:48: error:
>> > invalid type in declaration before ';' token
>> >  typedef BumpPtrAllocatorImpl<> BumpPtrAllocator;
>> >                                                 ^
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h: In member
>> > function 'void llvm::SpecificBumpPtrAllocator<T>::DestroyAll()':
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:314:29: error:
>> > request for member 'Slabs' in
>> >
>> '((llvm::SpecificBumpPtrAllocator<T>*)this)->llvm::SpecificBumpPtrAllocator<T>::Allocator',
>> > which is of non-class type 'llvm::BumpPtrAllocator {aka int}'
>> >      for (auto I = Allocator.Slabs.begin(), E = Allocator.Slabs.end();
>> I !=
>> > E;
>> >                              ^
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:314:76:
>> error: 'E'
>> > was not declared in this scope
>> >      for (auto I = Allocator.Slabs.begin(), E = Allocator.Slabs.end();
>> I !=
>> > E;
>> >
>> > ^
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:316:34: error:
>> > 'BumpPtrAllocator' is not a class, namespace, or enumeration
>> >        size_t AllocatedSlabSize = BumpPtrAllocator::computeSlabSize(
>> >                                   ^
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:317:35: error:
>> > request for member 'Slabs' in
>> >
>> '((llvm::SpecificBumpPtrAllocator<T>*)this)->llvm::SpecificBumpPtrAllocator<T>::Allocator',
>> > which is of non-class type 'llvm::BumpPtrAllocator {aka int}'
>> >            std::distance(Allocator.Slabs.begin(), I));
>> >                                    ^
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:319:35: error:
>> > request for member 'Slabs' in
>> >
>> '((llvm::SpecificBumpPtrAllocator<T>*)this)->llvm::SpecificBumpPtrAllocator<T>::Allocator',
>> > which is of non-class type 'llvm::BumpPtrAllocator {aka int}'
>> >        char *End = *I == Allocator.Slabs.back() ? Allocator.CurPtr
>> >                                    ^
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:319:60: error:
>> > request for member 'CurPtr' in
>> >
>> '((llvm::SpecificBumpPtrAllocator<T>*)this)->llvm::SpecificBumpPtrAllocator<T>::Allocator',
>> > which is of non-class type 'llvm::BumpPtrAllocator {aka int}'
>> >        char *End = *I == Allocator.Slabs.back() ? Allocator.CurPtr
>> >                                                             ^
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:325:39: error:
>> > request for member 'CustomSizedSlabs' in
>> >
>> '((llvm::SpecificBumpPtrAllocator<T>*)this)->llvm::SpecificBumpPtrAllocator<T>::Allocator',
>> > which is of non-class type 'llvm::BumpPtrAllocator {aka int}'
>> >      for (auto &PtrAndSize : Allocator.CustomSizedSlabs) {
>> >                                        ^
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:331:15: error:
>> > request for member 'Reset' in
>> >
>> '((llvm::SpecificBumpPtrAllocator<T>*)this)->llvm::SpecificBumpPtrAllocator<T>::Allocator',
>> > which is of non-class type 'llvm::BumpPtrAllocator {aka int}'
>> >      Allocator.Reset();
>> >                ^
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h: In member
>> > function 'T* llvm::SpecificBumpPtrAllocator<T>::Allocate(size_t)':
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:335:50: error:
>> > request for member 'Allocate' in
>> >
>> '((llvm::SpecificBumpPtrAllocator<T>*)this)->llvm::SpecificBumpPtrAllocator<T>::Allocator',
>> > which is of non-class type 'llvm::BumpPtrAllocator {aka int}'
>> >    T *Allocate(size_t num = 1) { return Allocator.Allocate<T>(num); }
>> >                                                   ^
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:335:60: error:
>> > expected primary-expression before '>' token
>> >    T *Allocate(size_t num = 1) { return Allocator.Allocate<T>(num); }
>> >                                                             ^
>> > In file included from
>> > /home/jialiu01/llvm/llvm/include/llvm/ADT/Twine.h:13:0,
>> >                  from
>> > /home/jialiu01/llvm/llvm/include/llvm/IR/Argument.h:17,
>> >                  from
>> > /home/jialiu01/llvm/llvm/include/llvm/IR/Function.h:22,
>> >                  from
>> > /home/jialiu01/llvm/llvm/lib/Transforms/Hello/Hello.cpp:17:
>> > /home/jialiu01/llvm/llvm/include/llvm/ADT/StringRef.h: In member
>> function
>> > 'llvm::StringRef llvm::StringRef::copy(llvm::BumpPtrAllocator&)':
>> > /home/jialiu01/llvm/llvm/include/llvm/ADT/StringRef.h:129:27: error:
>> request
>> > for member 'Allocate' in 'Allocator', which is of non-class type
>> > 'llvm::BumpPtrAllocator {aka int}'
>> >        char *S = Allocator.Allocate<char>(Length);
>> >                            ^
>> > /home/jialiu01/llvm/llvm/include/llvm/ADT/StringRef.h:129:36: error:
>> > expected primary-expression before 'char'
>> >        char *S = Allocator.Allocate<char>(Length);
>> >                                     ^
>> > In file included from
>> > /home/jialiu01/llvm/llvm/include/llvm/IR/Attributes.h:19:0,
>> >                  from
>> > /home/jialiu01/llvm/llvm/include/llvm/IR/Argument.h:19,
>> >                  from
>> > /home/jialiu01/llvm/llvm/include/llvm/IR/Function.h:22,
>> >                  from
>> > /home/jialiu01/llvm/llvm/lib/Transforms/Hello/Hello.cpp:17:
>> > /home/jialiu01/llvm/llvm/include/llvm/ADT/ArrayRef.h: In member function
>> > 'llvm::ArrayRef<T> llvm::ArrayRef<T>::copy(llvm::BumpPtrAllocator&)':
>> > /home/jialiu01/llvm/llvm/include/llvm/ADT/ArrayRef.h:126:27: error:
>> request
>> > for member 'Allocate' in 'Allocator', which is of non-class type
>> > 'llvm::BumpPtrAllocator {aka int}'
>> >        T *Buff = Allocator.Allocate<T>(Length);
>> >                            ^
>> > /home/jialiu01/llvm/llvm/include/llvm/ADT/ArrayRef.h:126:37: error:
>> expected
>> > primary-expression before '>' token
>> >        T *Buff = Allocator.Allocate<T>(Length);
>> >                                      ^
>> > [  0%] [  0%] [  0%] [  0%] [  0%] [  0%] Building CXX object
>> > lib/Support/CMakeFiles/LLVMSupport.dir/APSInt.cpp.o
>> > Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/APFloat.cpp.o
>> > In file included from
>> > /home/jialiu01/llvm/llvm/include/llvm/ADT/StringRef.h:13:0,
>> >                  from
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/ErrorHandling.h:18,
>> >                  from
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/CodeGen.h:19,
>> >                  from
>> > /home/jialiu01/llvm/llvm/include/llvm/CodeGen/CommandFlags.h:19,
>> >                  from /home/jialiu01/llvm/llvm/tools/lto/lto.cpp:18:
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h: In member
>> > function 'void llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize,
>> > SizeThreshold>::PrintStats() const':
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:206:69: error:
>> > default argument for template parameter for class enclosing 'void
>> > llvm::printBumpPtrAllocatorStats(unsigned int, size_t, size_t)'
>> >          unsigned NumSlabs, size_t BytesAllocated, size_t TotalMemory);
>> >                                                                      ^
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h: At global
>> scope:
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:289:30: error:
>> > wrong number of template arguments (0, should be 3)
>> >  typedef BumpPtrAllocatorImpl<> BumpPtrAllocator;
>> >                               ^
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:86:7: error:
>> > provided for 'template<class AllocatorT, long unsigned int SlabSize,
>> long
>> > unsigned int SizeThreshold> class llvm::BumpPtrAllocatorImpl'
>> >  class BumpPtrAllocatorImpl {
>> >        ^
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:289:48: error:
>> > invalid type in declaration before ';' token
>> >  typedef BumpPtrAllocatorImpl<> BumpPtrAllocator;
>> >                                                 ^
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h: In member
>> > function 'void llvm::SpecificBumpPtrAllocator<T>::DestroyAll()':
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:314:29: error:
>> > request for member 'Slabs' in
>> >
>> '((llvm::SpecificBumpPtrAllocator<T>*)this)->llvm::SpecificBumpPtrAllocator<T>::Allocator',
>> > which is of non-class type 'llvm::BumpPtrAllocator {aka int}'
>> >      for (auto I = Allocator.Slabs.begin(), E = Allocator.Slabs.end();
>> I !=
>> > E;
>> >                              ^
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:314:76:
>> error: 'E'
>> > was not declared in this scope
>> >      for (auto I = Allocator.Slabs.begin(), E = Allocator.Slabs.end();
>> I !=
>> > E;
>> >
>> > ^
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:316:34: error:
>> > 'BumpPtrAllocator' is not a class, namespace, or enumeration
>> >        size_t AllocatedSlabSize = BumpPtrAllocator::computeSlabSize(
>> >                                   ^
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:317:35: error:
>> > request for member 'Slabs' in
>> >
>> '((llvm::SpecificBumpPtrAllocator<T>*)this)->llvm::SpecificBumpPtrAllocator<T>::Allocator',
>> > which is of non-class type 'llvm::BumpPtrAllocator {aka int}'
>> >            std::distance(Allocator.Slabs.begin(), I));
>> >                                    ^
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:319:35: error:
>> > request for member 'Slabs' in
>> >
>> '((llvm::SpecificBumpPtrAllocator<T>*)this)->llvm::SpecificBumpPtrAllocator<T>::Allocator',
>> > which is of non-class type 'llvm::BumpPtrAllocator {aka int}'
>> >        char *End = *I == Allocator.Slabs.back() ? Allocator.CurPtr
>> >                                    ^
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:319:60: error:
>> > request for member 'CurPtr' in
>> >
>> '((llvm::SpecificBumpPtrAllocator<T>*)this)->llvm::SpecificBumpPtrAllocator<T>::Allocator',
>> > which is of non-class type 'llvm::BumpPtrAllocator {aka int}'
>> >        char *End = *I == Allocator.Slabs.back() ? Allocator.CurPtr
>> >                                                             ^
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:325:39: error:
>> > request for member 'CustomSizedSlabs' in
>> >
>> '((llvm::SpecificBumpPtrAllocator<T>*)this)->llvm::SpecificBumpPtrAllocator<T>::Allocator',
>> > which is of non-class type 'llvm::BumpPtrAllocator {aka int}'
>> >      for (auto &PtrAndSize : Allocator.CustomSizedSlabs) {
>> >                                        ^
>> > Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/APInt.cpp.o
>> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:331:15: error:
>> > request for member 'Reset' in
>> >
>> '((llvm::SpecificBumpPtrAllocator<T>*)this)->llvm::SpecificBumpPtrAllocator<T>::Allocator',
>> > which is of non-class type 'llvm::BumpPtrAllocator {aka int}'
>> >      Allocator.Reset();
>> >                ^
>> >
>> >
>> >
>> > 2014-04-14 14:20 GMT+08:00 Eric Christopher <echristo at gmail.com>:
>> >
>> >> Updating to top of tree I can't duplicate this failure.
>> >>
>> >> How are you configuring/building/etc? What compiler are you starting
>> from?
>> >>
>> >> -eric
>> >>
>> >> On Sun, Apr 13, 2014 at 11:15 PM, Jiangning Liu <
>> liujiangning1 at gmail.com>
>> >> wrote:
>> >> > Hi,
>> >> >
>> >> > Trunk build failure at commit 206147, 206148, 206149.
>> >> >
>> >> > In file included from
>> >> > /home/jialiu01/llvm/llvm/include/llvm/ADT/ArrayRef.h:15:0,
>> >> >                  from
>> >> > /home/jialiu01/llvm/llvm/include/llvm/ADT/APInt.h:19,
>> >> >                  from
>> >> > /home/jialiu01/llvm/llvm/include/llvm/ADT/APFloat.h:20,
>> >> >                  from
>> >> > /home/jialiu01/llvm/llvm/lib/Support/APFloat.cpp:15:
>> >> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h: In member
>> >> > function 'void llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize,
>> >> > SizeThreshold>::PrintStats() const':
>> >> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:206:69:
>> error:
>> >> > default argument for template parameter for class enclosing 'void
>> >> > llvm::printBumpPtrAllocatorStats(unsigned int, size_t, size_t)'
>> >> >          unsigned NumSlabs, size_t BytesAllocated, size_t
>> TotalMemory);
>> >> >
>>  ^
>> >> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h: At global
>> >> > scope:
>> >> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:289:30:
>> error:
>> >> > wrong number of template arguments (0, should be 3)
>> >> >  typedef BumpPtrAllocatorImpl<> BumpPtrAllocator;
>> >> >                               ^
>> >> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:86:7:
>> error:
>> >> > provided for 'template<class AllocatorT, long unsigned int SlabSize,
>> >> > long
>> >> > unsigned int SizeThreshold> class llvm::BumpPtrAllocatorImpl'
>> >> >  class BumpPtrAllocatorImpl {
>> >> >        ^
>> >> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:289:48:
>> error:
>> >> > invalid type in declaration before ';' token
>> >> >  typedef BumpPtrAllocatorImpl<> BumpPtrAllocator;
>> >> >                                                 ^
>> >> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h: In member
>> >> > function 'void llvm::SpecificBumpPtrAllocator<T>::DestroyAll()':
>> >> > /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:314:29:
>> error:
>> >> > request for member 'Slabs' in
>> >> >
>> >> >
>> '((llvm::SpecificBumpPtrAllocator<T>*)this)->llvm::SpecificBumpPtrAllocator<T>::Allocator',
>> >> > which is of non-class type 'llvm::BumpPtrAllocator {aka int}'
>> >> >
>> >> > --
>> >> > Thanks,
>> >> > -Jiangning
>> >> >
>> >> > _______________________________________________
>> >> > llvm-commits mailing list
>> >> > llvm-commits at cs.uiuc.edu
>> >> > http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>> >> >
>> >
>> >
>> >
>> >
>> > --
>> > Thanks,
>> > -Jiangning
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>>
>
>


-- 
Thanks,
-Jiangning
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140414/29a6af07/attachment.html>


More information about the llvm-commits mailing list