Date: Sun, 31 Mar 2002 22:14:42 +0200 From: "Simon 'corecode' Schubert" <corecode@corecode.ath.cx> To: Alexander Leidinger <Alexander@Leidinger.net> Cc: tlambert2@mindspring.com, nick-lists@netability.ie, hackers@FreeBSD.ORG, ports@FreeBSD.ORG, cy@FreeBSD.ORG Subject: Re: lang/icc doesn't compile c++ sources Message-ID: <20020331221442.038bf9ce.corecode@corecode.ath.cx> In-Reply-To: <200203311752.g2VHqLFL006965@Magelan.Leidinger.net> References: <200203311104.g2VB4FFL003781@Magelan.Leidinger.net> <200203311752.g2VHqLFL006965@Magelan.Leidinger.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--=.uaiGV:E8EK(5n' Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit On Sun, 31 Mar 2002 19:52:21 +0200 (CEST) Alexander Leidinger <Alexander@Leidinger.net> wrote: > On 31 Mär, I wrote: > > >>> "/usr/include/stdlib.h", line 57: error: invalid combination of type specifiers > >>> typedef _BSD_WCHAR_T_ wchar_t; > >> > >> This seems to be a problem with the wchar_t being intrinsic, > >> and defined anyway for the compiler. > > > > So we just have to "#if !defined(__ICC)" it? Hmm, I have to test this, > > perhaps tomorrow. > > I had time to do it now, and yes, this fixes theses errors > (http://www.leidinger.net/FreeBSD/icc.src:include.diff), but there are > other errors, which seem to be a result of an incomplete wchar > implementation... that's right. but as terry said, it seems to be a bad idea to use some headers that don't fit the libs. i tried to patch the headers coming with 4.4-S and lang/gcc30 (because the one from the base system doesn't provide a proper c++ stl implementation) i've managed to fix several errors but now i'm hanging at this message, and i don't really know how to proceed: icc -I./include -I/usr/include -I/usr/local/lib/gcc-lib/i386-portbld-freebsd5.0/ 3.0.4/include/g++ -I /usr/local/lib/gcc-lib/i386-portbld-freebsd5.0/3.0.4/inclu de/g++/i386-portbld-freebsd5.0 -c e.cc e.cc: "/usr/local/lib/gcc-lib/i386-portbld-freebsd5.0/3.0.4/include/g++/bits/basic_str ing.h", line 860: error: no instance of constructor "std::basic_string<_CharT, _ Traits, _Alloc>::_Alloc_hider::_Alloc_hider [with _CharT=char, _Traits=std::char _traits<char>, _Alloc=std::allocator<char>]" matches the argument list argument types are: (char *, std::allocator<char>) : _M_dataplus(_S_empty_rep()._M_refcopy(), _Alloc()) { } ^ detected during instantiation of "std::basic_string<_CharT, _Traits, _ Alloc>::basic_string() [with _CharT=char, _Traits=std::char_traits<char>, _Alloc =std::allocator<char>]" $ { echo '#include <iostream>'; echo '#include <string>'; echo 'std::string test;'; } > e.cc my first tries for the patched include files can be found here: <http://corecode.ath.cx/~corecode/stuff/icc-patched-includes-0.1.tgz> just extract and set this include dir before any other, (see above command line). [snipsnap error msgs] > > (I'm waiting a little bit to see if I need to do something for the C++ > > problem). > > I think this is not a problem which should get solved in the port, so I > commit the new portrevision soon. actually i think this should be saved in the port ;] but this will take some time until there is a proper fix, so there is no real reason to hold back this one current patch (not the one for the headers). cheerz simon -- /"\ http://corecode.ath.cx/ \ / \ ASCII Ribbon Campaign / \ Against HTML Mail and News --=.uaiGV:E8EK(5n' Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) iD8DBQE8p241r5S+dk6z85oRAtnCAJ9ewHZuQJhzHlZcwIGm0kZA/FoupACg4fYb qHxHlVDVFik8J3vwRZ/ILLY= =p/3I -----END PGP SIGNATURE----- --=.uaiGV:E8EK(5n'-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020331221442.038bf9ce.corecode>