From owner-freebsd-questions@FreeBSD.ORG Wed Jan 27 23:32:36 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 124EC1065672 for ; Wed, 27 Jan 2010 23:32:36 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 92AFA8FC08 for ; Wed, 27 Jan 2010 23:32:35 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NaHNA-00065H-JN for freebsd-questions@freebsd.org; Thu, 28 Jan 2010 00:32:32 +0100 Received: from pool-68-239-73-86.res.east.verizon.net ([68.239.73.86]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Jan 2010 00:32:32 +0100 Received: from nightrecon by pool-68-239-73-86.res.east.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Jan 2010 00:32:32 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Michael Powell Followup-To: gmane.os.freebsd.questions Date: Wed, 27 Jan 2010 18:32:22 -0500 Lines: 52 Message-ID: References: <201001272354.14384.pieter@degoeje.nl> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pool-68-239-73-86.res.east.verizon.net User-Agent: KNode/4.3.4 Sender: news Subject: Re: Weird build errors only on 3rd core of quad core CPU X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jan 2010 23:32:36 -0000 Pieter de Goeje wrote: > I am suspecting a broken CPU, but am not sure. > > These commands: > cd /usr/ports/sysutils/hal > cpuset -c -l 2 make > > Will always result in errors, for example this one: > > gmake: *** No rule to make target `@MAINTAINER_MODE_TRUE@', needed by > `config.h.in'. Stop. > *** Error code 1 > > Sometimes the error occurs in a different place. When I check the input > files, they are indeed broken. Gcc stops because of syntax errors for > example. > > The configure process always completes, but apparently it creates broken > files. When I run make on any other core, it always completes > successfully: cpuset -c -l 0,1,3 make > > I've checked with script that the output of the build process is exactly > the same, up until the error occurs. I've also tried to run cpuburn on > that core, but it didn't find any problem. It's really weird that system > is otherwise very stable. > > What do you guys think the problem is? > > CPU is AMD Athlon II X4 620. Running FreeBSD 8-STABLE/amd64. I've also > tried -CURRENT, but it didn't help. > As a test I just ran these two commands on my Athlon II 630 here, but running FreeBSD 8.0-RELEASE-p2 amd64 build. The make process ran directly to completion with no error. With overclocking too. Tried 4 runs, on each core. I'm not sure I recall all the details correctly without checking, but I thought there were some early samples or generations of these processors that were not the same as the final production releases. Something to do with being Phenom cores that had L3 cache disabled, being released as early engineering samples but the die of the final products is different with no L3 cache present from manufacturing. I'd check into the stepping and if it turns out not to be a final version get whoever you bought it from to replace it. It may not be the core itself, but bad L1/L2 cache. It's either that or the only other difference is you're running stable, and I'm not. But I'd suspect bad cache spots in L1/L2. -Mike