[illumos-Discuss] clang -integrated-as compiles all of FreeBSD (was Re: Clang builds a working Linux Kernel)
Apostolos Syropoulos
asyropoulos at yahoo.com
Sun Oct 31 05:11:28 PDT 2010
Hello,
I am using gcc-4.4.4 (I compiled it my self:) ) and here is what I get:
llvm[1]: Compiling BasicBlock.cpp for Release+Asserts build
In file included from
/usr/lib/gcc/i386-pc-solaris2.11/4.4.4/../../../../include/c++/4.4.4/bits/concept_check.h:55,
from
/usr/lib/gcc/i386-pc-solaris2.11/4.4.4/../../../../include/c++/4.4.4/bits/stl_iterator_base_funcs.h:64,
from
/usr/lib/gcc/i386-pc-solaris2.11/4.4.4/../../../../include/c++/4.4.4/iterator:63,
from /extra/sources/lang/llvm/include/llvm/Use.h:31,
from /extra/sources/lang/llvm/include/llvm/Value.h:18,
from /extra/sources/lang/llvm/include/llvm/User.h:22,
from /extra/sources/lang/llvm/include/llvm/Instruction.h:18,
from /extra/sources/lang/llvm/include/llvm/BasicBlock.h:17,
from BasicBlock.cpp:14:
/usr/lib/gcc/i386-pc-solaris2.11/4.4.4/../../../../include/c++/4.4.4/bits/boost_concept_check.h:
In member function ‘bool __gnu_cxx::_EqualOpConcept<_First,
_Second>::__constraints_() [with _First = llvm::BasicBlock, _Second =
llvm::BasicBlock*]’:
/usr/lib/gcc/i386-pc-solaris2.11/4.4.4/../../../../include/c++/4.4.4/bits/boost_concept_check.h:291:
instantiated from ‘void __gnu_cxx::_EqualOpConcept<_First,
_Second>::__constraints() [with _First = llvm::BasicBlock, _Second =
llvm::BasicBlock*]’
/usr/lib/gcc/i386-pc-solaris2.11/4.4.4/../../../../include/c++/4.4.4/bits/boost_concept_check.h:57:
instantiated from ‘void __gnu_cxx::__function_requires() [with _Concept =
__gnu_cxx::_EqualOpConcept<llvm::BasicBlock, llvm::BasicBlock*>]’
/usr/lib/gcc/i386-pc-solaris2.11/4.4.4/../../../../include/c++/4.4.4/bits/stl_algo.h:4220:
instantiated from ‘_IIter std::find(_IIter, _IIter, const _Tp&) [with _IIter =
llvm::PredIterator<llvm::BasicBlock, llvm::value_use_iterator<llvm::User> >, _Tp
= llvm::BasicBlock*]’
BasicBlock.cpp:192: instantiated from here
/usr/lib/gcc/i386-pc-solaris2.11/4.4.4/../../../../include/c++/4.4.4/bits/boost_concept_check.h:291:
σφάλμα: no match for ‘operator==’ in
‘((__gnu_cxx::_EqualOpConcept<llvm::BasicBlock,
llvm::BasicBlock*>*)this)->__gnu_cxx::_EqualOpConcept<llvm::BasicBlock,
llvm::BasicBlock*>::__a == ((__gnu_cxx::_EqualOpConcept<llvm::BasicBlock,
llvm::BasicBlock*>*)this)->__gnu_cxx::_EqualOpConcept<llvm::BasicBlock,
llvm::BasicBlock*>::__b’
/extra/sources/lang/llvm/include/llvm/ADT/APInt.h:1524: σημείωση: candidates
are: bool llvm::operator==(uint64_t, const llvm::APInt&)
/extra/sources/lang/llvm/include/llvm/ADT/StringRef.h:414:
σημείωση: bool llvm::operator==(llvm::StringRef,
llvm::StringRef)
make[1]: *** [/extra/sources/lang/llvm/lib/VMCore/Release+Asserts/BasicBlock.o]
Error 1
make[1]: Leaving directory `/extra/sources/lang/llvm/lib/VMCore'
make: *** [all] Error 1
Since I have seen such messages again, it seems the code is buggy. And frankly,
I do not
understand why people use such a stupid language like C++! It is more than a
nightmare!
A.S.
----------------------
Apostolos Syropoulos
Xanthi, Greece
More information about the Discuss
mailing list