Чистая установка, при попытке компиляции clang-ом простейшей программы c++ (например так: clang++ main.cpp -o App0001), включающей в себя заголовок стандартной библиотеки iostream, появляется ошибка: fatal error: 'iostream' file not found. Установка пакета "gcc13-c++-13.2.1-alt3.x86_64" и его зависимостей решила данную проблему, но как то странно - компилятор установлен, а стандартная библиотека нет, хорошо бы исправить.
Забыл добавить - перед попыткой компиляции из командной строки, был установлен QT Creator flatpak
llvm20.1-20.1.7-alt0.2 -> sisyphus: Mon Jul 07 2025 L.A. Kostis <lakostis@altlinux.ru> 20.1.7-alt0.2 - clang: added requirement of gcc-c++ (closes #55062).
(Ответ для Repository Robot на комментарий #2) > llvm20.1-20.1.7-alt0.2 -> sisyphus: > > Mon Jul 07 2025 L.A. Kostis <lakostis@altlinux.ru> 20.1.7-alt0.2 > - clang: added requirement of gcc-c++ (closes #55062). После этого изменения перестал собираться chromium: clang++ -MMD -MF src/base/posix/safe_strerror.o.d -I../../../tools/gn/src -I. -fno-delete-null-pointer-checks -DUSE_SYSTEM_MINIZIP -I/usr/include/c++/v1 -Wno-deprecated-declarations -Wno-implicit-fallthrough -Wno-nontrivial-memcall -Wno-shadow -Wno-macro-redefined -Wno-error -Wno-undef -fno-delete-null-pointer-checks -DUSE_SYSTEM_MINIZIP -I/usr/include/c++/v1 -Wno-deprecated-declarations -Wno-implicit-fallthrough -Wno-nontrivial-memcall -Wno-shadow -Wno-macro-redefined -Wno-error -Wno-undef -D_LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -std=c++20 -Wrange-loop-analysis -Wextra-semi-stmt -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -c ../../../tools/gn/src/base/posix/safe_strerror.cc -o src/base/posix/safe_strerror.o In file included from ../../../tools/gn/src/base/posix/safe_strerror.cc:13: In file included from ../../../tools/gn/src/base/posix/safe_strerror.h:10: In file included from /usr/include/c++/v1/string:591: In file included from /usr/include/c++/v1/__algorithm/remove.h:12: In file included from /usr/include/c++/v1/__algorithm/find.h:23: In file included from /usr/include/c++/v1/__string/constexpr_c_functions.h:14: In file included from /usr/include/c++/v1/__memory/construct_at.h:23: In file included from /usr/include/c++/v1/new:358: In file included from /usr/include/c++/v1/cstdlib:86: In file included from /usr/include/c++/v1/stdlib.h:94: /usr/lib64/gcc/x86_64-alt-linux/14/../../../../include/c++/14/stdlib.h:38:12: error: no member named 'abort' in namespace 'std' 38 | using std::abort; | ~~~~~^ /usr/lib64/gcc/x86_64-alt-linux/14/../../../../include/c++/14/stdlib.h:39:12: error: no member named 'atexit' in namespace 'std' 39 | using std::atexit; | ~~~~~^ /usr/lib64/gcc/x86_64-alt-linux/14/../../../../include/c++/14/stdlib.h:40:12: error: no member named 'exit' in namespace 'std' 40 | using std::exit; | ~~~~~^ In file included from ../../../tools/gn/src/base/posix/safe_strerror.cc:13: In file included from ../../../tools/gn/src/base/posix/safe_strerror.h:10: In file included from /usr/include/c++/v1/string:591: In file included from /usr/include/c++/v1/__algorithm/remove.h:12: In file included from /usr/include/c++/v1/__algorithm/find.h:23: In file included from /usr/include/c++/v1/__string/constexpr_c_functions.h:14: In file included from /usr/include/c++/v1/__memory/construct_at.h:23: In file included from /usr/include/c++/v1/new:358: In file included from /usr/include/c++/v1/cstdlib:86: /usr/include/c++/v1/stdlib.h:143:30: error: unknown type name 'ldiv_t' 143 | inline _LIBCPP_HIDE_FROM_ABI ldiv_t div(long __x, long __y) _NOEXCEPT { return ::ldiv(__x, __y); } | ^ /usr/include/c++/v1/stdlib.h:143:82: error: no member named 'ldiv' in the global namespace 143 | inline _LIBCPP_HIDE_FROM_ABI ldiv_t div(long __x, long __y) _NOEXCEPT { return ::ldiv(__x, __y); } | ~~^ /usr/include/c++/v1/stdlib.h:145:30: error: unknown type name 'lldiv_t' 145 | inline _LIBCPP_HIDE_FROM_ABI lldiv_t div(long long __x, long long __y) _NOEXCEPT { return ::lldiv(__x, __y); } | ^ /usr/include/c++/v1/stdlib.h:145:93: error: no member named 'lldiv' in the global namespace 145 | inline _LIBCPP_HIDE_FROM_ABI lldiv_t div(long long __x, long long __y) _NOEXCEPT { return ::lldiv(__x, __y); } | ~~^ In file included from ../../../tools/gn/src/base/posix/safe_strerror.cc:13: In file included from ../../../tools/gn/src/base/posix/safe_strerror.h:10: In file included from /usr/include/c++/v1/string:614: In file included from /usr/include/c++/v1/__memory_resource/polymorphic_allocator.h:20: In file included from /usr/include/c++/v1/tuple:268: In file included from /usr/include/c++/v1/compare:174: In file included from /usr/include/c++/v1/cmath:328: In file included from /usr/include/c++/v1/math.h:301: /usr/lib64/gcc/x86_64-alt-linux/14/../../../../include/c++/14/math.h:39:12: error: no member named 'acos' in namespace 'std' 39 | using std::acos; | ~~~~~^ /usr/lib64/gcc/x86_64-alt-linux/14/../../../../include/c++/14/math.h:40:12: error: no member named 'asin' in namespace 'std' 40 | using std::asin; | ~~~~~^ /usr/lib64/gcc/x86_64-alt-linux/14/../../../../include/c++/14/math.h:41:12: error: no member named 'atan' in namespace 'std' 41 | using std::atan; | ~~~~~^ /usr/lib64/gcc/x86_64-alt-linux/14/../../../../include/c++/14/math.h:42:12: error: no member named 'atan2' in namespace 'std' 42 | using std::atan2; | ~~~~~^ /usr/lib64/gcc/x86_64-alt-linux/14/../../../../include/c++/14/math.h:43:12: error: no member named 'cos' in namespace 'std'; did you mean 'ios'? 43 | using std::cos; | ~~~~~^ /usr/include/c++/v1/__fwd/ios.h:26:7: note: 'ios' declared here 26 | using ios = basic_ios<char>; | ^ In file included from ../../../tools/gn/src/base/posix/safe_strerror.cc:13: In file included from /usr/include/c++/v1/string:614: In file included from /usr/include/c++/v1/__memory_resource/polymorphic_allocator.h:20: In file included from /usr/include/c++/v1/tuple:268: In file included from /usr/include/c++/v1/compare:174: In file included from /usr/include/c++/v1/cmath:328: In file included from /usr/include/c++/v1/math.h:301: /usr/lib64/gcc/x86_64-alt-linux/14/../../../../include/c++/14/math.h:44:12: error: no member named 'sin' in namespace 'std'; did you mean 'min'? 44 | using std::sin; | ~~~~~^ /usr/include/c++/v1/__algorithm/min.h:29:1: note: 'min' declared here 29 | min(_LIBCPP_LIFETIMEBOUND const _Tp& __a, _LIBCPP_LIFETIMEBOUND const _Tp& __b, _Compare __comp) { | ^ ...
* Thu Jul 10 2025 L.A. Kostis <lakostis@altlinux.ru> 20.1.7-alt0.3 - clang: remove gcc-c++ from requires (as it breaks libcxx aware apps like chromium). Спасибо!