This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Remove some unnecessary inferior_ptid setting/restoring when fetching/storing registers


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]