Re: collect2: fatal error: cannot find ‘ld’

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 30. 07. 24 1:57, Sérgio Basto wrote:
On Tue, 2024-07-30 at 01:31 +0200, Miro Hrončok wrote:
On 30. 07. 24 1:20, Miro Hrončok wrote:
Hello,

I got build failure of pypy3.9 and pypy3.10 on x86_64 only, with:

      collect2: fatal error: cannot find ‘ld’
      compilation terminated.

See the CI results of (the rawhide results):

https://src.fedoraproject.org/rpms/pypy3.9/pull-request/55
https://src.fedoraproject.org/rpms/pypy3.10/pull-request/20

This is with binutils 2.42.90-1.fc41

It takes 40+ minutes to failure. Any ideas what might be causing
this are
appreciated.

There is:

%ifarch %{ix86} x86_64 %{arm}
    sed -i -r 's/\$\(LDFLAGSEXTRA\)/& -fuse-ld=gold/'
./rpython/translator/platform/posix.py
%endif

In the spec. Which might explain why this only happens on x86_64
(%{ix86} is
ExcludeArched, %{arm} is EOL).


Actually, I see binutils-gold installed in the f40 root.log, but not
in the
rawhide root.log.

So this is likely the reason it fails, binutils-gold not installed. I
will
BuildRequire it.

https://src.fedoraproject.org/rpms/binutils/c/2175d42ba13c8999c2cc61813978f66ad8089980

    Remove "Requires: binutils-gold" from binutils sub-package.

This was done, but not communicated :(

Hi,

On 21 Jun 2023 4:07 p.m. in devel mailing list was announce the drop of
binutils-gold [1].

Yes, but that never happened.

BTW and regarding this topic, should we start avoid build with golden
linker ? i.e for example, qt5-qtwebengine [2] should we add
BuildRequires: binutils-gold or should we try built with other linker
(ldd IIRC) ?

I'll try to figure out why pypy builds with gold. The original commit is 7+ years old and provides no context:

https://src.fedoraproject.org/rpms/pypy3.9/c/ad0d37c683891eaf084a84e4a9f2205ce3c5585b

--
Miro Hrončok
--
Phone: +420777974800
Fedora Matrix: mhroncok

--
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux