Bug#997807: hyperic-sigar: FTBFS on riscv64: gcc: error: unrecognized command-line option ‘-m64’

Andrius Merkys merkys at debian.org
Mon Oct 25 06:55:36 BST 2021


Control: owner -1 !

Hi Aurelien,

Thanks for your valuable insight into this issue.

On 2021-10-25 00:31, Aurelien Jarno wrote:
> The issue is that -m64 is not understood by GCC on riscv64. This is also
> the case on a few other architectures, and I have noticed that you
> already have a patch for that. I have tried to extend it (see attached
> patch), and hyperic-sigar builds fine on riscv64. Could you please
> consider applying it in the future uploads?
> 
> Note however that instead of maintaining a long list of architectures
> where -m64 is not needed might not be the best way, as this flag is
> basically understood only on x86, p(ower)pc*, sparc* and s390*. In
> addition this flag is basically not needed for a standard Debian
> installation, where gcc already defaults to the correct bitness. You
> might therefore want to simply drop those few lines.

Your patch should definitely fix this. Nevertheless I am tempted to try
out your suggestion to remove -m64 altogether (in experimental).

Best,
Andrius



More information about the pkg-java-maintainers mailing list