From owner-freebsd-questions@FreeBSD.ORG Sun Feb 24 12:03:05 2008 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 6E13416A401 for ; Sun, 24 Feb 2008 12:03:05 +0000 (UTC) (envelope-from bbdl21548@blueyonder.co.uk) Received: from smtp-out3.blueyonder.co.uk (smtp-out3.blueyonder.co.uk [195.188.213.6]) by mx1.freebsd.org (Postfix) with ESMTP id 356E913C4D9 for ; Sun, 24 Feb 2008 12:03:05 +0000 (UTC) (envelope-from bbdl21548@blueyonder.co.uk) Received: from [172.23.170.136] (helo=anti-virus01-07) by smtp-out3.blueyonder.co.uk with smtp (Exim 4.52) id 1JTFZQ-0004dT-CE for freebsd-questions@freebsd.org; Sun, 24 Feb 2008 12:03:04 +0000 Received: from [82.45.71.254] (helo=atlantis) by asmtp-out4.blueyonder.co.uk with smtp (Exim 4.52) id 1JTFZP-00044d-Uw for freebsd-questions@freebsd.org; Sun, 24 Feb 2008 12:03:04 +0000 Message-ID: <001701c876dd$158be9c0$0200010a@atlantis> From: "Jasvinder S. Bahra" To: References: <000901c87636$c6ef9240$0200010a@atlantis> <200802232041.50283.fbsd.questions@rachie.is-a-geek.net> <005701c8766f$3d3af2e0$0200010a@atlantis> <200802240032.06108.fbsd.questions@rachie.is-a-geek.net> Date: Sun, 24 Feb 2008 12:02:10 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Subject: Re: Unable to compile anything from ports 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: Sun, 24 Feb 2008 12:03:05 -0000 > Yes. Not many use VIA cpu's, so I think it would help a lot if you'd do a > send-pr. Include a full dmesg so the CPU flags can be seen. The default on > FreeBSD is to compile with -O2 now, so either cc should disable the specific > optimization for which there is no matching CPU instruction internally, or > via CPUTYPE or similar constructs, the optimization flag for this should be > turned off. > > -O2 is a collection of optimizations that can be turned on/off > individually. -O = -O1 is a smaller set, -O0 turns it off entirely. I raised a send-pr over the issue, and it was promptly closed *wince*. Guess I should have done a more thorough search before I raised it. For future reference, as someone else may end up in this same situation, let me paraphrase... I used... CPUTYPE=c3 CFLAGS= -O2 -pipe COPTFLAGS= -O -pipe I should have just used... CPUTYPE=c3-2 That is, I should not have defined CPUTYPE and COPYFLAGS. The default is "-O2 -fno-strict-aliasing -pipe", and using -O2 without -fno-strict-aliasing is unsupported and will cause trouble. Apparenty, it's best to not override CFLAGS and COPTFLAGS at all.