tmp-lshift.s:106: Error: selected processor does not support ARM mode `vdup.32 d6,r3'
Jeffrey Walton
noloader at gmail.com
Sun Dec 30 16:45:24 UTC 2018
On Sun, Dec 30, 2018 at 11:12 AM Torbjörn Granlund <tg at gmplib.org> wrote:
>
> Jeffrey Walton <noloader at gmail.com> writes:
>
> I'm working on my BananaPi. It is a Cortex-A7 with ARMv7-a.
>
> Compile results in the following. According to Stallman I believe you
> are supposed to add the necessary options to compile the file
> independent of CFLAGS, and it should not need to be override-able by
> the user because it is required. Also see
> https://www.gnu.org/prep/standards/html_node/Command-Variables.html .
>
> gcc -std=gnu99 -c -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I..
> -DOPERATION_lshift -I/usr/local/include -DNDEBUG -g2 -O2 -march=native
> -fPIC -Wa,--noexecstack tmp-lshift.s -fPIC -DPIC -o .libs/lshift.o
> tmp-lshift.s: gcc -std=gnu99 -c -DHAVE_CONFIG_H -I. -I..
> -D__GMP_WITHIN_GMP -I.. -DOPERATION_rshift -I/usr/local/include
> -DNDEBUG -g2 -O2 -march=native -fPIC -Wa,--noexecstack tmp-rshift.s
> -fPIC -DPIC -o .libs/rshift.o
> 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:114: Error: selected processor does not support ARM mode
> `vshl.u64 d18,d19,d7'
> tmp-lshift.s:120: Error: selected processor does not support ARM mode
> `vshl.u64 d4,d19,d6'
> ...
>
> Are you implicitly saying that you're overriding CFLAGS (at "make" time)
> and then things fail and that it shouldn't fail?
>
> If I guess right, my recommendation is that you don't override CFLAGS in
> a build-breaking manner.
>
> If I guess wrong, please spell our what you do and what you think is
> wrong in GMP.
No, I don't override the CFLAGS. I set them like:
CFLAGS="-g2 -O3 -DNDEBUG -march=native" ./configure ...
What is wrong is obvious. The build is broken.
Jeff
More information about the gmp-bugs
mailing list