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