diff options
author | Alexandru Ardelean <ardeleanalex@gmail.com> | 2017-05-12 11:50:55 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-06-07 18:31:10 +0200 |
commit | 079d57b0f290a79c9dbc013b6e9c83cebf8a2f99 (patch) | |
tree | 1803520a7f9a5782e0e09d38fa817708916b8798 /include/version.mk | |
parent | ab485383fa4d60d6342cd5a4eb6b5429afba6b97 (diff) | |
download | upstream-079d57b0f290a79c9dbc013b6e9c83cebf8a2f99.tar.gz upstream-079d57b0f290a79c9dbc013b6e9c83cebf8a2f99.tar.bz2 upstream-079d57b0f290a79c9dbc013b6e9c83cebf8a2f99.zip |
gdb: disable simulator ; it's broken on ppc
Error is:
```
ompile-loc2c.o compile-c-support.o inflow.o init.o \
../sim/ppc/libsim.a -lreadline ../opcodes/libopcodes.a ../bfd/libbfd.a -L./../zlib -lz ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -lncurses -lm ../libiberty/libiberty.a build-gnulib/import/libgnu.a -ldl -Wl,--dynamic-list=./proc-service.list
../sim/ppc/libsim.a(idecode.o): In function `update_time_from_event':
idecode.c:(.text+0x170): undefined reference to `error'
../sim/ppc/libsim.a(idecode.o): In function `event_queue_tick':
idecode.c:(.text+0x1cc): undefined reference to `error'
idecode.c:(.text+0x28c): undefined reference to `error'
idecode.c:(.text+0x318): undefined reference to `error'
../sim/ppc/libsim.a(idecode.o): In function `cpu_halt.constprop.6':
idecode.c:(.text+0x398): undefined reference to `error'
../sim/ppc/libsim.a(idecode.o):idecode.c:(.text+0x4e4): more undefined references to `error' follow
collect2: error: ld returned 1 exit status
Makefile:1420: recipe for target 'gdb' failed
make[5]: *** [gdb] Error 1
```
Seems others are running into this as well.
The problem seems to be that some code may be built
as C++ and not C, which may explain the linker error.
On this thread reply:
https://sourceware.org/ml/gdb/2016-11/msg00045.html
it mentions that the simulator should not call GDB's
"error" function directly, but rather use the "host_callback"
struct.
I have no idea about the use of the GDB simulator within
the OpenWrt/LEDE community.
So, I took the easier route, which is to disable the simulator.
(Also suggested here: https://sourceware.org/ml/gdb/2016-11/msg00047.html )
If needed, I can make an effort to fix the simulator for PPC.
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Diffstat (limited to 'include/version.mk')
0 files changed, 0 insertions, 0 deletions