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

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

    <bug>
          <bug_id>38324</bug_id>
          
          <creation_ts>2020-04-04 02:31:54 +0300</creation_ts>
          <short_desc>Не линкуются приложения из-за рассогласования с текущей gcclib</short_desc>
          <delta_ts>2020-04-04 13:40:53 +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>fpc-compiler</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="Evgeny Sinelnikov">sin</reporter>
          <assigned_to name="Ajrat Makhmutov">rauty</assigned_to>
          <cc>rauty</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>189062</commentid>
    <comment_count>0</comment_count>
    <who name="Evgeny Sinelnikov">sin</who>
    <bug_when>2020-04-04 02:31:54 +0300</bug_when>
    <thetext>Вот так выглядят нерабочие настройки:

[root@localhost .in]# rpm -qf /etc/fpc.cfg
fpc-compiler-3.3.1-alt0.1.x86_64

[root@localhost .in]# grep -C2 alt-linux /etc/fpc.cfg 
# path to the gcclib
#ifdef cpui386
-Fl/usr/lib64/gcc/x86_64-alt-linux/8
#endif
#ifdef cpux86_64
-Fl/usr/lib64/gcc/x86_64-alt-linux/8
#endif

[root@localhost .in]# ls -l /usr/lib64/gcc/x86_64-alt-linux/8
ls: cannot access &apos;/usr/lib64/gcc/x86_64-alt-linux/8&apos;: No such file or directory

[root@localhost .in]# ls -l /usr/lib64/gcc/x86_64-alt-linux/9/crtbegin*
-rw-r--r-- 1 root root 2824 Jan 26 11:30 /usr/lib64/gcc/x86_64-alt-linux/9/crtbegin.o
-rw-r--r-- 1 root root 3056 Jan 26 11:30 /usr/lib64/gcc/x86_64-alt-linux/9/crtbeginS.o
-rw-r--r-- 1 root root 3328 Jan 26 11:30 /usr/lib64/gcc/x86_64-alt-linux/9/crtbeginT.o


Вот так отваливается при этом сборка:

[builder@localhost doublecmd-0.9.8]$ /usr/bin/lazbuild src/doublecmd.lpi --bm=beta --widgetset=qt5
[...]
Компилятор Free Pascal версии 3.3.1 [2019/01/23] для x86_64
Copyright (c) 1993-2018 by Florian Klaempfl and others
(1002) Целевая ОС: Linux for x86-64
(3104) Компиляция doublecmd.lpr
(3104) Компиляция ./platform/udcversion.pas
(9022) Компиляция pесypса /usr/src/RPM/BUILD/doublecmd-0.9.8/units/x86_64-linux-qt5/doublecmd.or
(9015) Компоновка /usr/src/RPM/BUILD/doublecmd-0.9.8/doublecmd
/usr/src/RPM/BUILD/doublecmd-0.9.8/src/doublecmd.lpr(235,1) Внимание: (9034) &quot;crtbeginS.o&quot; not found, this will probably cause a linking failure
/usr/src/RPM/BUILD/doublecmd-0.9.8/src/doublecmd.lpr(235,1) Внимание: (9034) &quot;crtendS.o&quot; not found, this will probably cause a linking failure
/usr/src/RPM/BUILD/doublecmd-0.9.8/src/doublecmd.lpr(235,1) Ошибка: (9014) Hе удается вызвать компоновщик, переход на внешнюю компоновку
/usr/src/RPM/BUILD/doublecmd-0.9.8/src/doublecmd.lpr(235,1) Фатально: (10026) Пpи компиляции модyля произошло 1 ошибок, работа прервана
Фатально: (1018) Компиляция прервана
Error: /usr/bin/ppcx64 returned an error exitcode
Error: (lazarus) Compile Project, Mode: Beta, Target: /usr/src/RPM/BUILD/doublecmd-0.9.8/doublecmd: stopped with exit code 1
Error: (lazbuild) failed compiling of project /usr/src/RPM/BUILD/doublecmd-0.9.8/src/doublecmd.lpi


Вот так отваливается (без полной пересборки), если прописать всего /usr/lib64/gcc/x86_64-alt-linux/8, имеющийся /usr/lib64/gcc/x86_64-alt-linux/9:

[builder@localhost doublecmd-0.9.8]$ /usr/bin/lazbuild src/doublecmd.lpi --bm=beta --widgetset=qt5
[...]
Компилятор Free Pascal версии 3.3.1 [2019/01/23] для x86_64
Copyright (c) 1993-2018 by Florian Klaempfl and others
(1002) Целевая ОС: Linux for x86-64
(3104) Компиляция doublecmd.lpr
(3104) Компиляция ./platform/udcversion.pas
(9022) Компиляция pесypса /usr/src/RPM/BUILD/doublecmd-0.9.8/units/x86_64-linux-qt5/doublecmd.or
(9015) Компоновка /usr/src/RPM/BUILD/doublecmd-0.9.8/doublecmd
/usr/src/RPM/BUILD/doublecmd-0.9.8/src/doublecmd.lpr(235,1) Ошибка: (9014) Hе удается вызвать компоновщик, переход на внешнюю компоновку
/usr/src/RPM/BUILD/doublecmd-0.9.8/src/doublecmd.lpr(235,1) Фатально: (10026) Пpи компиляции модyля произошло 1 ошибок, работа прервана
Фатально: (1018) Компиляция прервана
Error: /usr/bin/ppcx64 returned an error exitcode
Error: (lazarus) Compile Project, Mode: Beta, Target: /usr/src/RPM/BUILD/doublecmd-0.9.8/doublecmd: stopped with exit code 1
Error: (lazbuild) failed compiling of project /usr/src/RPM/BUILD/doublecmd-0.9.8/src/doublecmd.lpi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>189065</commentid>
    <comment_count>1</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2020-04-04 13:40:53 +0300</bug_when>
    <thetext>Посмотри
247714 FAILED #1 [test-only] sisyphus doublecmd.git=0.9.8-alt1.rev9357.1
Линковке локально это не мешает.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>