Bug#624981: llvm: FTBFS: ilist.h:143:43: error: 'ptrdiff_t' was not declared in this scope

Lucas Nussbaum lucas at lucas-nussbaum.net
Mon May 2 12:35:00 UTC 2011


Source: llvm
Version: 2.6-9.1
Severity: serious
Tags: wheezy sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20110502 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part:
> if x86_64-linux-gnu-g++ -I/build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/build-llvm/include -I/build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/build-llvm/lib/Support -I/build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/include -I/build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/lib/Support  -DNDEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DLLVM_DEBIAN_INFO='" (Debian 2.6-9.1)"' -O2 -fomit-frame-pointer -fno-exceptions -fPIC -Woverloaded-virtual    -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings  -c -MMD -MP -MF "/build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/build-llvm/lib/Support/Release-Asserts/FileUtilities.d.tmp" -MT "/build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/build-llvm/lib/Support/Release-Asserts/FileUtilities.o" -MT "/build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/build-llvm/lib/Support/Release-Asserts/FileUtilities.d" /build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/lib/Support/FileUtilities.cpp -o /build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/build-llvm/lib/Support/Release-Asserts/FileUtilities.o ; \
> 	        then /bin/mv -f "/build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/build-llvm/lib/Support/Release-Asserts/FileUtilities.d.tmp" "/build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/build-llvm/lib/Support/Release-Asserts/FileUtilities.d"; else /bin/rm "/build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/build-llvm/lib/Support/Release-Asserts/FileUtilities.d.tmp"; exit 1; fi
> In file included from /build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/include/llvm/Support/Recycler.h:18:0,
>                  from /build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/lib/Support/Allocator.cpp:16:
> /build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/include/llvm/ADT/ilist.h:143:43: error: 'ptrdiff_t' was not declared in this scope
> /build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/include/llvm/ADT/ilist.h:143:43: note: suggested alternatives:
> /usr/include/c++/4.6/x86_64-linux-gnu/bits/c++config.h:156:28: note:   'std::ptrdiff_t'
> /usr/include/c++/4.6/x86_64-linux-gnu/bits/c++config.h:156:28: note:   'std::ptrdiff_t'
> /build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/include/llvm/ADT/ilist.h:143:52: error: template argument 2 is invalid
> /build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/include/llvm/ADT/ilist.h:147:42: error: 'ptrdiff_t' was not declared in this scope
> /build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/include/llvm/ADT/ilist.h:147:42: note: suggested alternatives:
> /usr/include/c++/4.6/x86_64-linux-gnu/bits/c++config.h:156:28: note:   'std::ptrdiff_t'
> /usr/include/c++/4.6/x86_64-linux-gnu/bits/c++config.h:156:28: note:   'std::ptrdiff_t'
> /build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/include/llvm/ADT/ilist.h:147:51: error: template argument 2 is invalid
> /build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/include/llvm/ADT/ilist.h:149:20: error: 'super' is not a class or namespace
> /build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/include/llvm/ADT/ilist.h:150:20: error: 'super' is not a class or namespace
> /build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/include/llvm/ADT/ilist.h:151:20: error: 'super' is not a class or namespace
> /build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/include/llvm/ADT/ilist.h:152:20: error: 'super' is not a class or namespace
> /build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/include/llvm/ADT/ilist.h:173:3: error: 'llvm::ilist_iterator<NodeTy>::ilist_iterator(llvm::ilist_iterator<NodeTy>::reference)' cannot be overloaded
> /build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/include/llvm/ADT/ilist.h:172:3: error: with 'llvm::ilist_iterator<NodeTy>::ilist_iterator(llvm::ilist_iterator<NodeTy>::pointer)'
> /build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/include/llvm/ADT/ilist.h: In member function 'llvm::ilist_iterator<NodeTy>::reference llvm::ilist_iterator<NodeTy>::operator*() const':
> /build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/include/llvm/ADT/ilist.h:198:13: error: invalid type argument of unary '*' (have 'llvm::ilist_iterator<NodeTy>::pointer')
> /build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/include/llvm/ADT/ilist.h: At global scope:
> /build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/include/llvm/ADT/ilist.h:346:11: error: 'ptrdiff_t' does not name a type
> In file included from /build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/include/llvm/Support/CommandLine.h:26:0,
>                  from /build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/lib/Support/Debug.cpp:26:
> /build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/include/llvm/ADT/SmallVector.h:94:11: error: 'ptrdiff_t' does not name a typeIn file included from /build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/include/llvm/ADT/FoldingSet.h:20:0,
>                  from /build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/lib/Support/APSInt.cpp:16:
> /build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/include/llvm/ADT/SmallVector.h:94:11: error: 'ptrdiff_t' does not name a type
> 
> In file included from /build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/include/llvm/ADT/FoldingSet.h:20:0,
>                  from /build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/lib/Support/APFloat.cpp:17:
> /build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/include/llvm/ADT/SmallVector.h:94:11: error: 'ptrdiff_t' does not name a type
> In file included from /build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/include/llvm/ADT/FoldingSet.h:20:0,
>                  from /build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/lib/Support/APInt.cpp:18:
> /build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/include/llvm/ADT/SmallVector.h:94:11: error: 'ptrdiff_t' does not name a type
> /bin/rm: cannot remove `/build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/build-llvm/lib/Support/Release-Asserts/APSInt.d.tmp': No such file or directory
> make[2]: *** [/build/user-llvm_2.6-9.1-amd64-TGZsIE/llvm-2.6/build-llvm/lib/Support/Release-Asserts/APSInt.o] Error 1

The full build log is available from:
   http://people.debian.org/~lucas/logs/2011/05/02/llvm_2.6-9.1_lsid64.buildlog

A list of current common problems and possible solutions is available at 
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on about 50 AMD64 nodes
of the Grid'5000 platform, using a clean chroot.  Internet was not
accessible from the build systems.

-- 
| Lucas Nussbaum
| lucas at lucas-nussbaum.net   http://www.lucas-nussbaum.net/ |
| jabber: lucas at nussbaum.fr             GPG: 1024D/023B3F4F |





More information about the Pkg-llvm-team mailing list