From nobody@FreeBSD.org Mon Mar 7 23:34:09 2005 Return-Path: Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E09FD16A4CE for ; Mon, 7 Mar 2005 23:34:09 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id B29B143D1D for ; Mon, 7 Mar 2005 23:34:09 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j27NY9Vc049391 for ; Mon, 7 Mar 2005 23:34:09 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j27NY9Yt049390; Mon, 7 Mar 2005 23:34:09 GMT (envelope-from nobody) Message-Id: <200503072334.j27NY9Yt049390@www.freebsd.org> Date: Mon, 7 Mar 2005 23:34:09 GMT From: Dan Albers To: freebsd-gnats-submit@FreeBSD.org Subject: seg fault compiling after install on AMD K6-2 X-Send-Pr-Version: www-2.3 >Number: 78569 >Category: i386 >Synopsis: seg fault compiling after install on AMD K6-2 >Confidential: no >Severity: non-critical >Priority: low >Responsible: linimon >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Mar 07 23:40:01 GMT 2005 >Closed-Date: Wed Mar 01 21:00:53 GMT 2006 >Last-Modified: Wed Mar 01 21:00:53 GMT 2006 >Originator: Dan Albers >Release: 4.11, 5.3 >Organization: KPFA FM 94.1 >Environment: >Description: Download CD images; install (everything) from CD; #/usr/src make buildworld fails with compiler segfault (This happens on the AMD K62-500 machine. no compiler options in default /etc/make.conf. Remove harddrive; install in Celeron system; buildworld and kernel OK. >How-To-Repeat: Fresh install; build using AMD K6-2 processor >Fix: move the harddrive to an Intel system and do the builds. >Release-Note: >Audit-Trail: From: Kris Kennaway To: Dan Albers Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: misc/78569: seg fault compiling after install on AMD K6-2 Date: Tue, 8 Mar 2005 16:52:29 +0000 These CPUs are notoriously susceptible to overheating, with the symptoms you describe. Try adding a better cooling system. Kris From: Dan Albers To: Kris Kennaway Cc: freebsd-gnats-submit@freebsd.org Subject: Re: misc/78569: seg fault compiling after install on AMD K6-2 Date: Tue, 8 Mar 2005 19:38:59 -0800 On Tuesday 08 March 2005 19:17, you wrote: > On Tue, Mar 08, 2005 at 03:54:18PM -0800, Dan Albers wrote: > > > If it was idling all night, the CPU wasn't generating much heat. The > > > proposed issue here is that the cooling system can't handle the *peak* > > > loads, i.e. when the CPU is working very hard -- like during a > > > buildworld. I've seen *exactly* this problem occur on multiple amd64 > > > k6-2 and k6-3 machines, and I'm sure you can find many other case > > > stories in the mailing list archives. > > > > Huh? This is not an amd64 bit processor. It is a uniprocessor AMD K6-2 > > 550. > > Typo; omit the '64'. > > > Actually I have not checked the lists, only Google, and > > I found one in which someone made sure (as mentioned in UPDATING) to not > > try to build with optimization > 2. No mention of AMD however. > > > > Which mailing list should I check? > > questions, stable, etc. > > > > > BTW, I put the HD back in the Intel Celeron system, did a CVSUP, > > > > built world and GENERIC kernel OK. Put the drive back into the AMD > > > > system, and just to see what would happen did 'make buildworld'. This > > > > time it looks like it failed trying to build library libiberty.a with > > > > the message cc: internal error: illegal instruction (program ld) > > > > > > Probably compiled with an incompatible CPUTYPE. > > > > Do you mean that when I built the compiler on the Celeron system, that I > > cannot use the compiler on an AMD system? (they are both i386). > > > > Where can I find out which CPUTYPE the compiler is expecting/using? > > In /etc/make.conf and associated manpage. > > > > > I have had problems building since about 5.2.1 (I think 5.1 compiled > > > > ok) on other AMD machines as well. > > > > > > On working hardware, a buildworld of known-good source (e.g. the same > > > release you're running) will not fail. > > > > Uh, oh. This is working hardware. And I'm assuming that the source which > > came with the CD image is good (compiles ok on the Celeron). A few months > > ago i was able to build a 4.10 system on an AMD system and build OK. No > > heat probs, no compiler probs. > > > > Anyway, this is important to me because we have a lot of AMDs which are > > not ready for the bonepile yet, and I would like to be able to install > > FreeBSD on them and use them for KDE workstations, and be able to build > > on each one. > > > > I am willing to systematically try to find out why this is happening. I > > have coded C for about 15years of my life, so if need be I can poke > > around in the source. I'd rather not if I can modify some config file. If > > you do not have the time or interest, please refer me to someone else. > > Oh, I hadn't noticed you'd dropped the GNATS address from the CC line. > You should attach a copy of our correspondence as a followup to your > PR so that others can try and help you as well. > > Kris Thanks. I'll forward this to GNATS. BTW /etc/make.conf is vanilla: does not mention cputype or optimization flags. I've mounted the HD in the Celeron system for deployment, but that is the last one I have. Sure would like to get this working with the AMD K6-2 xxx's. Dan. Responsible-Changed-From-To: freebsd-bugs->freebsd-i386 Responsible-Changed-By: linimon Responsible-Changed-When: Sun Apr 3 07:13:16 GMT 2005 Responsible-Changed-Why: Move this out of 'misc' to somewhere more specific. http://www.freebsd.org/cgi/query-pr.cgi?pr=78569 State-Changed-From-To: open->feedback State-Changed-By: linimon State-Changed-When: Tue Feb 21 23:27:32 UTC 2006 State-Changed-Why: Was there ever any outcome from this? Responsible-Changed-From-To: freebsd-i386->linimon Responsible-Changed-By: linimon Responsible-Changed-When: Tue Feb 21 23:27:32 UTC 2006 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=78569 State-Changed-From-To: feedback->closed State-Changed-By: linimon State-Changed-When: Wed Mar 1 21:00:07 UTC 2006 State-Changed-Why: Submitter is no longer able to confirm this problem. http://www.freebsd.org/cgi/query-pr.cgi?pr=78569 >Unformatted: