Bug#625082: llvm-2.7: FTBFS: ilist.h:143:67: error: 'ptrdiff_t' was not declared in this scope

Lucas Nussbaum lucas at lucas-nussbaum.net
Mon May 2 12:34:49 UTC 2011


Source: llvm-2.7
Version: 2.7-6
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++ -DLLVM_DEBIAN_INFO='" (Debian 2.7-6)"' -I/build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/build-llvm/include -I/build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/build-llvm/lib/Support -I/build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/include -I/build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/lib/Support  -DNDEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -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.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/build-llvm/lib/Support/Release-Asserts/ErrorHandling.d.tmp" -MT "/build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/build-llvm/lib/Support/Release-Asserts/ErrorHandling.o" -MT "/build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/build-llvm/lib/Support/Release-Asserts/ErrorHandling.d" /build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/lib/Support/ErrorHandling.cpp -o /build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/build-llvm/lib/Support/Release-Asserts/ErrorHandling.o ; \
> 	        then /bin/mv -f "/build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/build-llvm/lib/Support/Release-Asserts/ErrorHandling.d.tmp" "/build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/build-llvm/lib/Support/Release-Asserts/ErrorHandling.d"; else /bin/rm "/build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/build-llvm/lib/Support/Release-Asserts/ErrorHandling.d.tmp"; exit 1; fi
> llvm[2]: Compiling FileUtilities.cpp for Release-Asserts build
> In file included from /build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/include/llvm/Support/Recycler.h:18:0,
>                  from /build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/lib/Support/Allocator.cpp:16:
> /build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/include/llvm/ADT/ilist.h:143:67: error: 'ptrdiff_t' was not declared in this scope
> /build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/include/llvm/ADT/ilist.h:143:67: note: suggested alternatives:
> /usr/include/c++/4.6/x86_64-linux-gnu/bits/c++config.h:156:20: note:   'std::ptrdiff_t'
> /usr/include/c++/4.6/x86_64-linux-gnu/bits/c++config.h:156:20: note:   'std::ptrdiff_t'
> /build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/include/llvm/ADT/ilist.h:143:76: error: template argument 3 is invalid
> /build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/include/llvm/ADT/ilist.h:148:33: error: 'ptrdiff_t' was not declared in this scope
> /build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/include/llvm/ADT/ilist.h:148:33: note: suggested alternatives:
> /usr/include/c++/4.6/x86_64-linux-gnu/bits/c++config.h:156:20: note:   'std::ptrdiff_t'
> /usr/include/c++/4.6/x86_64-linux-gnu/bits/c++config.h:156:20: note:   'std::ptrdiff_t'
> /build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/include/llvm/ADT/ilist.h:148:42: error: template argument 3 is invalid
> /build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/include/llvm/ADT/ilist.h:150:20: error: 'super' is not a class or namespace
> /build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/include/llvm/ADT/ilist.h:151:20: error: 'super' is not a class or namespace
> /build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/include/llvm/ADT/ilist.h:152:20: error: 'super' is not a class or namespace
> /build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/include/llvm/ADT/ilist.h:153:20: error: 'super' is not a class or namespace
> /build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/include/llvm/ADT/ilist.h:174:3: error: 'llvm::ilist_iterator<NodeTy>::ilist_iterator(llvm::ilist_iterator<NodeTy>::reference)' cannot be overloaded
> /build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/include/llvm/ADT/ilist.h:173:3: error: with 'llvm::ilist_iterator<NodeTy>::ilist_iterator(llvm::ilist_iterator<NodeTy>::pointer)'
> /build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/include/llvm/ADT/ilist.h: In member function 'llvm::ilist_iterator<NodeTy>::reference llvm::ilist_iterator<NodeTy>::operator*() const':
> /build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/include/llvm/ADT/ilist.h:197:13: error: invalid type argument of unary '*' (have 'llvm::ilist_iterator<NodeTy>::pointer')
> In file included from /build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/include/llvm/Support/Recycler.h:18:0,
>                  from /build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/lib/Support/Allocator.cpp:16:
> /build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/include/llvm/ADT/ilist.h: At global scope:
> /build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/include/llvm/ADT/ilist.h:344:11: error: 'ptrdiff_t' does not name a type
> if x86_64-linux-gnu-g++ -DLLVM_DEBIAN_INFO='" (Debian 2.7-6)"' -I/build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/build-llvm/include -I/build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/build-llvm/lib/Support -I/build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/include -I/build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/lib/Support  -DNDEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -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.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/build-llvm/lib/Support/Release-Asserts/FileUtilities.d.tmp" -MT "/build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/build-llvm/lib/Support/Release-Asserts/FileUtilities.o" -MT "/build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/build-llvm/lib/Support/Release-Asserts/FileUtilities.d" /build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/lib/Support/FileUtilities.cpp -o /build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/build-llvm/lib/Support/Release-Asserts/FileUtilities.o ; \
> 	        then /bin/mv -f "/build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/build-llvm/lib/Support/Release-Asserts/FileUtilities.d.tmp" "/build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/build-llvm/lib/Support/Release-Asserts/FileUtilities.d"; else /bin/rm "/build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/build-llvm/lib/Support/Release-Asserts/FileUtilities.d.tmp"; exit 1; fi
> llvm[2]: Compiling FoldingSet.cpp for Release-Asserts build
> if x86_64-linux-gnu-g++ -DLLVM_DEBIAN_INFO='" (Debian 2.7-6)"' -I/build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/build-llvm/include -I/build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/build-llvm/lib/Support -I/build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/include -I/build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/lib/Support  -DNDEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -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.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/build-llvm/lib/Support/Release-Asserts/FoldingSet.d.tmp" -MT "/build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/build-llvm/lib/Support/Release-Asserts/FoldingSet.o" -MT "/build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/build-llvm/lib/Support/Release-Asserts/FoldingSet.d" /build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/lib/Support/FoldingSet.cpp -o /build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/build-llvm/lib/Support/Release-Asserts/FoldingSet.o ; \
> 	        then /bin/mv -f "/build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/build-llvm/lib/Support/Release-Asserts/FoldingSet.d.tmp" "/build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/build-llvm/lib/Support/Release-Asserts/FoldingSet.d"; else /bin/rm "/build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/build-llvm/lib/Support/Release-Asserts/FoldingSet.d.tmp"; exit 1; fi
> make[2]: *** [/build/user-llvm-2.7_2.7-6-amd64-xLCwUM/llvm-2.7-2.7/build-llvm/lib/Support/Release-Asserts/Allocator.o] Error 1

The full build log is available from:
   http://people.debian.org/~lucas/logs/2011/05/02/llvm-2.7_2.7-6_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