developer/gdb build on SPARC stops with a fatal error
A build of developer/gdb on SPARC hardware stops with the following error:
sol2-core-regset.c:38:24: fatal error: gdb_string.h: No such file or directory
The file gdb-7.10.1/gdb/sol2-core-regset.c contains this line:
38 #include "gdb_string.h"
This header file is not present in the distribution. Fortunately, it's not needed because all the string functions are defined in /usr/include/string.h anyway. Note that the source file sol2-core-regset.c is entirely contained in a patch. This file sol2-core-regset.c is only compiled on the SPARC platform.
My solution is to modify gdb.gdb.sol2-core-regset.c.patch so that it includes <string.h> instead of "gdb_string.h". With this change, the developer/gdb component builds on both the SPARC and x86 hardware platforms.
Updated by Alexander Pyhalov over 3 years ago
- Status changed from Feedback to Resolved