Opened 16 months ago

Closed 15 months ago

Last modified 15 months ago

#67802 closed defect (fixed)

qt6-qtbase @6.4.3_1: Fail to compile on 10.14 _mm256_maskz_cvtps_ph() called with wrong number of args

Reported by: macportsraf Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc: chrstphrchvz (Christopher Chavez)
Port: qt6-qtbase

Description

While testing a tiny change to the qtkeychain Portfile, the qt6-qtbase port failed to compile. It calls the _mm256_maskz_cvtps_ph() function with 3 arguments, but it's defined with 2 arguments in /Library/Developer/CommandLineTools/usr/lib/clang/11.0.0/include/avx512vlintrin.h.

    :info:build /opt/local/var/macports/build/...//qfloat16.cpp:180:19: error: no matching function for call to '_mm256_maskz_cvtps_ph'
    :info:build     __m128i f16 = _mm256_maskz_cvtps_ph(mask, f32, _MM_FROUND_TO_NEAREST_INT);
    :info:build                   ^~~~~~~~~~~~~~~~~~~~~
    :info:build /Library/Developer/CommandLineTools/usr/lib/clang/11.0.0/include/avx512vlintrin.h:8463:1: note: candidate function not viable: requires 2 arguments, but 3 were provided
    :info:build _mm256_maskz_cvtps_ph ( __mmask8 __U, __m256 __A)
    :info:build ^
    :info:build 1 error generated.

macOS 10.14.6 18G6032 x86_64

Xcode 11.3 11C29

Attachments (1)

main.log.bz2 (45.0 KB) - added by macportsraf 16 months ago.
main.log

Download all attachments as: .zip

Change History (5)

Changed 16 months ago by macportsraf

Attachment: main.log.bz2 added

main.log

comment:1 Changed 16 months ago by jmroot (Joshua Root)

Owner: set to MarcusCalhoun-Lopez
Status: newassigned

comment:2 Changed 16 months ago by chrstphrchvz (Christopher Chavez)

LLVM Clang since 3.9.0 (https://github.com/llvm/llvm-project/commit/9e7d0a98fa26) but before 9.0.0 (https://github.com/llvm/llvm-project/commit/6d9fb68c536d, and so likely also Xcode Clang before 11.4) had defined _mm256_maskz_cvtps_ph as 2-argument (and apparently so had Intel for a time, but not anymore). It should be okay to use the equivalent _mm256_maskz_cvt_roundps_ph intrinsic which Clang has always defined as 3-argument: https://github.com/macports/macports-ports/pull/19627

However https://github.com/macports/macports-ports/pull/19407 already proposed disabling this and other code which does not build on 10.14.

Last edited 15 months ago by chrstphrchvz (Christopher Chavez) (previous) (diff)

comment:3 Changed 16 months ago by chrstphrchvz (Christopher Chavez)

Cc: chrstphrchvz added

comment:4 Changed 15 months ago by chrstphrchvz (Christopher Chavez)

Resolution: fixed
Status: assignedclosed

In c5d2c7e52f9c552a6079add1894c66c322a10eab/macports-ports (master):

qt6-qtbase: attempt to fix build on 10.14

Fixes: #67802

Note: See TracTickets for help on using tickets.