Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Sep 1999 17:42:52 +0800 (WST)
From:      Michael Kennett <mike@laurasia.com.au>
To:        imp@village.org (Warner Losh)
Cc:        alpha@freebsd.org
Subject:   Re: Changes to binutils (--target=alpha-freebsd)
Message-ID:  <199909040942.RAA26591@laurasia.com.au>
In-Reply-To: <199909040335.VAA88127@harmony.village.org> from Warner Losh at "Sep 3, 1999 09:35:38 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199909040942.RAA26591>