GNU bug report logs - #75462
libtool wrongly reorder compiler deps on linux

Previous Next

Package: libtool;

Reported by: Frederic Berat <fberat <at> redhat.com>

Date: Thu, 9 Jan 2025 13:14:02 UTC

Severity: normal

Done: Ileana Dumitrescu <ileanadumitrescu95 <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 75462 in the body.
You can then email your comments to 75462 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-libtool <at> gnu.org:
bug#75462; Package libtool. (Thu, 09 Jan 2025 13:14:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Frederic Berat <fberat <at> redhat.com>:
New bug report received and forwarded. Copy sent to bug-libtool <at> gnu.org. (Thu, 09 Jan 2025 13:14:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Frederic Berat <fberat <at> redhat.com>
To: bug-libtool <at> gnu.org
Subject: libtool wrongly reorder compiler deps on linux
Date: Thu, 9 Jan 2025 14:11:36 +0100
[Message part 1 (text/plain, inline)]
Hello,

I opened an issue a few years back that didn't get solved:
https://lists.gnu.org/archive/html/libtool/2022-02/msg00001.html

Out of curiosity, I decided to remove my local patch for it with the new
libtool release. It didn't take long for builds to fail again:
https://bugzilla.redhat.com/show_bug.cgi?id=2331361

Considering that more and more systems prevent deduplication over the
years, may it be considered to be the default behavior instead of the
exception ?

Frédéric Bérat

Principal Software Engineer, Platform Tools

Red Hat <https://www.redhat.com>

fberat <at> redhat.com
<https://www.redhat.com>
[Message part 2 (text/html, inline)]

Information forwarded to bug-libtool <at> gnu.org:
bug#75462; Package libtool. (Thu, 09 Jan 2025 18:58:02 GMT) Full text and rfc822 format available.

Message #8 received at 75462 <at> debbugs.gnu.org (full text, mbox):

From: Ileana Dumitrescu <ileanadumitrescu95 <at> gmail.com>
To: 75462 <at> debbugs.gnu.org
Cc: Frederic Berat <fberat <at> redhat.com>
Subject: Re: bug#75462: libtool wrongly reorder compiler deps on linux
Date: Thu, 9 Jan 2025 20:56:50 +0200
[Message part 1 (text/plain, inline)]
On 09/01/2025 15:11, Frederic Berat wrote:
> Hello,
> 
> I opened an issue a few years back that didn't get solved: https:// 
> lists.gnu.org/archive/html/libtool/2022-02/msg00001.html <https:// 
> lists.gnu.org/archive/html/libtool/2022-02/msg00001.html>
> 
> Out of curiosity, I decided to remove my local patch for it with the new 
> libtool release. It didn't take long for builds to fail again:
> https://bugzilla.redhat.com/show_bug.cgi?id=2331361 <https:// 
> bugzilla.redhat.com/show_bug.cgi?id=2331361>
> 
> Considering that more and more systems prevent deduplication over the 
> years, may it be considered to be the default behavior instead of the 
> exception ?

To ensure GNU Libtool continues to work with older systems, this patch
should probably not be applied. Users can disable the deduplication
optimization with "--preserve-dup-deps" without applying the suggested
patch, but this affects more than just compiler generated dependencies.

I would be more willing to add an option to toggle
"$opt_duplicate_compiler_generated_deps" separate from
"$opt_preserve_dup_deps". Would this be a good alternative to the patch?

-- 
Ileana Dumitrescu

GPG Public Key: FA26 CA78 4BE1 8892 7F22 B99F 6570 EA01 146F 7354

[OpenPGP_0x6570EA01146F7354.asc (application/pgp-keys, attachment)]
[OpenPGP_signature.asc (application/pgp-signature, attachment)]

Information forwarded to bug-libtool <at> gnu.org:
bug#75462; Package libtool. (Thu, 09 Jan 2025 21:24:01 GMT) Full text and rfc822 format available.

Message #11 received at 75462 <at> debbugs.gnu.org (full text, mbox):

From: Frederic Berat <fberat <at> redhat.com>
To: Ileana Dumitrescu <ileanadumitrescu95 <at> gmail.com>
Cc: 75462 <at> debbugs.gnu.org
Subject: Re: bug#75462: libtool wrongly reorder compiler deps on linux
Date: Thu, 9 Jan 2025 22:23:14 +0100
[Message part 1 (text/plain, inline)]
On Thu, Jan 9, 2025 at 7:57 PM Ileana Dumitrescu <
ileanadumitrescu95 <at> gmail.com> wrote:

> On 09/01/2025 15:11, Frederic Berat wrote:
> > Hello,
> >
> > I opened an issue a few years back that didn't get solved: https://
> > lists.gnu.org/archive/html/libtool/2022-02/msg00001.html <https://
> > lists.gnu.org/archive/html/libtool/2022-02/msg00001.html>
> >
> > Out of curiosity, I decided to remove my local patch for it with the new
> > libtool release. It didn't take long for builds to fail again:
> > https://bugzilla.redhat.com/show_bug.cgi?id=2331361 <https://
> > bugzilla.redhat.com/show_bug.cgi?id=2331361>
> >
> > Considering that more and more systems prevent deduplication over the
> > years, may it be considered to be the default behavior instead of the
> > exception ?
>
> To ensure GNU Libtool continues to work with older systems, this patch
> should probably not be applied. Users can disable the deduplication
> optimization with "--preserve-dup-deps" without applying the suggested
> patch, but this affects more than just compiler generated dependencies.
>
>
Well, I'm not sure I get why keeping duplicates would harm, but fair enough
my patch is clearly overkill.


> I would be more willing to add an option to toggle
> "$opt_duplicate_compiler_generated_deps" separate from
> "$opt_preserve_dup_deps". Would this be a good alternative to the patch?
>

Not sure that's a good alternative. you'd force users from the systems that
have been excluded over the years to toggle an option that they didn't need
so far.


>
> --
> Ileana Dumitrescu
>
> GPG Public Key: FA26 CA78 4BE1 8892 7F22 B99F 6570 EA01 146F 7354
>
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-libtool <at> gnu.org:
bug#75462; Package libtool. (Fri, 10 Jan 2025 14:37:02 GMT) Full text and rfc822 format available.

Message #14 received at 75462 <at> debbugs.gnu.org (full text, mbox):

From: Ileana Dumitrescu <ileanadumitrescu95 <at> gmail.com>
To: 75462 <at> debbugs.gnu.org
Cc: Frederic Berat <fberat <at> redhat.com>
Subject: Re: bug#75462: libtool wrongly reorder compiler deps on linux
Date: Fri, 10 Jan 2025 16:36:15 +0200
[Message part 1 (text/plain, inline)]
On 09/01/2025 23:23, Frederic Berat wrote:
...
>     To ensure GNU Libtool continues to work with older systems, this patch
>     should probably not be applied. Users can disable the deduplication
>     optimization with "--preserve-dup-deps" without applying the suggested
>     patch, but this affects more than just compiler generated dependencies.
> 
> 
> Well, I'm not sure I get why keeping duplicates would harm, but fair 
> enough my patch is clearly overkill.

I am willing to apply something similar if it is specific to systems
that have been verified to have a problem with reordered compiler
dependencies. I do not want to assume all of linux systems require this
patch, but a more specific subset would be good.

-- 
Ileana Dumitrescu

GPG Public Key: FA26 CA78 4BE1 8892 7F22 B99F 6570 EA01 146F 7354

[OpenPGP_0x6570EA01146F7354.asc (application/pgp-keys, attachment)]
[OpenPGP_signature.asc (application/pgp-signature, attachment)]

Information forwarded to bug-libtool <at> gnu.org:
bug#75462; Package libtool. (Mon, 13 Jan 2025 14:30:02 GMT) Full text and rfc822 format available.

Message #17 received at 75462 <at> debbugs.gnu.org (full text, mbox):

From: Frederic Berat <fberat <at> redhat.com>
To: Ileana Dumitrescu <ileanadumitrescu95 <at> gmail.com>
Cc: 75462 <at> debbugs.gnu.org
Subject: Re: bug#75462: libtool wrongly reorder compiler deps on linux
Date: Mon, 13 Jan 2025 15:29:23 +0100
[Message part 1 (text/plain, inline)]
On Fri, Jan 10, 2025 at 3:36 PM Ileana Dumitrescu <
ileanadumitrescu95 <at> gmail.com> wrote:

> On 09/01/2025 23:23, Frederic Berat wrote:
> ...
> >     To ensure GNU Libtool continues to work with older systems, this
> patch
> >     should probably not be applied. Users can disable the deduplication
> >     optimization with "--preserve-dup-deps" without applying the
> suggested
> >     patch, but this affects more than just compiler generated
> dependencies.
> >
> >
> > Well, I'm not sure I get why keeping duplicates would harm, but fair
> > enough my patch is clearly overkill.
>
> I am willing to apply something similar if it is specific to systems
> that have been verified to have a problem with reordered compiler
> dependencies. I do not want to assume all of linux systems require this
> patch, but a more specific subset would be good.
>

More than a specific linux system, that are dependencies that include GCC
libraries that should not be re-ordered/de-duplicated in the case I've seen.


>
> --
> Ileana Dumitrescu
>
> GPG Public Key: FA26 CA78 4BE1 8892 7F22 B99F 6570 EA01 146F 7354
>
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-libtool <at> gnu.org:
bug#75462; Package libtool. (Mon, 13 Jan 2025 17:46:02 GMT) Full text and rfc822 format available.

Message #20 received at 75462 <at> debbugs.gnu.org (full text, mbox):

From: Ileana Dumitrescu <ileanadumitrescu95 <at> gmail.com>
To: 75462 <at> debbugs.gnu.org
Cc: Frederic Berat <fberat <at> redhat.com>
Subject: Re: bug#75462: libtool wrongly reorder compiler deps on linux
Date: Mon, 13 Jan 2025 19:44:48 +0200
[Message part 1 (text/plain, inline)]
On 13/01/2025 16:29, Frederic Berat wrote:
...
>     I am willing to apply something similar if it is specific to systems
>     that have been verified to have a problem with reordered compiler
>     dependencies. I do not want to assume all of linux systems require this
>     patch, but a more specific subset would be good.
> 
> 
> More than a specific linux system, that are dependencies that include 
> GCC libraries that should not be re-ordered/de-duplicated in the case 
> I've seen.

After some more thought on this, I will merge the suggested patch. If
there are any unlikely failures or performance issues, I will work to
find a better solution then, since the current ideas seem like a mess
to maintain.

-- 
Ileana Dumitrescu

GPG Public Key: FA26 CA78 4BE1 8892 7F22 B99F 6570 EA01 146F 7354

[OpenPGP_0x6570EA01146F7354.asc (application/pgp-keys, attachment)]
[OpenPGP_signature.asc (application/pgp-signature, attachment)]

Reply sent to Ileana Dumitrescu <ileanadumitrescu95 <at> gmail.com>:
You have taken responsibility. (Mon, 13 Jan 2025 17:57:02 GMT) Full text and rfc822 format available.

Notification sent to Frederic Berat <fberat <at> redhat.com>:
bug acknowledged by developer. (Mon, 13 Jan 2025 17:57:02 GMT) Full text and rfc822 format available.

Message #25 received at 75462-done <at> debbugs.gnu.org (full text, mbox):

From: Ileana Dumitrescu <ileanadumitrescu95 <at> gmail.com>
To: 75462-done <at> debbugs.gnu.org
Cc: Frederic Berat <fberat <at> redhat.com>
Subject: Re: bug#75462: libtool wrongly reorder compiler deps on linux
Date: Mon, 13 Jan 2025 19:56:35 +0200
[Message part 1 (text/plain, inline)]
Thank you again for the patch [1].

[1] 
https://git.savannah.gnu.org/cgit/libtool.git/commit/?h=development&id=18dc06ade3db7c4100e781d1c1ef8c5b018ca920

-- 
Ileana Dumitrescu

GPG Public Key: FA26 CA78 4BE1 8892 7F22 B99F 6570 EA01 146F 7354

[OpenPGP_0x6570EA01146F7354.asc (application/pgp-keys, attachment)]
[OpenPGP_signature.asc (application/pgp-signature, attachment)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 11 Feb 2025 12:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 122 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.