From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 64438 invoked by alias); 30 Jan 2019 15:50:11 -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 64428 invoked by uid 89); 30 Jan 2019 15:50:10 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,KAM_NUMSUBJECT,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2 spammy=ptrace_type_ret, apt, PTRACE_TYPE_RET, H*f:sk:3C1-4GD 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 15:50:09 +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 x0UFo3nh004924 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 30 Jan 2019 10:50:08 -0500 Received: by simark.ca (Postfix, from userid 112) id 3F7ED1E882; Wed, 30 Jan 2019 10:50:03 -0500 (EST) Received: from simark.ca (localhost [127.0.0.1]) by simark.ca (Postfix) with ESMTP id 8B1011E472; Wed, 30 Jan 2019 10:50:02 -0500 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Wed, 30 Jan 2019 15:50: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: <35b21a4d59530644ce75e76fb8be8bbd@polymtl.ca> Message-ID: X-Sender: simon.marchi@polymtl.ca User-Agent: Roundcube Webmail/1.3.6 X-IsSubscribed: yes X-SW-Source: 2019-01/txt/msg00042.txt.bz2 On 2019-01-30 10:12, Ömer Sinan Ağacan wrote: > Actually it's not undefined, I see this in the file > > /* Define as the return type of ptrace. */ > #define PTRACE_TYPE_RET long > > Do I need to include config.h in a file maybe? config.h should already be included wherever necessary. I am a bit at loss here. GDB should build fine using these standard steps in most situations: git clone git://sourceware.org/git/binutils-gdb.git cd binutils-gdb ./configure make I just tried these commands in an Ubuntu 18.04 Docker container, and it built fine. Note that to make sure to have all necessary dependencies required to build GDB, you can use "apt-get build-dep gdb" on Debian/Ubuntu (to be able to use "build-dep" in a docker container, you need to uncomment the "deb-src" lines in /etc/apt/sources.list and do an "apt-get update"). The versions of all the build tools in Ubuntu 18.04 are expected to work, so there should be no need to build bison or anything from source. Simon