<div>For starters it seems to be the difference between using 'uint32_t' and 'unsigned int'...but looks like more...</div>
<div> </div>
<div>GCC 4.2.2 - Cygwin - LLVM SVN :-</div>
<div><br>llvm[1]: Compiling APInt.cpp for Debug build<br>/usr/src/llvm/lib/Support/APInt.cpp:45: error: prototype for 'void llvm::APInt::<br>initSlowCase(uint32_t, uint64_t, bool)' does not match any in class 'llvm::APInt<br>
'<br>/usr/src/llvm/include/llvm/ADT/APInt.h:169: error: candidates are: void llvm::AP<br>Int::initSlowCase(const llvm::APInt&)<br>/usr/src/llvm/include/llvm/ADT/APInt.h:166: error:                 void llvm::AP<br>
Int::initSlowCase(unsigned int, uint64_t, bool)<br>/usr/src/llvm/lib/Support/APInt.cpp:59: error: prototype for 'llvm::APInt::APInt<br>(uint32_t, uint32_t, const uint64_t*)' does not match any in class 'llvm::APInt'</div>

<p>/usr/src/llvm/include/llvm/ADT/APInt.h:261: error: candidates are: llvm::APInt::<br>APInt()<br>/usr/src/llvm/include/llvm/ADT/APInt.h:244: error:                 llvm::APInt::<br>APInt(const llvm::APInt&)<br>/usr/src/llvm/include/llvm/ADT/APInt.h:240: error:                 llvm::APInt::<br>
APInt(unsigned int, const char*, unsigned int, uint8_t)<br>/usr/src/llvm/include/llvm/ADT/APInt.h:228: error:                 llvm::APInt::<br>APInt(unsigned int, unsigned int, const uint64_t*)<br>/usr/src/llvm/include/llvm/ADT/APInt.h:212: error:                 llvm::APInt::<br>
APInt(unsigned int, uint64_t, bool)<br>/usr/src/llvm/include/llvm/ADT/APInt.h:92: error:                 llvm::APInt::A<br>PInt(uint64_t*, unsigned int)<br>/usr/src/llvm/lib/Support/APInt.cpp:78: error: prototype for 'llvm::APInt::APInt<br>
(uint32_t, const char*, uint32_t, uint8_t)' does not match any in class 'llvm::A<br>PInt'<br>/usr/src/llvm/lib/Support/APInt.cpp:59: error: candidates are: llvm::APInt::APIn<br>t(uint32_t, uint32_t, const uint64_t*)<br>
/usr/src/llvm/include/llvm/ADT/APInt.h:261: error:                 llvm::APInt::<br>APInt()<br>/usr/src/llvm/include/llvm/ADT/APInt.h:244: error:                 llvm::APInt::<br>APInt(const llvm::APInt&)<br>/usr/src/llvm/include/llvm/ADT/APInt.h:240: error:                 llvm::APInt::<br>
APInt(unsigned int, const char*, unsigned int, uint8_t)<br>/usr/src/llvm/include/llvm/ADT/APInt.h:228: error:                 llvm::APInt::<br>APInt(unsigned int, unsigned int, const uint64_t*)<br>/usr/src/llvm/include/llvm/ADT/APInt.h:212: error:                 llvm::APInt::<br>
APInt(unsigned int, uint64_t, bool)<br>/usr/src/llvm/include/llvm/ADT/APInt.h:92: error:                 llvm::APInt::A<br>PInt(uint64_t*, unsigned int)<br>/usr/src/llvm/lib/Support/APInt.cpp:458: error: prototype for 'bool llvm::APInt:<br>
:operator[](uint32_t) const' does not match any in class 'llvm::APInt'<br>/usr/src/llvm/include/llvm/ADT/APInt.h:784: error: candidate is: bool llvm::APIn<br>t::operator[](unsigned int) const<br>/usr/src/llvm/lib/Support/APInt.cpp:559: error: prototype for 'llvm::APInt& llvm<br>
::APInt::set(uint32_t)' does not match any in class 'llvm::APInt'<br>/usr/src/llvm/include/llvm/ADT/APInt.h:957: error: candidates are: llvm::APInt&<br>llvm::APInt::set(unsigned int)<br>/usr/src/llvm/include/llvm/ADT/APInt.h:942: error:                 llvm::APInt&<br>
llvm::APInt::set()<br>/usr/src/llvm/lib/Support/APInt.cpp:569: error: prototype for 'llvm::APInt& llvm<br>::APInt::clear(uint32_t)' does not match any in class 'llvm::APInt'<br>/usr/src/llvm/include/llvm/ADT/APInt.h:970: error: candidates are: llvm::APInt&<br>
llvm::APInt::clear(unsigned int)<br>/usr/src/llvm/include/llvm/ADT/APInt.h:960: error:                 llvm::APInt&<br>llvm::APInt::clear()<br>/usr/src/llvm/lib/Support/APInt.cpp:582: error: prototype for 'llvm::APInt& llvm<br>
::APInt::flip(uint32_t)' does not match any in class 'llvm::APInt'<br>/usr/src/llvm/include/llvm/ADT/APInt.h:986: error: candidates are: llvm::APInt&<br>llvm::APInt::flip(unsigned int)<br>/usr/src/llvm/include/llvm/ADT/APInt.h:973: error:                 llvm::APInt&<br>
llvm::APInt::flip()<br>/usr/src/llvm/lib/Support/APInt.cpp:589: error: prototype for 'uint32_t llvm::AP<br>Int::getBitsNeeded(const char*, uint32_t, uint8_t)' does not match any in class<br>'llvm::APInt'<br>
/usr/src/llvm/include/llvm/ADT/APInt.h:1058: error: candidate is: static unsigne<br>d int llvm::APInt::getBitsNeeded(const char*, unsigned int, uint8_t)<br>/usr/src/llvm/lib/Support/APInt.cpp:640: error: prototype for 'llvm::APInt llvm:<br>
:APInt::getHiBits(uint32_t) const' does not match any in class 'llvm::APInt'<br>/usr/src/llvm/include/llvm/ADT/APInt.h:417: error: candidate is: llvm::APInt llv<br>m::APInt::getHiBits(unsigned int) const<br>/usr/src/llvm/lib/Support/APInt.cpp:645: error: prototype for 'llvm::APInt llvm:<br>
:APInt::getLoBits(uint32_t) const' does not match any in class 'llvm::APInt'<br>/usr/src/llvm/include/llvm/ADT/APInt.h:422: error: candidate is: llvm::APInt llv<br>m::APInt::getLoBits(unsigned int) const<br>/usr/src/llvm/lib/Support/APInt.cpp:654: error: prototype for 'uint32_t llvm::AP<br>
Int::countLeadingZerosSlowCase() const' does not match any in class 'llvm::APInt<br>'<br>/usr/src/llvm/include/llvm/ADT/APInt.h:193: error: candidate is: unsigned int ll<br>vm::APInt::countLeadingZerosSlowCase() const<br>
/usr/src/llvm/lib/Support/APInt.cpp:654: error: 'uint32_t llvm::APInt::countLead<br>ingZerosSlowCase() const' cannot be overloaded<br>/usr/src/llvm/include/llvm/ADT/APInt.h:193: error: with 'unsigned int llvm::APIn<br>
t::countLeadingZerosSlowCase() const'<br>/usr/src/llvm/lib/Support/APInt.cpp: In member function 'uint32_t llvm::APInt::c<br>ountLeadingZerosSlowCase() const':<br>/usr/src/llvm/lib/Support/APInt.cpp:667: error: no matching function for call to<br>
 'min(uint32_t&, const unsigned int&)'<br>/usr/src/llvm/lib/Support/APInt.cpp: At global scope:<br>/usr/src/llvm/lib/Support/APInt.cpp:681: error: prototype for 'uint32_t llvm::AP<br>Int::countLeadingOnes() const' does not match any in class 'llvm::APInt'<br>
/usr/src/llvm/include/llvm/ADT/APInt.h:1080: error: candidate is: unsigned int l<br>lvm::APInt::countLeadingOnes() const<br>/usr/src/llvm/lib/Support/APInt.cpp:681: error: 'uint32_t llvm::APInt::countLead<br>ingOnes() const' cannot be overloaded<br>
/usr/src/llvm/include/llvm/ADT/APInt.h:1080: error: with 'unsigned int llvm::API<br>nt::countLeadingOnes() const'<br>/usr/src/llvm/lib/Support/APInt.cpp:702: error: prototype for 'uint32_t llvm::AP<br>Int::countTrailingZeros() const' does not match any in class 'llvm::APInt'<br>
/usr/src/llvm/include/llvm/ADT/APInt.h:1089: error: candidate is: unsigned int l<br>lvm::APInt::countTrailingZeros() const<br>/usr/src/llvm/lib/Support/APInt.cpp:702: error: 'uint32_t llvm::APInt::countTrai<br>lingZeros() const' cannot be overloaded<br>
/usr/src/llvm/include/llvm/ADT/APInt.h:1089: error: with 'unsigned int llvm::API<br>nt::countTrailingZeros() const'<br>/usr/src/llvm/lib/Support/APInt.cpp: In member function 'uint32_t llvm::APInt::c<br>ountTrailingZeros() const':<br>
/usr/src/llvm/lib/Support/APInt.cpp:704: error: no matching function for call to<br> 'min(uint32_t, const unsigned int&)'<br>/usr/src/llvm/lib/Support/APInt.cpp:711: error: no matching function for call to<br>
 'min(uint32_t&, const unsigned int&)'<br>/usr/src/llvm/lib/Support/APInt.cpp: At global scope:<br>/usr/src/llvm/lib/Support/APInt.cpp:714: error: prototype for 'uint32_t llvm::AP<br>Int::countTrailingOnesSlowCase() const' does not match any in class 'llvm::APInt<br>
'<br>/usr/src/llvm/include/llvm/ADT/APInt.h:196: error: candidate is: unsigned int ll<br>vm::APInt::countTrailingOnesSlowCase() const<br>/usr/src/llvm/lib/Support/APInt.cpp:714: error: 'uint32_t llvm::APInt::countTrai<br>
lingOnesSlowCase() const' cannot be overloaded<br>/usr/src/llvm/include/llvm/ADT/APInt.h:196: error: with 'unsigned int llvm::APIn<br>t::countTrailingOnesSlowCase() const'<br>/usr/src/llvm/lib/Support/APInt.cpp: In member function 'uint32_t llvm::APInt::c<br>
ountTrailingOnesSlowCase() const':<br>/usr/src/llvm/lib/Support/APInt.cpp:721: error: no matching function for call to<br> 'min(uint32_t&, const unsigned int&)'<br>/usr/src/llvm/lib/Support/APInt.cpp: At global scope:<br>
/usr/src/llvm/lib/Support/APInt.cpp:724: error: prototype for 'uint32_t llvm::AP<br>Int::countPopulationSlowCase() const' does not match any in class 'llvm::APInt'<br>/usr/src/llvm/include/llvm/ADT/APInt.h:199: error: candidate is: unsigned int ll<br>
vm::APInt::countPopulationSlowCase() const<br>/usr/src/llvm/lib/Support/APInt.cpp:724: error: 'uint32_t llvm::APInt::countPopu<br>lationSlowCase() const' cannot be overloaded<br>/usr/src/llvm/include/llvm/ADT/APInt.h:199: error: with 'unsigned int llvm::APIn<br>
t::countPopulationSlowCase() const'<br>/usr/src/llvm/lib/Support/APInt.cpp:768: error: 'llvm::APInt llvm::APIntOps::Rou<br>ndDoubleToAPInt(double, uint32_t)' should have been declared inside 'llvm::APInt<br>
Ops'<br>/usr/src/llvm/lib/Support/APInt.cpp:871: error: prototype for 'llvm::APInt& llvm<br>::APInt::trunc(uint32_t)' does not match any in class 'llvm::APInt'<br>/usr/src/llvm/include/llvm/ADT/APInt.h:913: error: candidate is: llvm::APInt& ll<br>
vm::APInt::trunc(unsigned int)<br>/usr/src/llvm/lib/Support/APInt.cpp:894: error: prototype for 'llvm::APInt& llvm<br>::APInt::sext(uint32_t)' does not match any in class 'llvm::APInt'<br>/usr/src/llvm/include/llvm/ADT/APInt.h:920: error: candidate is: llvm::APInt& ll<br>
vm::APInt::sext(unsigned int)<br>/usr/src/llvm/lib/Support/APInt.cpp:941: error: prototype for 'llvm::APInt& llvm<br>::APInt::zext(uint32_t)' does not match any in class 'llvm::APInt'<br>/usr/src/llvm/include/llvm/ADT/APInt.h:926: error: candidate is: llvm::APInt& ll<br>
vm::APInt::zext(unsigned int)<br>/usr/src/llvm/lib/Support/APInt.cpp:960: error: prototype for 'llvm::APInt& llvm<br>::APInt::zextOrTrunc(uint32_t)' does not match any in class 'llvm::APInt'<br>/usr/src/llvm/include/llvm/ADT/APInt.h:936: error: candidate is: llvm::APInt& ll<br>
vm::APInt::zextOrTrunc(unsigned int)<br>/usr/src/llvm/lib/Support/APInt.cpp:968: error: prototype for 'llvm::APInt& llvm<br>::APInt::sextOrTrunc(uint32_t)' does not match any in class 'llvm::APInt'<br>
/usr/src/llvm/include/llvm/ADT/APInt.h:931: error: candidate is: llvm::APInt& ll<br>vm::APInt::sextOrTrunc(unsigned int)<br>/usr/src/llvm/lib/Support/APInt.cpp:984: error: prototype for 'llvm::APInt llvm:<br>:APInt::ashr(uint32_t) const' does not match any in class 'llvm::APInt'<br>
/usr/src/llvm/lib/Support/APInt.cpp:978: error: candidates are: llvm::APInt llvm<br>::APInt::ashr(const llvm::APInt&) const<br>/usr/src/llvm/include/llvm/ADT/APInt.h:672: error:                 llvm::APInt l<br>lvm::APInt::ashr(unsigned int) const<br>
/usr/src/llvm/lib/Support/APInt.cpp:1073: error: prototype for 'llvm::APInt llvm<br>::APInt::lshr(uint32_t) const' does not match any in class 'llvm::APInt'<br>/usr/src/llvm/lib/Support/APInt.cpp:1067: error: candidates are: llvm::APInt llv<br>
m::APInt::lshr(const llvm::APInt&) const<br>/usr/src/llvm/include/llvm/ADT/APInt.h:676: error:                 llvm::APInt l<br>lvm::APInt::lshr(unsigned int) const<br>/usr/src/llvm/lib/Support/APInt.cpp:1140: error: prototype for 'llvm::APInt llvm<br>
::APInt::shlSlowCase(uint32_t) const' does not match any in class 'llvm::APInt'<br>/usr/src/llvm/include/llvm/ADT/APInt.h:172: error: candidate is: llvm::APInt llv<br>m::APInt::shlSlowCase(unsigned int) const<br>
/usr/src/llvm/lib/Support/APInt.cpp:1194: error: prototype for 'llvm::APInt llvm<br>::APInt::rotl(uint32_t) const' does not match any in class 'llvm::APInt'<br>/usr/src/llvm/lib/Support/APInt.cpp:1190: error: candidates are: llvm::APInt llv<br>
m::APInt::rotl(const llvm::APInt&) const<br>/usr/src/llvm/include/llvm/ADT/APInt.h:691: error:                 llvm::APInt l<br>lvm::APInt::rotl(unsigned int) const<br>/usr/src/llvm/lib/Support/APInt.cpp:1209: error: prototype for 'llvm::APInt llvm<br>
::APInt::rotr(uint32_t) const' does not match any in class 'llvm::APInt'<br>/usr/src/llvm/lib/Support/APInt.cpp:1205: error: candidates are: llvm::APInt llv<br>m::APInt::rotr(const llvm::APInt&) const<br>/usr/src/llvm/include/llvm/ADT/APInt.h:694: error:                 llvm::APInt l<br>
lvm::APInt::rotr(unsigned int) const<br>/usr/src/llvm/lib/Support/APInt.cpp:1539: error: prototype for 'void llvm::APInt<br>::divide(llvm::APInt, uint32_t, const llvm::APInt&, uint32_t, llvm::APInt*, llvm<br>::APInt*)' does not match any in class 'llvm::APInt'<br>
/usr/src/llvm/include/llvm/ADT/APInt.h:163: error: candidate is: static void llv<br>m::APInt::divide(llvm::APInt, unsigned int, const llvm::APInt&, unsigned int, ll<br>vm::APInt*, llvm::APInt*)<br>/usr/src/llvm/lib/Support/APInt.cpp: In static member function 'static void llvm<br>
::APInt::udivrem(const llvm::APInt&, const llvm::APInt&, llvm::APInt&, llvm::API<br>nt&)':<br>/usr/src/llvm/lib/Support/APInt.cpp:1824: error: cannot call member function 'vo<br>id llvm::APInt::divide(llvm::APInt, uint32_t, const llvm::APInt&, uint32_t, llvm<br>
::APInt*, llvm::APInt*)' without object<br>/usr/src/llvm/lib/Support/APInt.cpp: At global scope:<br>/usr/src/llvm/lib/Support/APInt.cpp:1828: error: prototype for 'void llvm::APInt<br>::fromString(uint32_t, const char*, uint32_t, uint8_t)' does not match any in cl<br>
ass 'llvm::APInt'<br>/usr/src/llvm/include/llvm/ADT/APInt.h:154: error: candidate is: void llvm::APIn<br>t::fromString(unsigned int, const char*, unsigned int, uint8_t)<br>make[1]: *** [/usr/build/llvm/lib/Support/Debug/APInt.o] Error 1<br>
make[1]: Leaving directory `/usr/build/llvm/lib/Support'<br>make: *** [all] Error 1<br></p>