This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Remove some unnecessary inferior_ptid setting/restoring when fetching/storing registers
- From: Pedro Alves <palves at redhat dot com>
- To: Simon Marchi <simon dot marchi at polymtl dot ca>, Simon Marchi <simon dot marchi at ericsson dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 23 Mar 2017 17:00:42 +0000
- Subject: Re: [PATCH] Remove some unnecessary inferior_ptid setting/restoring when fetching/storing registers
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=palves at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 489514DD7E
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 489514DD7E
- References: <20170322172919.26538-1-simon.marchi@ericsson.com> <cd371ca12ee2ed8bc5199eced0c17a91@polymtl.ca>
On 03/22/2017 05:51 PM, Simon Marchi wrote:
> I couldn't get the whole of GDB to build however:
>
> g++ -std=gnu++11 -g3 -O0 -I. -I. -I./common -I./config
> -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H
> -I./../include/opcode -I./../opcodes/.. -I./../readline/.. -I./../zlib
> -I../bfd -I./../bfd -I./../include -I../libdecnumber -I./../libdecnumber
> -I./gnulib/import -Ibuild-gnulib/import -DTUI=1
> -I/usr/include/python2.7 -I/usr/include/python2.7 -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-write-strings
> -Wno-narrowing -Wformat-nonliteral -Wno-deprecated-declarations -Werror
> -c -o i386-sol2-nat.o -MT i386-sol2-nat.o -MMD -MP -MF
> .deps/i386-sol2-nat.Tpo i386-sol2-nat.c
> In file included from /usr/include/sys/procfs.h:26:0,
> from i386-sol2-nat.c:23:
> /usr/include/sys/old_procfs.h:31:2: error: #error "Cannot use procfs in
> the large file compilation environment"
> #error "Cannot use procfs in the large file compilation environment"
> ^
> gmake: *** [i386-sol2-nat.o] Error 1
>
Yeah, the 32-bit build runs into that, unless you configure with
--disable-largefile. See:
https://sourceware.org/ml/gdb-patches/2016-10/msg00510.html
If you target 64-bit mode (may need CC="gcc -m64" CXX="g++ -m64",
and/or explicit --host, I don't recall exactly), then it should
build OOTB.
Thanks,
Pedro Alves