<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Oct 14, 2008, at 11:21 PM, Kenneth Boyd wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Mark Kromis wrote:<br><blockquote type="cite">Resend<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Oct 14, 2008, at 5:40 AM, Mark Kromis wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">Greetings,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I have a compiler error that I have not been able to get through. I  <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">usually depend upon pre-built binaries but there was none available  <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">for the pre-release. I also try scanning the web site and mail list  <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">but was unable to find an answer. I was getting this or similar  <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">error with 2.3. I am just trying to build with the core library. I  <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">tried this in a xp and vista VM with the same results, I have  <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Leopard, and was hoping to use this for similar build environment. I  <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">use eclipse/CDT for development on windows.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Built with "C:/MinGW/bin/sh.exe"-2.04$ ./configure --prefix=/usr -- <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">enable-optimized --disa<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ble-shared --disable-multilib --disable-asserts<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote>Ok...I would have expected that to suppress the following error:</div></blockquote><div><br></div><div>I must have been typed that, I misspelled assertions. --disable-assertions does get around that error, but I get a different one. I was hoping that fixing one error would fix the other. Since there were no other comments on the mail list about that particular issue, I was hoping it was something easy to fix on the compiler, since it compiles fine on Leopard.</div><div><br></div><div>When assertions are disabled I get this error:</div><div><div>llvm[1]: Compiling IntrinsicInst.cpp for Release-Asserts build</div><div>In file included from IntrinsicInst.cpp:32:</div><div>c:\mingw\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_check.h: In</div><div> instantiation of '__gnu_cxx::_SGIAssignableConcept<llvm::MachineMove>':</div><div>c:\mingw\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/stl_vector.h:179:   insta</div><div>ntiated from 'std::vector<llvm::MachineMove, std::allocator<llvm::MachineMove> ></div><div>'</div><div>c:/Users/Greybird/Desktop/llvm/llvm-2.4/include/llvm/CodeGen/MachineModuleInfo.h</div><div>:1007:   instantiated from here</div><div>c:\mingw\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_check.h:216</div><div>: error: '__gnu_cxx::_SGIAssignableConcept<_Tp>::__a' has incomplete type</div><div>c:/Users/Greybird/Desktop/llvm/llvm-2.4/include/llvm/CodeGen/MachineModuleInfo.h</div><div>:53: error: forward declaration of 'struct llvm::MachineMove'</div><div>c:\mingw\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_check.h: In</div><div> member function 'void __gnu_cxx::_SGIAssignableConcept<_Tp>::__constraints() [w</div><div>ith _Tp = llvm::MachineMove]':</div><div>c:\mingw\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/stl_vector.h:179:   insta</div><div>ntiated from 'std::vector<llvm::MachineMove, std::allocator<llvm::MachineMove> ></div><div>'</div><div>c:/Users/Greybird/Desktop/llvm/llvm-2.4/include/llvm/CodeGen/MachineModuleInfo.h</div><div>:1007:   instantiated from here</div><div>c:\mingw\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_check.h:208</div><div>: error: using invalid field '__gnu_cxx::_SGIAssignableConcept<_Tp>::__a'</div><div>c:\mingw\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_check.h:208</div><div>: error: '__b' has incomplete type</div><div>c:\mingw\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_check.h:209</div><div>: error: using invalid field '__gnu_cxx::_SGIAssignableConcept<_Tp>::__a'</div><div>c:\mingw\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_check.h:209</div><div>: error: using invalid field '__gnu_cxx::_SGIAssignableConcept<_Tp>::__a'</div><div>c:\mingw\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/stl_vector.h:179:   insta</div><div>ntiated from 'std::vector<llvm::MachineMove, std::allocator<llvm::MachineMove> ></div><div>'</div><div>c:/Users/Greybird/Desktop/llvm/llvm-2.4/include/llvm/CodeGen/MachineModuleInfo.h</div><div>:1007:   instantiated from here</div><div>c:\mingw\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_check.h:210</div><div>: error: using invalid field '__gnu_cxx::_SGIAssignableConcept<_Tp>::__a'</div><div>c:\mingw\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_check.h: In</div><div> member function 'void __gnu_cxx::_SGIAssignableConcept<_Tp>::__const_constraint</div><div>s(const _Tp&) [with _Tp = llvm::MachineMove]':</div><div>c:\mingw\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_check.h:210</div><div>:   instantiated from 'void __gnu_cxx::_SGIAssignableConcept<_Tp>::__constraints</div><div>() [with _Tp = llvm::MachineMove]'</div><div>c:\mingw\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/stl_vector.h:179:   insta</div><div>ntiated from 'std::vector<llvm::MachineMove, std::allocator<llvm::MachineMove> ></div><div>'</div><div>c:/Users/Greybird/Desktop/llvm/llvm-2.4/include/llvm/CodeGen/MachineModuleInfo.h</div><div>:1007:   instantiated from here</div><div>c:\mingw\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_check.h:213</div><div>: error: '__c' has incomplete type</div><div>c:\mingw\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_check.h:214</div><div>: error: using invalid field '__gnu_cxx::_SGIAssignableConcept<_Tp>::__a'</div><div>make[1]: *** [/c/Users/Greybird/Desktop/llvm/llvm-2.4/lib/VMCore/Release-Asserts</div><div>/IntrinsicInst.o] Error 1</div><div>make[1]: Leaving directory `/c/Users/Greybird/Desktop/llvm/llvm-2.4/lib/VMCore'</div><div>make: *** [all] Error 1</div></div><div><br></div><blockquote type="cite"><div><font class="Apple-style-span" color="#000000"><br></font><blockquote type="cite"><blockquote type="cite">output:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">llvm[1]: Compiling BasicBlock.cpp for Release build<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">c:\mingw\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/ <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">boost_concept_check.h: In<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">member function 'bool __gnu_cxx::_EqualOpConcept<_First,  <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">_Second>::__constraint<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">s_() [with _First = llvm::BasicBlock, _Second = llvm::BasicBlock*]':<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">c:\mingw\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/ <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">boost_concept_check.h:296<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">:   instantiated from 'void __gnu_cxx::_EqualOpConcept<_First,  <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">_Second>::__const<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">raints() [with _First = llvm::BasicBlock, _Second =  <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">llvm::BasicBlock*]'<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">c:\mingw\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/ <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">boost_concept_check.h:62:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">  instantiated from 'void __gnu_cxx::__function_requires() [with  <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">_Concept = __g<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">nu_cxx::_EqualOpConcept<llvm::BasicBlock, llvm::BasicBlock*>]'<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">c:\mingw\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/stl_algo.h: <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">3810:   instan<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">tiated from '_IIter std::find(_IIter, _IIter, const _Tp&) [with <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">_IIter = llvm::P<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">redIterator<llvm::BasicBlock, llvm::value_use_iterator<llvm::User>  <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">, _Tp = llvm<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">::BasicBlock*]'<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">BasicBlock.cpp:180:   instantiated from here<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">c:\mingw\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/ <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">boost_concept_check.h:296<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">: error: no match for 'operator==' in  <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">'((__gnu_cxx::_EqualOpConcept<llvm::BasicB<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">lock, llvm::BasicBlock*>*)this)- <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">__gnu_cxx::_EqualOpConcept<llvm::BasicBlock, ll<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">vm::BasicBlock*>::__a ==  <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">((__gnu_cxx::_EqualOpConcept<llvm::BasicBlock, llvm::Ba<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">sicBlock*>*)this)->__gnu_cxx::_EqualOpConcept<llvm::BasicBlock,  <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">llvm::BasicBlock<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">*>::__b'<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">c:/Users/Greybird/Desktop/llvm/llvm-2.4/include/llvm/ADT/APInt.h: <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote>BasicBlock is failing the EqualityComparable concept check.  This should <br>be breaking --enable-asserts and --enable-expensive-checks, not <br>--enable-optimized (concept checks should be disabled in release mode, <br>which is controlled by NDEBUG).</div></blockquote><div><br></div><div>I just tried with plain  "./configure  --enable-optimized" and was getting the same. But if I did " ./configure  --enable-optimized --disable-assertions" I get the other error.</div><br><blockquote type="cite"><div><br><blockquote type="cite"><blockquote type="cite">1379: note: can<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">didates are: bool llvm::operator==(uint64_t, const llvm::APInt&)<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">make[1]: *** [/c/Users/Greybird/Desktop/llvm/llvm-2.4/lib/VMCore/ <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Release/BasicBl<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">ock.o] Error 1<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">make[1]: Leaving directory `/c/Users/Greybird/Desktop/llvm/llvm-2.4/ <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">lib/VMCore'<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">make: *** [all] Error 1<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote>GCC 4.3.0 is not finding the equality operator suitable for comparing <br>these; the implied STL invocation would be buggy.</div></blockquote><div><br></div><div>So would that be a buggy STL, I'm assuming on the compiler? If so is there a MingW package I need to update or recompile? I downloaded 4.3.0 from the sourceforge page for mingw.</div><br><blockquote type="cite"><div><br><br>I don't think I'll be able to take a close look at this tonight (I have <br>MingW32 3.4.5 and MingW32 4.2.1 ready, not MingW32 4.3.0).<br><br>Kenneth</div></blockquote><blockquote type="cite"><div><br>_______________________________________________<br>LLVM Developers mailing list<br>LLVMdev@cs.uiuc.edu         <a href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br></div></blockquote></div><br><div>Thanks again in advance.</div><div><br></div><div>Regards</div><div>Mark Kromis</div></body></html>