From owner-freebsd-alpha Sat Sep 4 2:43:20 1999 Delivered-To: freebsd-alpha@freebsd.org Received: from laurasia.com.au (lauras.lnk.telstra.net [139.130.93.142]) by hub.freebsd.org (Postfix) with ESMTP id 71FB215102 for ; Sat, 4 Sep 1999 02:43:15 -0700 (PDT) (envelope-from mike@laurasia.com.au) Received: (from mike@localhost) by laurasia.com.au (8.9.3/8.9.3) id RAA26591; Sat, 4 Sep 1999 17:42:53 +0800 (WST) (envelope-from mike) From: Michael Kennett Message-Id: <199909040942.RAA26591@laurasia.com.au> Subject: Re: Changes to binutils (--target=alpha-freebsd) In-Reply-To: <199909040335.VAA88127@harmony.village.org> from Warner Losh at "Sep 3, 1999 09:35:38 pm" To: imp@village.org (Warner Losh) Date: Sat, 4 Sep 1999 17:42:52 +0800 (WST) Cc: alpha@freebsd.org X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Warner wrote: > In message <199909040314.LAA82560@laurasia.com.au> Michael Kennett writes: > : It is more than gdb. There is also a problem in building egcs (with > : mkstemps). > : Looks like a simple fix (add mkstemp.o to a makefile somewhere...). I'll > : certainly be looking at it later today. > > mkstemp or mkstemps? It is the file mkstemp.o. I've added it to the Makefile /usr/src/gnu/usr.bin/ cc/cc_drv/Makefile (in the line SRCS). > > Let's work together.... I'm looking at the gdb right now. > > Things like this make me nervious. I don't think that libbfd will > work.... > > /home/imp/FreeBSD/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf64-alpha.c:1704: warning: right shift count >= width of type [Lots more cut out] Hidden in the bowels of the FreeBSD source tree (/usr/src/gnu/usr.bin/binutils/ libbfd/alpha) is the file 'bfd.h', which configures the characteristics of the host architecture. In this file is the line #define BFD_HOST_64BIT_LONG 1 i.e. It is saying that a (native) alpha compiler has 64-bit registers. By changing this line to #define BFD_HOST_64BIT_LONG 0 the cross-compilation from the x86 architecture passes binutils without any warnings. Note that I've cut gdb out of the build (no need to track down bugs :-). There could still be problems in the compile there. The build now progresses to cc_tools, where there a few more warnings of a similar nature. Now to track those down.... :-) Regards, Mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message