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

Please remove the use of deprecated C++ features #501

Open
yurivict opened this issue Oct 30, 2023 · 0 comments
Open

Please remove the use of deprecated C++ features #501

yurivict opened this issue Oct 30, 2023 · 0 comments

Comments

@yurivict
Copy link

yurivict commented Oct 30, 2023

Build fails because you use the C++ features that were deprecated in C++17:

In file included from /usr/ports/devel/xeus-cling/work/xeus-cling-0.15.3/src/main.cpp:30:
In file included from /usr/ports/devel/xeus-cling/work/xeus-cling-0.15.3/include/xeus-cling/xinterpreter.hpp:17:
In file included from /usr/local/llvm50_cern-root/include/cling/Interpreter/Interpreter.h:15:
In file included from /usr/local/llvm50_cern-root/include/llvm/ADT/StringRef.h:13:
/usr/local/llvm50_cern-root/include/llvm/ADT/STLExtras.h:60:31: error: no template named 'unary_function' in namespace 'std'; did you mean '__unary_function'?
struct identity : public std::unary_function<Ty, Ty> {
                         ~~~~~^~~~~~~~~~~~~~
                              __unary_function
/usr/include/c++/v1/__functional/unary_function.h:46:1: note: '__unary_function' declared here
using __unary_function = __unary_function_keep_layout_base<_Arg, _Result>;
^
In file included from /usr/ports/devel/xeus-cling/work/xeus-cling-0.15.3/src/main.cpp:30:
In file included from /usr/ports/devel/xeus-cling/work/xeus-cling-0.15.3/include/xeus-cling/xinterpreter.hpp:17:
In file included from /usr/local/llvm50_cern-root/include/cling/Interpreter/Interpreter.h:15:
In file included from /usr/local/llvm50_cern-root/include/llvm/ADT/StringRef.h:13:
/usr/local/llvm50_cern-root/include/llvm/ADT/STLExtras.h:70:31: error: no template named 'binary_function' in namespace 'std'; did you mean '__binary_function'?
struct less_ptr : public std::binary_function<Ty, Ty, bool> {
                         ~~~~~^~~~~~~~~~~~~~~
                              __binary_function

The errors actually come from the cling sources.
cling appears to be unsupported since the last update was in 2020, 3 years ago.

We have cling-0.5.2018.08.13_12.
I don't think that cling-2020 even builds. Only Arch linux has cling-2020 installed from the binary distribution. Otherwise, nobody can build it.

What can be done here?

Version: 0.15.3
clang-16
FreeBSD 13.2

@yurivict yurivict changed the title Please remove deprecated C++ features Please remove the use of deprecated C++ features Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant