Re: GMP 6.1.2: 32-bit ARM build failure on 64-bit hardware with CFLAGS=-g

2018-01-24 Thread Hans Åberg
> On 24 Jan 2018, at 18:09, Torbjörn Granlund wrote: > > If you override flags for choosing the architecture level and/or ABI, > you cannot expect things to work. > > If so, is there another easy with debug info, without knowing in > advance what compiler flags configure

Re: GMP 6.1.2: 32-bit ARM build failure on 64-bit hardware with CFLAGS=-g

2018-01-24 Thread Niels Möller
t...@gmplib.org (Torbjörn Granlund) writes: > If so, is there another easy with debug info, without knowing in > advance what compiler flags configure would have autodetected? > > Cut and paste? That's what I usually do. Setting CFLAGS really means "I know this better than configure", and

Re: GMP 6.1.2: 32-bit ARM build failure on 64-bit hardware with CFLAGS=-g

2018-01-24 Thread Jay Foad
On 24 January 2018 at 16:55, Marc Glisse wrote: > On Wed, 24 Jan 2018, Jay Foad wrote: > > I'm trying to build GMP 6.1.2 on a Raspberry Pi 3 Model B (64-bit ARM CPU) >> running a 32-bit Debian 8 OS. I get: >> >> $ ./configure CFLAGS=-g ABI=32 && make >> > > [...] > > If I

Re: GMP 6.1.2: 32-bit ARM build failure on 64-bit hardware with CFLAGS=-g

2018-01-24 Thread Torbjörn Granlund
> What CFLAGS does GMP use if you don't override its detection? $ grep ^CFLAGS Makefile CFLAGS = -O2 -pedantic -fomit-frame-pointer -march=armv8-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a53 Is it up to me to include all that in the CFLAGS that I specify? If you override

Re: GMP 6.1.2: 32-bit ARM build failure on 64-bit hardware with CFLAGS=-g

2018-01-24 Thread Marc Glisse
On Wed, 24 Jan 2018, Jay Foad wrote: I'm trying to build GMP 6.1.2 on a Raspberry Pi 3 Model B (64-bit ARM CPU) running a 32-bit Debian 8 OS. I get: $ ./configure CFLAGS=-g ABI=32 && make [...] If I remove the "CFLAGS=-g" the error goes away. What CFLAGS does GMP use if you don't

GMP 6.1.2: 32-bit ARM build failure on 64-bit hardware with CFLAGS=-g

2018-01-24 Thread Jay Foad
Hi, I'm trying to build GMP 6.1.2 on a Raspberry Pi 3 Model B (64-bit ARM CPU) running a 32-bit Debian 8 OS. I get: $ ./configure CFLAGS=-g ABI=32 && make [...] make: Entering directory '/home/pi/jay/gmp-6.1.2/mpn' /bin/bash ../libtool --mode=compile --tag=CC ../mpn/m4-ccas --m4="m4" gcc