[Buildroot] [PATCH v3 3/3] board: add blackfin gdb simulator support

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Mon Jul 4 09:06:56 UTC 2016


Hello,

On Fri, 3 Jun 2016 06:07:50 +0200, Waldemar Brodkorb wrote:
> With this config you can bootup a Linux kernel
> in GDB simulator and test Blackfin kernel and
> userland.
> 
> Signed-off-by: Waldemar Brodkorb <wbx at openadk.org>

The simulator support doesn't build here. Weird because I'm pretty sure
it used to build when you submitted it, but now it fails with:

In file included from ./sim-main.h:35,
                 from ./../common/sim-command.c:21:
../common/sim-base.h:76: error: redefinition of typedef 'SIM_CPU'
./sim-main.h:29: note: previous declaration of 'SIM_CPU' was here
make[5]: *** [sim-command.o] Error 1
make[5]: *** Waiting for unfinished jobs....
In file included from ./sim-main.h:35,
                 from ./../common/sim-close.c:21:
../common/sim-base.h:76: error: redefinition of typedef 'SIM_CPU'
./sim-main.h:29: note: previous declaration of 'SIM_CPU' was here
In file included from ./sim-main.h:35,
                 from ./../common/sim-config.c:23:
../common/sim-base.h:76: error: redefinition of typedef 'SIM_CPU'
./sim-main.h:29: note: previous declaration of 'SIM_CPU' was here
make[5]: *** [sim-close.o] Error 1
make[5]: *** [sim-config.o] Error 1
In file included from ./sim-main.h:35,
                 from ./../common/sim-core.c:26:
../common/sim-base.h:76: error: redefinition of typedef 'SIM_CPU'
./sim-main.h:29: note: previous declaration of 'SIM_CPU' was here
make[5]: *** [sim-core.o] Error 1
make[4]: *** [all] Error 1
make[3]: *** [all-sim] Error 2
make[2]: *** [all] Error 2
make[1]: *** [/home/test/outputs/bfin/build/host-gdb-7.11.1/.stamp_built] Error 2
make: *** [_all] Error 2

I remember about the hack that we do in a pre-configure hook, and this
hack is still done. But it fails to build. I've tried both gdb 7.10
(default) and 7.11 (above) and they both fail in the same way.

Could you have a look?

Thanks a lot,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the buildroot mailing list