Subject: toolchain/20627: macppc's fixcoff fails to build after binutils recent update
To: None <gnats-bugs@gnats.netbsd.org>
From: None <he@netbsd.org>
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
>Closed-Date:
>Last-Modified:
>Originator: Havard Eidnes
>Release: NetBSD 1.5.3_RC2
>Organization:
Unorganized, Inc.
>Environment:
Host System: NetBSD stegg.urc.uninett.no 1.6N NetBSD 1.6N (STEGG.MP) #5: Fri Feb 7 07:41:54 CET 2003 he@stegg.urc.uninett.no:/usr/obj/sys/arch/i386/compile/STEGG.MP i386
System: cross-compiling
Architecture: macppc
Machine: powerpc
>Description:
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,
also
#include "../../../../../gnu/dist/toolchain/include/coff/xcoff.h"
is needed, but that also requires more definitions.
>How-To-Repeat:
Try to build a release for macppc, watch it fail.
>Fix:
Don't know; is fixcoff still required?
>Release-Note:
>Audit-Trail:
>Unformatted: