[OpenWrt-Devel] gdb compiling issues
Flunt Le Jeune
rutgerlejeune93 at gmail.com
Mon Feb 26 10:25:27 EST 2018
Hi all,
When I tried to compile a build of OpenWRT I encountered some issues
regarding the gdb package.
STEPS TO REPRODUCE:
1. git clone https://www.github.com/openwrt/openwrt
2. make menuconfig
- Target System (x86)
- Development ---> gdb Enable
- Development ---> gdbserver Enable
- Advanced configuration options (fordevelopers) ---> Toolchain
Options ---> Build gdb Enable
- Advanced configuration options (fordevelopers) ---> Toolchain
Options ---> GCC compiler version (gcc 5.x)
- Advanced configuration options (fordevelopers) ---> Toolchain
Options ---> C Library implementation (Use glibc) (Version 2.26)
3. make V=s
RESULT:
i486-openwrt-linux-gnu-g++ -std=gnu++11 -Os -pipe -march=pentium4
-fno-caller-saves -fno-plt -fhonour-copts
-Wno-error=unused-but-set-variable -Wno-error=unused-result
-iremap/usr/localdisk/Builds/openwrt/openwrt/build_dir/target-i386_pentium4_glibc/gdb-8.0.1:gdb-8.0.1
-Wformat -Werror=format-security -D_FORTIFY_SOURCE=1 -Wl,-z,now
-Wl,-z,relro -I. -I. -I./common -I./config
-DLOCALEDIR="\"/usr/share/locale\"" -DHAVE_CONFIG_H
-I./../include/opcode -I./../opcodes/.. -I./../zlib -I../bfd
-I./../bfd -I./../include -I../libdecnumber -I./../libdecnumber
-I./gnulib/import -Ibuild-gnulib/import -DTUI=1 -Wall
-Wpointer-arith -Wno-unused -Wunused-value -Wunused-function
-Wno-switch -Wno-char-subscripts -Wempty-body
-Wunused-but-set-parameter -Wunused-but-set-variable -Wno-sign-compare
-Wno-narrowing -Wformat-nonliteral -c -o gdb.o -MT gdb.o -MMD -MP -MF
.deps/gdb.Tpo gdb.c
In file included from defs.h:53:0,
from gdb.c:19:
ui-file.h:43:18: error: macro "putc" requires 2 arguments, but only 1 given
int putc (int c);
^
In file included from ./common/common-defs.h:78:0,
from defs.h:28,
from gdb.c:19:
./common/common-utils.h:101:12: error: 'std::to_string' has not been declared
using std::to_string;
^
Makefile:1890: recipe for target 'gdb.o' failed
make[5]: *** [gdb.o] Error 1
make[5]: Leaving directory
'/usr/localdisk/Builds/openwrt/openwrt/build_dir/target-i386_pentium4_glibc/gdb-8.0.1/gdb'
Makefile:8792: recipe for target 'all-gdb' failed
make[4]: *** [all-gdb] Error 2
make[4]: Leaving directory
'/usr/localdisk/Builds/openwrt/openwrt/build_dir/target-i386_pentium4_glibc/gdb-8.0.1'
Makefile:849: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory
'/usr/localdisk/Builds/openwrt/openwrt/build_dir/target-i386_pentium4_glibc/gdb-8.0.1'
Makefile:86: recipe for target
'/usr/localdisk/Builds/openwrt/openwrt/build_dir/target-i386_pentium4_glibc/gdb-8.0.1/.built'
failed
make[2]: *** [/usr/localdisk/Builds/openwrt/openwrt/build_dir/target-i386_pentium4_glibc/gdb-8.0.1/.built]
Error 2
make[2]: Leaving directory
'/usr/localdisk/Builds/openwrt/openwrt/package/devel/gdb'
package/Makefile:106: recipe for target 'package/devel/gdb/compile' failed
make[1]: *** [package/devel/gdb/compile] Error 2
make[1]: Leaving directory '/usr/localdisk/Builds/openwrt/openwrt'
/usr/localdisk/Builds/openwrt/openwrt/include/toplevel.mk:216: recipe
for target 'package/gdb/compile' failed
make: *** [package/gdb/compile] Error 2
Has someone encountered this issue before?
If yes, how did you fixed this?
Kind Regards,
Rutger
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list