Bug#624385: [llvm-dev] headers appear broken
Brian Paterni
bpaterni at gmail.com
Wed Apr 27 23:53:39 UTC 2011
Package: llvm-dev
Version: 2.6-9.1+b1
I compile mesa from source and recently llvm became a required dependency for a
few modules contained within the package. After installing llvm-dev though, I
get the following compile time errors:
me/bpaterni/git/radeon/mesa/src/gallium/auxiliary'
g++ -c -I. -I../../../src/gallium/include -I../../../src/gallium/auxiliary -I../../../src/gallium/drivers -g -O2 -Wall -fno-strict-aliasing -g -fPIC -D_GNU_SOURCE -DPTHREADS -DDEBUG -DTEXTURE_FLOAT_ENABLED -DHAVE_POSIX_MEMALIGN -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_XEXTPROTO_71 -DGALLIUM_LLVMPIPE -D__STDC_CONSTANT_MACROS -DHAVE_LLVM=0x0206 -fvisibility=hidden -I/usr/include -DNDEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS gallivm/lp_bld_debug.cpp -o gallivm/lp_bld_debug.o
In file included from /usr/include/llvm/Value.h:18:0,
from /usr/include/llvm/User.h:22,
from /usr/include/llvm/Constant.h:17,
from /usr/include/llvm/GlobalValue.h:21,
from /usr/include/llvm/Function.h:21,
from /usr/include/llvm/Module.h:18,
from /usr/include/llvm-c/Core.h:42,
from gallivm/lp_bld_debug.cpp:28:
/usr/include/llvm/Use.h:118:47: error: ‘ptrdiff_t’ has not been declared
/usr/include/llvm/Use.h:161:61: error: ‘ptrdiff_t’ was not declared in this scope
/usr/include/llvm/Use.h:161:61: 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’
/usr/include/llvm/Use.h:161:70: error: template argument 2 is invalid
/usr/include/llvm/Use.h:162:37: error: ‘ptrdiff_t’ was not declared in this scope
/usr/include/llvm/Use.h:162:37: 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’
/usr/include/llvm/Use.h:162:46: error: template argument 2 is invalid
/usr/include/llvm/Use.h:169:20: error: ‘super’ is not a class or namespace
/usr/include/llvm/Use.h:170:20: error: ‘super’ is not a class or namespace
In file included from /usr/include/llvm/SymbolTableListTraits.h:28:0,
from /usr/include/llvm/BasicBlock.h:18,
from /usr/include/llvm/Function.h:22,
from /usr/include/llvm/Module.h:18,
from /usr/include/llvm-c/Core.h:42,
from gallivm/lp_bld_debug.cpp:28:
/usr/include/llvm/ADT/ilist.h:143:43: error: ‘ptrdiff_t’ was not declared in this scope
/usr/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’
/usr/include/llvm/ADT/ilist.h:143:52: error: template argument 2 is invalid
/usr/include/llvm/ADT/ilist.h:147:42: error: ‘ptrdiff_t’ was not declared in this scope
/usr/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’
/usr/include/llvm/ADT/ilist.h:147:51: error: template argument 2 is invalid
/usr/include/llvm/ADT/ilist.h:149:20: error: ‘super’ is not a class or namespace
/usr/include/llvm/ADT/ilist.h:150:20: error: ‘super’ is not a class or namespace
/usr/include/llvm/ADT/ilist.h:151:20: error: ‘super’ is not a class or namespace
/usr/include/llvm/ADT/ilist.h:152:20: error: ‘super’ is not a class or namespace
/usr/include/llvm/ADT/ilist.h:173:3: error: ‘llvm::ilist_iterator<NodeTy>::ilist_iterator(llvm::ilist_iterator<NodeTy>::reference)’ cannot be overloaded
/usr/include/llvm/ADT/ilist.h:172:3: error: with ‘llvm::ilist_iterator<NodeTy>::ilist_iterator(llvm::ilist_iterator<NodeTy>::pointer)’
/usr/include/llvm/ADT/ilist.h: In member function ‘llvm::ilist_iterator<NodeTy>::reference llvm::ilist_iterator<NodeTy>::operator*() const’:
/usr/include/llvm/ADT/ilist.h:198:13: error: invalid type argument of unary ‘*’ (have ‘llvm::ilist_iterator<NodeTy>::pointer’)
/usr/include/llvm/ADT/ilist.h: At global scope:
/usr/include/llvm/ADT/ilist.h:346:11: error: ‘ptrdiff_t’ does not name a type
In file included from /usr/include/llvm/Metadata.h:22:0,
from /usr/include/llvm/Module.h:21,
from /usr/include/llvm-c/Core.h:42,
from gallivm/lp_bld_debug.cpp:28:
/usr/include/llvm/ADT/SmallVector.h:94:11: error: ‘ptrdiff_t’ does not name a type
In file included from /usr/include/c++/4.6/iterator:61:0,
from /usr/include/llvm/ADT/iterator.h:32,
from /usr/include/llvm/Use.h:29,
from /usr/include/llvm/Value.h:18,
from /usr/include/llvm/User.h:22,
from /usr/include/llvm/Constant.h:17,
from /usr/include/llvm/GlobalValue.h:21,
from /usr/include/llvm/Function.h:21,
from /usr/include/llvm/Module.h:18,
from /usr/include/llvm-c/Core.h:42,
from gallivm/lp_bld_debug.cpp:28:
/usr/include/c++/4.6/bits/stl_iterator_base_types.h: In instantiation of ‘std::iterator_traits<llvm::ilist_iterator<llvm::MachineInstr> >’:
/usr/include/c++/4.6/bits/stl_iterator.h:97:11: instantiated from ‘std::reverse_iterator<llvm::ilist_iterator<llvm::MachineInstr> >’
/usr/include/llvm/CodeGen/MachineBasicBlock.h:118:41: instantiated from here
/usr/include/c++/4.6/bits/stl_iterator_base_types.h:166:53: error: no type named ‘iterator_category’ in ‘class llvm::ilist_iterator<llvm::MachineInstr>’
/usr/include/c++/4.6/bits/stl_iterator_base_types.h: In instantiation of ‘std::iterator_traits<llvm::ilist_iterator<const llvm::MachineInstr> >’:
/usr/include/c++/4.6/bits/stl_iterator.h:97:11: instantiated from ‘std::reverse_iterator<llvm::ilist_iterator<const llvm::MachineInstr> >’
/usr/include/llvm/CodeGen/MachineBasicBlock.h:119:41: instantiated from here
/usr/include/c++/4.6/bits/stl_iterator_base_types.h:166:53: error: no type named ‘iterator_category’ in ‘class llvm::ilist_iterator<const llvm::MachineInstr>’
In file included from /usr/include/llvm/CodeGen/MachineFunction.h:25:0,
from /usr/include/llvm/Target/TargetInstrInfo.h:18,
from gallivm/lp_bld_debug.cpp:32:
/usr/include/llvm/CodeGen/MachineBasicBlock.h: In member function ‘llvm::MachineInstr* llvm::MachineBasicBlock::remove(llvm::MachineInstr*)’:
/usr/include/llvm/CodeGen/MachineBasicBlock.h:274:65: error: invalid conversion from ‘llvm::MachineInstr*’ to ‘int’ [-fpermissive]
/usr/include/llvm/ADT/ilist.h:172:3: error: initializing argument 1 of ‘llvm::ilist_iterator<NodeTy>::ilist_iterator(llvm::ilist_iterator<NodeTy>::pointer) [with NodeTy = llvm::MachineInstr, llvm::ilist_iterator<NodeTy>::pointer = int]’ [-fpermissive]
In file included from /usr/include/c++/4.6/iterator:61:0,
from /usr/include/llvm/ADT/iterator.h:32,
from /usr/include/llvm/Use.h:29,
from /usr/include/llvm/Value.h:18,
from /usr/include/llvm/User.h:22,
from /usr/include/llvm/Constant.h:17,
from /usr/include/llvm/GlobalValue.h:21,
from /usr/include/llvm/Function.h:21,
from /usr/include/llvm/Module.h:18,
from /usr/include/llvm-c/Core.h:42,
from gallivm/lp_bld_debug.cpp:28:
/usr/include/c++/4.6/bits/stl_iterator_base_types.h: At global scope:
/usr/include/c++/4.6/bits/stl_iterator_base_types.h: In instantiation of ‘std::iterator_traits<llvm::ilist_iterator<llvm::MachineBasicBlock> >’:
/usr/include/c++/4.6/bits/stl_iterator.h:97:11: instantiated from ‘std::reverse_iterator<llvm::ilist_iterator<llvm::MachineBasicBlock> >’
/usr/include/llvm/CodeGen/MachineFunction.h:255:42: instantiated from here
/usr/include/c++/4.6/bits/stl_iterator_base_types.h:166:53: error: no type named ‘iterator_category’ in ‘class llvm::ilist_iterator<llvm::MachineBasicBlock>’
/usr/include/c++/4.6/bits/stl_iterator_base_types.h: In instantiation of ‘std::iterator_traits<llvm::ilist_iterator<const llvm::MachineBasicBlock> >’:
/usr/include/c++/4.6/bits/stl_iterator.h:97:11: instantiated from ‘std::reverse_iterator<llvm::ilist_iterator<const llvm::MachineBasicBlock> >’
/usr/include/llvm/CodeGen/MachineFunction.h:256:42: instantiated from here
/usr/include/c++/4.6/bits/stl_iterator_base_types.h:166:53: error: no type named ‘iterator_category’ in ‘class llvm::ilist_iterator<const llvm::MachineBasicBlock>’
In file included from /usr/include/llvm/SymbolTableListTraits.h:28:0,
from /usr/include/llvm/BasicBlock.h:18,
from /usr/include/llvm/Function.h:22,
from /usr/include/llvm/Module.h:18,
from /usr/include/llvm-c/Core.h:42,
from gallivm/lp_bld_debug.cpp:28:
/usr/include/llvm/ADT/ilist.h: In member function ‘llvm::iplist<NodeTy, Traits>::iterator llvm::iplist<NodeTy, Traits>::begin() [with NodeTy = llvm::Instruction, Traits = llvm::ilist_traits<llvm::Instruction>, llvm::iplist<NodeTy, Traits>::iterator = llvm::ilist_iterator<llvm::Instruction>]’:
/usr/include/llvm/BasicBlock.h:172:72: instantiated from here
/usr/include/llvm/ADT/ilist.h:360:25: error: invalid conversion from ‘llvm::Instruction*’ to ‘int’ [-fpermissive]
/usr/include/llvm/ADT/ilist.h:172:3: error: initializing argument 1 of ‘llvm::ilist_iterator<NodeTy>::ilist_iterator(llvm::ilist_iterator<NodeTy>::pointer) [with NodeTy = llvm::Instruction, llvm::ilist_iterator<NodeTy>::pointer = int]’ [-fpermissive]
/usr/include/llvm/ADT/ilist.h: In member function ‘llvm::iplist<NodeTy, Traits>::const_iterator llvm::iplist<NodeTy, Traits>::begin() const [with NodeTy = llvm::Instruction, Traits = llvm::ilist_traits<llvm::Instruction>, llvm::iplist<NodeTy, Traits>::const_iterator = llvm::ilist_iterator<const llvm::Instruction>]’:
/usr/include/llvm/BasicBlock.h:173:72: instantiated from here
/usr/include/llvm/ADT/ilist.h:364:31: error: invalid conversion from ‘llvm::Instruction*’ to ‘int’ [-fpermissive]
/usr/include/llvm/ADT/ilist.h:172:3: error: initializing argument 1 of ‘llvm::ilist_iterator<NodeTy>::ilist_iterator(llvm::ilist_iterator<NodeTy>::pointer) [with NodeTy = const llvm::Instruction, llvm::ilist_iterator<NodeTy>::pointer = int]’ [-fpermissive]
/usr/include/llvm/ADT/ilist.h: In member function ‘llvm::iplist<NodeTy, Traits>::iterator llvm::iplist<NodeTy, Traits>::end() [with NodeTy = llvm::Instruction, Traits = llvm::ilist_traits<llvm::Instruction>, llvm::iplist<NodeTy, Traits>::iterator = llvm::ilist_iterator<llvm::Instruction>]’:
/usr/include/llvm/BasicBlock.h:174:70: instantiated from here
/usr/include/llvm/ADT/ilist.h:368:30: error: invalid conversion from ‘llvm::Instruction*’ to ‘int’ [-fpermissive]
/usr/include/llvm/ADT/ilist.h:172:3: error: initializing argument 1 of ‘llvm::ilist_iterator<NodeTy>::ilist_iterator(llvm::ilist_iterator<NodeTy>::pointer) [with NodeTy = llvm::Instruction, llvm::ilist_iterator<NodeTy>::pointer = int]’ [-fpermissive]
/usr/include/llvm/ADT/ilist.h: In member function ‘llvm::iplist<NodeTy, Traits>::const_iterator llvm::iplist<NodeTy, Traits>::end() const [with NodeTy = llvm::Instruction, Traits = llvm::ilist_traits<llvm::Instruction>, llvm::iplist<NodeTy, Traits>::const_iterator = llvm::ilist_iterator<const llvm::Instruction>]’:
/usr/include/llvm/BasicBlock.h:175:70: instantiated from here
/usr/include/llvm/ADT/ilist.h:372:36: error: invalid conversion from ‘const llvm::Instruction*’ to ‘int’ [-fpermissive]
/usr/include/llvm/ADT/ilist.h:172:3: error: initializing argument 1 of ‘llvm::ilist_iterator<NodeTy>::ilist_iterator(llvm::ilist_iterator<NodeTy>::pointer) [with NodeTy = const llvm::Instruction, llvm::ilist_iterator<NodeTy>::pointer = int]’ [-fpermissive]
In file included from /usr/include/c++/4.6/iterator:61:0,
from /usr/include/llvm/ADT/iterator.h:32,
from /usr/include/llvm/Use.h:29,
from /usr/include/llvm/Value.h:18,
from /usr/include/llvm/User.h:22,
from /usr/include/llvm/Constant.h:17,
from /usr/include/llvm/GlobalValue.h:21,
from /usr/include/llvm/Function.h:21,
from /usr/include/llvm/Module.h:18,
from /usr/include/llvm-c/Core.h:42,
from gallivm/lp_bld_debug.cpp:28:
/usr/include/c++/4.6/bits/stl_iterator_base_types.h: At global scope:
/usr/include/c++/4.6/bits/stl_iterator_base_types.h: In instantiation of ‘std::iterator_traits<llvm::ilist_iterator<const llvm::Instruction> >’:
/usr/include/llvm/ADT/ilist.h:523:40: instantiated from ‘llvm::iplist<NodeTy, Traits>::size_type llvm::iplist<NodeTy, Traits>::size() const [with NodeTy = llvm::Instruction, Traits = llvm::ilist_traits<llvm::Instruction>, llvm::iplist<NodeTy, Traits>::size_type = long unsigned int]’
/usr/include/llvm/BasicBlock.h:177:71: instantiated from here
/usr/include/c++/4.6/bits/stl_iterator_base_types.h:166:53: error: no type named ‘iterator_category’ in ‘class llvm::ilist_iterator<const llvm::Instruction>’
In file included from /usr/include/llvm/SymbolTableListTraits.h:28:0,
from /usr/include/llvm/BasicBlock.h:18,
from /usr/include/llvm/Function.h:22,
from /usr/include/llvm/Module.h:18,
from /usr/include/llvm-c/Core.h:42,
from gallivm/lp_bld_debug.cpp:28:
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.39-rc4+ (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages llvm-dev depends on:
ii libc6 2.13-0exp5 Embedded GNU C Library: Shared lib
ii libffi-dev 3.0.10~rc8-1 Foreign Function Interface library
ii libffi5 3.0.9-4 Foreign Function Interface library
ii libgcc1 1:4.6.0-5 GCC support library
ii libstdc++6 4.6.0-5 The GNU Standard C++ Library v3
ii llvm 2.6-9.1+b1 Low-Level Virtual Machine (LLVM)
More information about the Pkg-llvm-team
mailing list