Integrated: 8366777: Build fails unknown pseudo-op with old AS on linux-aarch64

SendaoYan syan at openjdk.org
Wed Sep 17 11:30:07 UTC 2025


On Wed, 3 Sep 2025 14:35:44 GMT, SendaoYan <syan at openjdk.org> wrote:

> Hi all,
> 
> Build jdk on linux-aarch64 with older assembler version(as 2.30) will report compilation failre, shows as [JDK-8366777](https://bugs.openjdk.org/browse/JDK-8366777).
> 
> This PR add the expression `svfloat64_t a() {}` to makefile which will trigger the compilation during configure stage. After this PR, at configure stage will check the gcc and assember support `-march=armv8-a+sve` or not more comprehensive.
> 
> Testing:
> - [x] On linux-aarch64 gcc12.3.1 as2.37, configure set SVE_CFLAGS as '-march=armv8-a+sve'
> - [x] On linux-aarch64 gcc10.3.0 as2.30, configure set SVE_CFLAGS as empty
> 
> 
> The compilation fails demo as below:
> 
> 
> # cat sve.c 
> #include <arm_sve.h>
> svfloat64_t a() {}
> # gcc -march=armv8-a+sve sve.c 
> /tmp/ccVOzMzb.s: Assembler messages:
> /tmp/ccVOzMzb.s:6: Error: unknown pseudo-op: `.variant_pcs'

This pull request has now been integrated.

Changeset: 4719ed67
Author:    SendaoYan <syan at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/4719ed671a8a8e10b77c4748a0e1ee63c19dfefb
Stats:     99 lines in 3 files changed: 57 ins; 42 del; 0 mod

8366777: Build fails unknown pseudo-op with old AS on linux-aarch64

Reviewed-by: erikj, ihse

-------------

PR: https://git.openjdk.org/jdk/pull/27073


More information about the build-dev mailing list