From owner-freebsd-hackers@FreeBSD.ORG Mon May 18 08:48:37 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D8EC106566B for ; Mon, 18 May 2009 08:48:37 +0000 (UTC) (envelope-from xorquewasp@googlemail.com) Received: from mail-ew0-f159.google.com (mail-ew0-f159.google.com [209.85.219.159]) by mx1.freebsd.org (Postfix) with ESMTP id AA0A88FC08 for ; Mon, 18 May 2009 08:48:34 +0000 (UTC) (envelope-from xorquewasp@googlemail.com) Received: by ewy3 with SMTP id 3so3734564ewy.43 for ; Mon, 18 May 2009 01:48:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:cc :subject:message-id:references:mime-version:content-type :content-disposition:in-reply-to; bh=lLjLSBdjVK0EKoFdvMc0tx5owr0jgWcpL+zQ0l6E+pI=; b=sh/Pkjl0412QwsjaD4t6DXNBTiYVes1m1hFrZXCfPcKGEdF1KLx/BnMRrmg0+4hx+T 7CC1PxIZQd3Yh4CYDnp2yrSFFZZJn7bGLQ4nG93gCqZ31dYP03nO9NziFv6oaQMcnfyK rWnZWxETN35EeVfdhNTJkFVX3mpWL+0CoyEDs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; b=Y/W5sjPCvL0MH22lH5GR+OXDYOqIXTEgdFC/69DNg0mKvfXLtA2kZHdEUOdPz+8DGi W+E8nBABAwZMLpQ/B9cskm0YgiWJEb460gr3rUpc/edFtmNYJo3dIBxetPaxgBgVVrum zOYfi3eyM/JLVWalB3Lsobf1TyY1iZbBVBxAk= Received: by 10.210.53.1 with SMTP id b1mr291336eba.31.1242636514074; Mon, 18 May 2009 01:48:34 -0700 (PDT) Received: from logik.internal.network (81-86-41-187.dsl.pipex.com [81.86.41.187]) by mx.google.com with ESMTPS id 8sm5754905ewy.13.2009.05.18.01.48.32 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 18 May 2009 01:48:33 -0700 (PDT) Received: by logik.internal.network (Postfix, from userid 11001) id 804EA5D59; Mon, 18 May 2009 08:48:31 +0000 (UTC) Date: Mon, 18 May 2009 09:48:31 +0100 From: xorquewasp@googlemail.com To: Daniel Eischen Message-ID: <20090518084831.GA95354@logik.internal.network> References: <20090504185644.GA16315@logik.internal.network> <20090505005128.GA4519@logik.internal.network> <20090505022151.GA32477@logik.internal.network> <20090506140325.GA69468@logik.internal.network> <20090506152222.GC69468@logik.internal.network> <20090508211022.GA37475@logik.internal.network> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090508211022.GA37475@logik.internal.network> Cc: freebsd-hackers@freebsd.org Subject: Re: bootstrapping gnat GCC on amd64 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 May 2009 08:48:37 -0000 Hi. After a week off, another update: I've realised, too late, that I'm using a version of binutils (2.19) that's incompatible with the system binutils (2.15). Specifically, assembler code emitted by the native GNAT contains .cfi_personality directives (and no doubt other things too) that can't be processed by the system 'as'. I've got two choices now and would appreciate some advice on which to take given that I want to produce a FreeBSD port: 1. Compile binutils-2.15. Unfortunately, compiling these as cross-binutils appear to be problematic: gmake[3]: Entering directory `/root/memfs/c1-bu-obj/gas' gcc -DHAVE_CONFIG_H -I. -I/root/binutils-2.15/gas -I. -D_GNU_SOURCE -I. -I/root/binutils-2.15/gas -I../bfd -I/root/binutils-2.15/gas/config -I/root/binutils-2.15/gas/../include -I/root/binutils-2.15/gas/.. -I/root/binutils-2.15/gas/../bfd -I/root/binutils-2.15/gas/../intl -I../intl -DLOCALEDIR="\"/cross/x86_64/share/locale\"" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c /root/binutils-2.15/gas/app.c In file included from /root/binutils-2.15/gas/as.h:94, from /root/binutils-2.15/gas/app.c:30: /root/binutils-2.15/gas/../include/getopt.h:116: warning: function declaration isn't a prototype In file included from ./targ-cpu.h:1, from /root/binutils-2.15/gas/config/obj-elf.h:42, from ./obj-format.h:1, from /root/binutils-2.15/gas/config/te-freebsd.h:30, from ./targ-env.h:1, from /root/binutils-2.15/gas/as.h:626, from /root/binutils-2.15/gas/app.c:30: /root/binutils-2.15/gas/config/tc-i386.h:451: error: array type has incomplete element type gmake[3]: *** [app.o] Error 1 gmake[3]: Leaving directory `/root/memfs/c1-bu-obj/gas' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/root/memfs/c1-bu-obj/gas' gmake[1]: *** [all] Error 2 gmake[1]: Leaving directory `/root/memfs/c1-bu-obj/gas' gmake: *** [all-gas] Error 2 2. Continue to use binutils-2.19. This would appear to require me to create a binutils-2.19 port just for the GNAT compiler. Seems like it would be preferable to use the system binutils rather than to take this route... xw