From owner-freebsd-hackers Sat Mar 30 6:56:28 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mailout10.sul.t-online.com (mailout10.sul.t-online.com [194.25.134.21]) by hub.freebsd.org (Postfix) with ESMTP id E16A537B405 for ; Sat, 30 Mar 2002 06:56:16 -0800 (PST) Received: from fwd05.sul.t-online.de by mailout10.sul.t-online.com with smtp id 16rI9X-0005tk-0B; Sat, 30 Mar 2002 13:40:15 +0100 Received: from Magelan.Leidinger.net (520065502893-0001@[217.229.221.66]) by fmrl05.sul.t-online.com with esmtp id 16rI9X-0JkDjcC; Sat, 30 Mar 2002 13:40:15 +0100 Received: from Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.12.2/8.12.2) with ESMTP id g2UCe77S013694; Sat, 30 Mar 2002 13:40:11 +0100 (CET) (envelope-from netchild@Leidinger.net) Message-Id: <200203301240.g2UCe77S013694@Magelan.Leidinger.net> Date: Sat, 30 Mar 2002 13:40:07 +0100 (CET) From: Alexander Leidinger Subject: Re: lang/icc doesn't compile c++ sources To: corecode@corecode.ath.cx Cc: hackers@freebsd.org In-Reply-To: <20020330130126.161bd651.corecode@corecode.ath.cx> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT X-Sender: 520065502893-0001@t-dialin.net Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 30 Mär, Simon 'corecode' Schubert wrote: > but i can't get icc to compile a single c++ source: > it always fails on the headers. > > just a simple echo '#include' > comp.cc > won't compile. i've tested the include files of > o icc > o gcc 2.95.3 (the one from my base system, 4.5-S) > o gcc 3.0.4 (from the ports) > > each one gives me a different error. I tried this: ­--snip--- #include int main(void) { cout << "Hello World"; exit(0); } ---snip--- - gcc from -current didn't fails (and no errors). - icc complains about: ---snip--- test.cpp: "/usr/include/stdlib.h", line 57: error: invalid combination of type specifiers typedef _BSD_WCHAR_T_ wchar_t; ^ "/usr/local/intel/compiler50/ia32/include/cwchar", line 16: error: the global scope has no "tm" using ::mbstate_t; using ::size_t; using ::tm; using ::wint_t; ^ "/usr/local/intel/compiler50/ia32/include/cwchar", line 19: error: the global scope has no "btowc" using ::btowc; ^ "/usr/local/intel/compiler50/ia32/include/cwchar", line 22: error: the global scope has no "mbrlen" using ::mbrlen; using ::mbrtowc; using ::mbsrtowcs; ^ [and so on] ---snip--- I think this is because of our wchar implementation (mostly a stub if I remember correctly), but I could be wrong on this. > if not, i'd like to work on that, but i don't know where to start. If you have to patch some Intel headers, then you have to work on a "make pre-patch" version of icc. Don't forget to apply patch-include by hand before you make diffs. Bye, Alexander. -- The best things in life are free, but the expensive ones are still worth a look. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message