tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: gdb crossbuild for evbppc



On Tue, Oct 09, 2012 at 08:03:17AM -0400, Martin L Resnick wrote:
> Hi,
>   I'm trying to get gdb to crossbuild for evbppc.
> I've set MKCROSSGDB (build.sh -V MKCROSSGDB=yes ...) but get the 
> following errors:
> 
> src/tools/gdb/../../external/gpl3/gdb/dist/sim/ppc/emul_netbsd.c: In 
> function 'do_gettimeofday':
> src/tools/gdb/../../external/gpl3/gdb/dist/sim/ppc/emul_netbsd.c:741: 
> error: 'SYS___gettimeofday50' undeclared (first use in this function)
> src/tools/gdb/../../external/gpl3/gdb/dist/sim/ppc/emul_netbsd.c:741: 
> error: (Each undeclared identifier is reported only once
> src/tools/gdb/../../external/gpl3/gdb/dist/sim/ppc/emul_netbsd.c:741: 
> error: for each function it appears in.)
> src/tools/gdb/../../external/gpl3/gdb/dist/sim/ppc/emul_netbsd.c: In 
> function 'do_getrusage':
> src/tools/gdb/../../external/gpl3/gdb/dist/sim/ppc/emul_netbsd.c:771: 
> error: 'SYS___getrusage50' undeclared (first use in this function)

If that file contains a lot of similar system call hook/stub functions
that all compile ok, then it is likely that you are compiling
against a set of headers that aren't quite right.

IIRC SYS___getrusage50 and SYS___gettimeofday50 were added relatively
recently - so the system might be picking up the wrong headers.
(ie from the installed system rather than the source tree.)

The .d file from a 'make depend' might show which files are being used.
Or fins some likely 'incorrect' candidates and add a #error to them!

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index