pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

AVX3 instructions and our native assembler



I have run a few times already into a phenomenon where a package tests
the gcc version, or pre-#defines set by gcc, to determine if it can use
some particular group of machine instructions. Such as AVX, SSE, etc.

Since I compile all my packages with gcc 12, several of them think they
can use instructions like "vcmpph". Unfortunately our assembler can't
assemble them. And so building fails.

I have already patched several packages locally to not use these
instructions. My cpu can possibly run them, but that doesn't help me.
The latest is graphics/libhighway. A previous one is devel/libdeflate,
or www/firefox (patches third_party/gemmology_gemmology.h).

Does nobody else see this?

This is on NetBSD 10 with its native assembler and gcc 12.
If I wanted to use some other assembler which knows about these
instructions, how would I go about it? I don't think we have a USE_AS
variable or something like that.

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert                            <rhialto/at/falu.nl>
\X/ There is no AI. There is just someone else's work.           --I. Rose

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index