From owner-freebsd-amd64@FreeBSD.ORG Mon Mar 15 14:38:34 2004 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E60F116A4CE for ; Mon, 15 Mar 2004 14:38:34 -0800 (PST) Received: from dogfood.jrv.org (rrcs-sw-24-73-246-106.biz.rr.com [24.73.246.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E31743D41 for ; Mon, 15 Mar 2004 14:38:34 -0800 (PST) (envelope-from james@jrv.org) Received: from jrv.org ([192.168.3.33]) (authenticated bits=0) by dogfood.jrv.org (8.12.11/8.12.10) with ESMTP id i2FMcAql048491 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 15 Mar 2004 16:38:10 -0600 (CST) (envelope-from james@jrv.org) Message-ID: <40563051.3010209@jrv.org> Date: Mon, 15 Mar 2004 16:38:09 -0600 From: "James R. Van Artsalen" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Joerg Wunsch References: <20040315212058.C63058@uriah.heep.sax.de> In-Reply-To: <20040315212058.C63058@uriah.heep.sax.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-amd64@freebsd.org cc: kris@obsecurity.org Subject: Re: [kris@obsecurity.org: [ports-amd64@FreeBSD.org: avr-gcc-3.3.2 failed on amd64 5]] X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Mar 2004 22:38:35 -0000 Joerg Wunsch wrote: >Just curious: > >----- Forwarded message from Kris Kennaway ----- > >... > >*** Configuration amd64-portbld-freebsd5.2 not supported >Configure in /tmp/a/ports/devel/avr-gcc/work/gcc-3.3.2/gcc failed, exiting. >===> Script "configure" failed unexpectedly. > >----- End forwarded message ----- > >Since this is a stock GCC 3.3.2 where AMD64 is only used as the host >system (--target=avr), and I can't imagine AMD64 is not yet supported >by GCC, is there already any experience about what would be needed to >configure a GCC on this arch? > >Kris' guess was it might require to be called x86_64, but perhaps some >other maintainer already solved that problem, so I'm just trying to >not reinvent the wheel. > > GCC needs to know what the host is in order to know how to calculate constant folding, and how to do other optimizations (think about cross-compiling on a 32-bit platform for a 64-target, doing constant folding etc). The bug is in GCC's config.guess: this file doesn't recognize FreeBSD right. See this message for patch to config.guess: http://lists.freebsd.org/mailman/htdig/freebsd-amd64/2004-February/000722.html This may not be the only bug but it is a necessary start.