From owner-freebsd-sparc64@FreeBSD.ORG Tue Mar 15 18:39:38 2005 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B97416A4CE for ; Tue, 15 Mar 2005 18:39:38 +0000 (GMT) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id D32C143D48 for ; Tue, 15 Mar 2005 18:39:37 +0000 (GMT) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id C83CD72DDB; Tue, 15 Mar 2005 10:39:37 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id C63D872DD9; Tue, 15 Mar 2005 10:39:37 -0800 (PST) Date: Tue, 15 Mar 2005 10:39:37 -0800 (PST) From: Doug White To: "Pedro F. Giffuni" In-Reply-To: <20050314190931.46755.qmail@web51608.mail.yahoo.com> Message-ID: <20050315103657.N14078@carver.gumbysoft.com> References: <20050314190931.46755.qmail@web51608.mail.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-sparc64@FreeBSD.org Subject: Re: Fwd: [ports-sparc64@pointyhat.freebsd.org: brlcad-7.0.4 failed on sparc64 5] X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 18:39:38 -0000 On Mon, 14 Mar 2005, Pedro F. Giffuni wrote: > Hi guys; > > Any idea why BRLCAD doesn't build on sparc64? I'd be glad to pass fixes > upstream for future releases. It apperas to be a bug (or overzealous optimization): cc -DHAVE_CONFIG_H -I. -I. -I../../include -I/usr/local/include -I../../include -O -pipe -pipe -fno-strict-aliasing -fno-common -fPIC -O3 -ffast-math -fstrengt h-reduce -fexpensive-optimizations -fomit-frame-pointer -finline-functions -c sh _billboard.c -fPIC -DPIC -o .libs/sh_billboard.o sh_billboard.c:122: warning: initializer element is not computable at load time sh_billboard.c:122: error: initializer element is not computable at load time sh_billboard.c:122: error: (near initialization for `bbd_parse_tab[0].sp_count') sh_billboard.c:122: error: initializer element is not constant sh_billboard.c:122: error: (near initialization for `bbd_parse_tab[0]') sh_billboard.c:123: warning: initialization discards qualifiers from pointer target type sh_billboard.c:123: error: initializer element is not constant sh_billboard.c:123: error: (near initialization for `bbd_parse_tab[1]') This means that thre's a struct with dynamically sized types but the initialization at the indicated file and line needs to know the size at compile time. Its not an easy fix if you're not familiar with the code. I'd bug the BRLCAD developers for assistance. -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org