Fwd: math/gmp FreeBSD 12.2 Ports build failure on sparc64
Torbjörn Granlund
tg at gmplib.org
Fri Nov 5 14:12:45 UTC 2021
Alex Dupre <ale at FreeBSD.org> writes:
tmp-gcd_11.s: Assembler messages:
tmp-gcd_11.s:210: Error: Illegal operands
tmp-gcd_11.s:211: Error: Illegal operands
tmp-gcd_11.s:212: Error: Illegal operands
The m4-generated assembly codes above (w/ w/out PIC) differ in these lines:
root at freebsd12:/usr/ports/math/gmp/work/gmp-6.2.1/mpn # diff tmp-gcd_11.s.noPIC tmp-gcd_11.s
206,209c206,212
< sethi %h44(ctz_table), %o5
< or %o5, %m44(ctz_table), %o5
< sllx %o5, 12, %o5
< or %o5, %l44(ctz_table), %o5
---
> rd %pc, %o5
> sethi %hi(_GLOBAL_OFFSET_TABLE_+4), %g4
> add %g4, %lo(_GLOBAL_OFFSET_TABLE_+8), %g4
> add %o5, %g4, %g4
> sethi %gdop_hix22(ctz_table), %o5
> xor %o5, %gdop_lox10(ctz_table), %o5
> ldx [%g4 + %o5], %o5, %gdop(ctz_table)
I don't have any sparc64-freebsd system to run tests on.
Which lines cause these syntax errors?
What syntax for pic data references is accepted by the assembler on
FreeBSD?
--
Torbjörn
Please encrypt, key id 0xC8601622
More information about the gmp-bugs
mailing list