Subject: toolchain/20627: macppc's fixcoff fails to build after binutils recent update
To: None <>
From: None <>
List: netbsd-bugs
Date: 03/09/2003 00:54:45
>Number:         20627
>Category:       toolchain
>Synopsis:       macppc's fixcoff fails to build after binutils recent update
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 08 15:55:00 PST 2003
>Originator:     Havard Eidnes
>Release:        NetBSD 1.5.3_RC2
	Unorganized, Inc.
Host System: NetBSD 1.6N NetBSD 1.6N (STEGG.MP) #5: Fri Feb  7 07:41:54 CET 2003 i386
System: cross-compiling
Architecture: macppc
Machine: powerpc
	Trying to cross-build a macppc release, it errors out while
	trying to build fixcoff, like so:

dependall ===> sys/arch/macppc/stand/fixcoff
/usr/tools/bin/nbhost-mkdep -a /usr/users/he/src/sys/arch/macppc/stand/fixcoff/fixcoff.c /usr/users/he/src/sys/arch/macppc/stand/fixcoff/nb_progname.c
cc -O  -c -o fixcoff.lo.o /usr/users/he/src/sys/arch/macppc/stand/fixcoff/fixcoff.c
In file included from /usr/users/he/src/sys/arch/macppc/stand/fixcoff/fixcoff.c:49:
/usr/users/he/src/sys/arch/macppc/stand/fixcoff/../../../../../gnu/dist/toolchain/include/coff/rs6000.h:226: parse error before `bfd_byte'
/usr/users/he/src/sys/arch/macppc/stand/fixcoff/../../../../../gnu/dist/toolchain/include/coff/rs6000.h:226: warning: no semicolon at end of struct or union
/usr/users/he/src/sys/arch/macppc/stand/fixcoff/../../../../../gnu/dist/toolchain/include/coff/rs6000.h:227: warning: data definition has no type or storage class

	Apparently, there's no straight-forward way anymore (as
	fixcoff.c does) to include

#include "../../../../../gnu/dist/toolchain/include/coff/rs6000.h"

	without also including bfd.h, which is a generated header, and
	I can't see how to cleanly include that either.  Apparently,

#include "../../../../../gnu/dist/toolchain/include/coff/xcoff.h" 

	is needed, but that also requires more definitions.

	Try to build a release for macppc, watch it fail.

	Don't know; is fixcoff still required?