Project

General

Profile

Bug #8143

developer/gdb build on SPARC stops with a fatal error

Added by Gary Mills over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
OI-Userland
Target version:
-
Start date:
2017-05-01
Due date:
% Done:

90%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

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.

Also available in: Atom PDF