From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 26 15:43:02 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7CFCA106566C for ; Tue, 26 Apr 2011 15:43:02 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 303728FC0C for ; Tue, 26 Apr 2011 15:43:02 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id ACC6646B43; Tue, 26 Apr 2011 11:43:01 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 22E2C8A02A; Tue, 26 Apr 2011 11:43:01 -0400 (EDT) From: John Baldwin To: Vladimir Laskov Date: Tue, 26 Apr 2011 11:43:00 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110325; KDE/4.5.5; amd64; ; ) References: <4D553027.5040606@gmail.com> <4DB6D264.2060209@gmail.com> In-Reply-To: <4DB6D264.2060209@gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201104261143.00644.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Tue, 26 Apr 2011 11:43:01 -0400 (EDT) Cc: freebsd-hackers@freebsd.org, Sergey Kandaurov Subject: Re: problem with build mcelog X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2011 15:43:02 -0000 On Tuesday, April 26, 2011 10:10:44 am Vladimir Laskov wrote: > have problem for i386 > ============================================== > > # gmake FREEBSD=yes i386=yes > Makefile:92: .depend: No such file or directory > cc -MM -I. p4.c k8.c mcelog.c dmi.c tsc.c core2.c bitfield.c intel.c > nehalem.c dunnington.c tulsa.c config.c memutil.c msg.c eventloop.c > leaky-bucket.c memdb.c server.c client.c cache.c rbtree.c memstream.c > > .depend.X && mv .depend.X .depend > cc -c -g -Os -Wall -Wextra -Wno-missing-field-initializers > -Wno-unused-parameter -Wstrict-prototypes -Wformat-security > -Wmissing-declarations -Wdeclaration-after-statement -o mcelog.o mcelog.c > In file included from mcelog.c:52: > mcelog.h:112: error: expected identifier before numeric constant > mcelog.c: In function 'bankname': > mcelog.c:138: error: 'CPU_NEHALEM' undeclared (first use in this function) > mcelog.c:138: error: (Each undeclared identifier is reported only once > mcelog.c:138: error: for each function it appears in.) > mcelog.c:138: error: 'CPU_DUNNINGTON' undeclared (first use in this > function) > mcelog.c:138: error: 'CPU_TULSA' undeclared (first use in this function) > mcelog.c: In function 'mce_filter': > mcelog.c:163: error: 'CPU_NEHALEM' undeclared (first use in this function) > mcelog.c:163: error: 'CPU_DUNNINGTON' undeclared (first use in this > function) > mcelog.c:163: error: 'CPU_TULSA' undeclared (first use in this function) > mcelog.c: At top level: > mcelog.c:218: error: 'CPU_NEHALEM' undeclared here (not in a function) > mcelog.c:218: error: array index in initializer not of integer type > mcelog.c:218: error: (near initialization for 'cputype_name') > mcelog.c:219: error: 'CPU_DUNNINGTON' undeclared here (not in a function) > mcelog.c:219: error: array index in initializer not of integer type > mcelog.c:219: error: (near initialization for 'cputype_name') > mcelog.c:220: error: 'CPU_TULSA' undeclared here (not in a function) > mcelog.c:220: error: array index in initializer not of integer type > mcelog.c:220: error: (near initialization for 'cputype_name') > mcelog.c: In function 'decodefatal': > mcelog.c:835: warning: integer constant is too large for 'long' type > mcelog.c:838: warning: integer constant is too large for 'long' type > mcelog.c:921: warning: integer constant is too large for 'long' type > mcelog.c:923: warning: integer constant is too large for 'long' type > gmake: *** [mcelog.o] Error 1 Oops, please try this additional patch: --- //depot/projects/mcelog/mcelog.c 2010-08-25 11:41:19.000000000 0000 +++ /home/jhb/work/p4/mcelog/mcelog.c 2010-08-25 11:41:19.000000000 0000 @@ -29,6 +29,10 @@ #include #include #include +#ifdef __i386__ +/* Conflicts with 'enum cputype' in . */ +#undef CPU_P4 +#endif #include #include #include -- John Baldwin