- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The reported issue XE-2020-update-1-macOS has not been resolved in the new update, yet another issue is happening.
Compiling the code,
#include <iostream>
#include <vector>
int main()
{
std::vector<int> a(10, 0);
}
on macOS Catalina 10.15.6 with Intel Parallel Studio XE 2020 update 2 `C++` compiler fails with the below error messages,
In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm(640),
from /Library/Developer/CommandLineTools/usr/include/c++/v1/__string(57),
from /Library/Developer/CommandLineTools/usr/include/c++/v1/string_view(175),
from /Library/Developer/CommandLineTools/usr/include/c++/v1/string(504),
from /Library/Developer/CommandLineTools/usr/include/c++/v1/__locale(14),
from /Library/Developer/CommandLineTools/usr/include/c++/v1/ios(215),
from /Library/Developer/CommandLineTools/usr/include/c++/v1/iostream(37),
from vector.cpp(1):
/Library/Developer/CommandLineTools/usr/include/c++/v1/type_traits(903): error: function call is not allowed in a constant expression
__is_function(_Tp)
^
In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm(640),
from /Library/Developer/CommandLineTools/usr/include/c++/v1/__string(57),
from /Library/Developer/CommandLineTools/usr/include/c++/v1/string_view(175),
from /Library/Developer/CommandLineTools/usr/include/c++/v1/string(504),
from /Library/Developer/CommandLineTools/usr/include/c++/v1/__locale(14),
from /Library/Developer/CommandLineTools/usr/include/c++/v1/ios(215),
from /Library/Developer/CommandLineTools/usr/include/c++/v1/iostream(37),
from vector.cpp(1):
/Library/Developer/CommandLineTools/usr/include/c++/v1/type_traits(903): error: type name is not allowed
__is_function(_Tp)
^
In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm(640),
from /Library/Developer/CommandLineTools/usr/include/c++/v1/__string(57),
from /Library/Developer/CommandLineTools/usr/include/c++/v1/string_view(175),
from /Library/Developer/CommandLineTools/usr/include/c++/v1/string(504),
from /Library/Developer/CommandLineTools/usr/include/c++/v1/__locale(14),
from /Library/Developer/CommandLineTools/usr/include/c++/v1/ios(215),
from /Library/Developer/CommandLineTools/usr/include/c++/v1/iostream(37),
from vector.cpp(1):
/Library/Developer/CommandLineTools/usr/include/c++/v1/type_traits(2808): error: __libcpp_is_constructible is not a template
: public __libcpp_is_constructible<_Tp, _Args...>::type {};
^
In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm(640),
from /Library/Developer/CommandLineTools/usr/include/c++/v1/__string(57),
from /Library/Developer/CommandLineTools/usr/include/c++/v1/string_view(175),
from /Library/Developer/CommandLineTools/usr/include/c++/v1/string(504),
from /Library/Developer/CommandLineTools/usr/include/c++/v1/__locale(14),
from /Library/Developer/CommandLineTools/usr/include/c++/v1/ios(215),
from /Library/Developer/CommandLineTools/usr/include/c++/v1/iostream(37),
from vector.cpp(1):
/Library/Developer/CommandLineTools/usr/include/c++/v1/type_traits(2808): error: not a class or struct name
: public __libcpp_is_constructible<_Tp, _Args...>::type {};
^
In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm(640),
from /Library/Developer/CommandLineTools/usr/include/c++/v1/__string(57),
The full error message is in the attached file. Is there any idea or hint on this issue?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The only solution I found to this issue is to downgrade my mac command-line tools to version 11.5,
Command Line Tools for Xcode 11.5
Any other of the 12 version releases will break.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thank you for reporting this issue, we are forwarding this issue to the concerned team.
Warm Regards,
Abhishek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It's not recommended to use OS or Xcode versions that released after the compiler released built date because those versions couldn't be validated by the compiler at that time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your recommendation.
I got my Mac recently (in the last month), and downgrading the macOS was not an option to just make it work with the Intel compilers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This issue has been resolved and we will no longer respond to this thread.
If you require additional assistance from Intel, please start a new thread. Any further interaction in this thread will be considered community only.
Thanks,
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page