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

Compiler intrinsic '__m128' error when building clr-samples (Ubuntu/Clang 3.9) #9919

Closed
juliuslouw opened this issue Mar 11, 2018 · 2 comments
Labels
area-Infrastructure-coreclr backlog-cleanup-candidate An inactive issue that has been marked for automated closure. no-recent-activity question Answer questions and provide assistance, not an issue with source code or documentation.

Comments

@juliuslouw
Copy link

While porting a .NET Core profiler to Linux (specifically Ubuntu), the build fails with the following errors below. I'm able to reproduce the issue in the example hosted at Microsoft/clr-samples. The sample there works out-of-the-box but starts failing immediately when a simple #include <algorithm> directive is added.

In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/algorithm:62:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/bits/stl_algo.h:66:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/random:50:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/x86_64-linux-gnu/c++/5.4.0/bits/opt_random.h:33:
In file included from /usr/lib/llvm-3.9/bin/../lib/clang/3.9.1/include/x86intrin.h:29:
In file included from /usr/lib/llvm-3.9/bin/../lib/clang/3.9.1/include/immintrin.h:40:
/usr/lib/llvm-3.9/bin/../lib/clang/3.9.1/include/pmmintrin.h:45:19: error: unknown type name '__m128i'; did you mean '__m128'?
static __inline__ __m128i __DEFAULT_FN_ATTRS
                  ^
/home/developer/Projects/cryptonomicon/profiler/../modules/coreclr/v2.0.5/src/pal/inc/rt/xmmintrin.h:32:15: note: '__m128' declared here
typedef float __m128 __attribute__((__vector_size__(16)));

In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/algorithm:62:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/bits/stl_algo.h:66:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/random:50:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/x86_64-linux-gnu/c++/5.4.0/bits/opt_random.h:33:
In file included from /usr/lib/llvm-3.9/bin/../lib/clang/3.9.1/include/x86intrin.h:29:
In file included from /usr/lib/llvm-3.9/bin/../lib/clang/3.9.1/include/immintrin.h:40:
/usr/lib/llvm-3.9/bin/../lib/clang/3.9.1/include/pmmintrin.h:45:27: error: '__target__' attribute only applies to functions
static __inline__ __m128i __DEFAULT_FN_ATTRS
                          ^
/usr/lib/llvm-3.9/bin/../lib/clang/3.9.1/include/pmmintrin.h:31:50: note: expanded from macro '__DEFAULT_FN_ATTRS'
  __attribute__((__always_inline__, __nodebug__, __target__("sse3")))
                                                 ^
/usr/lib/llvm-3.9/bin/../lib/clang/3.9.1/include/pmmintrin.h:46:17: error: use of undeclared identifier '__m128i'
_mm_lddqu_si128(__m128i const *__p)
                ^
/usr/lib/llvm-3.9/bin/../lib/clang/3.9.1/include/pmmintrin.h:46:36: error: expected ';' after top level declarator
_mm_lddqu_si128(__m128i const *__p)

I'm able to resolve the error by using Clang 3.5, but the coreclr instructions appears to prefer Clang 3.9 going forward. Any advice or suggestions would be very much appreciated!

@msftgits msftgits transferred this issue from dotnet/coreclr Jan 31, 2020
@msftgits msftgits added this to the Future milestone Jan 31, 2020
Copy link
Contributor

Due to lack of recent activity, this issue has been marked as a candidate for backlog cleanup. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will undo this process.

This process is part of our issue cleanup automation.

@dotnet-policy-service dotnet-policy-service bot added backlog-cleanup-candidate An inactive issue that has been marked for automated closure. no-recent-activity labels May 12, 2024
Copy link
Contributor

This issue will now be closed since it had been marked no-recent-activity but received no further activity in the past 14 days. It is still possible to reopen or comment on the issue, but please note that the issue will be locked if it remains inactive for another 30 days.

@dotnet-policy-service dotnet-policy-service bot removed this from the Future milestone May 26, 2024
Infrastructure Backlog automation moved this from Future to Closed May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Infrastructure-coreclr backlog-cleanup-candidate An inactive issue that has been marked for automated closure. no-recent-activity question Answer questions and provide assistance, not an issue with source code or documentation.
Projects
Status: Done
Development

No branches or pull requests

2 participants