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

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

    <bug>
          <bug_id>49853</bug_id>
          
          <creation_ts>2024-04-01 16:13:18 +0300</creation_ts>
          <short_desc>../sysdeps/arm/crtn.S: Нет такого файла или каталога</short_desc>
          <delta_ts>2024-04-01 16:39:43 +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>arm-none-eabi-gdb</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>NOTABUG</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="Alexander Makeenkov">amakeenk</reporter>
          <assigned_to name="Sergey Bolshakov">sbolshakov</assigned_to>
          <cc>asheplyakov</cc>
    
    <cc>sbolshakov</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>243851</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2024-04-01 16:13:18 +0300</bug_when>
    <thetext>Версия пакета:

arm-none-eabi-gdb-14.2-alt1.x86_64

Шаги воспроизведения:

# apt-get install binutils-arm-linux-gnueabihf cross-glibc-arm gcc-arm-linux-gnueabihf arm-none-eabi-gdb
$ cat &gt; hw.c &lt;&lt;EOF
#include &lt;stdio.h&gt;

int main(void)
{
    int i;
    printf(&quot;Hello World!\n&quot;);
}
EOF
$ arm-linux-gnueabihf-gcc -v -mcpu=cortex-a53 hw.c -o hw
$ arm-none-eabi-gdb hw
(gdb) list

Получаемый результат:

Reading symbols from hw...
(gdb) list
warning: 1      ../sysdeps/arm/crtn.S: Нет такого файла или каталога

Файл sysdeps/arm/crtn.S есть в пакете zig, но его установка проблему не решает:

$ rpm -ql zig | grep sysdeps/arm/crtn.S
/usr/lib/zig/libc/glibc/sysdeps/arm/crtn.S</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>243857</commentid>
    <comment_count>1</comment_count>
    <who name="Sergey Bolshakov">sbolshakov</who>
    <bug_when>2024-04-01 16:39:43 +0300</bug_when>
    <thetext>вы смешиваете инструменты для разных целевых платформ.
в приведённом примере был бы нужен arm-linux-gnueabihf-gdb, если
такой существует.
arm-none-eabi-* для baremetal</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>