Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AVX ABI errors when building vector tests #50175

Closed
omajid opened this issue Mar 24, 2021 · 3 comments · Fixed by #50316
Closed

AVX ABI errors when building vector tests #50175

omajid opened this issue Mar 24, 2021 · 3 comments · Fixed by #50316

Comments

@omajid
Copy link
Member

omajid commented Mar 24, 2021

I am trying to build and run tests on commit 61889c8 (for #50148) and running into -Wpsabi errors:

$ cat /etc/os-release
NAME=Fedora
VERSION="33 (Workstation Edition)"
ID=fedora
VERSION_ID=33
VERSION_CODENAME=""
PLATFORM_ID="platform:f33"
PRETTY_NAME="Fedora 33 (Workstation Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:33"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f33/system-administrators-guide/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=33
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=33
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Workstation Edition"
VARIANT_ID=workstation
$ uname -m
x86_64
$ rpm -q clang lldb gcc glibc
clang-11.0.0-2.fc33.x86_64
lldb-11.0.0-1.fc33.x86_64
gcc-10.2.1-9.fc33.x86_64
glibc-2.32-4.fc33.x86_64
$ git rev-parse HEAD~
61889c8e8926aed2a22000c312baa0a7969cc927
$ ./build.sh -subset clr
...
$ ./src/tests/build.sh
...
...
runtime/src/tests/Interop/PInvoke/Generics/GenericsNative.Vector256C.cpp:67:24: error: AVX vector return of type 'Vector256C' (aka '__m256i') without 'avx' enabled changes the ABI [-Werror,-Wpsabi]
    Vector256C value = GetVector256C(e00, e01, e02, e03, e04, e05, e06, e07, e08, e09, e10, e11, e12, e13, e14, e15);
                       ^                                                                                              1 error generated.                                                                                                    
gmake[2]: *** [Interop/PInvoke/Generics/CMakeFiles/GenericsNative.dir/build.make:810: Interop/PInvoke/Generics/CMakeFiles/GenericsNative.dir/GenericsNative.Vector256C.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
runtime/src/tests/Interop/PInvoke/Generics/GenericsNative.Vector256L.cpp:43:24: error: AVX vector return of type 'Vector256L' (aka '__m256i') without 'avx' enabled changes the ABI [-Werror,-Wpsabi]
                 Vector256L value = GetVector256L(e00, e01, e02, e03);                                                             
                                    ^                                   
[ 56%] Built target UnmanagedCallersOnlyDll
1 error generated.                                         
gmake[2]: *** [Interop/PInvoke/Generics/CMakeFiles/GenericsNative.dir/build.make:849: Interop/PInvoke/Generics/CMakeFiles/GenericsNative.dir/GenericsNative.Vector256L.cpp.o] Error 1                                         
[ 57%] Built target BoolNative                                                                                        
[ 58%] Built target UIntPtrNative
runtime/src/tests/Interop/PInvoke/Generics/GenericsNative.Vector256B.cpp:99:24: error: AVX vector return of type 'Vector256B' (aka '__m256i') without 'avx' enabled changes the ABI [-Werror,-Wpsabi]
    Vector256B value = GetVector256B(e00, e01, e02, e03, e04, e05, e06, e07, e08, e09, e10, e11, e12, e13, e14, e15, e16, e17, e18, e19, e20, e21, e22, e23, e24, e25, e26, e27, e28, e29, e30, e31);                          
                       ^                                                                      

Is this a known issue? Is there a fix/workaround available for this?

@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label Mar 24, 2021
@ghost
Copy link

ghost commented Mar 24, 2021

Tagging subscribers to this area: @hoyosjs
See info in area-owners.md if you want to be subscribed.

Issue Details

I am trying to build and run tests on commit 61889c8 (for #50148) and running into -Wpsabi errors:

$ cat /etc/os-release
NAME=Fedora
VERSION="33 (Workstation Edition)"
ID=fedora
VERSION_ID=33
VERSION_CODENAME=""
PLATFORM_ID="platform:f33"
PRETTY_NAME="Fedora 33 (Workstation Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:33"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f33/system-administrators-guide/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=33
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=33
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Workstation Edition"
VARIANT_ID=workstation
$ uname -m
x86_64
$ rpm -q clang lldb gcc glibc
clang-11.0.0-2.fc33.x86_64
lldb-11.0.0-1.fc33.x86_64
gcc-10.2.1-9.fc33.x86_64
glibc-2.32-4.fc33.x86_64
$ git rev-parse HEAD~
61889c8e8926aed2a22000c312baa0a7969cc927
$ ./build.sh -subset clr
...
$ ./src/tests/build.sh
...
...
runtime/src/tests/Interop/PInvoke/Generics/GenericsNative.Vector256C.cpp:67:24: error: AVX vector return of type 'Vector256C' (aka '__m256i') without 'avx' enabled changes the ABI [-Werror,-Wpsabi]
    Vector256C value = GetVector256C(e00, e01, e02, e03, e04, e05, e06, e07, e08, e09, e10, e11, e12, e13, e14, e15);
                       ^                                                                                              1 error generated.                                                                                                    
gmake[2]: *** [Interop/PInvoke/Generics/CMakeFiles/GenericsNative.dir/build.make:810: Interop/PInvoke/Generics/CMakeFiles/GenericsNative.dir/GenericsNative.Vector256C.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
runtime/src/tests/Interop/PInvoke/Generics/GenericsNative.Vector256L.cpp:43:24: error: AVX vector return of type 'Vector256L' (aka '__m256i') without 'avx' enabled changes the ABI [-Werror,-Wpsabi]
                 Vector256L value = GetVector256L(e00, e01, e02, e03);                                                             
                                    ^                                   
[ 56%] Built target UnmanagedCallersOnlyDll
1 error generated.                                         
gmake[2]: *** [Interop/PInvoke/Generics/CMakeFiles/GenericsNative.dir/build.make:849: Interop/PInvoke/Generics/CMakeFiles/GenericsNative.dir/GenericsNative.Vector256L.cpp.o] Error 1                                         
[ 57%] Built target BoolNative                                                                                        
[ 58%] Built target UIntPtrNative
runtime/src/tests/Interop/PInvoke/Generics/GenericsNative.Vector256B.cpp:99:24: error: AVX vector return of type 'Vector256B' (aka '__m256i') without 'avx' enabled changes the ABI [-Werror,-Wpsabi]
    Vector256B value = GetVector256B(e00, e01, e02, e03, e04, e05, e06, e07, e08, e09, e10, e11, e12, e13, e14, e15, e16, e17, e18, e19, e20, e21, e22, e23, e24, e25, e26, e27, e28, e29, e30, e31);                          
                       ^                                                                      

Is this a known issue? Is there a fix/workaround available for this?

Author: omajid
Assignees: -
Labels:

area-Infrastructure-coreclr, untriaged

Milestone: -

@ghost ghost added this to Untriaged in Infrastructure Backlog Mar 24, 2021
@ViktorHofer
Copy link
Member

cc @jkoritzinsky @janvorli

@ViktorHofer ViktorHofer added this to the Future milestone Mar 24, 2021
@ViktorHofer ViktorHofer removed the untriaged New issue has not been triaged by the area owner label Mar 24, 2021
@ViktorHofer ViktorHofer moved this from Untriaged to Future in Infrastructure Backlog Mar 24, 2021
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Mar 27, 2021
Infrastructure Backlog automation moved this from Future to Done Jun 8, 2021
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Jun 8, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Jul 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants