Subject: Re: building -current for macppc (still) fails in ofwboot (related
To: Havard Eidnes <he@NetBSD.org>
From: Timo Schoeler <timo.schoeler@riscworks.net>
List: current-users
Date: 10/18/2005 19:03:49
>>removing the 'static' declaration from startup and setup in
>>Locore.c fixes the problem.
> 
> 
> The strange thing is that this does not cause a build problem in
> my case:

just out of curiosity -- could you post the dmesg of the machine?

> 
> : {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 PURPOSE.
> 
> : {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 warranty.
> : {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 argl)
> {
> : {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.

they're exactly the same.

> 
> Regards,
> 
> - Håvard

thanks & kind regards,

timo