Subject: Re: building -current for macppc (still) fails in ofwboot (related
To: None <Timo.Schoeler@riscworks.net>
From: Havard Eidnes <he@NetBSD.org>
List: current-users
Date: 10/18/2005 18:53:37
> removing the 'static' declaration from startup and setup in
> Locore.c fixes the problem. special thanks to Tim Kelly for his
> help and advice! :)

The strange thing is that this does not cause a build problem in
my case:

: {6} rm /u/build/HEAD/obj/macppc/sys/arch/macppc/stand/ofwboot/Locore.=
o
: {7} /u/build/HEAD/tools/macppc/bin/nbmake-macppc dependall
     create  ofwboot/vers.d
     create  ofwboot/.depend
depending the kern library objects
depending the z library objects
depending the sa library objects
making sure the sa library is up to date...
`libsa.a' is up to date.
making sure the z library is up to date...
`libz.a' is up to date.
making sure the kern library is up to date...
`libkern.a' is up to date.
    compile  ofwboot/Locore.o
    compile  ofwboot/vers.o
       link  ofwboot/ofwboot
       link  ofwboot/ofwboot.xcf
       link  ofwboot/ofwboot.elf
: {8} /u/build/HEAD/tools/macppc/bin/powerpc--netbsd-gcc --version
powerpc--netbsd-gcc (GCC) 3.3.3 (NetBSD nb3 20040520)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is=
 NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURP=
OSE.

: {9} /u/build/HEAD/tools/macppc/bin/powerpc--netbsd-ld --version
GNU ld version 2.15
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms =
of
the GNU General Public License.  This program has absolutely no warrant=
y.
: {10} =

: {10} fgrep -1 startup Locore.c

static void startup(void *, int, int (*)(void *), char *, int);
static void setup(void);
--
"                               \n"
"6:     b       startup         \n"
);
--
static void
startup(void *vpd, int res, int (*openfirm)(void *), char *arg, int arg=
l)
{
: {11} =


> could anybody please investigate on why it runs with the declaration =

> removed, but fails with static set for startup and setup?

What versions of gcc and ld do you use when building?  Cross-
reference with what I use, see above.

Regards,

- H=E5vard