Re: Fwd: math/gmp FreeBSD 12.2 Ports build failure on sparc64

2021-11-07 Thread Torbjörn Granlund
I took the trouble of installing FreeBSD under qemu. I think I understand the problem: sparc64-fbsd$ gcc -v Using built-in specs. Target: sparc64-undermydesk-freebsd Configured with: FreeBSD/sparc64 system compiler Thread model: posix gcc version 4.2.1 20070831 patched [FreeBSD]

Re: Fwd: math/gmp FreeBSD 12.2 Ports build failure on sparc64

2021-11-05 Thread Marc Glisse
On Fri, 5 Nov 2021, Marc Glisse wrote: Do we test with clang on any of the sparc64-linux systems? Hmm, I see https://reviews.llvm.org/D102985 , https://reviews.llvm.org/D51613 , etc, not good signs, maybe we can forget this suggestion. -- Marc Glisse

Re: Fwd: math/gmp FreeBSD 12.2 Ports build failure on sparc64

2021-11-05 Thread Alex Dupre
Marco Bodrato wrote: >> Which lines cause these syntax errors? > > It seems they are the lines containing the various %gdop*(ctz_table). Yes, it seems so. >> What syntax for pic data references is accepted by the assembler on >> FreeBSD? > > Unfortunately, I don't know. Neither do I. I'm

Re: Fwd: math/gmp FreeBSD 12.2 Ports build failure on sparc64

2021-11-05 Thread Marco Bodrato
Il 2021-11-05 15:12 Torbjörn Granlund ha scritto: Alex Dupre 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 Above, we saw line numbers...

Re: Fwd: math/gmp FreeBSD 12.2 Ports build failure on sparc64

2021-11-05 Thread Torbjörn Granlund
Alex Dupre 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:

Fwd: math/gmp FreeBSD 12.2 Ports build failure on sparc64

2021-11-05 Thread Alex Dupre
Hello, I'm the maintainer of the FreeBSD port of GMP. I received a few reports about the same compilation issue with sparc64 machines, sometimes quite detailed like the one in the attached message. I haven't a sparc64 machine and neither the skill to fix an asm issue, so I'm forwarding the issue