From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 35455 invoked by alias); 30 Jan 2019 14:58:35 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 35200 invoked by uid 89); 30 Jan 2019 14:58:34 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=0.5 required=5.0 tests=BAYES_20,KAM_NUMSUBJECT,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2 spammy=irc, observing, Kernel, IRC X-HELO: smtp.polymtl.ca Received: from smtp.polymtl.ca (HELO smtp.polymtl.ca) (132.207.4.11) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 30 Jan 2019 14:58:33 +0000 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id x0UEwR8M027434 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 30 Jan 2019 09:58:31 -0500 Received: by simark.ca (Postfix, from userid 112) id 1420D1E87B; Wed, 30 Jan 2019 09:58:27 -0500 (EST) Received: from simark.ca (localhost [127.0.0.1]) by simark.ca (Postfix) with ESMTP id 509561E4A3; Wed, 30 Jan 2019 09:58:26 -0500 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Wed, 30 Jan 2019 14:58:00 -0000 From: Simon Marchi To: =?UTF-8?Q?=C3=96mer_Sinan_A=C4=9Facan?= Cc: gdb Subject: Re: Buildling gdb on Ubuntu 18.04 In-Reply-To: References: Message-ID: <35b21a4d59530644ce75e76fb8be8bbd@polymtl.ca> X-Sender: simon.marchi@polymtl.ca User-Agent: Roundcube Webmail/1.3.6 X-IsSubscribed: yes X-SW-Source: 2019-01/txt/msg00040.txt.bz2 On 2019-01-30 02:40, Ömer Sinan Ağacan wrote: > I'm trying to build gdb from git on Ubuntu 18.04 to see if some of the > bugs I'm > observing with machine interface of 8.1.0.20180409-git are fixed in the > development version. I got a few different errors before but with some > help from > people on the IRC channel I was able to make progress, and current > status is > this: https://gist.github.com/osa1/4548c5bc2d167541557e0a349944eb00 > > Does anyone have any ideas on how to move from there? Kernel version on > Ubuntu > 18.04: 4.15.0-44-generic > > Thanks > > Ömer About this error: nat/gdb_ptrace.h:129:8: error: ‘PTRACE_TYPE_RET’ does not name a type; did you mean ‘PTRACE_TYPE_ARG3’? The PTRACE_TYPE_RET type should be defined in the gdb/config.h file, in your build directory. For example, I have 650 /* Define as the return type of ptrace. */ │warning: File "/home/emaisin/build/binutils-gdb/gdb/gdb-gdb.py" auto-loading has be 651 #define PTRACE_TYPE_RET long Is there a mention of PTRACE_TYPE_RET in your config.h? I assume it is undefined? Simon