From owner-freebsd-stable@FreeBSD.ORG Wed Dec 29 09:52:11 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C81EC16A4CE for ; Wed, 29 Dec 2004 09:52:11 +0000 (GMT) Received: from park.rambler.ru (park.rambler.ru [81.19.64.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09FC143D41 for ; Wed, 29 Dec 2004 09:52:11 +0000 (GMT) (envelope-from is@rambler-co.ru) Received: from is.park.rambler.ru (is.park.rambler.ru [81.19.64.102]) by park.rambler.ru (8.13.1/8.12.6) with ESMTP id iBT9q9qk061341; Wed, 29 Dec 2004 12:52:09 +0300 (MSK) (envelope-from is@rambler-co.ru) Date: Wed, 29 Dec 2004 12:52:09 +0300 (MSK) From: Igor Sysoev X-X-Sender: is@is.park.rambler.ru To: Kris Kennaway In-Reply-To: <20041229072940.GA37069@xor.obsecurity.org> Message-ID: <20041229124322.G73628@is.park.rambler.ru> References: <20041228162708.P73628@is.park.rambler.ru> <20041229064721.GA21602@xor.obsecurity.org> <20041229072940.GA37069@xor.obsecurity.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-stable@freebsd.org Subject: Re: icc8 failed on 4.10: Illegal instruction X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Dec 2004 09:52:11 -0000 On Tue, 28 Dec 2004, Kris Kennaway wrote: > On Wed, Dec 29, 2004 at 10:21:05AM +0300, Igor Sysoev wrote: > > > > > > > Then I installed the port and I ran /usr/local/intel_cc_80/bin/icc, > > > > > > but it always failed with message "Illegal instruction". > > > > > > > > > > You forgot to mention what type of CPU you have. > > > > > Sorry, it was so obvious for me that is not CPU problem in this case, > > > > so I forgot to mention it. From dmesg: > > > > > > > > CPU: Intel(R) Pentium(R) 4 CPU 2.66GHz (2679.56-MHz 686-class CPU) > > > > Origin = "GenuineIntel" Id = 0xf27 Stepping = 7 > > > 0x80b13d7 <__intel_proc_init_ftzdaz+79>: stmxcsr (%esp,1) > > > Strange, the code in __intel_proc_init_ftzdaz looks like the right code. > > Right now I can not say from what extention "stmxcsr" come from. > > Here is the features from dmesg: > > Features=0xbfebfbff > MOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> > > It's an SSE instruction, and you need to enable support for SSE in > your kernel. Thank you. The "options CPU_ENABLE_SSE" resolves the problem. I think it should be mention in the port for 4.x. However, it seems that 4.10's headers are not good for icc8: >cat q.c #include >/usr/local/intel_cc_80/bin/icc q.c /usr/include/wchar.h(79): error: "__mbstate_t" has already been declared in the current scope } __mbstate_t; ^ /usr/include/libio.h(463): error: identifier "__gnuc_va_list" is undefined _IO_va_list, int *__restrict) __THROW; ^ /usr/include/libio.h(465): error: identifier "__gnuc_va_list" is undefined _IO_va_list) __THROW; ^ /usr/include/stdio.h(307): error: identifier "__gnuc_va_list" is undefined _G_va_list __arg) __THROW; ^ /usr/include/stdio.h(309): error: identifier "__gnuc_va_list" is undefined extern int vprintf (__const char *__restrict __format, _G_va_list __arg) ^ /usr/include/stdio.h(313): error: identifier "__gnuc_va_list" is undefined _G_va_list __arg) __THROW; ^ /usr/include/stdio.h(324): error: identifier "__gnuc_va_list" is undefined __const char *__restrict __format, _G_va_list __arg) ^ compilation aborted for q.c (code 2) Igor Sysoev http://sysoev.ru/en/