From owner-freebsd-ports Sun Mar 31 20:45:32 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mailout05.sul.t-online.com (mailout05.sul.t-online.com [194.25.134.82]) by hub.freebsd.org (Postfix) with ESMTP id 76B9D37B416; Sun, 31 Mar 2002 20:45:24 -0800 (PST) Received: from fwd11.sul.t-online.de by mailout05.sul.t-online.com with smtp id 16rtgz-0002XZ-01; Mon, 01 Apr 2002 06:45:17 +0200 Received: from spirit.zuhause.stoert.net (320050403952-0001@[80.128.114.220]) by fmrl11.sul.t-online.com with esmtp id 16rtgv-08dfGqC; Mon, 1 Apr 2002 06:45:13 +0200 Received: from elevation.zuhause.stoert.net (elevation.zuhause.stoert.net [192.168.66.46]) by spirit.zuhause.stoert.net (8.11.6/8.11.6) with ESMTP id g314jCR55857; Mon, 1 Apr 2002 06:45:13 +0200 (CEST) (envelope-from corecode@corecode.ath.cx) Received: (from corecode@localhost) by elevation.zuhause.stoert.net (8.11.6/8.11.6) id g314jBG94735; Mon, 1 Apr 2002 06:45:11 +0200 (CEST) (envelope-from corecode) Date: Mon, 1 Apr 2002 06:45:07 +0200 From: "Simon 'corecode' Schubert" To: Terry Lambert Cc: Alexander@Leidinger.net, nick-lists@netability.ie, hackers@FreeBSD.ORG, ports@FreeBSD.ORG, cy@FreeBSD.ORG Subject: Re: lang/icc doesn't compile c++ sources Message-Id: <20020401064507.07de3b52.corecode@corecode.ath.cx> In-Reply-To: <3CA7871C.90383DE3@mindspring.com> References: <200203311104.g2VB4FFL003781@Magelan.Leidinger.net> <200203311752.g2VHqLFL006965@Magelan.Leidinger.net> <20020331221442.038bf9ce.corecode@corecode.ath.cx> <3CA7871C.90383DE3@mindspring.com> X-Mailer: Sylpheed version 0.7.4claws (GTK+ 1.2.10; i386-portbld-freebsd4.5) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=.FRBN's6f?oO,p(" X-Sender: 320050403952-0001@t-dialin.net Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --=.FRBN's6f?oO,p( Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sun, 31 Mar 2002 14:01:00 -0800 Terry Lambert wrote: > Simon 'corecode' Schubert wrote: > > 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, _Alloc=std::allocator]" matches the argument list > > argument types are: (char *, std::allocator) > > : _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, _Alloc > > =std::allocator]" > > > OK, this one is evil. > > There's code that assumes limk order here, and it seems that > the library is at fault, or the order in which the static > base class declarations are instantiated. > > Jeremey Allison and I had the same problem with ACAP under g++, > when we were the first people to get it to compile, link, and > run. Doing this required multiple fixes: [...] > > My main recommendation here is that the Moscow code is much > better at this, since it has been pounded upon more than any > other code in the same ecological niche, so using it instead > is probably the right thing to do. > > Alternately, you could ensure ordering... by reordering the source > code. This seems like a poor idea, but it what Linux did implicitly, > I think. 8-(. first of all i'm taking this as an aprils fool (no offence if it was none) ;] and secondly i believe these templates don't get linked (all code within the .h) so we should go another approach. (sorry, i'm not very creative, including aprils fools) cheerz simon -- /"\ http://corecode.ath.cx/ \ / \ ASCII Ribbon Campaign / \ Against HTML Mail and News --=.FRBN's6f?oO,p( Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) iD8DBQE8p+XXr5S+dk6z85oRAiv1AKC+p2+QOEoOgTKEecZjUR2QCXXyTgCfXn+R qh4bAJBJmAKxLr1C6ZLDOnM= =44il -----END PGP SIGNATURE----- --=.FRBN's6f?oO,p(-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message