From owner-freebsd-questions@FreeBSD.ORG Sat Feb 23 23:32:08 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 DE27D16A409 for ; Sat, 23 Feb 2008 23:32:08 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from snoogles.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id C19A213C442 for ; Sat, 23 Feb 2008 23:32:08 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (localhost [127.0.0.1]) by snoogles.rachie.is-a-geek.net (Postfix) with ESMTP id 76ACC1CC8B; Sat, 23 Feb 2008 14:32:07 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Sun, 24 Feb 2008 00:32:05 +0100 User-Agent: KMail/1.9.7 References: <000901c87636$c6ef9240$0200010a@atlantis> <200802232041.50283.fbsd.questions@rachie.is-a-geek.net> <005701c8766f$3d3af2e0$0200010a@atlantis> In-Reply-To: <005701c8766f$3d3af2e0$0200010a@atlantis> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200802240032.06108.fbsd.questions@rachie.is-a-geek.net> Cc: 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: Sat, 23 Feb 2008 23:32:09 -0000 On Saturday 23 February 2008 23:55:51 Jasvinder S. Bahra wrote: > > Could you set the following in /etc/make.conf: > > CFLAGS=-pipe -O0 # capital O, number zero > > Mel, > > You've cracked it. I set CFLAGS as above, and lang/ruby18 > installed successfully. > > What does this mean? The package did install, so the compiler > isn't broken. Maybe an optimisation bug as you mentioned? 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. -- Mel