<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>55062</bug_id>
          
          <creation_ts>2025-07-06 16:13:45 +0300</creation_ts>
          <short_desc>clang fatal error: &apos;iostream&apos; file not found</short_desc>
          <delta_ts>2025-07-10 22:45:31 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>clang</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Иванников Александр (SAF0001)">744695</reporter>
          <assigned_to name="Konstantin A Lepikhov (L.A. Kostis)">lakostis</assigned_to>
          <cc>744695</cc>
    
    <cc>amakeenk</cc>
    
    <cc>andy</cc>
    
    <cc>arseny</cc>
    
    <cc>cas</cc>
    
    <cc>iv</cc>
    
    <cc>lakostis</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>268415</commentid>
    <comment_count>0</comment_count>
    <who name="Иванников Александр (SAF0001)">744695</who>
    <bug_when>2025-07-06 16:13:45 +0300</bug_when>
    <thetext>Чистая установка, при попытке компиляции clang-ом простейшей программы c++ (например так: clang++ main.cpp -o App0001), включающей в себя заголовок стандартной библиотеки iostream, появляется ошибка:

fatal error: &apos;iostream&apos; file not found.

Установка пакета &quot;gcc13-c++-13.2.1-alt3.x86_64&quot; и его зависимостей решила данную проблему, но как то странно - компилятор установлен, а стандартная библиотека нет, хорошо бы исправить.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>268417</commentid>
    <comment_count>1</comment_count>
    <who name="Иванников Александр (SAF0001)">744695</who>
    <bug_when>2025-07-06 16:19:25 +0300</bug_when>
    <thetext>Забыл добавить - перед попыткой компиляции из командной строки, был установлен QT Creator flatpak</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>268508</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2025-07-07 21:10:04 +0300</bug_when>
    <thetext>llvm20.1-20.1.7-alt0.2 -&gt; sisyphus:

Mon Jul 07 2025 L.A. Kostis &lt;lakostis@altlinux.ru&gt; 20.1.7-alt0.2
- clang: added requirement of gcc-c++ (closes #55062).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>268666</commentid>
    <comment_count>3</comment_count>
    <who name="Andrew Vasilyev">andy</who>
    <bug_when>2025-07-09 17:11:51 +0300</bug_when>
    <thetext>(Ответ для Repository Robot на комментарий #2)
&gt; llvm20.1-20.1.7-alt0.2 -&gt; sisyphus:
&gt; 
&gt; Mon Jul 07 2025 L.A. Kostis &lt;lakostis@altlinux.ru&gt; 20.1.7-alt0.2
&gt; - 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 &apos;abort&apos; in namespace &apos;std&apos;
   38 | using std::abort;
      |       ~~~~~^
/usr/lib64/gcc/x86_64-alt-linux/14/../../../../include/c++/14/stdlib.h:39:12: error: no member named &apos;atexit&apos; in namespace &apos;std&apos;
   39 | using std::atexit;
      |       ~~~~~^
/usr/lib64/gcc/x86_64-alt-linux/14/../../../../include/c++/14/stdlib.h:40:12: error: no member named &apos;exit&apos; in namespace &apos;std&apos;
   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 &apos;ldiv_t&apos;
  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 &apos;ldiv&apos; 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 &apos;lldiv_t&apos;
  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 &apos;lldiv&apos; 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 &apos;acos&apos; in namespace &apos;std&apos;
   39 | using std::acos;
      |       ~~~~~^
/usr/lib64/gcc/x86_64-alt-linux/14/../../../../include/c++/14/math.h:40:12: error: no member named &apos;asin&apos; in namespace &apos;std&apos;
   40 | using std::asin;
      |       ~~~~~^
/usr/lib64/gcc/x86_64-alt-linux/14/../../../../include/c++/14/math.h:41:12: error: no member named &apos;atan&apos; in namespace &apos;std&apos;
   41 | using std::atan;
      |       ~~~~~^
/usr/lib64/gcc/x86_64-alt-linux/14/../../../../include/c++/14/math.h:42:12: error: no member named &apos;atan2&apos; in namespace &apos;std&apos;
   42 | using std::atan2;
      |       ~~~~~^
/usr/lib64/gcc/x86_64-alt-linux/14/../../../../include/c++/14/math.h:43:12: error: no member named &apos;cos&apos; in namespace &apos;std&apos;; did you mean &apos;ios&apos;?
   43 | using std::cos;
      |       ~~~~~^
/usr/include/c++/v1/__fwd/ios.h:26:7: note: &apos;ios&apos; declared here
   26 | using ios = basic_ios&lt;char&gt;;
      |       ^
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 &apos;sin&apos; in namespace &apos;std&apos;; did you mean &apos;min&apos;?
   44 | using std::sin;
      |       ~~~~~^
/usr/include/c++/v1/__algorithm/min.h:29:1: note: &apos;min&apos; declared here
   29 | min(_LIBCPP_LIFETIMEBOUND const _Tp&amp; __a, _LIBCPP_LIFETIMEBOUND const _Tp&amp; __b, _Compare __comp) {
      | ^
...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>268824</commentid>
    <comment_count>4</comment_count>
    <who name="Andrew Vasilyev">andy</who>
    <bug_when>2025-07-10 22:45:31 +0300</bug_when>
    <thetext>* Thu Jul 10 2025 L.A. Kostis &lt;lakostis@altlinux.ru&gt; 20.1.7-alt0.3
- clang: remove gcc-c++ from requires (as it breaks libcxx
  aware apps like chromium).

  Спасибо!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>