GMP 6.1.2: 32-bit ARM build failure on 64-bit hardware with CFLAGS=-g
Jay Foad
jay.foad at gmail.com
Wed Jan 24 16:27:26 UTC 2018
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
-std=gnu99 -c -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I..
-DOPERATION_`echo lshift | sed 's/_$//'` -g -Wa,--noexecstack `test -f
'lshift.asm' || echo './'`lshift.asm
libtool: compile: ../mpn/m4-ccas --m4=m4 gcc -std=gnu99 -c -DHAVE_CONFIG_H
-I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_lshift -g -Wa,--noexecstack
lshift.asm -fPIC -DPIC -o .libs/lshift.o
m4 -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_lshift -DPIC lshift.asm
>tmp-lshift.s
gcc -std=gnu99 -c -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I..
-DOPERATION_lshift -g -Wa,--noexecstack tmp-lshift.s -fPIC -DPIC -o
.libs/lshift.o
tmp-lshift.s: Assembler messages:
tmp-lshift.s:106: Error: selected processor does not support ARM mode
`vdup.32 d6,r3'
tmp-lshift.s:108: Error: selected processor does not support ARM mode
`vdup.32 d7,r3'
tmp-lshift.s:113: Error: selected processor does not support ARM mode
`vld1.32 {d19},[r1],r12'
[...]
tmp-lshift.s:203: Error: selected processor does not support ARM mode `vorr
d2,d4,d1'
tmp-lshift.s:204: Error: selected processor does not support ARM mode
`vst1.32 {d2},[r0:64],r12'
tmp-lshift.s:205: Error: selected processor does not support ARM mode
`vst1.32 {d16},[r0]'
Makefile:768: recipe for target 'lshift.lo' failed
make: *** [lshift.lo] Error 1
make: Leaving directory '/home/pi/jay/gmp-6.1.2/mpn'
If I remove the "CFLAGS=-g" the error goes away. I also didn't get the
error when I tried a similar build on 32-bit hardware (a Raspberry Pi Model
B Rev 2).
More info:
$ gcc --version
gcc (Raspbian 4.9.2-10) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ uname -a
Linux dyapi04 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l
GNU/Linux
$ ./config.guess
armcortexa53neon-unknown-linux-gnueabihf
$ sh ./configfsf.guess
armv7l-unknown-linux-gnueabihf
I've attached the full output of a failing configure/make in "bad.log", and
some other files that might be relevant.
Thanks,
Jay.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pi.tar.gz
Type: application/x-gzip
Size: 31221 bytes
Desc: not available
URL: <https://gmplib.org/list-archives/gmp-bugs/attachments/20180124/ccf096fb/attachment-0001.bin>
More information about the gmp-bugs
mailing list